@springmicro/forms 0.7.12 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4439 -4436
- package/dist/index.umd.cjs +36 -36
- package/package.json +3 -3
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Re,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-dom"),require("nanoid")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","nanoid"],I):(Re=typeof globalThis<"u"?globalThis:Re||self,I(Re["@springmicro/forms"]={},Re.React,Re.ReactDOM,Re.Nanoid))})(this,function(Re,I,en,
|
|
1
|
+
(function(Re,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-dom"),require("nanoid")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","nanoid"],I):(Re=typeof globalThis<"u"?globalThis:Re||self,I(Re["@springmicro/forms"]={},Re.React,Re.ReactDOM,Re.Nanoid))})(this,function(Re,I,en,w$){"use strict";var Aie=Object.defineProperty;var Oie=(Re,I,en)=>I in Re?Aie(Re,I,{enumerable:!0,configurable:!0,writable:!0,value:en}):Re[I]=en;var we=(Re,I,en)=>Oie(Re,typeof I!="symbol"?I+"":I,en);function Ah(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ne=Ah(I),C$=Ah(en);var ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lc={exports:{}},Ri={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Oh;function
|
|
9
|
+
*/var Oh;function S$(){if(Oh)return Ri;Oh=1;var e=I,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,c){var l,d={},f=null,p=null;c!==void 0&&(f=""+c),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(p=u.ref);for(l in u)a.call(u,l)&&!i.hasOwnProperty(l)&&(d[l]=u[l]);if(s&&s.defaultProps)for(l in u=s.defaultProps,u)d[l]===void 0&&(d[l]=u[l]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:n.current}}return Ri.Fragment=r,Ri.jsx=o,Ri.jsxs=o,Ri}var Ni={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Th;function
|
|
17
|
+
*/var Th;function $$(){return Th||(Th=1,process.env.NODE_ENV!=="production"&&function(){var e=I,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,v="@@iterator";function g(x){if(x===null||typeof x!="object")return null;var X=m&&x[m]||x[v];return typeof X=="function"?X:null}var h=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(x){{for(var X=arguments.length,ae=new Array(X>1?X-1:0),ve=1;ve<X;ve++)ae[ve-1]=arguments[ve];b("error",x,ae)}}function b(x,X,ae){{var ve=h.ReactDebugCurrentFrame,We=ve.getStackAddendum();We!==""&&(X+="%s",ae=ae.concat([We]));var Je=ae.map(function(De){return String(De)});Je.unshift("Warning: "+X),Function.prototype.apply.call(console[x],console,Je)}}var w=!1,C=!1,E=!1,_=!1,N=!1,R;R=Symbol.for("react.module.reference");function k(x){return!!(typeof x=="string"||typeof x=="function"||x===a||x===i||N||x===n||x===c||x===l||_||x===p||w||C||E||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===d||x.$$typeof===o||x.$$typeof===s||x.$$typeof===u||x.$$typeof===R||x.getModuleId!==void 0))}function F(x,X,ae){var ve=x.displayName;if(ve)return ve;var We=X.displayName||X.name||"";return We!==""?ae+"("+We+")":ae}function W(x){return x.displayName||"Context"}function B(x){if(x==null)return null;if(typeof x.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case a:return"Fragment";case r:return"Portal";case i:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case l:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case s:var X=x;return W(X)+".Consumer";case o:var ae=x;return W(ae._context)+".Provider";case u:return F(x,x.render,"ForwardRef");case d:var ve=x.displayName||null;return ve!==null?ve:B(x.type)||"Memo";case f:{var We=x,Je=We._payload,De=We._init;try{return B(De(Je))}catch{return null}}}return null}var U=Object.assign,Y=0,L,Z,J,se,V,D,M;function P(){}P.__reactDisabledLog=!0;function S(){{if(Y===0){L=console.log,Z=console.info,J=console.warn,se=console.error,V=console.group,D=console.groupCollapsed,M=console.groupEnd;var x={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:x,log:x,warn:x,error:x,group:x,groupCollapsed:x,groupEnd:x})}Y++}}function T(){{if(Y--,Y===0){var x={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},x,{value:L}),info:U({},x,{value:Z}),warn:U({},x,{value:J}),error:U({},x,{value:se}),group:U({},x,{value:V}),groupCollapsed:U({},x,{value:D}),groupEnd:U({},x,{value:M})})}Y<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var j=h.ReactCurrentDispatcher,z;function H(x,X,ae){{if(z===void 0)try{throw Error()}catch(We){var ve=We.stack.trim().match(/\n( *(at )?)/);z=ve&&ve[1]||""}return`
|
|
18
18
|
`+z+x}}var Q=!1,ce;{var Ee=typeof WeakMap=="function"?WeakMap:Map;ce=new Ee}function ee(x,X){if(!x||Q)return"";{var ae=ce.get(x);if(ae!==void 0)return ae}var ve;Q=!0;var We=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Je;Je=j.current,j.current=null,S();try{if(X){var De=function(){throw Error()};if(Object.defineProperty(De.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(Ht){ve=Ht}Reflect.construct(x,[],De)}else{try{De.call()}catch(Ht){ve=Ht}x.call(De.prototype)}}else{try{throw Error()}catch(Ht){ve=Ht}x()}}catch(Ht){if(Ht&&ve&&typeof Ht.stack=="string"){for(var Oe=Ht.stack.split(`
|
|
19
19
|
`),jt=ve.stack.split(`
|
|
20
20
|
`),ht=Oe.length-1,vt=jt.length-1;ht>=1&&vt>=0&&Oe[ht]!==jt[vt];)vt--;for(;ht>=1&&vt>=0;ht--,vt--)if(Oe[ht]!==jt[vt]){if(ht!==1||vt!==1)do if(ht--,vt--,vt<0||Oe[ht]!==jt[vt]){var dr=`
|
|
21
|
-
`+Oe[ht].replace(" at new "," at ");return x.displayName&&dr.includes("<anonymous>")&&(dr=dr.replace("<anonymous>",x.displayName)),typeof x=="function"&&ce.set(x,dr),dr}while(ht>=1&&vt>=0);break}}}finally{Q=!1,j.current=Je,T(),Error.prepareStackTrace=We}var Pi=x?x.displayName||x.name:"",$a=Pi?H(Pi):"";return typeof x=="function"&&ce.set(x,$a),$a}function pt(x,X,ae){return ee(x,!1)}function te(x){var X=x.prototype;return!!(X&&X.isReactComponent)}function Ve(x,X,ae){if(x==null)return"";if(typeof x=="function")return ee(x,te(x));if(typeof x=="string")return H(x);switch(x){case c:return H("Suspense");case l:return H("SuspenseList")}if(typeof x=="object")switch(x.$$typeof){case u:return pt(x.render);case d:return Ve(x.type,X,ae);case f:{var ve=x,We=ve._payload,Je=ve._init;try{return Ve(Je(We),X,ae)}catch{}}}return""}var wt=Object.prototype.hasOwnProperty,Ut={},bn=h.ReactDebugCurrentFrame;function qr(x){if(x){var X=x._owner,ae=Ve(x.type,x._source,X?X.type:null);bn.setExtraStackFrame(ae)}else bn.setExtraStackFrame(null)}function tr(x,X,ae,ve,We){{var Je=Function.call.bind(wt);for(var De in x)if(Je(x,De)){var Oe=void 0;try{if(typeof x[De]!="function"){var jt=Error((ve||"React class")+": "+ae+" type `"+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[De]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw jt.name="Invariant Violation",jt}Oe=x[De](X,De,ve,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ht){Oe=ht}Oe&&!(Oe instanceof Error)&&(qr(We),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",ae,De,typeof Oe),qr(null)),Oe instanceof Error&&!(Oe.message in Ut)&&(Ut[Oe.message]=!0,qr(We),y("Failed %s type: %s",ae,Oe.message),qr(null))}}}var Kr=Array.isArray;function Qr(x){return Kr(x)}function Bn(x){{var X=typeof Symbol=="function"&&Symbol.toStringTag,ae=X&&x[Symbol.toStringTag]||x.constructor.name||"Object";return ae}}function wn(x){try{return Cn(x),!1}catch{return!0}}function Cn(x){return""+x}function Ir(x){if(wn(x))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Bn(x)),Cn(x)}var Sn=h.ReactCurrentOwner,Sa={key:!0,ref:!0,__self:!0,__source:!0},rs,
|
|
21
|
+
`+Oe[ht].replace(" at new "," at ");return x.displayName&&dr.includes("<anonymous>")&&(dr=dr.replace("<anonymous>",x.displayName)),typeof x=="function"&&ce.set(x,dr),dr}while(ht>=1&&vt>=0);break}}}finally{Q=!1,j.current=Je,T(),Error.prepareStackTrace=We}var Pi=x?x.displayName||x.name:"",$a=Pi?H(Pi):"";return typeof x=="function"&&ce.set(x,$a),$a}function pt(x,X,ae){return ee(x,!1)}function te(x){var X=x.prototype;return!!(X&&X.isReactComponent)}function Ve(x,X,ae){if(x==null)return"";if(typeof x=="function")return ee(x,te(x));if(typeof x=="string")return H(x);switch(x){case c:return H("Suspense");case l:return H("SuspenseList")}if(typeof x=="object")switch(x.$$typeof){case u:return pt(x.render);case d:return Ve(x.type,X,ae);case f:{var ve=x,We=ve._payload,Je=ve._init;try{return Ve(Je(We),X,ae)}catch{}}}return""}var wt=Object.prototype.hasOwnProperty,Ut={},bn=h.ReactDebugCurrentFrame;function qr(x){if(x){var X=x._owner,ae=Ve(x.type,x._source,X?X.type:null);bn.setExtraStackFrame(ae)}else bn.setExtraStackFrame(null)}function tr(x,X,ae,ve,We){{var Je=Function.call.bind(wt);for(var De in x)if(Je(x,De)){var Oe=void 0;try{if(typeof x[De]!="function"){var jt=Error((ve||"React class")+": "+ae+" type `"+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[De]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw jt.name="Invariant Violation",jt}Oe=x[De](X,De,ve,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ht){Oe=ht}Oe&&!(Oe instanceof Error)&&(qr(We),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",ae,De,typeof Oe),qr(null)),Oe instanceof Error&&!(Oe.message in Ut)&&(Ut[Oe.message]=!0,qr(We),y("Failed %s type: %s",ae,Oe.message),qr(null))}}}var Kr=Array.isArray;function Qr(x){return Kr(x)}function Bn(x){{var X=typeof Symbol=="function"&&Symbol.toStringTag,ae=X&&x[Symbol.toStringTag]||x.constructor.name||"Object";return ae}}function wn(x){try{return Cn(x),!1}catch{return!0}}function Cn(x){return""+x}function Ir(x){if(wn(x))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Bn(x)),Cn(x)}var Sn=h.ReactCurrentOwner,Sa={key:!0,ref:!0,__self:!0,__source:!0},rs,Bc;function lie(x){if(wt.call(x,"ref")){var X=Object.getOwnPropertyDescriptor(x,"ref").get;if(X&&X.isReactWarning)return!1}return x.ref!==void 0}function die(x){if(wt.call(x,"key")){var X=Object.getOwnPropertyDescriptor(x,"key").get;if(X&&X.isReactWarning)return!1}return x.key!==void 0}function fie(x,X){typeof x.ref=="string"&&Sn.current}function pie(x,X){{var ae=function(){rs||(rs=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};ae.isReactWarning=!0,Object.defineProperty(x,"key",{get:ae,configurable:!0})}}function hie(x,X){{var ae=function(){Bc||(Bc=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};ae.isReactWarning=!0,Object.defineProperty(x,"ref",{get:ae,configurable:!0})}}var mie=function(x,X,ae,ve,We,Je,De){var Oe={$$typeof:t,type:x,key:X,ref:ae,props:De,_owner:Je};return Oe._store={},Object.defineProperty(Oe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Oe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Oe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:We}),Object.freeze&&(Object.freeze(Oe.props),Object.freeze(Oe)),Oe};function gie(x,X,ae,ve,We){{var Je,De={},Oe=null,jt=null;ae!==void 0&&(Ir(ae),Oe=""+ae),die(X)&&(Ir(X.key),Oe=""+X.key),lie(X)&&(jt=X.ref,fie(X,We));for(Je in X)wt.call(X,Je)&&!Sa.hasOwnProperty(Je)&&(De[Je]=X[Je]);if(x&&x.defaultProps){var ht=x.defaultProps;for(Je in ht)De[Je]===void 0&&(De[Je]=ht[Je])}if(Oe||jt){var vt=typeof x=="function"?x.displayName||x.name||"Unknown":x;Oe&&pie(De,vt),jt&&hie(De,vt)}return mie(x,Oe,jt,We,ve,Sn.current,De)}}var Ch=h.ReactCurrentOwner,p$=h.ReactDebugCurrentFrame;function Di(x){if(x){var X=x._owner,ae=Ve(x.type,x._source,X?X.type:null);p$.setExtraStackFrame(ae)}else p$.setExtraStackFrame(null)}var Sh;Sh=!1;function $h(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function h$(){{if(Ch.current){var x=B(Ch.current.type);if(x)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+x+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+x+"`."}return""}}function vie(x){return""}var m$={};function yie(x){{var X=h$();if(!X){var ae=typeof x=="string"?x:x.displayName||x.name;ae&&(X=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+ae+">.")}return X}}function
|
|
25
|
+
Check the top-level render call using <`+ae+">.")}return X}}function g$(x,X){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var ae=yie(X);if(m$[ae])return;m$[ae]=!0;var ve="";x&&x._owner&&x._owner!==Ch.current&&(ve=" It was passed a child from "+B(x._owner.type)+"."),Di(x),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,ve),Di(null)}}function v$(x,X){{if(typeof x!="object")return;if(Qr(x))for(var ae=0;ae<x.length;ae++){var ve=x[ae];$h(ve)&&g$(ve,X)}else if($h(x))x._store&&(x._store.validated=!0);else if(x){var We=g(x);if(typeof We=="function"&&We!==x.entries)for(var Je=We.call(x),De;!(De=Je.next()).done;)$h(De.value)&&g$(De.value,X)}}}function bie(x){{var X=x.type;if(X==null||typeof X=="string")return;var ae;if(typeof X=="function")ae=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===u||X.$$typeof===d))ae=X.propTypes;else return;if(ae){var ve=B(X);tr(ae,x.props,"prop",ve,x)}else if(X.PropTypes!==void 0&&!Sh){Sh=!0;var We=B(X);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",We||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wie(x){{for(var X=Object.keys(x.props),ae=0;ae<X.length;ae++){var ve=X[ae];if(ve!=="children"&&ve!=="key"){Di(x),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),Di(null);break}}x.ref!==null&&(Di(x),y("Invalid attribute `ref` supplied to `React.Fragment`."),Di(null))}}var y$={};function b$(x,X,ae,ve,We,Je){{var De=k(x);if(!De){var Oe="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(Oe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var jt=vie();jt?Oe+=jt:Oe+=h$();var ht;x===null?ht="null":Qr(x)?ht="array":x!==void 0&&x.$$typeof===t?(ht="<"+(B(x.type)||"Unknown")+" />",Oe=" Did you accidentally export a JSX literal instead of a component?"):ht=typeof x,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ht,Oe)}var vt=gie(x,X,ae,We,Je);if(vt==null)return vt;if(De){var dr=X.children;if(dr!==void 0)if(ve)if(Qr(dr)){for(var Pi=0;Pi<dr.length;Pi++)v$(dr[Pi],x);Object.freeze&&Object.freeze(dr)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v$(dr,x)}if(wt.call(X,"key")){var $a=B(x),Ht=Object.keys(X).filter(function(_ie){return _ie!=="key"}),Ih=Ht.length>0?"{key: someKey, "+Ht.join(": ..., ")+": ...}":"{key: someKey}";if(!y$[$a+Ih]){var Eie=Ht.length>0?"{"+Ht.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ih,$a,Iie,$a),v$[$a+Ih]=!0}}return x===a?bie(vt):yie(vt),vt}}function wie(x,X,ae){return y$(x,X,ae,!0)}function Cie(x,X,ae){return y$(x,X,ae,!1)}var Sie=Cie,$ie=wie;Ni.Fragment=a,Ni.jsx=Sie,Ni.jsxs=$ie}()),Ni}process.env.NODE_ENV==="production"?Bc.exports=C$():Bc.exports=S$();var $=Bc.exports;function Pe(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function xh(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Pe(e.additionalItems)}function Ln(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Gn="__additional_property",Lc="additionalProperties",Ia="allOf",fr="anyOf",tn="const",$$="default",as="dependencies",I$="enum",zt="__errors",rn="$id",E$="if",pr="items",_$="_$junk_option_schema_id$_",is="$name",Zt="oneOf",at="properties",A$="required",os="submitButtonOptions",ct="$ref",Gc="__rjsf_additionalProperties",Dh="__rjsf_rootSchema",O$="ui:field",Vc="ui:widget",ki="ui:options",T$="ui:globalOptions";function fe(e={},t={}){return Object.keys(e).filter(r=>r.indexOf("ui:")===0).reduce((r,a)=>{const n=e[a];return a===Vc&&Pe(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===ki&&Pe(n)?{...r,...n}:{...r,[a.substring(3)]:n}},{...t})}function Ph(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:a=!0}=fe(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Rh=typeof global=="object"&&global&&global.Object===Object&&global,x$=typeof self=="object"&&self&&self.Object===Object&&self,Er=Rh||x$||Function("return this")(),rr=Er.Symbol,Nh=Object.prototype,D$=Nh.hasOwnProperty,P$=Nh.toString,Mi=rr?rr.toStringTag:void 0;function R$(e){var t=D$.call(e,Mi),r=e[Mi];try{e[Mi]=void 0;var a=!0}catch{}var n=P$.call(e);return a&&(t?e[Mi]=r:delete e[Mi]),n}var N$=Object.prototype,k$=N$.toString;function M$(e){return k$.call(e)}var F$="[object Null]",j$="[object Undefined]",kh=rr?rr.toStringTag:void 0;function nn(e){return e==null?e===void 0?j$:F$:kh&&kh in Object(e)?R$(e):M$(e)}function Mh(e,t){return function(r){return e(t(r))}}var ss=Mh(Object.getPrototypeOf,Object);function nr(e){return e!=null&&typeof e=="object"}var B$="[object Object]",L$=Function.prototype,G$=Object.prototype,Fh=L$.toString,V$=G$.hasOwnProperty,W$=Fh.call(Object);function Vn(e){if(!nr(e)||nn(e)!=B$)return!1;var t=ss(e);if(t===null)return!0;var r=V$.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Fh.call(r)==W$}function us(e){const t={[zt]:[],addError(r){this[zt].push(r)}};if(Array.isArray(e))return e.reduce((r,a,n)=>({...r,[n]:us(a)}),t);if(Vn(e)){const r=e;return Object.keys(r).reduce((a,n)=>({...a,[n]:us(r[n])}),t)}return t}function Y$(){this.__data__=[],this.size=0}function Fi(e,t){return e===t||e!==e&&t!==t}function cs(e,t){for(var r=e.length;r--;)if(Fi(e[r][0],t))return r;return-1}var U$=Array.prototype,H$=U$.splice;function X$(e){var t=this.__data__,r=cs(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():H$.call(t,r,1),--this.size,!0}function z$(e){var t=this.__data__,r=cs(t,e);return r<0?void 0:t[r][1]}function Z$(e){return cs(this.__data__,e)>-1}function J$(e,t){var r=this.__data__,a=cs(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function an(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}an.prototype.clear=Y$,an.prototype.delete=X$,an.prototype.get=z$,an.prototype.has=Z$,an.prototype.set=J$;function q$(){this.__data__=new an,this.size=0}function K$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Q$(e){return this.__data__.get(e)}function eI(e){return this.__data__.has(e)}function qe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var tI="[object AsyncFunction]",rI="[object Function]",nI="[object GeneratorFunction]",aI="[object Proxy]";function ls(e){if(!qe(e))return!1;var t=nn(e);return t==rI||t==nI||t==tI||t==aI}var Wc=Er["__core-js_shared__"],jh=function(){var e=/[^.]+$/.exec(Wc&&Wc.keys&&Wc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function iI(e){return!!jh&&jh in e}var oI=Function.prototype,sI=oI.toString;function Wn(e){if(e!=null){try{return sI.call(e)}catch{}try{return e+""}catch{}}return""}var uI=/[\\^$.*+?()[\]{}|]/g,cI=/^\[object .+?Constructor\]$/,lI=Function.prototype,dI=Object.prototype,fI=lI.toString,pI=dI.hasOwnProperty,hI=RegExp("^"+fI.call(pI).replace(uI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mI(e){if(!qe(e)||iI(e))return!1;var t=ls(e)?hI:cI;return t.test(Wn(e))}function gI(e,t){return e==null?void 0:e[t]}function Yn(e,t){var r=gI(e,t);return mI(r)?r:void 0}var ji=Yn(Er,"Map"),Bi=Yn(Object,"create");function vI(){this.__data__=Bi?Bi(null):{},this.size=0}function yI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var bI="__lodash_hash_undefined__",wI=Object.prototype,CI=wI.hasOwnProperty;function SI(e){var t=this.__data__;if(Bi){var r=t[e];return r===bI?void 0:r}return CI.call(t,e)?t[e]:void 0}var $I=Object.prototype,II=$I.hasOwnProperty;function EI(e){var t=this.__data__;return Bi?t[e]!==void 0:II.call(t,e)}var _I="__lodash_hash_undefined__";function AI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bi&&t===void 0?_I:t,this}function Un(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Un.prototype.clear=vI,Un.prototype.delete=yI,Un.prototype.get=SI,Un.prototype.has=EI,Un.prototype.set=AI;function OI(){this.size=0,this.__data__={hash:new Un,map:new(ji||an),string:new Un}}function TI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ds(e,t){var r=e.__data__;return TI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xI(e){var t=ds(this,e).delete(e);return this.size-=t?1:0,t}function DI(e){return ds(this,e).get(e)}function PI(e){return ds(this,e).has(e)}function RI(e,t){var r=ds(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function on(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}on.prototype.clear=OI,on.prototype.delete=xI,on.prototype.get=DI,on.prototype.has=PI,on.prototype.set=RI;var NI=200;function kI(e,t){var r=this.__data__;if(r instanceof an){var a=r.__data__;if(!ji||a.length<NI-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new on(a)}return r.set(e,t),this.size=r.size,this}function hr(e){var t=this.__data__=new an(e);this.size=t.size}hr.prototype.clear=q$,hr.prototype.delete=K$,hr.prototype.get=Q$,hr.prototype.has=eI,hr.prototype.set=kI;var MI="__lodash_hash_undefined__";function FI(e){return this.__data__.set(e,MI),this}function jI(e){return this.__data__.has(e)}function Ea(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new on;++t<r;)this.add(e[t])}Ea.prototype.add=Ea.prototype.push=FI,Ea.prototype.has=jI;function BI(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function Yc(e,t){return e.has(t)}var LI=1,GI=2;function Bh(e,t,r,a,n,i){var o=r&LI,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=r&GI?new Ea:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],v=t[d];if(a)var g=o?a(v,m,d,t,e,i):a(m,v,d,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!BI(t,function(h,y){if(!Yc(p,y)&&(m===h||n(m,h,r,a,i)))return p.push(y)})){f=!1;break}}else if(!(m===v||n(m,v,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var fs=Er.Uint8Array;function VI(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function Uc(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var WI=1,YI=2,UI="[object Boolean]",HI="[object Date]",XI="[object Error]",zI="[object Map]",ZI="[object Number]",JI="[object RegExp]",qI="[object Set]",KI="[object String]",QI="[object Symbol]",eE="[object ArrayBuffer]",tE="[object DataView]",Lh=rr?rr.prototype:void 0,Hc=Lh?Lh.valueOf:void 0;function rE(e,t,r,a,n,i,o){switch(r){case tE:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case eE:return!(e.byteLength!=t.byteLength||!i(new fs(e),new fs(t)));case UI:case HI:case ZI:return Fi(+e,+t);case XI:return e.name==t.name&&e.message==t.message;case JI:case KI:return e==t+"";case zI:var s=VI;case qI:var u=a&WI;if(s||(s=Uc),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;a|=YI,o.set(e,t);var l=Bh(s(e),s(t),a,n,i,o);return o.delete(e),l;case QI:if(Hc)return Hc.call(e)==Hc.call(t)}return!1}function Xc(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var yt=Array.isArray;function Gh(e,t,r){var a=t(e);return yt(e)?a:Xc(a,r(e))}function nE(e,t){for(var r=-1,a=e==null?0:e.length,n=0,i=[];++r<a;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}function Vh(){return[]}var aE=Object.prototype,iE=aE.propertyIsEnumerable,Wh=Object.getOwnPropertySymbols,zc=Wh?function(e){return e==null?[]:(e=Object(e),nE(Wh(e),function(t){return iE.call(e,t)}))}:Vh;function Yh(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var oE="[object Arguments]";function Uh(e){return nr(e)&&nn(e)==oE}var Hh=Object.prototype,sE=Hh.hasOwnProperty,uE=Hh.propertyIsEnumerable,_a=Uh(function(){return arguments}())?Uh:function(e){return nr(e)&&sE.call(e,"callee")&&!uE.call(e,"callee")};function cE(){return!1}var Xh=typeof Re=="object"&&Re&&!Re.nodeType&&Re,zh=Xh&&typeof module=="object"&&module&&!module.nodeType&&module,lE=zh&&zh.exports===Xh,Zh=lE?Er.Buffer:void 0,dE=Zh?Zh.isBuffer:void 0,Hn=dE||cE,fE=9007199254740991,pE=/^(?:0|[1-9]\d*)$/;function ps(e,t){var r=typeof e;return t=t??fE,!!t&&(r=="number"||r!="symbol"&&pE.test(e))&&e>-1&&e%1==0&&e<t}var hE=9007199254740991;function Zc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hE}var mE="[object Arguments]",gE="[object Array]",vE="[object Boolean]",yE="[object Date]",bE="[object Error]",wE="[object Function]",CE="[object Map]",SE="[object Number]",$E="[object Object]",IE="[object RegExp]",EE="[object Set]",_E="[object String]",AE="[object WeakMap]",OE="[object ArrayBuffer]",TE="[object DataView]",xE="[object Float32Array]",DE="[object Float64Array]",PE="[object Int8Array]",RE="[object Int16Array]",NE="[object Int32Array]",kE="[object Uint8Array]",ME="[object Uint8ClampedArray]",FE="[object Uint16Array]",jE="[object Uint32Array]",tt={};tt[xE]=tt[DE]=tt[PE]=tt[RE]=tt[NE]=tt[kE]=tt[ME]=tt[FE]=tt[jE]=!0,tt[mE]=tt[gE]=tt[OE]=tt[vE]=tt[TE]=tt[yE]=tt[bE]=tt[wE]=tt[CE]=tt[SE]=tt[$E]=tt[IE]=tt[EE]=tt[_E]=tt[AE]=!1;function BE(e){return nr(e)&&Zc(e.length)&&!!tt[nn(e)]}function Jc(e){return function(t){return e(t)}}var Jh=typeof Re=="object"&&Re&&!Re.nodeType&&Re,Li=Jh&&typeof module=="object"&&module&&!module.nodeType&&module,LE=Li&&Li.exports===Jh,qc=LE&&Rh.process,Aa=function(){try{var e=Li&&Li.require&&Li.require("util").types;return e||qc&&qc.binding&&qc.binding("util")}catch{}}(),qh=Aa&&Aa.isTypedArray,Gi=qh?Jc(qh):BE,GE=Object.prototype,VE=GE.hasOwnProperty;function Kh(e,t){var r=yt(e),a=!r&&_a(e),n=!r&&!a&&Hn(e),i=!r&&!a&&!n&&Gi(e),o=r||a||n||i,s=o?Yh(e.length,String):[],u=s.length;for(var c in e)(t||VE.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ps(c,u)))&&s.push(c);return s}var WE=Object.prototype;function hs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||WE;return e===r}var YE=Mh(Object.keys,Object),UE=Object.prototype,HE=UE.hasOwnProperty;function Qh(e){if(!hs(e))return YE(e);var t=[];for(var r in Object(e))HE.call(e,r)&&r!="constructor"&&t.push(r);return t}function Oa(e){return e!=null&&Zc(e.length)&&!ls(e)}function _r(e){return Oa(e)?Kh(e):Qh(e)}function Kc(e){return Gh(e,_r,zc)}var XE=1,zE=Object.prototype,ZE=zE.hasOwnProperty;function JE(e,t,r,a,n,i){var o=r&XE,s=Kc(e),u=s.length,c=Kc(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:ZE.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++d<u;){f=s[d];var h=e[f],y=t[f];if(a)var b=o?a(y,h,f,t,e,i):a(h,y,f,e,t,i);if(!(b===void 0?h===y||n(h,y,r,a,i):b)){v=!1;break}g||(g=f=="constructor")}if(v&&!g){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(e),i.delete(t),v}var Qc=Yn(Er,"DataView"),el=Yn(Er,"Promise"),Ta=Yn(Er,"Set"),tl=Yn(Er,"WeakMap"),em="[object Map]",qE="[object Object]",tm="[object Promise]",rm="[object Set]",nm="[object WeakMap]",am="[object DataView]",KE=Wn(Qc),QE=Wn(ji),e_=Wn(el),t_=Wn(Ta),r_=Wn(tl),ar=nn;(Qc&&ar(new Qc(new ArrayBuffer(1)))!=am||ji&&ar(new ji)!=em||el&&ar(el.resolve())!=tm||Ta&&ar(new Ta)!=rm||tl&&ar(new tl)!=nm)&&(ar=function(e){var t=nn(e),r=t==qE?e.constructor:void 0,a=r?Wn(r):"";if(a)switch(a){case KE:return am;case QE:return em;case e_:return tm;case t_:return rm;case r_:return nm}return t});var n_=1,im="[object Arguments]",om="[object Array]",ms="[object Object]",a_=Object.prototype,sm=a_.hasOwnProperty;function i_(e,t,r,a,n,i){var o=yt(e),s=yt(t),u=o?om:ar(e),c=s?om:ar(t);u=u==im?ms:u,c=c==im?ms:c;var l=u==ms,d=c==ms,f=u==c;if(f&&Hn(e)){if(!Hn(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new hr),o||Gi(e)?Bh(e,t,r,a,n,i):rE(e,t,u,r,a,n,i);if(!(r&n_)){var p=l&&sm.call(e,"__wrapped__"),m=d&&sm.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,g=m?t.value():t;return i||(i=new hr),n(v,g,r,a,i)}}return f?(i||(i=new hr),JE(e,t,r,a,n,i)):!1}function gs(e,t,r,a,n){return e===t?!0:e==null||t==null||!nr(e)&&!nr(t)?e!==e&&t!==t:i_(e,t,r,a,gs,n)}function o_(e,t,r){r=typeof r=="function"?r:void 0;var a=r?r(e,t):void 0;return a===void 0?gs(e,t,void 0,r):!!a}function Ue(e,t){return o_(e,t,(r,a)=>{if(typeof r=="function"&&typeof a=="function")return!0})}var s_="[object Symbol]";function Vi(e){return typeof e=="symbol"||nr(e)&&nn(e)==s_}var u_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c_=/^\w*$/;function rl(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Vi(e)?!0:c_.test(e)||!u_.test(e)||t!=null&&e in Object(t)}var l_="Expected a function";function nl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(l_);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=e.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(nl.Cache||on),r}nl.Cache=on;var d_=500;function f_(e){var t=nl(e,function(a){return r.size===d_&&r.clear(),a}),r=t.cache;return t}var p_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h_=/\\(\\)?/g,um=f_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(p_,function(r,a,n,i){t.push(n?i.replace(h_,"$1"):a||r)}),t});function vs(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var cm=rr?rr.prototype:void 0,lm=cm?cm.toString:void 0;function dm(e){if(typeof e=="string")return e;if(yt(e))return vs(e,dm)+"";if(Vi(e))return lm?lm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function al(e){return e==null?"":dm(e)}function xa(e,t){return yt(e)?e:rl(e,t)?[e]:um(al(e))}function Xn(e){if(typeof e=="string"||Vi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ys(e,t){t=xa(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Xn(t[r++])];return r&&r==a?e:void 0}function ue(e,t,r){var a=e==null?void 0:ys(e,t);return a===void 0?r:a}var m_="[object Map]",g_="[object Set]",v_=Object.prototype,y_=v_.hasOwnProperty;function Da(e){if(e==null)return!0;if(Oa(e)&&(yt(e)||typeof e=="string"||typeof e.splice=="function"||Hn(e)||Gi(e)||_a(e)))return!e.length;var t=ar(e);if(t==m_||t==g_)return!e.size;if(hs(e))return!Qh(e).length;for(var r in e)if(y_.call(e,r))return!1;return!0}var bs={},b_=/~/,w_=/~[01]/g;function C_(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function fm(e){return b_.test(e)?e.replace(w_,C_):e}function S_(e,t,r){for(var a,n,i=1,o=t.length;i<o;){if(t[i]==="constructor"||t[i]==="prototype"||t[i]==="__proto__")return e;if(a=fm(t[i++]),n=o>i,typeof e[a]>"u"&&(Array.isArray(e)&&a==="-"&&(a=e.length),n&&(t[i]!==""&&t[i]<1/0||t[i]==="-"?e[a]=[]:e[a]={})),!n)break;e=e[a]}var s=e[a];return r===void 0?delete e[a]:e[a]=r,s}function il(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function pm(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=il(t);var r=t.length;if(r===1)return e;for(var a=1;a<r;){if(e=e[fm(t[a++])],r===a)return e;if(typeof e!="object"||e===null)return}}function hm(e,t,r){if(typeof e!="object")throw new Error("Invalid input object.");if(t=il(t),t.length===0)throw new Error("Invalid JSON pointer for set.");return S_(e,t,r)}function $_(e){var t=il(e);return{get:function(r){return pm(r,t)},set:function(r,a){return hm(r,t,a)}}}bs.get=pm,bs.set=hm,bs.compile=$_;function ol(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var ws=function(){try{var e=Yn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function sl(e,t,r){t=="__proto__"&&ws?ws(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var I_=Object.prototype,E_=I_.hasOwnProperty;function ul(e,t,r){var a=e[t];(!(E_.call(e,t)&&Fi(a,r))||r===void 0&&!(t in e))&&sl(e,t,r)}function Pa(e,t,r,a){var n=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=void 0;u===void 0&&(u=e[s]),n?sl(r,s,u):ul(r,s,u)}return r}function __(e,t){return e&&Pa(t,_r(t),e)}function A_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O_=Object.prototype,T_=O_.hasOwnProperty;function x_(e){if(!qe(e))return A_(e);var t=hs(e),r=[];for(var a in e)a=="constructor"&&(t||!T_.call(e,a))||r.push(a);return r}function Wi(e){return Oa(e)?Kh(e,!0):x_(e)}function D_(e,t){return e&&Pa(t,Wi(t),e)}var mm=typeof Re=="object"&&Re&&!Re.nodeType&&Re,gm=mm&&typeof module=="object"&&module&&!module.nodeType&&module,P_=gm&&gm.exports===mm,vm=P_?Er.Buffer:void 0,ym=vm?vm.allocUnsafe:void 0;function bm(e,t){if(t)return e.slice();var r=e.length,a=ym?ym(r):new e.constructor(r);return e.copy(a),a}function cl(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function R_(e,t){return Pa(e,zc(e),t)}var N_=Object.getOwnPropertySymbols,wm=N_?function(e){for(var t=[];e;)Xc(t,zc(e)),e=ss(e);return t}:Vh;function k_(e,t){return Pa(e,wm(e),t)}function ll(e){return Gh(e,Wi,wm)}var M_=Object.prototype,F_=M_.hasOwnProperty;function j_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&F_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function dl(e){var t=new e.constructor(e.byteLength);return new fs(t).set(new fs(e)),t}function B_(e,t){var r=t?dl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var L_=/\w*$/;function G_(e){var t=new e.constructor(e.source,L_.exec(e));return t.lastIndex=e.lastIndex,t}var Cm=rr?rr.prototype:void 0,Sm=Cm?Cm.valueOf:void 0;function V_(e){return Sm?Object(Sm.call(e)):{}}function $m(e,t){var r=t?dl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var W_="[object Boolean]",Y_="[object Date]",U_="[object Map]",H_="[object Number]",X_="[object RegExp]",z_="[object Set]",Z_="[object String]",J_="[object Symbol]",q_="[object ArrayBuffer]",K_="[object DataView]",Q_="[object Float32Array]",eA="[object Float64Array]",tA="[object Int8Array]",rA="[object Int16Array]",nA="[object Int32Array]",aA="[object Uint8Array]",iA="[object Uint8ClampedArray]",oA="[object Uint16Array]",sA="[object Uint32Array]";function uA(e,t,r){var a=e.constructor;switch(t){case q_:return dl(e);case W_:case Y_:return new a(+e);case K_:return B_(e,r);case Q_:case eA:case tA:case rA:case nA:case aA:case iA:case oA:case sA:return $m(e,r);case U_:return new a;case H_:case Z_:return new a(e);case X_:return G_(e);case z_:return new a;case J_:return V_(e)}}var Im=Object.create,Em=function(){function e(){}return function(t){if(!qe(t))return{};if(Im)return Im(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function _m(e){return typeof e.constructor=="function"&&!hs(e)?Em(ss(e)):{}}var cA="[object Map]";function lA(e){return nr(e)&&ar(e)==cA}var Am=Aa&&Aa.isMap,dA=Am?Jc(Am):lA,fA="[object Set]";function pA(e){return nr(e)&&ar(e)==fA}var Om=Aa&&Aa.isSet,hA=Om?Jc(Om):pA,mA=1,gA=2,vA=4,Tm="[object Arguments]",yA="[object Array]",bA="[object Boolean]",wA="[object Date]",CA="[object Error]",xm="[object Function]",SA="[object GeneratorFunction]",$A="[object Map]",IA="[object Number]",Dm="[object Object]",EA="[object RegExp]",_A="[object Set]",AA="[object String]",OA="[object Symbol]",TA="[object WeakMap]",xA="[object ArrayBuffer]",DA="[object DataView]",PA="[object Float32Array]",RA="[object Float64Array]",NA="[object Int8Array]",kA="[object Int16Array]",MA="[object Int32Array]",FA="[object Uint8Array]",jA="[object Uint8ClampedArray]",BA="[object Uint16Array]",LA="[object Uint32Array]",Ke={};Ke[Tm]=Ke[yA]=Ke[xA]=Ke[DA]=Ke[bA]=Ke[wA]=Ke[PA]=Ke[RA]=Ke[NA]=Ke[kA]=Ke[MA]=Ke[$A]=Ke[IA]=Ke[Dm]=Ke[EA]=Ke[_A]=Ke[AA]=Ke[OA]=Ke[FA]=Ke[jA]=Ke[BA]=Ke[LA]=!0,Ke[CA]=Ke[xm]=Ke[TA]=!1;function Yi(e,t,r,a,n,i){var o,s=t&mA,u=t&gA,c=t&vA;if(r&&(o=n?r(e,a,n,i):r(e)),o!==void 0)return o;if(!qe(e))return e;var l=yt(e);if(l){if(o=j_(e),!s)return cl(e,o)}else{var d=ar(e),f=d==xm||d==SA;if(Hn(e))return bm(e,s);if(d==Dm||d==Tm||f&&!n){if(o=u||f?{}:_m(e),!s)return u?k_(e,D_(o,e)):R_(e,__(o,e))}else{if(!Ke[d])return n?e:{};o=uA(e,d,s)}}i||(i=new hr);var p=i.get(e);if(p)return p;i.set(e,o),hA(e)?e.forEach(function(g){o.add(Yi(g,t,r,g,e,i))}):dA(e)&&e.forEach(function(g,h){o.set(h,Yi(g,t,r,h,e,i))});var m=c?u?ll:Kc:u?Wi:_r,v=l?void 0:m(e);return ol(v||e,function(g,h){v&&(h=g,g=e[h]),ul(o,h,Yi(g,t,r,h,e,i))}),o}function GA(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function VA(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++a<n;)i[a]=e[a+t];return i}function WA(e,t){return t.length<2?e:ys(e,VA(t,0,-1))}function Pm(e,t){return t=xa(t,e),e=WA(e,t),e==null||delete e[Xn(GA(t))]}function YA(e){return Vn(e)?void 0:e}var Rm=rr?rr.isConcatSpreadable:void 0;function UA(e){return yt(e)||_a(e)||!!(Rm&&e&&e[Rm])}function Ui(e,t,r,a,n){var i=-1,o=e.length;for(r||(r=UA),n||(n=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?Ui(s,t-1,r,a,n):Xc(n,s):a||(n[n.length]=s)}return n}function HA(e){var t=e==null?0:e.length;return t?Ui(e,1):[]}function XA(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)}var Nm=Math.max;function km(e,t,r){return t=Nm(t===void 0?e.length-1:t,0),function(){for(var a=arguments,n=-1,i=Nm(a.length-t,0),o=Array(i);++n<i;)o[n]=a[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=a[n];return s[t]=r(o),XA(e,this,s)}}function zA(e){return function(){return e}}function Cs(e){return e}var ZA=ws?function(e,t){return ws(e,"toString",{configurable:!0,enumerable:!1,value:zA(t),writable:!0})}:Cs,JA=800,qA=16,KA=Date.now;function QA(e){var t=0,r=0;return function(){var a=KA(),n=qA-(a-r);if(r=a,n>0){if(++t>=JA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Mm=QA(ZA);function Fm(e){return Mm(km(e,void 0,HA),e+"")}var eO=1,tO=2,rO=4,Ss=Fm(function(e,t){var r={};if(e==null)return r;var a=!1;t=vs(t,function(i){return i=xa(i,e),a||(a=i.length>1),i}),Pa(e,ll(e),r),a&&(r=Yi(r,eO|tO|rO,YA));for(var n=t.length;n--;)Pm(r,t[n]);return r});function fl(e,t){const r=t[e];return[Ss(t,[e]),r]}function jm(e,t={},r=[]){const a=e||"";let n;if(a.startsWith("#"))n=decodeURIComponent(a.substring(1));else throw new Error(`Could not find a definition for ${e}.`);const i=bs.get(t,n);if(i===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=i[ct];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[l,...d]=r,f=[...d,a,l].join(" -> ");throw new Error(`Definition for ${l} contains a circular reference through ${f}`)}const[s,u]=fl(ct,i),c=jm(u,t,[...r,a]);return Object.keys(s).length>0?{...s,...c}:c}return i}function Bm(e,t={}){return jm(e,t,[])}var nO=Object.prototype,aO=nO.hasOwnProperty;function iO(e,t){return e!=null&&aO.call(e,t)}function Lm(e,t,r){t=xa(t,e);for(var a=-1,n=t.length,i=!1;++a<n;){var o=Xn(t[a]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++a!=n?i:(n=e==null?0:e.length,!!n&&Zc(n)&&ps(o,n)&&(yt(e)||_a(e)))}function Nt(e,t){return e!=null&&Lm(e,t,iO)}var oO="[object Number]";function Gm(e){return typeof e=="number"||nr(e)&&nn(e)==oO}var sO="[object String]";function $s(e){return typeof e=="string"||!yt(e)&&nr(e)&&nn(e)==sO}function uO(e,t,r,a){var n=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r}function cO(e){return function(t,r,a){for(var n=-1,i=Object(t),o=a(t),s=o.length;s--;){var u=o[++n];if(r(i[u],u,i)===!1)break}return t}}var Vm=cO();function Wm(e,t){return e&&Vm(e,t,_r)}function lO(e,t){return function(r,a){if(r==null)return r;if(!Oa(r))return e(r,a);for(var n=r.length,i=-1,o=Object(r);++i<n&&a(o[i],i,o)!==!1;);return r}}var Ym=lO(Wm),dO=1,fO=2;function pO(e,t,r,a){var n=r.length,i=n;if(e==null)return!i;for(e=Object(e);n--;){var o=r[n];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++n<i;){o=r[n];var s=o[0],u=e[s],c=o[1];if(o[2]){if(u===void 0&&!(s in e))return!1}else{var l=new hr,d;if(!(d===void 0?gs(c,u,dO|fO,a,l):d))return!1}}return!0}function Um(e){return e===e&&!qe(e)}function hO(e){for(var t=_r(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,Um(n)]}return t}function Hm(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function mO(e){var t=hO(e);return t.length==1&&t[0][2]?Hm(t[0][0],t[0][1]):function(r){return r===e||pO(r,e,t)}}function gO(e,t){return e!=null&&t in Object(e)}function Xm(e,t){return e!=null&&Lm(e,t,gO)}var vO=1,yO=2;function bO(e,t){return rl(e)&&Um(t)?Hm(Xn(e),t):function(r){var a=ue(r,e);return a===void 0&&a===t?Xm(r,e):gs(t,a,vO|yO)}}function wO(e){return function(t){return t==null?void 0:t[e]}}function CO(e){return function(t){return ys(t,e)}}function SO(e){return rl(e)?wO(Xn(e)):CO(e)}function pl(e){return typeof e=="function"?e:e==null?Cs:typeof e=="object"?yt(e)?bO(e[0],e[1]):mO(e):SO(e)}function $O(e,t,r,a,n){return n(e,function(i,o,s){r=a?(a=!1,i):t(r,i,o,s)}),r}function IO(e,t,r){var a=yt(e)?uO:$O,n=arguments.length<3;return a(e,pl(t),r,n,Ym)}function zm(e){return typeof e=="function"?e:Cs}var EO=/\s/;function _O(e){for(var t=e.length;t--&&EO.test(e.charAt(t)););return t}var AO=/^\s+/;function OO(e){return e&&e.slice(0,_O(e)+1).replace(AO,"")}var Zm=NaN,TO=/^[-+]0x[0-9a-f]+$/i,xO=/^0b[01]+$/i,DO=/^0o[0-7]+$/i,PO=parseInt;function RO(e){if(typeof e=="number")return e;if(Vi(e))return Zm;if(qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=OO(e);var r=xO.test(e);return r||DO.test(e)?PO(e.slice(2),r?2:8):TO.test(e)?Zm:+e}var Jm=1/0,NO=17976931348623157e292;function kO(e){if(!e)return e===0?e:0;if(e=RO(e),e===Jm||e===-Jm){var t=e<0?-1:1;return t*NO}return e===e?e:0}function MO(e){var t=kO(e),r=t%1;return t===t?r?t-r:t:0}var FO=9007199254740991,hl=4294967295,jO=Math.min;function qm(e,t){if(e=MO(e),e<1||e>FO)return[];var r=hl,a=jO(e,hl);t=zm(t),e-=hl;for(var n=Yh(a,t);++r<e;)t(r);return n}function Km(e,t,r){var a;if(e&&r){const n=ue(e,r);if(n===void 0)return;for(let i=0;i<t.length;i++){const o=t[i],s=ue(o,[at,r],{});if(!(s.type==="object"||s.type==="array")&&(s.const===n||!((a=s.enum)===null||a===void 0)&&a.includes(n)))return i}}}function Qm(e,t,r,a,n){if(t===void 0)return 0;const i=Km(t,r,n);if(Gm(i))return i;for(let o=0;o<r.length;o++){const s=r[o];if(n&&Nt(s,[at,n])){const u=ue(t,n),c=ue(s,[at,n],{});if(e.isValid(c,u,a))return o}else if(s[at]){const u={anyOf:Object.keys(s[at]).map(l=>({required:[l]}))};let c;if(s.anyOf){const{...l}=s;l.allOf?l.allOf=l.allOf.slice():l.allOf=[],l.allOf.push(u),c=l}else c=Object.assign({},s,u);if(delete c.required,e.isValid(c,t,a))return o}else if(e.isValid(s,t,a))return o}return 0}function ml(e,t,r,a,n){return Qm(e,t,r,a,n)}function gl(e,t,r,a){if(!qe(e))return e;t=xa(t,e);for(var n=-1,i=t.length,o=i-1,s=e;s!=null&&++n<i;){var u=Xn(t[n]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(n!=o){var l=s[u];c=a?a(l,u,s):void 0,c===void 0&&(c=qe(l)?l:ps(t[n+1])?[]:{})}ul(s,u,c),s=s[u]}return e}function Et(e,t,r){return e==null?e:gl(e,t,r)}function BO(e,t,r){var a=yt(e),n=a||Hn(e)||Gi(e);if(t=pl(t),r==null){var i=e&&e.constructor;n?r=a?new i:[]:qe(e)?r=ls(i)?Em(ss(e)):{}:r={}}return(n?ol:Wm)(e,function(o,s,u){return t(r,o,s,u)}),r}function vl(e,t,r){(r!==void 0&&!Fi(e[t],r)||r===void 0&&!(t in e))&&sl(e,t,r)}function Is(e){return nr(e)&&Oa(e)}function yl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function LO(e){return Pa(e,Wi(e))}function GO(e,t,r,a,n,i,o){var s=yl(e,r),u=yl(t,r),c=o.get(u);if(c){vl(e,r,c);return}var l=i?i(s,u,r+"",e,t,o):void 0,d=l===void 0;if(d){var f=yt(u),p=!f&&Hn(u),m=!f&&!p&&Gi(u);l=u,f||p||m?yt(s)?l=s:Is(s)?l=cl(s):p?(d=!1,l=bm(u,!0)):m?(d=!1,l=$m(u,!0)):l=[]:Vn(u)||_a(u)?(l=s,_a(s)?l=LO(s):(!qe(s)||ls(s))&&(l=_m(u))):d=!1}d&&(o.set(u,l),n(l,u,a,i,o),o.delete(u)),vl(e,r,l)}function eg(e,t,r,a,n){e!==t&&Vm(t,function(i,o){if(n||(n=new hr),qe(i))GO(e,t,o,r,eg,a,n);else{var s=a?a(yl(e,o),i,o+"",e,t,n):void 0;s===void 0&&(s=i),vl(e,o,s)}},Wi)}function bl(e,t){return Mm(km(e,t,Cs),e+"")}function VO(e,t,r){if(!qe(r))return!1;var a=typeof t;return(a=="number"?Oa(r)&&ps(t,r.length):a=="string"&&t in r)?Fi(r[t],e):!1}function WO(e){return bl(function(t,r){var a=-1,n=r.length,i=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,o&&VO(r[0],r[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++a<n;){var s=r[a];s&&e(t,s,a,i)}return t})}var YO=WO(function(e,t,r){eg(e,t,r)}),UO=1/0;function HO(e){var t=e==null?0:e.length;return t?Ui(e,UO):[]}function XO(e,t,r,a){for(var n=e.length,i=r+-1;++i<n;)if(t(e[i],i,e))return i;return-1}function zO(e){return e!==e}function ZO(e,t,r){for(var a=r-1,n=e.length;++a<n;)if(e[a]===t)return a;return-1}function JO(e,t,r){return t===t?ZO(e,t,r):XO(e,zO,r)}function tg(e,t){var r=e==null?0:e.length;return!!r&&JO(e,t,0)>-1}function qO(){}var KO=1/0,QO=Ta&&1/Uc(new Ta([,-0]))[1]==KO?function(e){return new Ta(e)}:qO,eT=200;function rg(e,t,r){var a=-1,n=tg,i=e.length,o=!0,s=[],u=s;if(i>=eT){var c=QO(e);if(c)return Uc(c);o=!1,n=Yc,u=new Ea}else u=s;e:for(;++a<i;){var l=e[a],d=l;if(l=l!==0?l:0,o&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;s.push(l)}else n(u,d,r)||(u!==s&&u.push(d),s.push(l))}return s}function tT(e){return e&&e.length?rg(e):[]}function rT(){this.__data__=[],this.size=0}var nT=rT;function aT(e,t){return e===t||e!==e&&t!==t}var Ra=aT,iT=Ra;function oT(e,t){for(var r=e.length;r--;)if(iT(e[r][0],t))return r;return-1}var Es=oT,sT=Es,uT=Array.prototype,cT=uT.splice;function lT(e){var t=this.__data__,r=sT(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():cT.call(t,r,1),--this.size,!0}var dT=lT,fT=Es;function pT(e){var t=this.__data__,r=fT(t,e);return r<0?void 0:t[r][1]}var hT=pT,mT=Es;function gT(e){return mT(this.__data__,e)>-1}var vT=gT,yT=Es;function bT(e,t){var r=this.__data__,a=yT(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var wT=bT,CT=nT,ST=dT,$T=hT,IT=vT,ET=wT;function Na(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Na.prototype.clear=CT,Na.prototype.delete=ST,Na.prototype.get=$T,Na.prototype.has=IT,Na.prototype.set=ET;var _s=Na,_T=_s;function AT(){this.__data__=new _T,this.size=0}var OT=AT;function TT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var xT=TT;function DT(e){return this.__data__.get(e)}var PT=DT;function RT(e){return this.__data__.has(e)}var NT=RT,kT=typeof ns=="object"&&ns&&ns.Object===Object&&ns,ng=kT,MT=ng,FT=typeof self=="object"&&self&&self.Object===Object&&self,jT=MT||FT||Function("return this")(),Ar=jT,BT=Ar,LT=BT.Symbol,ka=LT,ag=ka,ig=Object.prototype,GT=ig.hasOwnProperty,VT=ig.toString,Hi=ag?ag.toStringTag:void 0;function WT(e){var t=GT.call(e,Hi),r=e[Hi];try{e[Hi]=void 0;var a=!0}catch{}var n=VT.call(e);return a&&(t?e[Hi]=r:delete e[Hi]),n}var YT=WT,UT=Object.prototype,HT=UT.toString;function XT(e){return HT.call(e)}var zT=XT,og=ka,ZT=YT,JT=zT,qT="[object Null]",KT="[object Undefined]",sg=og?og.toStringTag:void 0;function QT(e){return e==null?e===void 0?KT:qT:sg&&sg in Object(e)?ZT(e):JT(e)}var zn=QT;function ex(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ir=ex;const $n=Xt(ir);var tx=zn,rx=ir,nx="[object AsyncFunction]",ax="[object Function]",ix="[object GeneratorFunction]",ox="[object Proxy]";function sx(e){if(!rx(e))return!1;var t=tx(e);return t==ax||t==ix||t==nx||t==ox}var wl=sx,ux=Ar,cx=ux["__core-js_shared__"],lx=cx,Cl=lx,ug=function(){var e=/[^.]+$/.exec(Cl&&Cl.keys&&Cl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dx(e){return!!ug&&ug in e}var fx=dx,px=Function.prototype,hx=px.toString;function mx(e){if(e!=null){try{return hx.call(e)}catch{}try{return e+""}catch{}}return""}var cg=mx,gx=wl,vx=fx,yx=ir,bx=cg,wx=/[\\^$.*+?()[\]{}|]/g,Cx=/^\[object .+?Constructor\]$/,Sx=Function.prototype,$x=Object.prototype,Ix=Sx.toString,Ex=$x.hasOwnProperty,_x=RegExp("^"+Ix.call(Ex).replace(wx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ax(e){if(!yx(e)||vx(e))return!1;var t=gx(e)?_x:Cx;return t.test(bx(e))}var Ox=Ax;function Tx(e,t){return e==null?void 0:e[t]}var xx=Tx,Dx=Ox,Px=xx;function Rx(e,t){var r=Px(e,t);return Dx(r)?r:void 0}var Zn=Rx,Nx=Zn,kx=Ar,Mx=Nx(kx,"Map"),Sl=Mx,Fx=Zn,jx=Fx(Object,"create"),As=jx,lg=As;function Bx(){this.__data__=lg?lg(null):{},this.size=0}var Lx=Bx;function Gx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vx=Gx,Wx=As,Yx="__lodash_hash_undefined__",Ux=Object.prototype,Hx=Ux.hasOwnProperty;function Xx(e){var t=this.__data__;if(Wx){var r=t[e];return r===Yx?void 0:r}return Hx.call(t,e)?t[e]:void 0}var zx=Xx,Zx=As,Jx=Object.prototype,qx=Jx.hasOwnProperty;function Kx(e){var t=this.__data__;return Zx?t[e]!==void 0:qx.call(t,e)}var Qx=Kx,eD=As,tD="__lodash_hash_undefined__";function rD(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eD&&t===void 0?tD:t,this}var nD=rD,aD=Lx,iD=Vx,oD=zx,sD=Qx,uD=nD;function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ma.prototype.clear=aD,Ma.prototype.delete=iD,Ma.prototype.get=oD,Ma.prototype.has=sD,Ma.prototype.set=uD;var cD=Ma,dg=cD,lD=_s,dD=Sl;function fD(){this.size=0,this.__data__={hash:new dg,map:new(dD||lD),string:new dg}}var pD=fD;function hD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var mD=hD,gD=mD;function vD(e,t){var r=e.__data__;return gD(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Os=vD,yD=Os;function bD(e){var t=yD(this,e).delete(e);return this.size-=t?1:0,t}var wD=bD,CD=Os;function SD(e){return CD(this,e).get(e)}var $D=SD,ID=Os;function ED(e){return ID(this,e).has(e)}var _D=ED,AD=Os;function OD(e,t){var r=AD(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var TD=OD,xD=pD,DD=wD,PD=$D,RD=_D,ND=TD;function Fa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Fa.prototype.clear=xD,Fa.prototype.delete=DD,Fa.prototype.get=PD,Fa.prototype.has=RD,Fa.prototype.set=ND;var $l=Fa,kD=_s,MD=Sl,FD=$l,jD=200;function BD(e,t){var r=this.__data__;if(r instanceof kD){var a=r.__data__;if(!MD||a.length<jD-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new FD(a)}return r.set(e,t),this.size=r.size,this}var LD=BD,GD=_s,VD=OT,WD=xT,YD=PT,UD=NT,HD=LD;function ja(e){var t=this.__data__=new GD(e);this.size=t.size}ja.prototype.clear=VD,ja.prototype.delete=WD,ja.prototype.get=YD,ja.prototype.has=UD,ja.prototype.set=HD;var Ts=ja;function XD(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var fg=XD,zD=Zn,ZD=function(){try{var e=zD(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pg=ZD,hg=pg;function JD(e,t,r){t=="__proto__"&&hg?hg(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Il=JD,qD=Il,KD=Ra,QD=Object.prototype,eP=QD.hasOwnProperty;function tP(e,t,r){var a=e[t];(!(eP.call(e,t)&&KD(a,r))||r===void 0&&!(t in e))&&qD(e,t,r)}var El=tP,rP=El,nP=Il;function aP(e,t,r,a){var n=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=a?a(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),n?nP(r,s,u):rP(r,s,u)}return r}var Ba=aP;function iP(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var oP=iP;function sP(e){return e!=null&&typeof e=="object"}var Or=sP,uP=zn,cP=Or,lP="[object Arguments]";function dP(e){return cP(e)&&uP(e)==lP}var fP=dP,mg=fP,pP=Or,gg=Object.prototype,hP=gg.hasOwnProperty,mP=gg.propertyIsEnumerable,gP=mg(function(){return arguments}())?mg:function(e){return pP(e)&&hP.call(e,"callee")&&!mP.call(e,"callee")},xs=gP,vP=Array.isArray,Jt=vP,Ds={exports:{}};function yP(){return!1}var bP=yP;Ds.exports,function(e,t){var r=Ar,a=bP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||a;e.exports=c}(Ds,Ds.exports);var Ps=Ds.exports,wP=9007199254740991,CP=/^(?:0|[1-9]\d*)$/;function SP(e,t){var r=typeof e;return t=t??wP,!!t&&(r=="number"||r!="symbol"&&CP.test(e))&&e>-1&&e%1==0&&e<t}var Rs=SP,$P=9007199254740991;function IP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$P}var _l=IP,EP=zn,_P=_l,AP=Or,OP="[object Arguments]",TP="[object Array]",xP="[object Boolean]",DP="[object Date]",PP="[object Error]",RP="[object Function]",NP="[object Map]",kP="[object Number]",MP="[object Object]",FP="[object RegExp]",jP="[object Set]",BP="[object String]",LP="[object WeakMap]",GP="[object ArrayBuffer]",VP="[object DataView]",WP="[object Float32Array]",YP="[object Float64Array]",UP="[object Int8Array]",HP="[object Int16Array]",XP="[object Int32Array]",zP="[object Uint8Array]",ZP="[object Uint8ClampedArray]",JP="[object Uint16Array]",qP="[object Uint32Array]",rt={};rt[WP]=rt[YP]=rt[UP]=rt[HP]=rt[XP]=rt[zP]=rt[ZP]=rt[JP]=rt[qP]=!0,rt[OP]=rt[TP]=rt[GP]=rt[xP]=rt[VP]=rt[DP]=rt[PP]=rt[RP]=rt[NP]=rt[kP]=rt[MP]=rt[FP]=rt[jP]=rt[BP]=rt[LP]=!1;function KP(e){return AP(e)&&_P(e.length)&&!!rt[EP(e)]}var QP=KP;function eR(e){return function(t){return e(t)}}var Jn=eR,Ns={exports:{}};Ns.exports,function(e,t){var r=ng,a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,o=i&&r.process,s=function(){try{var u=n&&n.require&&n.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Ns,Ns.exports);var Al=Ns.exports,tR=QP,rR=Jn,vg=Al,yg=vg&&vg.isTypedArray,nR=yg?rR(yg):tR,Ol=nR,aR=oP,iR=xs,oR=Jt,sR=Ps,uR=Rs,cR=Ol,lR=Object.prototype,dR=lR.hasOwnProperty;function fR(e,t){var r=oR(e),a=!r&&iR(e),n=!r&&!a&&sR(e),i=!r&&!a&&!n&&cR(e),o=r||a||n||i,s=o?aR(e.length,String):[],u=s.length;for(var c in e)(t||dR.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||uR(c,u)))&&s.push(c);return s}var bg=fR,pR=Object.prototype;function hR(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||pR;return e===r}var Tl=hR;function mR(e,t){return function(r){return e(t(r))}}var wg=mR,gR=wg,vR=gR(Object.keys,Object),yR=vR,bR=Tl,wR=yR,CR=Object.prototype,SR=CR.hasOwnProperty;function $R(e){if(!bR(e))return wR(e);var t=[];for(var r in Object(e))SR.call(e,r)&&r!="constructor"&&t.push(r);return t}var IR=$R,ER=wl,_R=_l;function AR(e){return e!=null&&_R(e.length)&&!ER(e)}var La=AR,OR=bg,TR=IR,xR=La;function DR(e){return xR(e)?OR(e):TR(e)}var Xi=DR,PR=Ba,RR=Xi;function NR(e,t){return e&&PR(t,RR(t),e)}var kR=NR;function MR(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var FR=MR,jR=ir,BR=Tl,LR=FR,GR=Object.prototype,VR=GR.hasOwnProperty;function WR(e){if(!jR(e))return LR(e);var t=BR(e),r=[];for(var a in e)a=="constructor"&&(t||!VR.call(e,a))||r.push(a);return r}var YR=WR,UR=bg,HR=YR,XR=La;function zR(e){return XR(e)?UR(e,!0):HR(e)}var Ga=zR,ZR=Ba,JR=Ga;function qR(e,t){return e&&ZR(t,JR(t),e)}var KR=qR,ks={exports:{}};ks.exports,function(e,t){var r=Ar,a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=u}(ks,ks.exports);var Cg=ks.exports;function QR(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var xl=QR;function eN(e,t){for(var r=-1,a=e==null?0:e.length,n=0,i=[];++r<a;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}var tN=eN;function rN(){return[]}var Sg=rN,nN=tN,aN=Sg,iN=Object.prototype,oN=iN.propertyIsEnumerable,$g=Object.getOwnPropertySymbols,sN=$g?function(e){return e==null?[]:(e=Object(e),nN($g(e),function(t){return oN.call(e,t)}))}:aN,Dl=sN,uN=Ba,cN=Dl;function lN(e,t){return uN(e,cN(e),t)}var dN=lN;function fN(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var Pl=fN,pN=wg,hN=pN(Object.getPrototypeOf,Object),Rl=hN,mN=Pl,gN=Rl,vN=Dl,yN=Sg,bN=Object.getOwnPropertySymbols,wN=bN?function(e){for(var t=[];e;)mN(t,vN(e)),e=gN(e);return t}:yN,Ig=wN,CN=Ba,SN=Ig;function $N(e,t){return CN(e,SN(e),t)}var IN=$N,EN=Pl,_N=Jt;function AN(e,t,r){var a=t(e);return _N(e)?a:EN(a,r(e))}var Eg=AN,ON=Eg,TN=Dl,xN=Xi;function DN(e){return ON(e,xN,TN)}var _g=DN,PN=Eg,RN=Ig,NN=Ga;function kN(e){return PN(e,NN,RN)}var Ag=kN,MN=Zn,FN=Ar,jN=MN(FN,"DataView"),BN=jN,LN=Zn,GN=Ar,VN=LN(GN,"Promise"),WN=VN,YN=Zn,UN=Ar,HN=YN(UN,"Set"),Og=HN,XN=Zn,zN=Ar,ZN=XN(zN,"WeakMap"),JN=ZN,Nl=BN,kl=Sl,Ml=WN,Fl=Og,jl=JN,Tg=zn,Va=cg,xg="[object Map]",qN="[object Object]",Dg="[object Promise]",Pg="[object Set]",Rg="[object WeakMap]",Ng="[object DataView]",KN=Va(Nl),QN=Va(kl),ek=Va(Ml),tk=Va(Fl),rk=Va(jl),qn=Tg;(Nl&&qn(new Nl(new ArrayBuffer(1)))!=Ng||kl&&qn(new kl)!=xg||Ml&&qn(Ml.resolve())!=Dg||Fl&&qn(new Fl)!=Pg||jl&&qn(new jl)!=Rg)&&(qn=function(e){var t=Tg(e),r=t==qN?e.constructor:void 0,a=r?Va(r):"";if(a)switch(a){case KN:return Ng;case QN:return xg;case ek:return Dg;case tk:return Pg;case rk:return Rg}return t});var Ms=qn,nk=Object.prototype,ak=nk.hasOwnProperty;function ik(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ak.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var ok=ik,sk=Ar,uk=sk.Uint8Array,kg=uk,Mg=kg;function ck(e){var t=new e.constructor(e.byteLength);return new Mg(t).set(new Mg(e)),t}var Bl=ck,lk=Bl;function dk(e,t){var r=t?lk(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var fk=dk,pk=/\w*$/;function hk(e){var t=new e.constructor(e.source,pk.exec(e));return t.lastIndex=e.lastIndex,t}var mk=hk,Fg=ka,jg=Fg?Fg.prototype:void 0,Bg=jg?jg.valueOf:void 0;function gk(e){return Bg?Object(Bg.call(e)):{}}var vk=gk,yk=Bl;function bk(e,t){var r=t?yk(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Lg=bk,wk=Bl,Ck=fk,Sk=mk,$k=vk,Ik=Lg,Ek="[object Boolean]",_k="[object Date]",Ak="[object Map]",Ok="[object Number]",Tk="[object RegExp]",xk="[object Set]",Dk="[object String]",Pk="[object Symbol]",Rk="[object ArrayBuffer]",Nk="[object DataView]",kk="[object Float32Array]",Mk="[object Float64Array]",Fk="[object Int8Array]",jk="[object Int16Array]",Bk="[object Int32Array]",Lk="[object Uint8Array]",Gk="[object Uint8ClampedArray]",Vk="[object Uint16Array]",Wk="[object Uint32Array]";function Yk(e,t,r){var a=e.constructor;switch(t){case Rk:return wk(e);case Ek:case _k:return new a(+e);case Nk:return Ck(e,r);case kk:case Mk:case Fk:case jk:case Bk:case Lk:case Gk:case Vk:case Wk:return Ik(e,r);case Ak:return new a;case Ok:case Dk:return new a(e);case Tk:return Sk(e);case xk:return new a;case Pk:return $k(e)}}var Uk=Yk,Hk=ir,Gg=Object.create,Xk=function(){function e(){}return function(t){if(!Hk(t))return{};if(Gg)return Gg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),zk=Xk,Zk=zk,Jk=Rl,qk=Tl;function Kk(e){return typeof e.constructor=="function"&&!qk(e)?Zk(Jk(e)):{}}var Vg=Kk,Qk=Ms,e2=Or,t2="[object Map]";function r2(e){return e2(e)&&Qk(e)==t2}var n2=r2,a2=n2,i2=Jn,Wg=Al,Yg=Wg&&Wg.isMap,o2=Yg?i2(Yg):a2,s2=o2,u2=Ms,c2=Or,l2="[object Set]";function d2(e){return c2(e)&&u2(e)==l2}var f2=d2,p2=f2,h2=Jn,Ug=Al,Hg=Ug&&Ug.isSet,m2=Hg?h2(Hg):p2,g2=m2,v2=Ts,y2=fg,b2=El,w2=kR,C2=KR,S2=Cg,$2=xl,I2=dN,E2=IN,_2=_g,A2=Ag,O2=Ms,T2=ok,x2=Uk,D2=Vg,P2=Jt,R2=Ps,N2=s2,k2=ir,M2=g2,F2=Xi,j2=Ga,B2=1,L2=2,G2=4,Xg="[object Arguments]",V2="[object Array]",W2="[object Boolean]",Y2="[object Date]",U2="[object Error]",zg="[object Function]",H2="[object GeneratorFunction]",X2="[object Map]",z2="[object Number]",Zg="[object Object]",Z2="[object RegExp]",J2="[object Set]",q2="[object String]",K2="[object Symbol]",Q2="[object WeakMap]",eM="[object ArrayBuffer]",tM="[object DataView]",rM="[object Float32Array]",nM="[object Float64Array]",aM="[object Int8Array]",iM="[object Int16Array]",oM="[object Int32Array]",sM="[object Uint8Array]",uM="[object Uint8ClampedArray]",cM="[object Uint16Array]",lM="[object Uint32Array]",Qe={};Qe[Xg]=Qe[V2]=Qe[eM]=Qe[tM]=Qe[W2]=Qe[Y2]=Qe[rM]=Qe[nM]=Qe[aM]=Qe[iM]=Qe[oM]=Qe[X2]=Qe[z2]=Qe[Zg]=Qe[Z2]=Qe[J2]=Qe[q2]=Qe[K2]=Qe[sM]=Qe[uM]=Qe[cM]=Qe[lM]=!0,Qe[U2]=Qe[zg]=Qe[Q2]=!1;function Fs(e,t,r,a,n,i){var o,s=t&B2,u=t&L2,c=t&G2;if(r&&(o=n?r(e,a,n,i):r(e)),o!==void 0)return o;if(!k2(e))return e;var l=P2(e);if(l){if(o=T2(e),!s)return $2(e,o)}else{var d=O2(e),f=d==zg||d==H2;if(R2(e))return S2(e,s);if(d==Zg||d==Xg||f&&!n){if(o=u||f?{}:D2(e),!s)return u?E2(e,C2(o,e)):I2(e,w2(o,e))}else{if(!Qe[d])return n?e:{};o=x2(e,d,s)}}i||(i=new v2);var p=i.get(e);if(p)return p;i.set(e,o),M2(e)?e.forEach(function(g){o.add(Fs(g,t,r,g,e,i))}):N2(e)&&e.forEach(function(g,h){o.set(h,Fs(g,t,r,h,e,i))});var m=c?u?A2:_2:u?j2:F2,v=l?void 0:m(e);return y2(v||e,function(g,h){v&&(h=g,g=e[h]),b2(o,h,Fs(g,t,r,h,e,i))}),o}var Jg=Fs,dM=Jg,fM=1,pM=4;function hM(e){return dM(e,fM|pM)}var mM=hM,gM="__lodash_hash_undefined__";function vM(e){return this.__data__.set(e,gM),this}var yM=vM;function bM(e){return this.__data__.has(e)}var wM=bM,CM=$l,SM=yM,$M=wM;function js(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new CM;++t<r;)this.add(e[t])}js.prototype.add=js.prototype.push=SM,js.prototype.has=$M;var Bs=js;function IM(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var EM=IM;function _M(e,t){return e.has(t)}var Ls=_M,AM=Bs,OM=EM,TM=Ls,xM=1,DM=2;function PM(e,t,r,a,n,i){var o=r&xM,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=r&DM?new AM:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],v=t[d];if(a)var g=o?a(v,m,d,t,e,i):a(m,v,d,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!OM(t,function(h,y){if(!TM(p,y)&&(m===h||n(m,h,r,a,i)))return p.push(y)})){f=!1;break}}else if(!(m===v||n(m,v,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var qg=PM;function RM(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}var NM=RM;function kM(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Ll=kM,Kg=ka,Qg=kg,MM=Ra,FM=qg,jM=NM,BM=Ll,LM=1,GM=2,VM="[object Boolean]",WM="[object Date]",YM="[object Error]",UM="[object Map]",HM="[object Number]",XM="[object RegExp]",zM="[object Set]",ZM="[object String]",JM="[object Symbol]",qM="[object ArrayBuffer]",KM="[object DataView]",ev=Kg?Kg.prototype:void 0,Gl=ev?ev.valueOf:void 0;function QM(e,t,r,a,n,i,o){switch(r){case KM:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case qM:return!(e.byteLength!=t.byteLength||!i(new Qg(e),new Qg(t)));case VM:case WM:case HM:return MM(+e,+t);case YM:return e.name==t.name&&e.message==t.message;case XM:case ZM:return e==t+"";case UM:var s=jM;case zM:var u=a&LM;if(s||(s=BM),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;a|=GM,o.set(e,t);var l=FM(s(e),s(t),a,n,i,o);return o.delete(e),l;case JM:if(Gl)return Gl.call(e)==Gl.call(t)}return!1}var eF=QM,tv=_g,tF=1,rF=Object.prototype,nF=rF.hasOwnProperty;function aF(e,t,r,a,n,i){var o=r&tF,s=tv(e),u=s.length,c=tv(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:nF.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++d<u;){f=s[d];var h=e[f],y=t[f];if(a)var b=o?a(y,h,f,t,e,i):a(h,y,f,e,t,i);if(!(b===void 0?h===y||n(h,y,r,a,i):b)){v=!1;break}g||(g=f=="constructor")}if(v&&!g){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(e),i.delete(t),v}var iF=aF,Vl=Ts,oF=qg,sF=eF,uF=iF,rv=Ms,nv=Jt,av=Ps,cF=Ol,lF=1,iv="[object Arguments]",ov="[object Array]",Gs="[object Object]",dF=Object.prototype,sv=dF.hasOwnProperty;function fF(e,t,r,a,n,i){var o=nv(e),s=nv(t),u=o?ov:rv(e),c=s?ov:rv(t);u=u==iv?Gs:u,c=c==iv?Gs:c;var l=u==Gs,d=c==Gs,f=u==c;if(f&&av(e)){if(!av(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new Vl),o||cF(e)?oF(e,t,r,a,n,i):sF(e,t,u,r,a,n,i);if(!(r&lF)){var p=l&&sv.call(e,"__wrapped__"),m=d&&sv.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,g=m?t.value():t;return i||(i=new Vl),n(v,g,r,a,i)}}return f?(i||(i=new Vl),uF(e,t,r,a,n,i)):!1}var pF=fF,hF=pF,uv=Or;function cv(e,t,r,a,n){return e===t?!0:e==null||t==null||!uv(e)&&!uv(t)?e!==e&&t!==t:hF(e,t,r,a,cv,n)}var Wl=cv,mF=Wl;function gF(e,t){return mF(e,t)}var lv=gF,dv=ka,vF=xs,yF=Jt,fv=dv?dv.isConcatSpreadable:void 0;function bF(e){return yF(e)||vF(e)||!!(fv&&e&&e[fv])}var wF=bF,CF=Pl,SF=wF;function pv(e,t,r,a,n){var i=-1,o=e.length;for(r||(r=SF),n||(n=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?pv(s,t-1,r,a,n):CF(n,s):a||(n[n.length]=s)}return n}var Yl=pv;function $F(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var In=$F,IF=zn,EF=Or,_F="[object Symbol]";function AF(e){return typeof e=="symbol"||EF(e)&&IF(e)==_F}var Vs=AF,OF=Jt,TF=Vs,xF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DF=/^\w*$/;function PF(e,t){if(OF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||TF(e)?!0:DF.test(e)||!xF.test(e)||t!=null&&e in Object(t)}var Ul=PF,hv=$l,RF="Expected a function";function Hl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(RF);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=e.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(Hl.Cache||hv),r}Hl.Cache=hv;var NF=Hl,kF=NF,MF=500;function FF(e){var t=kF(e,function(a){return r.size===MF&&r.clear(),a}),r=t.cache;return t}var jF=FF,BF=jF,LF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GF=/\\(\\)?/g,VF=BF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LF,function(r,a,n,i){t.push(n?i.replace(GF,"$1"):a||r)}),t}),WF=VF,mv=ka,YF=In,UF=Jt,HF=Vs,gv=mv?mv.prototype:void 0,vv=gv?gv.toString:void 0;function yv(e){if(typeof e=="string")return e;if(UF(e))return YF(e,yv)+"";if(HF(e))return vv?vv.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var XF=yv,zF=XF;function ZF(e){return e==null?"":zF(e)}var JF=ZF,qF=Jt,KF=Ul,QF=WF,ej=JF;function tj(e,t){return qF(e)?e:KF(e,t)?[e]:QF(ej(e))}var zi=tj,rj=Vs;function nj(e){if(typeof e=="string"||rj(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Wa=nj,aj=zi,ij=Wa;function oj(e,t){t=aj(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[ij(t[r++])];return r&&r==a?e:void 0}var Ws=oj,sj=Ts,uj=Wl,cj=1,lj=2;function dj(e,t,r,a){var n=r.length,i=n,o=!a;if(e==null)return!i;for(e=Object(e);n--;){var s=r[n];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<i;){s=r[n];var u=s[0],c=e[u],l=s[1];if(o&&s[2]){if(c===void 0&&!(u in e))return!1}else{var d=new sj;if(a)var f=a(c,l,u,e,t,d);if(!(f===void 0?uj(l,c,cj|lj,a,d):f))return!1}}return!0}var fj=dj,pj=ir;function hj(e){return e===e&&!pj(e)}var bv=hj,mj=bv,gj=Xi;function vj(e){for(var t=gj(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,mj(n)]}return t}var yj=vj;function bj(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var wv=bj,wj=fj,Cj=yj,Sj=wv;function $j(e){var t=Cj(e);return t.length==1&&t[0][2]?Sj(t[0][0],t[0][1]):function(r){return r===e||wj(r,e,t)}}var Ij=$j,Ej=Ws;function _j(e,t,r){var a=e==null?void 0:Ej(e,t);return a===void 0?r:a}var Cv=_j;const Kn=Xt(Cv);function Aj(e,t){return e!=null&&t in Object(e)}var Oj=Aj,Tj=zi,xj=xs,Dj=Jt,Pj=Rs,Rj=_l,Nj=Wa;function kj(e,t,r){t=Tj(t,e);for(var a=-1,n=t.length,i=!1;++a<n;){var o=Nj(t[a]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++a!=n?i:(n=e==null?0:e.length,!!n&&Rj(n)&&Pj(o,n)&&(Dj(e)||xj(e)))}var Sv=kj,Mj=Oj,Fj=Sv;function jj(e,t){return e!=null&&Fj(e,t,Mj)}var Bj=jj,Lj=Wl,Gj=Cv,Vj=Bj,Wj=Ul,Yj=bv,Uj=wv,Hj=Wa,Xj=1,zj=2;function Zj(e,t){return Wj(e)&&Yj(t)?Uj(Hj(e),t):function(r){var a=Gj(r,e);return a===void 0&&a===t?Vj(r,e):Lj(t,a,Xj|zj)}}var Jj=Zj;function qj(e){return e}var Zi=qj;function Kj(e){return function(t){return t==null?void 0:t[e]}}var Qj=Kj,eB=Ws;function tB(e){return function(t){return eB(t,e)}}var rB=tB,nB=Qj,aB=rB,iB=Ul,oB=Wa;function sB(e){return iB(e)?nB(oB(e)):aB(e)}var uB=sB,cB=Ij,lB=Jj,dB=Zi,fB=Jt,pB=uB;function hB(e){return typeof e=="function"?e:e==null?dB:typeof e=="object"?fB(e)?lB(e[0],e[1]):cB(e):pB(e)}var mB=hB;function gB(e){return function(t,r,a){for(var n=-1,i=Object(t),o=a(t),s=o.length;s--;){var u=o[e?s:++n];if(r(i[u],u,i)===!1)break}return t}}var vB=gB,yB=vB,bB=yB(),$v=bB,wB=$v,CB=Xi;function SB(e,t){return e&&wB(e,t,CB)}var $B=SB,IB=La;function EB(e,t){return function(r,a){if(r==null)return r;if(!IB(r))return e(r,a);for(var n=r.length,i=t?n:-1,o=Object(r);(t?i--:++i<n)&&a(o[i],i,o)!==!1;);return r}}var _B=EB,AB=$B,OB=_B,TB=OB(AB),Iv=TB,xB=Iv,DB=La;function PB(e,t){var r=-1,a=DB(e)?Array(e.length):[];return xB(e,function(n,i,o){a[++r]=t(n,i,o)}),a}var RB=PB;function NB(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var kB=NB,Ev=Vs;function MB(e,t){if(e!==t){var r=e!==void 0,a=e===null,n=e===e,i=Ev(e),o=t!==void 0,s=t===null,u=t===t,c=Ev(t);if(!s&&!c&&!i&&e>t||i&&o&&u&&!s&&!c||a&&o&&u||!r&&u||!n)return 1;if(!a&&!i&&!c&&e<t||c&&r&&n&&!a&&!i||s&&r&&n||!o&&n||!u)return-1}return 0}var FB=MB,jB=FB;function BB(e,t,r){for(var a=-1,n=e.criteria,i=t.criteria,o=n.length,s=r.length;++a<o;){var u=jB(n[a],i[a]);if(u){if(a>=s)return u;var c=r[a];return u*(c=="desc"?-1:1)}}return e.index-t.index}var LB=BB,Xl=In,GB=Ws,VB=mB,WB=RB,YB=kB,UB=Jn,HB=LB,XB=Zi,zB=Jt;function ZB(e,t,r){t.length?t=Xl(t,function(i){return zB(i)?function(o){return GB(o,i.length===1?i[0]:i)}:i}):t=[XB];var a=-1;t=Xl(t,UB(VB));var n=WB(e,function(i,o,s){var u=Xl(t,function(c){return c(i)});return{criteria:u,index:++a,value:i}});return YB(n,function(i,o){return HB(i,o,r)})}var JB=ZB;function qB(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)}var _v=qB,KB=_v,Av=Math.max;function QB(e,t,r){return t=Av(t===void 0?e.length-1:t,0),function(){for(var a=arguments,n=-1,i=Av(a.length-t,0),o=Array(i);++n<i;)o[n]=a[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=a[n];return s[t]=r(o),KB(e,this,s)}}var Ov=QB;function eL(e){return function(){return e}}var tL=eL,rL=tL,Tv=pg,nL=Zi,aL=Tv?function(e,t){return Tv(e,"toString",{configurable:!0,enumerable:!1,value:rL(t),writable:!0})}:nL,iL=aL,oL=800,sL=16,uL=Date.now;function cL(e){var t=0,r=0;return function(){var a=uL(),n=sL-(a-r);if(r=a,n>0){if(++t>=oL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var lL=cL,dL=iL,fL=lL,pL=fL(dL),xv=pL,hL=Zi,mL=Ov,gL=xv;function vL(e,t){return gL(mL(e,t,hL),e+"")}var Qn=vL,yL=Ra,bL=La,wL=Rs,CL=ir;function SL(e,t,r){if(!CL(r))return!1;var a=typeof t;return(a=="number"?bL(r)&&wL(t,r.length):a=="string"&&t in r)?yL(r[t],e):!1}var zl=SL,$L=Yl,IL=JB,EL=Qn,Dv=zl,_L=EL(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Dv(e,t[0],t[1])?t=[]:r>2&&Dv(t[0],t[1],t[2])&&(t=[t[0]]),IL(e,$L(t,1),[])}),Pv=_L;function AL(e,t,r,a){for(var n=e.length,i=r+(a?1:-1);a?i--:++i<n;)if(t(e[i],i,e))return i;return-1}var OL=AL;function TL(e){return e!==e}var xL=TL;function DL(e,t,r){for(var a=r-1,n=e.length;++a<n;)if(e[a]===t)return a;return-1}var PL=DL,RL=OL,NL=xL,kL=PL;function ML(e,t,r){return t===t?kL(e,t,r):RL(e,NL,r)}var Rv=ML,FL=Rv;function jL(e,t){var r=e==null?0:e.length;return!!r&&FL(e,t,0)>-1}var Zl=jL;function BL(e,t,r){for(var a=-1,n=e==null?0:e.length;++a<n;)if(r(t,e[a]))return!0;return!1}var Jl=BL;function LL(){}var GL=LL,ql=Og,VL=GL,WL=Ll,YL=1/0,UL=ql&&1/WL(new ql([,-0]))[1]==YL?function(e){return new ql(e)}:VL,HL=UL,XL=Bs,zL=Zl,ZL=Jl,JL=Ls,qL=HL,KL=Ll,QL=200;function e4(e,t,r){var a=-1,n=zL,i=e.length,o=!0,s=[],u=s;if(r)o=!1,n=ZL;else if(i>=QL){var c=t?null:qL(e);if(c)return KL(c);o=!1,n=JL,u=new XL}else u=t?[]:s;e:for(;++a<i;){var l=e[a],d=t?t(l):l;if(l=r||l!==0?l:0,o&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(l)}else n(u,d,r)||(u!==s&&u.push(d),s.push(l))}return s}var Nv=e4,t4=Nv;function r4(e){return e&&e.length?t4(e):[]}var Kl=r4,n4=Nv;function a4(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?n4(e,void 0,t):[]}var Ql=a4,i4=Qn,o4=Ra,s4=zl,u4=Ga,kv=Object.prototype,c4=kv.hasOwnProperty,l4=i4(function(e,t){e=Object(e);var r=-1,a=t.length,n=a>2?t[2]:void 0;for(n&&s4(t[0],t[1],n)&&(a=1);++r<a;)for(var i=t[r],o=u4(i),s=-1,u=o.length;++s<u;){var c=o[s],l=e[c];(l===void 0||o4(l,kv[c])&&!c4.call(e,c))&&(e[c]=i[c])}return e}),d4=l4,f4=Bs,p4=Zl,h4=Jl,m4=In,g4=Jn,Mv=Ls,v4=Math.min;function y4(e,t,r){for(var a=r?h4:p4,n=e[0].length,i=e.length,o=i,s=Array(i),u=1/0,c=[];o--;){var l=e[o];o&&t&&(l=m4(l,g4(t))),u=v4(l.length,u),s[o]=!r&&(t||n>=120&&l.length>=120)?new f4(o&&l):void 0}l=e[0];var d=-1,f=s[0];e:for(;++d<n&&c.length<u;){var p=l[d],m=t?t(p):p;if(p=r||p!==0?p:0,!(f?Mv(f,m):a(c,m,r))){for(o=i;--o;){var v=s[o];if(!(v?Mv(v,m):a(e[o],m,r)))continue e}f&&f.push(m),c.push(p)}}return c}var Fv=y4,b4=La,w4=Or;function C4(e){return w4(e)&&b4(e)}var ed=C4,S4=ed;function $4(e){return S4(e)?e:[]}var jv=$4;function I4(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Bv=I4,E4=In,_4=Fv,A4=Qn,O4=jv,T4=Bv,x4=A4(function(e){var t=T4(e),r=E4(e,O4);return t=typeof t=="function"?t:void 0,t&&r.pop(),r.length&&r[0]===e[0]?_4(r,void 0,t):[]}),Lv=x4,D4=zn,P4=Rl,R4=Or,N4="[object Object]",k4=Function.prototype,M4=Object.prototype,Gv=k4.toString,F4=M4.hasOwnProperty,j4=Gv.call(Object);function B4(e){if(!R4(e)||D4(e)!=N4)return!1;var t=P4(e);if(t===null)return!0;var r=F4.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Gv.call(r)==j4}var Ji=B4,L4=zn,G4=Or,V4="[object Boolean]";function W4(e){return e===!0||e===!1||G4(e)&&L4(e)==V4}var Y4=W4,mr=lv,U4=Pv,td=Kl,Vv=Ql,H4=d4,X4=Lv,Ys=Ji,rd=Y4,Wv=e=>Array.isArray(e)?e:[e],or=e=>e===void 0,Us=e=>Ys(e)||Array.isArray(e)?Object.keys(e):[],Ya=(e,t)=>e.hasOwnProperty(t),Ua=e=>U4(td(e)),Yv=e=>or(e)||Array.isArray(e)&&e.length===0,z4=(e,t,r,a)=>t&&Ya(t,r)&&e&&Ya(e,r)&&a(e[r],t[r]),nd=(e,t)=>or(e)&&t===0||or(t)&&e===0||mr(e,t),Z4=(e,t)=>or(e)&&t===!1||or(t)&&e===!1||mr(e,t),Uv=e=>or(e)||mr(e,{})||e===!0,Hs=e=>or(e)||mr(e,{}),Hv=e=>or(e)||Ys(e)||e===!0||e===!1;function Xv(e,t){return Yv(e)&&Yv(t)?!0:mr(Ua(e),Ua(t))}function J4(e,t){return e=Wv(e),t=Wv(t),mr(Ua(e),Ua(t))}function Xs(e,t,r,a){var n=td(Us(e).concat(Us(t)));return Hs(e)&&Hs(t)?!0:Hs(e)&&Us(t).length||Hs(t)&&Us(e).length?!1:n.every(function(i){var o=e[i],s=t[i];return Array.isArray(o)&&Array.isArray(s)?mr(Ua(e),Ua(t)):Array.isArray(o)&&!Array.isArray(s)||Array.isArray(s)&&!Array.isArray(o)?!1:z4(e,t,i,a)})}function q4(e,t,r,a){return Ys(e)&&Ys(t)?a(e,t):Array.isArray(e)&&Array.isArray(t)?Xs(e,t,r,a):mr(e,t)}function ad(e,t,r,a){var n=Vv(e,a),i=Vv(t,a),o=X4(n,i,a);return o.length===Math.max(n.length,i.length)}var K4={title:mr,uniqueItems:Z4,minLength:nd,minItems:nd,minProperties:nd,required:Xv,enum:Xv,type:J4,items:q4,anyOf:ad,allOf:ad,oneOf:ad,properties:Xs,patternProperties:Xs,dependencies:Xs},Q4=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],eG=["additionalProperties","additionalItems","contains","propertyNames","not"];function id(e,t,r){if(r=H4(r,{ignore:[]}),Uv(e)&&Uv(t))return!0;if(!Hv(e)||!Hv(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(rd(e)&&rd(t))return e===t;if(e===void 0&&t===!1||t===void 0&&e===!1||or(e)&&!or(t)||!or(e)&&or(t))return!1;var a=td(Object.keys(e).concat(Object.keys(t)));if(r.ignore.length&&(a=a.filter(i=>r.ignore.indexOf(i)===-1)),!a.length)return!0;function n(i,o){return id(i,o,r)}return a.every(function(i){var o=e[i],s=t[i];if(eG.indexOf(i)!==-1)return id(o,s,r);var u=K4[i];if(u||(u=mr),mr(o,s))return!0;if(Q4.indexOf(i)===-1&&(!Ya(e,i)&&Ya(t,i)||Ya(e,i)&&!Ya(t,i)))return o===s;var c=u(o,s,i,n);if(!rd(c))throw new Error("Comparer must return true or false");return c})}var od=id;function tG(e){return Object.prototype.toString.call(e)==="[object Array]"}var sd=Array.isArray||tG;function rG(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}var nG=rG,aG=nG;function iG(e){return aG(e)&&e%1===0}var oG=iG,sG=sd,uG=oG;function cG(e){var t;if(!sG(e)||(t=e.length,!t))return!1;for(var r=0;r<t;r++)if(!uG(e[r]))return!1;return!0}var zv=cG;function lG(e){return typeof e=="function"}var Zv=lG,dG=sd,Jv=zv,fG=Zv,zs=Math.pow(2,31)-1;function qv(e,t){var r=1,a;if(e===0)return t;if(t===0)return e;for(;e%2===0&&t%2===0;)e=e/2,t=t/2,r=r*2;for(;e%2===0;)e=e/2;for(;t;){for(;t%2===0;)t=t/2;e>t&&(a=t,t=e,e=a),t=t-e}return r*e}function Kv(e,t){var r=0,a;if(e===0)return t;if(t===0)return e;for(;!(e&1)&&!(t&1);)e>>>=1,t>>>=1,r++;for(;!(e&1);)e>>>=1;for(;t;){for(;!(t&1);)t>>>=1;e>t&&(a=t,t=e,e=a),t=t-e}return e<<r}function pG(){var e=arguments.length,t,r,a,n,i,o,s;for(t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];if(Jv(t)){if(e===2)return i=t[0],o=t[1],i<0&&(i=-i),o<0&&(o=-o),i<=zs&&o<=zs?Kv(i,o):qv(i,o);a=t}else if(dG(t[0]))if(e>1){if(a=t[0],r=t[1],!fG(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else a=t[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(n=a.length,n<2)return null;if(r){for(i=new Array(n),s=0;s<n;s++)i[s]=r(a[s],s);a=i}if(e<3&&!Jv(a))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+a+"`.");for(s=0;s<n;s++)i=a[s],i<0&&(a[s]=-i);for(i=a[0],s=1;s<n;s++)o=a[s],o<=zs&&i<=zs?i=Kv(i,o):i=qv(i,o);return i}var hG=pG,Qv=hG,mG=sd,ey=zv,gG=Zv;function vG(){var e=arguments.length,t,r,a,n,i,o,s;for(t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];if(ey(t)){if(e===2)return i=t[0],o=t[1],i<0&&(i=-i),o<0&&(o=-o),i===0||o===0?0:i/Qv(i,o)*o;a=t}else if(mG(t[0]))if(e>1){if(a=t[0],r=t[1],!gG(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else a=t[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(n=a.length,n<2)return null;if(r){for(i=new Array(n),s=0;s<n;s++)i[s]=r(a[s],s);a=i}if(e<3&&!ey(a))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+a+"`.");for(s=0;s<n;s++)i=a[s],i<0&&(a[s]=-i);for(i=a[0],s=1;s<n;s++){if(o=a[s],i===0||o===0)return 0;i=i/Qv(i,o)*o}return i}var yG=vG,bG=Il,wG=Ra;function CG(e,t,r){(r!==void 0&&!wG(e[t],r)||r===void 0&&!(t in e))&&bG(e,t,r)}var ty=CG;function SG(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ry=SG,$G=Ba,IG=Ga;function EG(e){return $G(e,IG(e))}var _G=EG,ny=ty,AG=Cg,OG=Lg,TG=xl,xG=Vg,ay=xs,iy=Jt,DG=ed,PG=Ps,RG=wl,NG=ir,kG=Ji,MG=Ol,oy=ry,FG=_G;function jG(e,t,r,a,n,i,o){var s=oy(e,r),u=oy(t,r),c=o.get(u);if(c){ny(e,r,c);return}var l=i?i(s,u,r+"",e,t,o):void 0,d=l===void 0;if(d){var f=iy(u),p=!f&&PG(u),m=!f&&!p&&MG(u);l=u,f||p||m?iy(s)?l=s:DG(s)?l=TG(s):p?(d=!1,l=AG(u,!0)):m?(d=!1,l=OG(u,!0)):l=[]:kG(u)||ay(u)?(l=s,ay(s)?l=FG(s):(!NG(s)||RG(s))&&(l=xG(u))):d=!1}d&&(o.set(u,l),n(l,u,a,i,o),o.delete(u)),ny(e,r,l)}var BG=jG,LG=Ts,GG=ty,VG=$v,WG=BG,YG=ir,UG=Ga,HG=ry;function sy(e,t,r,a,n){e!==t&&VG(t,function(i,o){if(n||(n=new LG),YG(i))WG(e,t,o,r,sy,a,n);else{var s=a?a(HG(e,o),i,o+"",e,t,n):void 0;s===void 0&&(s=i),GG(e,o,s)}},UG)}var uy=sy,XG=uy,cy=ir;function ly(e,t,r,a,n,i){return cy(e)&&cy(t)&&(i.set(t,e),XG(e,t,void 0,ly,i),i.delete(t)),e}var zG=ly,ZG=Qn,JG=zl;function qG(e){return ZG(function(t,r){var a=-1,n=r.length,i=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,o&&JG(r[0],r[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++a<n;){var s=r[a];s&&e(t,s,a,i)}return t})}var KG=qG,QG=uy,eV=KG,tV=eV(function(e,t,r,a){QG(e,t,r,a)}),rV=tV,nV=_v,aV=Qn,iV=zG,oV=rV,sV=aV(function(e){return e.push(void 0,iV),nV(oV,void 0,e)}),uV=sV,cV=Yl;function lV(e){var t=e==null?0:e.length;return t?cV(e,1):[]}var ud=lV,dV=Yl,fV=1/0;function pV(e){var t=e==null?0:e.length;return t?dV(e,fV):[]}var dy=pV,hV=In,mV=Fv,gV=Qn,vV=jv,yV=gV(function(e){var t=hV(e,vV);return t.length&&t[0]===e[0]?mV(t):[]}),bV=yV;function wV(e,t,r,a){for(var n=r-1,i=e.length;++n<i;)if(a(e[n],t))return n;return-1}var CV=wV,SV=In,$V=Rv,IV=CV,EV=Jn,_V=xl,AV=Array.prototype,fy=AV.splice;function OV(e,t,r,a){var n=a?IV:$V,i=-1,o=t.length,s=e;for(e===t&&(t=_V(t)),r&&(s=SV(e,EV(r)));++i<o;)for(var u=0,c=t[i],l=r?r(c):c;(u=n(s,l,u,a))>-1;)s!==e&&fy.call(s,u,1),fy.call(e,u,1);return e}var TV=OV,xV=TV;function DV(e,t){return e&&e.length&&t&&t.length?xV(e,t):e}var PV=DV,RV=Zi;function NV(e){return typeof e=="function"?e:RV}var kV=NV,MV=fg,FV=Iv,jV=kV,BV=Jt;function LV(e,t){var r=BV(e)?MV:FV;return r(e,jV(t))}var py=LV,GV=Bs,VV=Zl,WV=Jl,YV=In,UV=Jn,HV=Ls,XV=200;function zV(e,t,r,a){var n=-1,i=VV,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;r&&(t=YV(t,UV(r))),a?(i=WV,o=!1):t.length>=XV&&(i=HV,o=!1,t=new GV(t));e:for(;++n<s;){var l=e[n],d=r==null?l:r(l);if(l=a||l!==0?l:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,a)||u.push(l)}return u}var ZV=zV,JV=ZV,qV=Qn,KV=ed,QV=qV(function(e,t){return KV(e)?JV(e,t):[]}),e3=QV;const t3=ud,r3=dy,hy=Ji,n3=Kl,a3=Ql,i3=e3;function o3(e){for(const t in e)my(e,t)&&d3(e[t])&&delete e[t];return e}const s3=e=>n3(r3(e.map(cd))),u3=(e,t)=>e.map(r=>r&&r[t]),my=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),cd=e=>hy(e)||Array.isArray(e)?Object.keys(e):[],c3=e=>e!==void 0,l3=e=>hy(e)||e===!0||e===!1,d3=e=>!cd(e).length&&e!==!1&&e!==!0;var gy={allUniqueKeys:s3,deleteUndefinedProps:o3,getValues:u3,has:my,isSchema:l3,keys:cd,notUndefined:c3,uniqWith:a3,withoutArr:(e,...t)=>i3.apply(null,[e].concat(t3(t)))};const f3=od,p3=py,{allUniqueKeys:h3,deleteUndefinedProps:m3,getValues:g3,keys:qi,notUndefined:v3,uniqWith:y3,withoutArr:vy}=gy;function b3(e){p3(e,function(t,r){t===!1&&delete e[r]})}function yy(e,t){return h3(e).reduce(function(a,n){const i=g3(e,n),o=y3(i.filter(v3),f3);return a[n]=t(o,n),a},{})}var w3={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,a){a.ignoreAdditionalProperties||(e.forEach(function(i){const o=e.filter(l=>l!==i),s=qi(i.properties),c=qi(i.patternProperties).map(l=>new RegExp(l));o.forEach(function(l){const d=qi(l.properties),f=d.filter(m=>c.some(v=>v.test(m)));vy(d,s,f).forEach(function(m){l.properties[m]=r.properties([l.properties[m],i.additionalProperties],m)})})}),e.forEach(function(i){const o=e.filter(u=>u!==i),s=qi(i.patternProperties);i.additionalProperties===!1&&o.forEach(function(u){const c=qi(u.patternProperties);vy(c,s).forEach(d=>delete u.patternProperties[d])})}));const n={additionalProperties:r.additionalProperties(e.map(i=>i.additionalProperties)),patternProperties:yy(e.map(i=>i.patternProperties),r.patternProperties),properties:yy(e.map(i=>i.properties),r.properties)};return n.additionalProperties===!1&&b3(n.properties),m3(n)}};const C3=od,S3=py,{allUniqueKeys:$3,deleteUndefinedProps:I3,has:E3,isSchema:by,notUndefined:wy,uniqWith:_3}=gy;function A3(e){S3(e,function(t,r){t===!1&&e.splice(r,1)})}function O3(e,t){return e.map(function(r){if(r)if(Array.isArray(r.items)){const a=r.items[t];if(by(a))return a;if(E3(r,"additionalItems"))return r.additionalItems}else return r.items})}function T3(e){return e.map(function(t){if(t)return Array.isArray(t.items)?t.additionalItems:t.items})}function x3(e,t,r){return $3(r).reduce(function(n,i){const o=O3(e,i),s=_3(o.filter(wy),C3);return n[i]=t(s,i),n},[])}var D3={keywords:["items","additionalItems"],resolver(e,t,r){const a=e.map(s=>s.items),n=a.filter(wy),i={};n.every(by)?i.items=r.items(a):i.items=x3(e,r.items,a);let o;return n.every(Array.isArray)?o=e.map(s=>s.additionalItems):n.some(Array.isArray)&&(o=T3(e)),o&&(i.additionalItems=r.additionalItems(o)),i.additionalItems===!1&&Array.isArray(i.items)&&A3(i.items),I3(i)}};const Cy=mM,Zs=od,P3=yG,R3=uV,Sy=ud,ld=dy,N3=bV,k3=Lv,dd=lv,Ha=Ji,M3=PV,$y=Pv,fd=Kl,Xa=Ql,Iy=w3,Ey=D3,Js=(e,t)=>e.indexOf(t)!==-1,F3=e=>Ha(e)||e===!0||e===!1,j3=e=>e===!1,_y=e=>e===!0,qs=(e,t,r)=>r(e),Ay=e=>$y(fd(ld(e))),Ks=e=>e!==void 0,Oy=e=>fd(ld(e.map(Y3))),za=e=>e[0],B3=e=>Ay(e),Ki=e=>Math.max.apply(Math,e),Qi=e=>Math.min.apply(Math,e),L3=e=>e.some(_y),G3=e=>Xa(Sy(e),dd);function V3(e){return function(t,r){return Zs({[e]:t},{[e]:r})}}function Ty(e){let{allOf:t=[],...r}=e;return r=Ha(e)?r:e,[r,...t.map(Ty)]}function xy(e,t){return e.map(r=>r&&r[t])}function W3(e,t){return e.map(function(r,a){try{return t(r,a)}catch{return}}).filter(Ks)}function Y3(e){return Ha(e)||Array.isArray(e)?Object.keys(e):[]}function pd(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),a=e.slice(1);return t.length?pd(a,Sy(t.map(n=>r.map(i=>[i].concat(n))))):pd(a,r.map(n=>n))}function Dy(e,t){let r;try{r=e.map(function(a){return JSON.stringify(a,null,2)}).join(`
|
|
30
|
+
<%s key={someKey} {...props} />`,Ih,$a,Eie,$a),y$[$a+Ih]=!0}}return x===a?wie(vt):bie(vt),vt}}function Cie(x,X,ae){return b$(x,X,ae,!0)}function Sie(x,X,ae){return b$(x,X,ae,!1)}var $ie=Sie,Iie=Cie;Ni.Fragment=a,Ni.jsx=$ie,Ni.jsxs=Iie}()),Ni}process.env.NODE_ENV==="production"?Lc.exports=S$():Lc.exports=$$();var $=Lc.exports;function Pe(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function xh(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Pe(e.additionalItems)}function Ln(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Gn="__additional_property",Gc="additionalProperties",Ia="allOf",fr="anyOf",tn="const",I$="default",as="dependencies",E$="enum",zt="__errors",rn="$id",_$="if",pr="items",A$="_$junk_option_schema_id$_",is="$name",Zt="oneOf",at="properties",O$="required",os="submitButtonOptions",ct="$ref",Vc="__rjsf_additionalProperties",Dh="__rjsf_rootSchema",T$="ui:field",Wc="ui:widget",ki="ui:options",x$="ui:globalOptions";function fe(e={},t={}){return Object.keys(e).filter(r=>r.indexOf("ui:")===0).reduce((r,a)=>{const n=e[a];return a===Wc&&Pe(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===ki&&Pe(n)?{...r,...n}:{...r,[a.substring(3)]:n}},{...t})}function Ph(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:a=!0}=fe(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Rh=typeof global=="object"&&global&&global.Object===Object&&global,D$=typeof self=="object"&&self&&self.Object===Object&&self,Er=Rh||D$||Function("return this")(),rr=Er.Symbol,Nh=Object.prototype,P$=Nh.hasOwnProperty,R$=Nh.toString,Mi=rr?rr.toStringTag:void 0;function N$(e){var t=P$.call(e,Mi),r=e[Mi];try{e[Mi]=void 0;var a=!0}catch{}var n=R$.call(e);return a&&(t?e[Mi]=r:delete e[Mi]),n}var k$=Object.prototype,M$=k$.toString;function F$(e){return M$.call(e)}var j$="[object Null]",B$="[object Undefined]",kh=rr?rr.toStringTag:void 0;function nn(e){return e==null?e===void 0?B$:j$:kh&&kh in Object(e)?N$(e):F$(e)}function Mh(e,t){return function(r){return e(t(r))}}var ss=Mh(Object.getPrototypeOf,Object);function nr(e){return e!=null&&typeof e=="object"}var L$="[object Object]",G$=Function.prototype,V$=Object.prototype,Fh=G$.toString,W$=V$.hasOwnProperty,Y$=Fh.call(Object);function Vn(e){if(!nr(e)||nn(e)!=L$)return!1;var t=ss(e);if(t===null)return!0;var r=W$.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Fh.call(r)==Y$}function us(e){const t={[zt]:[],addError(r){this[zt].push(r)}};if(Array.isArray(e))return e.reduce((r,a,n)=>({...r,[n]:us(a)}),t);if(Vn(e)){const r=e;return Object.keys(r).reduce((a,n)=>({...a,[n]:us(r[n])}),t)}return t}function U$(){this.__data__=[],this.size=0}function Fi(e,t){return e===t||e!==e&&t!==t}function cs(e,t){for(var r=e.length;r--;)if(Fi(e[r][0],t))return r;return-1}var H$=Array.prototype,X$=H$.splice;function z$(e){var t=this.__data__,r=cs(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():X$.call(t,r,1),--this.size,!0}function Z$(e){var t=this.__data__,r=cs(t,e);return r<0?void 0:t[r][1]}function J$(e){return cs(this.__data__,e)>-1}function q$(e,t){var r=this.__data__,a=cs(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function an(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}an.prototype.clear=U$,an.prototype.delete=z$,an.prototype.get=Z$,an.prototype.has=J$,an.prototype.set=q$;function K$(){this.__data__=new an,this.size=0}function Q$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function eI(e){return this.__data__.get(e)}function tI(e){return this.__data__.has(e)}function qe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rI="[object AsyncFunction]",nI="[object Function]",aI="[object GeneratorFunction]",iI="[object Proxy]";function ls(e){if(!qe(e))return!1;var t=nn(e);return t==nI||t==aI||t==rI||t==iI}var Yc=Er["__core-js_shared__"],jh=function(){var e=/[^.]+$/.exec(Yc&&Yc.keys&&Yc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oI(e){return!!jh&&jh in e}var sI=Function.prototype,uI=sI.toString;function Wn(e){if(e!=null){try{return uI.call(e)}catch{}try{return e+""}catch{}}return""}var cI=/[\\^$.*+?()[\]{}|]/g,lI=/^\[object .+?Constructor\]$/,dI=Function.prototype,fI=Object.prototype,pI=dI.toString,hI=fI.hasOwnProperty,mI=RegExp("^"+pI.call(hI).replace(cI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gI(e){if(!qe(e)||oI(e))return!1;var t=ls(e)?mI:lI;return t.test(Wn(e))}function vI(e,t){return e==null?void 0:e[t]}function Yn(e,t){var r=vI(e,t);return gI(r)?r:void 0}var ji=Yn(Er,"Map"),Bi=Yn(Object,"create");function yI(){this.__data__=Bi?Bi(null):{},this.size=0}function bI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wI="__lodash_hash_undefined__",CI=Object.prototype,SI=CI.hasOwnProperty;function $I(e){var t=this.__data__;if(Bi){var r=t[e];return r===wI?void 0:r}return SI.call(t,e)?t[e]:void 0}var II=Object.prototype,EI=II.hasOwnProperty;function _I(e){var t=this.__data__;return Bi?t[e]!==void 0:EI.call(t,e)}var AI="__lodash_hash_undefined__";function OI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bi&&t===void 0?AI:t,this}function Un(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Un.prototype.clear=yI,Un.prototype.delete=bI,Un.prototype.get=$I,Un.prototype.has=_I,Un.prototype.set=OI;function TI(){this.size=0,this.__data__={hash:new Un,map:new(ji||an),string:new Un}}function xI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ds(e,t){var r=e.__data__;return xI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function DI(e){var t=ds(this,e).delete(e);return this.size-=t?1:0,t}function PI(e){return ds(this,e).get(e)}function RI(e){return ds(this,e).has(e)}function NI(e,t){var r=ds(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function on(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}on.prototype.clear=TI,on.prototype.delete=DI,on.prototype.get=PI,on.prototype.has=RI,on.prototype.set=NI;var kI=200;function MI(e,t){var r=this.__data__;if(r instanceof an){var a=r.__data__;if(!ji||a.length<kI-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new on(a)}return r.set(e,t),this.size=r.size,this}function hr(e){var t=this.__data__=new an(e);this.size=t.size}hr.prototype.clear=K$,hr.prototype.delete=Q$,hr.prototype.get=eI,hr.prototype.has=tI,hr.prototype.set=MI;var FI="__lodash_hash_undefined__";function jI(e){return this.__data__.set(e,FI),this}function BI(e){return this.__data__.has(e)}function Ea(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new on;++t<r;)this.add(e[t])}Ea.prototype.add=Ea.prototype.push=jI,Ea.prototype.has=BI;function LI(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function Uc(e,t){return e.has(t)}var GI=1,VI=2;function Bh(e,t,r,a,n,i){var o=r&GI,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=r&VI?new Ea:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],v=t[d];if(a)var g=o?a(v,m,d,t,e,i):a(m,v,d,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!LI(t,function(h,y){if(!Uc(p,y)&&(m===h||n(m,h,r,a,i)))return p.push(y)})){f=!1;break}}else if(!(m===v||n(m,v,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var fs=Er.Uint8Array;function WI(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function Hc(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var YI=1,UI=2,HI="[object Boolean]",XI="[object Date]",zI="[object Error]",ZI="[object Map]",JI="[object Number]",qI="[object RegExp]",KI="[object Set]",QI="[object String]",eE="[object Symbol]",tE="[object ArrayBuffer]",rE="[object DataView]",Lh=rr?rr.prototype:void 0,Xc=Lh?Lh.valueOf:void 0;function nE(e,t,r,a,n,i,o){switch(r){case rE:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tE:return!(e.byteLength!=t.byteLength||!i(new fs(e),new fs(t)));case HI:case XI:case JI:return Fi(+e,+t);case zI:return e.name==t.name&&e.message==t.message;case qI:case QI:return e==t+"";case ZI:var s=WI;case KI:var u=a&YI;if(s||(s=Hc),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;a|=UI,o.set(e,t);var l=Bh(s(e),s(t),a,n,i,o);return o.delete(e),l;case eE:if(Xc)return Xc.call(e)==Xc.call(t)}return!1}function zc(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var yt=Array.isArray;function Gh(e,t,r){var a=t(e);return yt(e)?a:zc(a,r(e))}function aE(e,t){for(var r=-1,a=e==null?0:e.length,n=0,i=[];++r<a;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}function Vh(){return[]}var iE=Object.prototype,oE=iE.propertyIsEnumerable,Wh=Object.getOwnPropertySymbols,Zc=Wh?function(e){return e==null?[]:(e=Object(e),aE(Wh(e),function(t){return oE.call(e,t)}))}:Vh;function Yh(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var sE="[object Arguments]";function Uh(e){return nr(e)&&nn(e)==sE}var Hh=Object.prototype,uE=Hh.hasOwnProperty,cE=Hh.propertyIsEnumerable,_a=Uh(function(){return arguments}())?Uh:function(e){return nr(e)&&uE.call(e,"callee")&&!cE.call(e,"callee")};function lE(){return!1}var Xh=typeof Re=="object"&&Re&&!Re.nodeType&&Re,zh=Xh&&typeof module=="object"&&module&&!module.nodeType&&module,dE=zh&&zh.exports===Xh,Zh=dE?Er.Buffer:void 0,fE=Zh?Zh.isBuffer:void 0,Hn=fE||lE,pE=9007199254740991,hE=/^(?:0|[1-9]\d*)$/;function ps(e,t){var r=typeof e;return t=t??pE,!!t&&(r=="number"||r!="symbol"&&hE.test(e))&&e>-1&&e%1==0&&e<t}var mE=9007199254740991;function Jc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mE}var gE="[object Arguments]",vE="[object Array]",yE="[object Boolean]",bE="[object Date]",wE="[object Error]",CE="[object Function]",SE="[object Map]",$E="[object Number]",IE="[object Object]",EE="[object RegExp]",_E="[object Set]",AE="[object String]",OE="[object WeakMap]",TE="[object ArrayBuffer]",xE="[object DataView]",DE="[object Float32Array]",PE="[object Float64Array]",RE="[object Int8Array]",NE="[object Int16Array]",kE="[object Int32Array]",ME="[object Uint8Array]",FE="[object Uint8ClampedArray]",jE="[object Uint16Array]",BE="[object Uint32Array]",tt={};tt[DE]=tt[PE]=tt[RE]=tt[NE]=tt[kE]=tt[ME]=tt[FE]=tt[jE]=tt[BE]=!0,tt[gE]=tt[vE]=tt[TE]=tt[yE]=tt[xE]=tt[bE]=tt[wE]=tt[CE]=tt[SE]=tt[$E]=tt[IE]=tt[EE]=tt[_E]=tt[AE]=tt[OE]=!1;function LE(e){return nr(e)&&Jc(e.length)&&!!tt[nn(e)]}function qc(e){return function(t){return e(t)}}var Jh=typeof Re=="object"&&Re&&!Re.nodeType&&Re,Li=Jh&&typeof module=="object"&&module&&!module.nodeType&&module,GE=Li&&Li.exports===Jh,Kc=GE&&Rh.process,Aa=function(){try{var e=Li&&Li.require&&Li.require("util").types;return e||Kc&&Kc.binding&&Kc.binding("util")}catch{}}(),qh=Aa&&Aa.isTypedArray,Gi=qh?qc(qh):LE,VE=Object.prototype,WE=VE.hasOwnProperty;function Kh(e,t){var r=yt(e),a=!r&&_a(e),n=!r&&!a&&Hn(e),i=!r&&!a&&!n&&Gi(e),o=r||a||n||i,s=o?Yh(e.length,String):[],u=s.length;for(var c in e)(t||WE.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ps(c,u)))&&s.push(c);return s}var YE=Object.prototype;function hs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||YE;return e===r}var UE=Mh(Object.keys,Object),HE=Object.prototype,XE=HE.hasOwnProperty;function Qh(e){if(!hs(e))return UE(e);var t=[];for(var r in Object(e))XE.call(e,r)&&r!="constructor"&&t.push(r);return t}function Oa(e){return e!=null&&Jc(e.length)&&!ls(e)}function _r(e){return Oa(e)?Kh(e):Qh(e)}function Qc(e){return Gh(e,_r,Zc)}var zE=1,ZE=Object.prototype,JE=ZE.hasOwnProperty;function qE(e,t,r,a,n,i){var o=r&zE,s=Qc(e),u=s.length,c=Qc(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:JE.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++d<u;){f=s[d];var h=e[f],y=t[f];if(a)var b=o?a(y,h,f,t,e,i):a(h,y,f,e,t,i);if(!(b===void 0?h===y||n(h,y,r,a,i):b)){v=!1;break}g||(g=f=="constructor")}if(v&&!g){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(e),i.delete(t),v}var el=Yn(Er,"DataView"),tl=Yn(Er,"Promise"),Ta=Yn(Er,"Set"),rl=Yn(Er,"WeakMap"),em="[object Map]",KE="[object Object]",tm="[object Promise]",rm="[object Set]",nm="[object WeakMap]",am="[object DataView]",QE=Wn(el),e_=Wn(ji),t_=Wn(tl),r_=Wn(Ta),n_=Wn(rl),ar=nn;(el&&ar(new el(new ArrayBuffer(1)))!=am||ji&&ar(new ji)!=em||tl&&ar(tl.resolve())!=tm||Ta&&ar(new Ta)!=rm||rl&&ar(new rl)!=nm)&&(ar=function(e){var t=nn(e),r=t==KE?e.constructor:void 0,a=r?Wn(r):"";if(a)switch(a){case QE:return am;case e_:return em;case t_:return tm;case r_:return rm;case n_:return nm}return t});var a_=1,im="[object Arguments]",om="[object Array]",ms="[object Object]",i_=Object.prototype,sm=i_.hasOwnProperty;function o_(e,t,r,a,n,i){var o=yt(e),s=yt(t),u=o?om:ar(e),c=s?om:ar(t);u=u==im?ms:u,c=c==im?ms:c;var l=u==ms,d=c==ms,f=u==c;if(f&&Hn(e)){if(!Hn(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new hr),o||Gi(e)?Bh(e,t,r,a,n,i):nE(e,t,u,r,a,n,i);if(!(r&a_)){var p=l&&sm.call(e,"__wrapped__"),m=d&&sm.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,g=m?t.value():t;return i||(i=new hr),n(v,g,r,a,i)}}return f?(i||(i=new hr),qE(e,t,r,a,n,i)):!1}function gs(e,t,r,a,n){return e===t?!0:e==null||t==null||!nr(e)&&!nr(t)?e!==e&&t!==t:o_(e,t,r,a,gs,n)}function s_(e,t,r){r=typeof r=="function"?r:void 0;var a=r?r(e,t):void 0;return a===void 0?gs(e,t,void 0,r):!!a}function Ue(e,t){return s_(e,t,(r,a)=>{if(typeof r=="function"&&typeof a=="function")return!0})}var u_="[object Symbol]";function Vi(e){return typeof e=="symbol"||nr(e)&&nn(e)==u_}var c_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l_=/^\w*$/;function nl(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Vi(e)?!0:l_.test(e)||!c_.test(e)||t!=null&&e in Object(t)}var d_="Expected a function";function al(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(d_);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=e.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(al.Cache||on),r}al.Cache=on;var f_=500;function p_(e){var t=al(e,function(a){return r.size===f_&&r.clear(),a}),r=t.cache;return t}var h_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m_=/\\(\\)?/g,um=p_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h_,function(r,a,n,i){t.push(n?i.replace(m_,"$1"):a||r)}),t});function vs(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var cm=rr?rr.prototype:void 0,lm=cm?cm.toString:void 0;function dm(e){if(typeof e=="string")return e;if(yt(e))return vs(e,dm)+"";if(Vi(e))return lm?lm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function il(e){return e==null?"":dm(e)}function xa(e,t){return yt(e)?e:nl(e,t)?[e]:um(il(e))}function Xn(e){if(typeof e=="string"||Vi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ys(e,t){t=xa(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Xn(t[r++])];return r&&r==a?e:void 0}function ue(e,t,r){var a=e==null?void 0:ys(e,t);return a===void 0?r:a}var g_="[object Map]",v_="[object Set]",y_=Object.prototype,b_=y_.hasOwnProperty;function Da(e){if(e==null)return!0;if(Oa(e)&&(yt(e)||typeof e=="string"||typeof e.splice=="function"||Hn(e)||Gi(e)||_a(e)))return!e.length;var t=ar(e);if(t==g_||t==v_)return!e.size;if(hs(e))return!Qh(e).length;for(var r in e)if(b_.call(e,r))return!1;return!0}var bs={},w_=/~/,C_=/~[01]/g;function S_(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function fm(e){return w_.test(e)?e.replace(C_,S_):e}function $_(e,t,r){for(var a,n,i=1,o=t.length;i<o;){if(t[i]==="constructor"||t[i]==="prototype"||t[i]==="__proto__")return e;if(a=fm(t[i++]),n=o>i,typeof e[a]>"u"&&(Array.isArray(e)&&a==="-"&&(a=e.length),n&&(t[i]!==""&&t[i]<1/0||t[i]==="-"?e[a]=[]:e[a]={})),!n)break;e=e[a]}var s=e[a];return r===void 0?delete e[a]:e[a]=r,s}function ol(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function pm(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=ol(t);var r=t.length;if(r===1)return e;for(var a=1;a<r;){if(e=e[fm(t[a++])],r===a)return e;if(typeof e!="object"||e===null)return}}function hm(e,t,r){if(typeof e!="object")throw new Error("Invalid input object.");if(t=ol(t),t.length===0)throw new Error("Invalid JSON pointer for set.");return $_(e,t,r)}function I_(e){var t=ol(e);return{get:function(r){return pm(r,t)},set:function(r,a){return hm(r,t,a)}}}bs.get=pm,bs.set=hm,bs.compile=I_;function sl(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var ws=function(){try{var e=Yn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function ul(e,t,r){t=="__proto__"&&ws?ws(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var E_=Object.prototype,__=E_.hasOwnProperty;function cl(e,t,r){var a=e[t];(!(__.call(e,t)&&Fi(a,r))||r===void 0&&!(t in e))&&ul(e,t,r)}function Pa(e,t,r,a){var n=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=void 0;u===void 0&&(u=e[s]),n?ul(r,s,u):cl(r,s,u)}return r}function A_(e,t){return e&&Pa(t,_r(t),e)}function O_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var T_=Object.prototype,x_=T_.hasOwnProperty;function D_(e){if(!qe(e))return O_(e);var t=hs(e),r=[];for(var a in e)a=="constructor"&&(t||!x_.call(e,a))||r.push(a);return r}function Wi(e){return Oa(e)?Kh(e,!0):D_(e)}function P_(e,t){return e&&Pa(t,Wi(t),e)}var mm=typeof Re=="object"&&Re&&!Re.nodeType&&Re,gm=mm&&typeof module=="object"&&module&&!module.nodeType&&module,R_=gm&&gm.exports===mm,vm=R_?Er.Buffer:void 0,ym=vm?vm.allocUnsafe:void 0;function bm(e,t){if(t)return e.slice();var r=e.length,a=ym?ym(r):new e.constructor(r);return e.copy(a),a}function ll(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function N_(e,t){return Pa(e,Zc(e),t)}var k_=Object.getOwnPropertySymbols,wm=k_?function(e){for(var t=[];e;)zc(t,Zc(e)),e=ss(e);return t}:Vh;function M_(e,t){return Pa(e,wm(e),t)}function dl(e){return Gh(e,Wi,wm)}var F_=Object.prototype,j_=F_.hasOwnProperty;function B_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&j_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function fl(e){var t=new e.constructor(e.byteLength);return new fs(t).set(new fs(e)),t}function L_(e,t){var r=t?fl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var G_=/\w*$/;function V_(e){var t=new e.constructor(e.source,G_.exec(e));return t.lastIndex=e.lastIndex,t}var Cm=rr?rr.prototype:void 0,Sm=Cm?Cm.valueOf:void 0;function W_(e){return Sm?Object(Sm.call(e)):{}}function $m(e,t){var r=t?fl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Y_="[object Boolean]",U_="[object Date]",H_="[object Map]",X_="[object Number]",z_="[object RegExp]",Z_="[object Set]",J_="[object String]",q_="[object Symbol]",K_="[object ArrayBuffer]",Q_="[object DataView]",eA="[object Float32Array]",tA="[object Float64Array]",rA="[object Int8Array]",nA="[object Int16Array]",aA="[object Int32Array]",iA="[object Uint8Array]",oA="[object Uint8ClampedArray]",sA="[object Uint16Array]",uA="[object Uint32Array]";function cA(e,t,r){var a=e.constructor;switch(t){case K_:return fl(e);case Y_:case U_:return new a(+e);case Q_:return L_(e,r);case eA:case tA:case rA:case nA:case aA:case iA:case oA:case sA:case uA:return $m(e,r);case H_:return new a;case X_:case J_:return new a(e);case z_:return V_(e);case Z_:return new a;case q_:return W_(e)}}var Im=Object.create,Em=function(){function e(){}return function(t){if(!qe(t))return{};if(Im)return Im(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function _m(e){return typeof e.constructor=="function"&&!hs(e)?Em(ss(e)):{}}var lA="[object Map]";function dA(e){return nr(e)&&ar(e)==lA}var Am=Aa&&Aa.isMap,fA=Am?qc(Am):dA,pA="[object Set]";function hA(e){return nr(e)&&ar(e)==pA}var Om=Aa&&Aa.isSet,mA=Om?qc(Om):hA,gA=1,vA=2,yA=4,Tm="[object Arguments]",bA="[object Array]",wA="[object Boolean]",CA="[object Date]",SA="[object Error]",xm="[object Function]",$A="[object GeneratorFunction]",IA="[object Map]",EA="[object Number]",Dm="[object Object]",_A="[object RegExp]",AA="[object Set]",OA="[object String]",TA="[object Symbol]",xA="[object WeakMap]",DA="[object ArrayBuffer]",PA="[object DataView]",RA="[object Float32Array]",NA="[object Float64Array]",kA="[object Int8Array]",MA="[object Int16Array]",FA="[object Int32Array]",jA="[object Uint8Array]",BA="[object Uint8ClampedArray]",LA="[object Uint16Array]",GA="[object Uint32Array]",Ke={};Ke[Tm]=Ke[bA]=Ke[DA]=Ke[PA]=Ke[wA]=Ke[CA]=Ke[RA]=Ke[NA]=Ke[kA]=Ke[MA]=Ke[FA]=Ke[IA]=Ke[EA]=Ke[Dm]=Ke[_A]=Ke[AA]=Ke[OA]=Ke[TA]=Ke[jA]=Ke[BA]=Ke[LA]=Ke[GA]=!0,Ke[SA]=Ke[xm]=Ke[xA]=!1;function Yi(e,t,r,a,n,i){var o,s=t&gA,u=t&vA,c=t&yA;if(r&&(o=n?r(e,a,n,i):r(e)),o!==void 0)return o;if(!qe(e))return e;var l=yt(e);if(l){if(o=B_(e),!s)return ll(e,o)}else{var d=ar(e),f=d==xm||d==$A;if(Hn(e))return bm(e,s);if(d==Dm||d==Tm||f&&!n){if(o=u||f?{}:_m(e),!s)return u?M_(e,P_(o,e)):N_(e,A_(o,e))}else{if(!Ke[d])return n?e:{};o=cA(e,d,s)}}i||(i=new hr);var p=i.get(e);if(p)return p;i.set(e,o),mA(e)?e.forEach(function(g){o.add(Yi(g,t,r,g,e,i))}):fA(e)&&e.forEach(function(g,h){o.set(h,Yi(g,t,r,h,e,i))});var m=c?u?dl:Qc:u?Wi:_r,v=l?void 0:m(e);return sl(v||e,function(g,h){v&&(h=g,g=e[h]),cl(o,h,Yi(g,t,r,h,e,i))}),o}function VA(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function WA(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++a<n;)i[a]=e[a+t];return i}function YA(e,t){return t.length<2?e:ys(e,WA(t,0,-1))}function Pm(e,t){return t=xa(t,e),e=YA(e,t),e==null||delete e[Xn(VA(t))]}function UA(e){return Vn(e)?void 0:e}var Rm=rr?rr.isConcatSpreadable:void 0;function HA(e){return yt(e)||_a(e)||!!(Rm&&e&&e[Rm])}function Ui(e,t,r,a,n){var i=-1,o=e.length;for(r||(r=HA),n||(n=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?Ui(s,t-1,r,a,n):zc(n,s):a||(n[n.length]=s)}return n}function XA(e){var t=e==null?0:e.length;return t?Ui(e,1):[]}function zA(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)}var Nm=Math.max;function km(e,t,r){return t=Nm(t===void 0?e.length-1:t,0),function(){for(var a=arguments,n=-1,i=Nm(a.length-t,0),o=Array(i);++n<i;)o[n]=a[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=a[n];return s[t]=r(o),zA(e,this,s)}}function ZA(e){return function(){return e}}function Cs(e){return e}var JA=ws?function(e,t){return ws(e,"toString",{configurable:!0,enumerable:!1,value:ZA(t),writable:!0})}:Cs,qA=800,KA=16,QA=Date.now;function eO(e){var t=0,r=0;return function(){var a=QA(),n=KA-(a-r);if(r=a,n>0){if(++t>=qA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Mm=eO(JA);function Fm(e){return Mm(km(e,void 0,XA),e+"")}var tO=1,rO=2,nO=4,Ss=Fm(function(e,t){var r={};if(e==null)return r;var a=!1;t=vs(t,function(i){return i=xa(i,e),a||(a=i.length>1),i}),Pa(e,dl(e),r),a&&(r=Yi(r,tO|rO|nO,UA));for(var n=t.length;n--;)Pm(r,t[n]);return r});function pl(e,t){const r=t[e];return[Ss(t,[e]),r]}function jm(e,t={},r=[]){const a=e||"";let n;if(a.startsWith("#"))n=decodeURIComponent(a.substring(1));else throw new Error(`Could not find a definition for ${e}.`);const i=bs.get(t,n);if(i===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=i[ct];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[l,...d]=r,f=[...d,a,l].join(" -> ");throw new Error(`Definition for ${l} contains a circular reference through ${f}`)}const[s,u]=pl(ct,i),c=jm(u,t,[...r,a]);return Object.keys(s).length>0?{...s,...c}:c}return i}function Bm(e,t={}){return jm(e,t,[])}var aO=Object.prototype,iO=aO.hasOwnProperty;function oO(e,t){return e!=null&&iO.call(e,t)}function Lm(e,t,r){t=xa(t,e);for(var a=-1,n=t.length,i=!1;++a<n;){var o=Xn(t[a]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++a!=n?i:(n=e==null?0:e.length,!!n&&Jc(n)&&ps(o,n)&&(yt(e)||_a(e)))}function Nt(e,t){return e!=null&&Lm(e,t,oO)}var sO="[object Number]";function Gm(e){return typeof e=="number"||nr(e)&&nn(e)==sO}var uO="[object String]";function $s(e){return typeof e=="string"||!yt(e)&&nr(e)&&nn(e)==uO}function cO(e,t,r,a){var n=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r}function lO(e){return function(t,r,a){for(var n=-1,i=Object(t),o=a(t),s=o.length;s--;){var u=o[++n];if(r(i[u],u,i)===!1)break}return t}}var Vm=lO();function Wm(e,t){return e&&Vm(e,t,_r)}function dO(e,t){return function(r,a){if(r==null)return r;if(!Oa(r))return e(r,a);for(var n=r.length,i=-1,o=Object(r);++i<n&&a(o[i],i,o)!==!1;);return r}}var Ym=dO(Wm),fO=1,pO=2;function hO(e,t,r,a){var n=r.length,i=n;if(e==null)return!i;for(e=Object(e);n--;){var o=r[n];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++n<i;){o=r[n];var s=o[0],u=e[s],c=o[1];if(o[2]){if(u===void 0&&!(s in e))return!1}else{var l=new hr,d;if(!(d===void 0?gs(c,u,fO|pO,a,l):d))return!1}}return!0}function Um(e){return e===e&&!qe(e)}function mO(e){for(var t=_r(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,Um(n)]}return t}function Hm(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function gO(e){var t=mO(e);return t.length==1&&t[0][2]?Hm(t[0][0],t[0][1]):function(r){return r===e||hO(r,e,t)}}function vO(e,t){return e!=null&&t in Object(e)}function Xm(e,t){return e!=null&&Lm(e,t,vO)}var yO=1,bO=2;function wO(e,t){return nl(e)&&Um(t)?Hm(Xn(e),t):function(r){var a=ue(r,e);return a===void 0&&a===t?Xm(r,e):gs(t,a,yO|bO)}}function CO(e){return function(t){return t==null?void 0:t[e]}}function SO(e){return function(t){return ys(t,e)}}function $O(e){return nl(e)?CO(Xn(e)):SO(e)}function hl(e){return typeof e=="function"?e:e==null?Cs:typeof e=="object"?yt(e)?wO(e[0],e[1]):gO(e):$O(e)}function IO(e,t,r,a,n){return n(e,function(i,o,s){r=a?(a=!1,i):t(r,i,o,s)}),r}function EO(e,t,r){var a=yt(e)?cO:IO,n=arguments.length<3;return a(e,hl(t),r,n,Ym)}function zm(e){return typeof e=="function"?e:Cs}var _O=/\s/;function AO(e){for(var t=e.length;t--&&_O.test(e.charAt(t)););return t}var OO=/^\s+/;function TO(e){return e&&e.slice(0,AO(e)+1).replace(OO,"")}var Zm=NaN,xO=/^[-+]0x[0-9a-f]+$/i,DO=/^0b[01]+$/i,PO=/^0o[0-7]+$/i,RO=parseInt;function NO(e){if(typeof e=="number")return e;if(Vi(e))return Zm;if(qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=TO(e);var r=DO.test(e);return r||PO.test(e)?RO(e.slice(2),r?2:8):xO.test(e)?Zm:+e}var Jm=1/0,kO=17976931348623157e292;function MO(e){if(!e)return e===0?e:0;if(e=NO(e),e===Jm||e===-Jm){var t=e<0?-1:1;return t*kO}return e===e?e:0}function FO(e){var t=MO(e),r=t%1;return t===t?r?t-r:t:0}var jO=9007199254740991,ml=4294967295,BO=Math.min;function qm(e,t){if(e=FO(e),e<1||e>jO)return[];var r=ml,a=BO(e,ml);t=zm(t),e-=ml;for(var n=Yh(a,t);++r<e;)t(r);return n}function Km(e,t,r){var a;if(e&&r){const n=ue(e,r);if(n===void 0)return;for(let i=0;i<t.length;i++){const o=t[i],s=ue(o,[at,r],{});if(!(s.type==="object"||s.type==="array")&&(s.const===n||!((a=s.enum)===null||a===void 0)&&a.includes(n)))return i}}}function Qm(e,t,r,a,n){if(t===void 0)return 0;const i=Km(t,r,n);if(Gm(i))return i;for(let o=0;o<r.length;o++){const s=r[o];if(n&&Nt(s,[at,n])){const u=ue(t,n),c=ue(s,[at,n],{});if(e.isValid(c,u,a))return o}else if(s[at]){const u={anyOf:Object.keys(s[at]).map(l=>({required:[l]}))};let c;if(s.anyOf){const{...l}=s;l.allOf?l.allOf=l.allOf.slice():l.allOf=[],l.allOf.push(u),c=l}else c=Object.assign({},s,u);if(delete c.required,e.isValid(c,t,a))return o}else if(e.isValid(s,t,a))return o}return 0}function gl(e,t,r,a,n){return Qm(e,t,r,a,n)}function vl(e,t,r,a){if(!qe(e))return e;t=xa(t,e);for(var n=-1,i=t.length,o=i-1,s=e;s!=null&&++n<i;){var u=Xn(t[n]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(n!=o){var l=s[u];c=a?a(l,u,s):void 0,c===void 0&&(c=qe(l)?l:ps(t[n+1])?[]:{})}cl(s,u,c),s=s[u]}return e}function Et(e,t,r){return e==null?e:vl(e,t,r)}function LO(e,t,r){var a=yt(e),n=a||Hn(e)||Gi(e);if(t=hl(t),r==null){var i=e&&e.constructor;n?r=a?new i:[]:qe(e)?r=ls(i)?Em(ss(e)):{}:r={}}return(n?sl:Wm)(e,function(o,s,u){return t(r,o,s,u)}),r}function yl(e,t,r){(r!==void 0&&!Fi(e[t],r)||r===void 0&&!(t in e))&&ul(e,t,r)}function Is(e){return nr(e)&&Oa(e)}function bl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function GO(e){return Pa(e,Wi(e))}function VO(e,t,r,a,n,i,o){var s=bl(e,r),u=bl(t,r),c=o.get(u);if(c){yl(e,r,c);return}var l=i?i(s,u,r+"",e,t,o):void 0,d=l===void 0;if(d){var f=yt(u),p=!f&&Hn(u),m=!f&&!p&&Gi(u);l=u,f||p||m?yt(s)?l=s:Is(s)?l=ll(s):p?(d=!1,l=bm(u,!0)):m?(d=!1,l=$m(u,!0)):l=[]:Vn(u)||_a(u)?(l=s,_a(s)?l=GO(s):(!qe(s)||ls(s))&&(l=_m(u))):d=!1}d&&(o.set(u,l),n(l,u,a,i,o),o.delete(u)),yl(e,r,l)}function eg(e,t,r,a,n){e!==t&&Vm(t,function(i,o){if(n||(n=new hr),qe(i))VO(e,t,o,r,eg,a,n);else{var s=a?a(bl(e,o),i,o+"",e,t,n):void 0;s===void 0&&(s=i),yl(e,o,s)}},Wi)}function wl(e,t){return Mm(km(e,t,Cs),e+"")}function WO(e,t,r){if(!qe(r))return!1;var a=typeof t;return(a=="number"?Oa(r)&&ps(t,r.length):a=="string"&&t in r)?Fi(r[t],e):!1}function YO(e){return wl(function(t,r){var a=-1,n=r.length,i=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,o&&WO(r[0],r[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++a<n;){var s=r[a];s&&e(t,s,a,i)}return t})}var UO=YO(function(e,t,r){eg(e,t,r)}),HO=1/0;function XO(e){var t=e==null?0:e.length;return t?Ui(e,HO):[]}function zO(e,t,r,a){for(var n=e.length,i=r+-1;++i<n;)if(t(e[i],i,e))return i;return-1}function ZO(e){return e!==e}function JO(e,t,r){for(var a=r-1,n=e.length;++a<n;)if(e[a]===t)return a;return-1}function qO(e,t,r){return t===t?JO(e,t,r):zO(e,ZO,r)}function tg(e,t){var r=e==null?0:e.length;return!!r&&qO(e,t,0)>-1}function KO(){}var QO=1/0,eT=Ta&&1/Hc(new Ta([,-0]))[1]==QO?function(e){return new Ta(e)}:KO,tT=200;function rg(e,t,r){var a=-1,n=tg,i=e.length,o=!0,s=[],u=s;if(i>=tT){var c=eT(e);if(c)return Hc(c);o=!1,n=Uc,u=new Ea}else u=s;e:for(;++a<i;){var l=e[a],d=l;if(l=l!==0?l:0,o&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;s.push(l)}else n(u,d,r)||(u!==s&&u.push(d),s.push(l))}return s}function rT(e){return e&&e.length?rg(e):[]}function nT(){this.__data__=[],this.size=0}var aT=nT;function iT(e,t){return e===t||e!==e&&t!==t}var Ra=iT,oT=Ra;function sT(e,t){for(var r=e.length;r--;)if(oT(e[r][0],t))return r;return-1}var Es=sT,uT=Es,cT=Array.prototype,lT=cT.splice;function dT(e){var t=this.__data__,r=uT(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():lT.call(t,r,1),--this.size,!0}var fT=dT,pT=Es;function hT(e){var t=this.__data__,r=pT(t,e);return r<0?void 0:t[r][1]}var mT=hT,gT=Es;function vT(e){return gT(this.__data__,e)>-1}var yT=vT,bT=Es;function wT(e,t){var r=this.__data__,a=bT(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var CT=wT,ST=aT,$T=fT,IT=mT,ET=yT,_T=CT;function Na(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Na.prototype.clear=ST,Na.prototype.delete=$T,Na.prototype.get=IT,Na.prototype.has=ET,Na.prototype.set=_T;var _s=Na,AT=_s;function OT(){this.__data__=new AT,this.size=0}var TT=OT;function xT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var DT=xT;function PT(e){return this.__data__.get(e)}var RT=PT;function NT(e){return this.__data__.has(e)}var kT=NT,MT=typeof ns=="object"&&ns&&ns.Object===Object&&ns,ng=MT,FT=ng,jT=typeof self=="object"&&self&&self.Object===Object&&self,BT=FT||jT||Function("return this")(),Ar=BT,LT=Ar,GT=LT.Symbol,ka=GT,ag=ka,ig=Object.prototype,VT=ig.hasOwnProperty,WT=ig.toString,Hi=ag?ag.toStringTag:void 0;function YT(e){var t=VT.call(e,Hi),r=e[Hi];try{e[Hi]=void 0;var a=!0}catch{}var n=WT.call(e);return a&&(t?e[Hi]=r:delete e[Hi]),n}var UT=YT,HT=Object.prototype,XT=HT.toString;function zT(e){return XT.call(e)}var ZT=zT,og=ka,JT=UT,qT=ZT,KT="[object Null]",QT="[object Undefined]",sg=og?og.toStringTag:void 0;function ex(e){return e==null?e===void 0?QT:KT:sg&&sg in Object(e)?JT(e):qT(e)}var zn=ex;function tx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ir=tx;const $n=Xt(ir);var rx=zn,nx=ir,ax="[object AsyncFunction]",ix="[object Function]",ox="[object GeneratorFunction]",sx="[object Proxy]";function ux(e){if(!nx(e))return!1;var t=rx(e);return t==ix||t==ox||t==ax||t==sx}var Cl=ux,cx=Ar,lx=cx["__core-js_shared__"],dx=lx,Sl=dx,ug=function(){var e=/[^.]+$/.exec(Sl&&Sl.keys&&Sl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fx(e){return!!ug&&ug in e}var px=fx,hx=Function.prototype,mx=hx.toString;function gx(e){if(e!=null){try{return mx.call(e)}catch{}try{return e+""}catch{}}return""}var cg=gx,vx=Cl,yx=px,bx=ir,wx=cg,Cx=/[\\^$.*+?()[\]{}|]/g,Sx=/^\[object .+?Constructor\]$/,$x=Function.prototype,Ix=Object.prototype,Ex=$x.toString,_x=Ix.hasOwnProperty,Ax=RegExp("^"+Ex.call(_x).replace(Cx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ox(e){if(!bx(e)||yx(e))return!1;var t=vx(e)?Ax:Sx;return t.test(wx(e))}var Tx=Ox;function xx(e,t){return e==null?void 0:e[t]}var Dx=xx,Px=Tx,Rx=Dx;function Nx(e,t){var r=Rx(e,t);return Px(r)?r:void 0}var Zn=Nx,kx=Zn,Mx=Ar,Fx=kx(Mx,"Map"),$l=Fx,jx=Zn,Bx=jx(Object,"create"),As=Bx,lg=As;function Lx(){this.__data__=lg?lg(null):{},this.size=0}var Gx=Lx;function Vx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Wx=Vx,Yx=As,Ux="__lodash_hash_undefined__",Hx=Object.prototype,Xx=Hx.hasOwnProperty;function zx(e){var t=this.__data__;if(Yx){var r=t[e];return r===Ux?void 0:r}return Xx.call(t,e)?t[e]:void 0}var Zx=zx,Jx=As,qx=Object.prototype,Kx=qx.hasOwnProperty;function Qx(e){var t=this.__data__;return Jx?t[e]!==void 0:Kx.call(t,e)}var eD=Qx,tD=As,rD="__lodash_hash_undefined__";function nD(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=tD&&t===void 0?rD:t,this}var aD=nD,iD=Gx,oD=Wx,sD=Zx,uD=eD,cD=aD;function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ma.prototype.clear=iD,Ma.prototype.delete=oD,Ma.prototype.get=sD,Ma.prototype.has=uD,Ma.prototype.set=cD;var lD=Ma,dg=lD,dD=_s,fD=$l;function pD(){this.size=0,this.__data__={hash:new dg,map:new(fD||dD),string:new dg}}var hD=pD;function mD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var gD=mD,vD=gD;function yD(e,t){var r=e.__data__;return vD(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Os=yD,bD=Os;function wD(e){var t=bD(this,e).delete(e);return this.size-=t?1:0,t}var CD=wD,SD=Os;function $D(e){return SD(this,e).get(e)}var ID=$D,ED=Os;function _D(e){return ED(this,e).has(e)}var AD=_D,OD=Os;function TD(e,t){var r=OD(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var xD=TD,DD=hD,PD=CD,RD=ID,ND=AD,kD=xD;function Fa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Fa.prototype.clear=DD,Fa.prototype.delete=PD,Fa.prototype.get=RD,Fa.prototype.has=ND,Fa.prototype.set=kD;var Il=Fa,MD=_s,FD=$l,jD=Il,BD=200;function LD(e,t){var r=this.__data__;if(r instanceof MD){var a=r.__data__;if(!FD||a.length<BD-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new jD(a)}return r.set(e,t),this.size=r.size,this}var GD=LD,VD=_s,WD=TT,YD=DT,UD=RT,HD=kT,XD=GD;function ja(e){var t=this.__data__=new VD(e);this.size=t.size}ja.prototype.clear=WD,ja.prototype.delete=YD,ja.prototype.get=UD,ja.prototype.has=HD,ja.prototype.set=XD;var Ts=ja;function zD(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var fg=zD,ZD=Zn,JD=function(){try{var e=ZD(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pg=JD,hg=pg;function qD(e,t,r){t=="__proto__"&&hg?hg(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var El=qD,KD=El,QD=Ra,eP=Object.prototype,tP=eP.hasOwnProperty;function rP(e,t,r){var a=e[t];(!(tP.call(e,t)&&QD(a,r))||r===void 0&&!(t in e))&&KD(e,t,r)}var _l=rP,nP=_l,aP=El;function iP(e,t,r,a){var n=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=a?a(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),n?aP(r,s,u):nP(r,s,u)}return r}var Ba=iP;function oP(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var sP=oP;function uP(e){return e!=null&&typeof e=="object"}var Or=uP,cP=zn,lP=Or,dP="[object Arguments]";function fP(e){return lP(e)&&cP(e)==dP}var pP=fP,mg=pP,hP=Or,gg=Object.prototype,mP=gg.hasOwnProperty,gP=gg.propertyIsEnumerable,vP=mg(function(){return arguments}())?mg:function(e){return hP(e)&&mP.call(e,"callee")&&!gP.call(e,"callee")},xs=vP,yP=Array.isArray,Jt=yP,Ds={exports:{}};function bP(){return!1}var wP=bP;Ds.exports,function(e,t){var r=Ar,a=wP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||a;e.exports=c}(Ds,Ds.exports);var Ps=Ds.exports,CP=9007199254740991,SP=/^(?:0|[1-9]\d*)$/;function $P(e,t){var r=typeof e;return t=t??CP,!!t&&(r=="number"||r!="symbol"&&SP.test(e))&&e>-1&&e%1==0&&e<t}var Rs=$P,IP=9007199254740991;function EP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=IP}var Al=EP,_P=zn,AP=Al,OP=Or,TP="[object Arguments]",xP="[object Array]",DP="[object Boolean]",PP="[object Date]",RP="[object Error]",NP="[object Function]",kP="[object Map]",MP="[object Number]",FP="[object Object]",jP="[object RegExp]",BP="[object Set]",LP="[object String]",GP="[object WeakMap]",VP="[object ArrayBuffer]",WP="[object DataView]",YP="[object Float32Array]",UP="[object Float64Array]",HP="[object Int8Array]",XP="[object Int16Array]",zP="[object Int32Array]",ZP="[object Uint8Array]",JP="[object Uint8ClampedArray]",qP="[object Uint16Array]",KP="[object Uint32Array]",rt={};rt[YP]=rt[UP]=rt[HP]=rt[XP]=rt[zP]=rt[ZP]=rt[JP]=rt[qP]=rt[KP]=!0,rt[TP]=rt[xP]=rt[VP]=rt[DP]=rt[WP]=rt[PP]=rt[RP]=rt[NP]=rt[kP]=rt[MP]=rt[FP]=rt[jP]=rt[BP]=rt[LP]=rt[GP]=!1;function QP(e){return OP(e)&&AP(e.length)&&!!rt[_P(e)]}var eR=QP;function tR(e){return function(t){return e(t)}}var Jn=tR,Ns={exports:{}};Ns.exports,function(e,t){var r=ng,a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,o=i&&r.process,s=function(){try{var u=n&&n.require&&n.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Ns,Ns.exports);var Ol=Ns.exports,rR=eR,nR=Jn,vg=Ol,yg=vg&&vg.isTypedArray,aR=yg?nR(yg):rR,Tl=aR,iR=sP,oR=xs,sR=Jt,uR=Ps,cR=Rs,lR=Tl,dR=Object.prototype,fR=dR.hasOwnProperty;function pR(e,t){var r=sR(e),a=!r&&oR(e),n=!r&&!a&&uR(e),i=!r&&!a&&!n&&lR(e),o=r||a||n||i,s=o?iR(e.length,String):[],u=s.length;for(var c in e)(t||fR.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cR(c,u)))&&s.push(c);return s}var bg=pR,hR=Object.prototype;function mR(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||hR;return e===r}var xl=mR;function gR(e,t){return function(r){return e(t(r))}}var wg=gR,vR=wg,yR=vR(Object.keys,Object),bR=yR,wR=xl,CR=bR,SR=Object.prototype,$R=SR.hasOwnProperty;function IR(e){if(!wR(e))return CR(e);var t=[];for(var r in Object(e))$R.call(e,r)&&r!="constructor"&&t.push(r);return t}var ER=IR,_R=Cl,AR=Al;function OR(e){return e!=null&&AR(e.length)&&!_R(e)}var La=OR,TR=bg,xR=ER,DR=La;function PR(e){return DR(e)?TR(e):xR(e)}var Xi=PR,RR=Ba,NR=Xi;function kR(e,t){return e&&RR(t,NR(t),e)}var MR=kR;function FR(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var jR=FR,BR=ir,LR=xl,GR=jR,VR=Object.prototype,WR=VR.hasOwnProperty;function YR(e){if(!BR(e))return GR(e);var t=LR(e),r=[];for(var a in e)a=="constructor"&&(t||!WR.call(e,a))||r.push(a);return r}var UR=YR,HR=bg,XR=UR,zR=La;function ZR(e){return zR(e)?HR(e,!0):XR(e)}var Ga=ZR,JR=Ba,qR=Ga;function KR(e,t){return e&&JR(t,qR(t),e)}var QR=KR,ks={exports:{}};ks.exports,function(e,t){var r=Ar,a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=u}(ks,ks.exports);var Cg=ks.exports;function eN(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var Dl=eN;function tN(e,t){for(var r=-1,a=e==null?0:e.length,n=0,i=[];++r<a;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}var rN=tN;function nN(){return[]}var Sg=nN,aN=rN,iN=Sg,oN=Object.prototype,sN=oN.propertyIsEnumerable,$g=Object.getOwnPropertySymbols,uN=$g?function(e){return e==null?[]:(e=Object(e),aN($g(e),function(t){return sN.call(e,t)}))}:iN,Pl=uN,cN=Ba,lN=Pl;function dN(e,t){return cN(e,lN(e),t)}var fN=dN;function pN(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var Rl=pN,hN=wg,mN=hN(Object.getPrototypeOf,Object),Nl=mN,gN=Rl,vN=Nl,yN=Pl,bN=Sg,wN=Object.getOwnPropertySymbols,CN=wN?function(e){for(var t=[];e;)gN(t,yN(e)),e=vN(e);return t}:bN,Ig=CN,SN=Ba,$N=Ig;function IN(e,t){return SN(e,$N(e),t)}var EN=IN,_N=Rl,AN=Jt;function ON(e,t,r){var a=t(e);return AN(e)?a:_N(a,r(e))}var Eg=ON,TN=Eg,xN=Pl,DN=Xi;function PN(e){return TN(e,DN,xN)}var _g=PN,RN=Eg,NN=Ig,kN=Ga;function MN(e){return RN(e,kN,NN)}var Ag=MN,FN=Zn,jN=Ar,BN=FN(jN,"DataView"),LN=BN,GN=Zn,VN=Ar,WN=GN(VN,"Promise"),YN=WN,UN=Zn,HN=Ar,XN=UN(HN,"Set"),Og=XN,zN=Zn,ZN=Ar,JN=zN(ZN,"WeakMap"),qN=JN,kl=LN,Ml=$l,Fl=YN,jl=Og,Bl=qN,Tg=zn,Va=cg,xg="[object Map]",KN="[object Object]",Dg="[object Promise]",Pg="[object Set]",Rg="[object WeakMap]",Ng="[object DataView]",QN=Va(kl),ek=Va(Ml),tk=Va(Fl),rk=Va(jl),nk=Va(Bl),qn=Tg;(kl&&qn(new kl(new ArrayBuffer(1)))!=Ng||Ml&&qn(new Ml)!=xg||Fl&&qn(Fl.resolve())!=Dg||jl&&qn(new jl)!=Pg||Bl&&qn(new Bl)!=Rg)&&(qn=function(e){var t=Tg(e),r=t==KN?e.constructor:void 0,a=r?Va(r):"";if(a)switch(a){case QN:return Ng;case ek:return xg;case tk:return Dg;case rk:return Pg;case nk:return Rg}return t});var Ms=qn,ak=Object.prototype,ik=ak.hasOwnProperty;function ok(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ik.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var sk=ok,uk=Ar,ck=uk.Uint8Array,kg=ck,Mg=kg;function lk(e){var t=new e.constructor(e.byteLength);return new Mg(t).set(new Mg(e)),t}var Ll=lk,dk=Ll;function fk(e,t){var r=t?dk(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var pk=fk,hk=/\w*$/;function mk(e){var t=new e.constructor(e.source,hk.exec(e));return t.lastIndex=e.lastIndex,t}var gk=mk,Fg=ka,jg=Fg?Fg.prototype:void 0,Bg=jg?jg.valueOf:void 0;function vk(e){return Bg?Object(Bg.call(e)):{}}var yk=vk,bk=Ll;function wk(e,t){var r=t?bk(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Lg=wk,Ck=Ll,Sk=pk,$k=gk,Ik=yk,Ek=Lg,_k="[object Boolean]",Ak="[object Date]",Ok="[object Map]",Tk="[object Number]",xk="[object RegExp]",Dk="[object Set]",Pk="[object String]",Rk="[object Symbol]",Nk="[object ArrayBuffer]",kk="[object DataView]",Mk="[object Float32Array]",Fk="[object Float64Array]",jk="[object Int8Array]",Bk="[object Int16Array]",Lk="[object Int32Array]",Gk="[object Uint8Array]",Vk="[object Uint8ClampedArray]",Wk="[object Uint16Array]",Yk="[object Uint32Array]";function Uk(e,t,r){var a=e.constructor;switch(t){case Nk:return Ck(e);case _k:case Ak:return new a(+e);case kk:return Sk(e,r);case Mk:case Fk:case jk:case Bk:case Lk:case Gk:case Vk:case Wk:case Yk:return Ek(e,r);case Ok:return new a;case Tk:case Pk:return new a(e);case xk:return $k(e);case Dk:return new a;case Rk:return Ik(e)}}var Hk=Uk,Xk=ir,Gg=Object.create,zk=function(){function e(){}return function(t){if(!Xk(t))return{};if(Gg)return Gg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Zk=zk,Jk=Zk,qk=Nl,Kk=xl;function Qk(e){return typeof e.constructor=="function"&&!Kk(e)?Jk(qk(e)):{}}var Vg=Qk,e2=Ms,t2=Or,r2="[object Map]";function n2(e){return t2(e)&&e2(e)==r2}var a2=n2,i2=a2,o2=Jn,Wg=Ol,Yg=Wg&&Wg.isMap,s2=Yg?o2(Yg):i2,u2=s2,c2=Ms,l2=Or,d2="[object Set]";function f2(e){return l2(e)&&c2(e)==d2}var p2=f2,h2=p2,m2=Jn,Ug=Ol,Hg=Ug&&Ug.isSet,g2=Hg?m2(Hg):h2,v2=g2,y2=Ts,b2=fg,w2=_l,C2=MR,S2=QR,$2=Cg,I2=Dl,E2=fN,_2=EN,A2=_g,O2=Ag,T2=Ms,x2=sk,D2=Hk,P2=Vg,R2=Jt,N2=Ps,k2=u2,M2=ir,F2=v2,j2=Xi,B2=Ga,L2=1,G2=2,V2=4,Xg="[object Arguments]",W2="[object Array]",Y2="[object Boolean]",U2="[object Date]",H2="[object Error]",zg="[object Function]",X2="[object GeneratorFunction]",z2="[object Map]",Z2="[object Number]",Zg="[object Object]",J2="[object RegExp]",q2="[object Set]",K2="[object String]",Q2="[object Symbol]",eM="[object WeakMap]",tM="[object ArrayBuffer]",rM="[object DataView]",nM="[object Float32Array]",aM="[object Float64Array]",iM="[object Int8Array]",oM="[object Int16Array]",sM="[object Int32Array]",uM="[object Uint8Array]",cM="[object Uint8ClampedArray]",lM="[object Uint16Array]",dM="[object Uint32Array]",Qe={};Qe[Xg]=Qe[W2]=Qe[tM]=Qe[rM]=Qe[Y2]=Qe[U2]=Qe[nM]=Qe[aM]=Qe[iM]=Qe[oM]=Qe[sM]=Qe[z2]=Qe[Z2]=Qe[Zg]=Qe[J2]=Qe[q2]=Qe[K2]=Qe[Q2]=Qe[uM]=Qe[cM]=Qe[lM]=Qe[dM]=!0,Qe[H2]=Qe[zg]=Qe[eM]=!1;function Fs(e,t,r,a,n,i){var o,s=t&L2,u=t&G2,c=t&V2;if(r&&(o=n?r(e,a,n,i):r(e)),o!==void 0)return o;if(!M2(e))return e;var l=R2(e);if(l){if(o=x2(e),!s)return I2(e,o)}else{var d=T2(e),f=d==zg||d==X2;if(N2(e))return $2(e,s);if(d==Zg||d==Xg||f&&!n){if(o=u||f?{}:P2(e),!s)return u?_2(e,S2(o,e)):E2(e,C2(o,e))}else{if(!Qe[d])return n?e:{};o=D2(e,d,s)}}i||(i=new y2);var p=i.get(e);if(p)return p;i.set(e,o),F2(e)?e.forEach(function(g){o.add(Fs(g,t,r,g,e,i))}):k2(e)&&e.forEach(function(g,h){o.set(h,Fs(g,t,r,h,e,i))});var m=c?u?O2:A2:u?B2:j2,v=l?void 0:m(e);return b2(v||e,function(g,h){v&&(h=g,g=e[h]),w2(o,h,Fs(g,t,r,h,e,i))}),o}var Jg=Fs,fM=Jg,pM=1,hM=4;function mM(e){return fM(e,pM|hM)}var gM=mM,vM="__lodash_hash_undefined__";function yM(e){return this.__data__.set(e,vM),this}var bM=yM;function wM(e){return this.__data__.has(e)}var CM=wM,SM=Il,$M=bM,IM=CM;function js(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new SM;++t<r;)this.add(e[t])}js.prototype.add=js.prototype.push=$M,js.prototype.has=IM;var Bs=js;function EM(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var _M=EM;function AM(e,t){return e.has(t)}var Ls=AM,OM=Bs,TM=_M,xM=Ls,DM=1,PM=2;function RM(e,t,r,a,n,i){var o=r&DM,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=r&PM?new OM:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],v=t[d];if(a)var g=o?a(v,m,d,t,e,i):a(m,v,d,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!TM(t,function(h,y){if(!xM(p,y)&&(m===h||n(m,h,r,a,i)))return p.push(y)})){f=!1;break}}else if(!(m===v||n(m,v,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var qg=RM;function NM(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}var kM=NM;function MM(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Gl=MM,Kg=ka,Qg=kg,FM=Ra,jM=qg,BM=kM,LM=Gl,GM=1,VM=2,WM="[object Boolean]",YM="[object Date]",UM="[object Error]",HM="[object Map]",XM="[object Number]",zM="[object RegExp]",ZM="[object Set]",JM="[object String]",qM="[object Symbol]",KM="[object ArrayBuffer]",QM="[object DataView]",ev=Kg?Kg.prototype:void 0,Vl=ev?ev.valueOf:void 0;function eF(e,t,r,a,n,i,o){switch(r){case QM:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case KM:return!(e.byteLength!=t.byteLength||!i(new Qg(e),new Qg(t)));case WM:case YM:case XM:return FM(+e,+t);case UM:return e.name==t.name&&e.message==t.message;case zM:case JM:return e==t+"";case HM:var s=BM;case ZM:var u=a&GM;if(s||(s=LM),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;a|=VM,o.set(e,t);var l=jM(s(e),s(t),a,n,i,o);return o.delete(e),l;case qM:if(Vl)return Vl.call(e)==Vl.call(t)}return!1}var tF=eF,tv=_g,rF=1,nF=Object.prototype,aF=nF.hasOwnProperty;function iF(e,t,r,a,n,i){var o=r&rF,s=tv(e),u=s.length,c=tv(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:aF.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++d<u;){f=s[d];var h=e[f],y=t[f];if(a)var b=o?a(y,h,f,t,e,i):a(h,y,f,e,t,i);if(!(b===void 0?h===y||n(h,y,r,a,i):b)){v=!1;break}g||(g=f=="constructor")}if(v&&!g){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(e),i.delete(t),v}var oF=iF,Wl=Ts,sF=qg,uF=tF,cF=oF,rv=Ms,nv=Jt,av=Ps,lF=Tl,dF=1,iv="[object Arguments]",ov="[object Array]",Gs="[object Object]",fF=Object.prototype,sv=fF.hasOwnProperty;function pF(e,t,r,a,n,i){var o=nv(e),s=nv(t),u=o?ov:rv(e),c=s?ov:rv(t);u=u==iv?Gs:u,c=c==iv?Gs:c;var l=u==Gs,d=c==Gs,f=u==c;if(f&&av(e)){if(!av(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new Wl),o||lF(e)?sF(e,t,r,a,n,i):uF(e,t,u,r,a,n,i);if(!(r&dF)){var p=l&&sv.call(e,"__wrapped__"),m=d&&sv.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,g=m?t.value():t;return i||(i=new Wl),n(v,g,r,a,i)}}return f?(i||(i=new Wl),cF(e,t,r,a,n,i)):!1}var hF=pF,mF=hF,uv=Or;function cv(e,t,r,a,n){return e===t?!0:e==null||t==null||!uv(e)&&!uv(t)?e!==e&&t!==t:mF(e,t,r,a,cv,n)}var Yl=cv,gF=Yl;function vF(e,t){return gF(e,t)}var lv=vF,dv=ka,yF=xs,bF=Jt,fv=dv?dv.isConcatSpreadable:void 0;function wF(e){return bF(e)||yF(e)||!!(fv&&e&&e[fv])}var CF=wF,SF=Rl,$F=CF;function pv(e,t,r,a,n){var i=-1,o=e.length;for(r||(r=$F),n||(n=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?pv(s,t-1,r,a,n):SF(n,s):a||(n[n.length]=s)}return n}var Ul=pv;function IF(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var In=IF,EF=zn,_F=Or,AF="[object Symbol]";function OF(e){return typeof e=="symbol"||_F(e)&&EF(e)==AF}var Vs=OF,TF=Jt,xF=Vs,DF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PF=/^\w*$/;function RF(e,t){if(TF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xF(e)?!0:PF.test(e)||!DF.test(e)||t!=null&&e in Object(t)}var Hl=RF,hv=Il,NF="Expected a function";function Xl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NF);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=e.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(Xl.Cache||hv),r}Xl.Cache=hv;var kF=Xl,MF=kF,FF=500;function jF(e){var t=MF(e,function(a){return r.size===FF&&r.clear(),a}),r=t.cache;return t}var BF=jF,LF=BF,GF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,VF=/\\(\\)?/g,WF=LF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(GF,function(r,a,n,i){t.push(n?i.replace(VF,"$1"):a||r)}),t}),YF=WF,mv=ka,UF=In,HF=Jt,XF=Vs,gv=mv?mv.prototype:void 0,vv=gv?gv.toString:void 0;function yv(e){if(typeof e=="string")return e;if(HF(e))return UF(e,yv)+"";if(XF(e))return vv?vv.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var zF=yv,ZF=zF;function JF(e){return e==null?"":ZF(e)}var qF=JF,KF=Jt,QF=Hl,ej=YF,tj=qF;function rj(e,t){return KF(e)?e:QF(e,t)?[e]:ej(tj(e))}var zi=rj,nj=Vs;function aj(e){if(typeof e=="string"||nj(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Wa=aj,ij=zi,oj=Wa;function sj(e,t){t=ij(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[oj(t[r++])];return r&&r==a?e:void 0}var Ws=sj,uj=Ts,cj=Yl,lj=1,dj=2;function fj(e,t,r,a){var n=r.length,i=n,o=!a;if(e==null)return!i;for(e=Object(e);n--;){var s=r[n];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<i;){s=r[n];var u=s[0],c=e[u],l=s[1];if(o&&s[2]){if(c===void 0&&!(u in e))return!1}else{var d=new uj;if(a)var f=a(c,l,u,e,t,d);if(!(f===void 0?cj(l,c,lj|dj,a,d):f))return!1}}return!0}var pj=fj,hj=ir;function mj(e){return e===e&&!hj(e)}var bv=mj,gj=bv,vj=Xi;function yj(e){for(var t=vj(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,gj(n)]}return t}var bj=yj;function wj(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var wv=wj,Cj=pj,Sj=bj,$j=wv;function Ij(e){var t=Sj(e);return t.length==1&&t[0][2]?$j(t[0][0],t[0][1]):function(r){return r===e||Cj(r,e,t)}}var Ej=Ij,_j=Ws;function Aj(e,t,r){var a=e==null?void 0:_j(e,t);return a===void 0?r:a}var Cv=Aj;const Kn=Xt(Cv);function Oj(e,t){return e!=null&&t in Object(e)}var Tj=Oj,xj=zi,Dj=xs,Pj=Jt,Rj=Rs,Nj=Al,kj=Wa;function Mj(e,t,r){t=xj(t,e);for(var a=-1,n=t.length,i=!1;++a<n;){var o=kj(t[a]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++a!=n?i:(n=e==null?0:e.length,!!n&&Nj(n)&&Rj(o,n)&&(Pj(e)||Dj(e)))}var Sv=Mj,Fj=Tj,jj=Sv;function Bj(e,t){return e!=null&&jj(e,t,Fj)}var Lj=Bj,Gj=Yl,Vj=Cv,Wj=Lj,Yj=Hl,Uj=bv,Hj=wv,Xj=Wa,zj=1,Zj=2;function Jj(e,t){return Yj(e)&&Uj(t)?Hj(Xj(e),t):function(r){var a=Vj(r,e);return a===void 0&&a===t?Wj(r,e):Gj(t,a,zj|Zj)}}var qj=Jj;function Kj(e){return e}var Zi=Kj;function Qj(e){return function(t){return t==null?void 0:t[e]}}var eB=Qj,tB=Ws;function rB(e){return function(t){return tB(t,e)}}var nB=rB,aB=eB,iB=nB,oB=Hl,sB=Wa;function uB(e){return oB(e)?aB(sB(e)):iB(e)}var cB=uB,lB=Ej,dB=qj,fB=Zi,pB=Jt,hB=cB;function mB(e){return typeof e=="function"?e:e==null?fB:typeof e=="object"?pB(e)?dB(e[0],e[1]):lB(e):hB(e)}var gB=mB;function vB(e){return function(t,r,a){for(var n=-1,i=Object(t),o=a(t),s=o.length;s--;){var u=o[e?s:++n];if(r(i[u],u,i)===!1)break}return t}}var yB=vB,bB=yB,wB=bB(),$v=wB,CB=$v,SB=Xi;function $B(e,t){return e&&CB(e,t,SB)}var IB=$B,EB=La;function _B(e,t){return function(r,a){if(r==null)return r;if(!EB(r))return e(r,a);for(var n=r.length,i=t?n:-1,o=Object(r);(t?i--:++i<n)&&a(o[i],i,o)!==!1;);return r}}var AB=_B,OB=IB,TB=AB,xB=TB(OB),Iv=xB,DB=Iv,PB=La;function RB(e,t){var r=-1,a=PB(e)?Array(e.length):[];return DB(e,function(n,i,o){a[++r]=t(n,i,o)}),a}var NB=RB;function kB(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var MB=kB,Ev=Vs;function FB(e,t){if(e!==t){var r=e!==void 0,a=e===null,n=e===e,i=Ev(e),o=t!==void 0,s=t===null,u=t===t,c=Ev(t);if(!s&&!c&&!i&&e>t||i&&o&&u&&!s&&!c||a&&o&&u||!r&&u||!n)return 1;if(!a&&!i&&!c&&e<t||c&&r&&n&&!a&&!i||s&&r&&n||!o&&n||!u)return-1}return 0}var jB=FB,BB=jB;function LB(e,t,r){for(var a=-1,n=e.criteria,i=t.criteria,o=n.length,s=r.length;++a<o;){var u=BB(n[a],i[a]);if(u){if(a>=s)return u;var c=r[a];return u*(c=="desc"?-1:1)}}return e.index-t.index}var GB=LB,zl=In,VB=Ws,WB=gB,YB=NB,UB=MB,HB=Jn,XB=GB,zB=Zi,ZB=Jt;function JB(e,t,r){t.length?t=zl(t,function(i){return ZB(i)?function(o){return VB(o,i.length===1?i[0]:i)}:i}):t=[zB];var a=-1;t=zl(t,HB(WB));var n=YB(e,function(i,o,s){var u=zl(t,function(c){return c(i)});return{criteria:u,index:++a,value:i}});return UB(n,function(i,o){return XB(i,o,r)})}var qB=JB;function KB(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)}var _v=KB,QB=_v,Av=Math.max;function eL(e,t,r){return t=Av(t===void 0?e.length-1:t,0),function(){for(var a=arguments,n=-1,i=Av(a.length-t,0),o=Array(i);++n<i;)o[n]=a[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=a[n];return s[t]=r(o),QB(e,this,s)}}var Ov=eL;function tL(e){return function(){return e}}var rL=tL,nL=rL,Tv=pg,aL=Zi,iL=Tv?function(e,t){return Tv(e,"toString",{configurable:!0,enumerable:!1,value:nL(t),writable:!0})}:aL,oL=iL,sL=800,uL=16,cL=Date.now;function lL(e){var t=0,r=0;return function(){var a=cL(),n=uL-(a-r);if(r=a,n>0){if(++t>=sL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dL=lL,fL=oL,pL=dL,hL=pL(fL),xv=hL,mL=Zi,gL=Ov,vL=xv;function yL(e,t){return vL(gL(e,t,mL),e+"")}var Qn=yL,bL=Ra,wL=La,CL=Rs,SL=ir;function $L(e,t,r){if(!SL(r))return!1;var a=typeof t;return(a=="number"?wL(r)&&CL(t,r.length):a=="string"&&t in r)?bL(r[t],e):!1}var Zl=$L,IL=Ul,EL=qB,_L=Qn,Dv=Zl,AL=_L(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Dv(e,t[0],t[1])?t=[]:r>2&&Dv(t[0],t[1],t[2])&&(t=[t[0]]),EL(e,IL(t,1),[])}),Pv=AL;function OL(e,t,r,a){for(var n=e.length,i=r+(a?1:-1);a?i--:++i<n;)if(t(e[i],i,e))return i;return-1}var TL=OL;function xL(e){return e!==e}var DL=xL;function PL(e,t,r){for(var a=r-1,n=e.length;++a<n;)if(e[a]===t)return a;return-1}var RL=PL,NL=TL,kL=DL,ML=RL;function FL(e,t,r){return t===t?ML(e,t,r):NL(e,kL,r)}var Rv=FL,jL=Rv;function BL(e,t){var r=e==null?0:e.length;return!!r&&jL(e,t,0)>-1}var Jl=BL;function LL(e,t,r){for(var a=-1,n=e==null?0:e.length;++a<n;)if(r(t,e[a]))return!0;return!1}var ql=LL;function GL(){}var VL=GL,Kl=Og,WL=VL,YL=Gl,UL=1/0,HL=Kl&&1/YL(new Kl([,-0]))[1]==UL?function(e){return new Kl(e)}:WL,XL=HL,zL=Bs,ZL=Jl,JL=ql,qL=Ls,KL=XL,QL=Gl,e4=200;function t4(e,t,r){var a=-1,n=ZL,i=e.length,o=!0,s=[],u=s;if(r)o=!1,n=JL;else if(i>=e4){var c=t?null:KL(e);if(c)return QL(c);o=!1,n=qL,u=new zL}else u=t?[]:s;e:for(;++a<i;){var l=e[a],d=t?t(l):l;if(l=r||l!==0?l:0,o&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(l)}else n(u,d,r)||(u!==s&&u.push(d),s.push(l))}return s}var Nv=t4,r4=Nv;function n4(e){return e&&e.length?r4(e):[]}var Ql=n4,a4=Nv;function i4(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?a4(e,void 0,t):[]}var ed=i4,o4=Qn,s4=Ra,u4=Zl,c4=Ga,kv=Object.prototype,l4=kv.hasOwnProperty,d4=o4(function(e,t){e=Object(e);var r=-1,a=t.length,n=a>2?t[2]:void 0;for(n&&u4(t[0],t[1],n)&&(a=1);++r<a;)for(var i=t[r],o=c4(i),s=-1,u=o.length;++s<u;){var c=o[s],l=e[c];(l===void 0||s4(l,kv[c])&&!l4.call(e,c))&&(e[c]=i[c])}return e}),f4=d4,p4=Bs,h4=Jl,m4=ql,g4=In,v4=Jn,Mv=Ls,y4=Math.min;function b4(e,t,r){for(var a=r?m4:h4,n=e[0].length,i=e.length,o=i,s=Array(i),u=1/0,c=[];o--;){var l=e[o];o&&t&&(l=g4(l,v4(t))),u=y4(l.length,u),s[o]=!r&&(t||n>=120&&l.length>=120)?new p4(o&&l):void 0}l=e[0];var d=-1,f=s[0];e:for(;++d<n&&c.length<u;){var p=l[d],m=t?t(p):p;if(p=r||p!==0?p:0,!(f?Mv(f,m):a(c,m,r))){for(o=i;--o;){var v=s[o];if(!(v?Mv(v,m):a(e[o],m,r)))continue e}f&&f.push(m),c.push(p)}}return c}var Fv=b4,w4=La,C4=Or;function S4(e){return C4(e)&&w4(e)}var td=S4,$4=td;function I4(e){return $4(e)?e:[]}var jv=I4;function E4(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Bv=E4,_4=In,A4=Fv,O4=Qn,T4=jv,x4=Bv,D4=O4(function(e){var t=x4(e),r=_4(e,T4);return t=typeof t=="function"?t:void 0,t&&r.pop(),r.length&&r[0]===e[0]?A4(r,void 0,t):[]}),Lv=D4,P4=zn,R4=Nl,N4=Or,k4="[object Object]",M4=Function.prototype,F4=Object.prototype,Gv=M4.toString,j4=F4.hasOwnProperty,B4=Gv.call(Object);function L4(e){if(!N4(e)||P4(e)!=k4)return!1;var t=R4(e);if(t===null)return!0;var r=j4.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Gv.call(r)==B4}var Ji=L4,G4=zn,V4=Or,W4="[object Boolean]";function Y4(e){return e===!0||e===!1||V4(e)&&G4(e)==W4}var U4=Y4,mr=lv,H4=Pv,rd=Ql,Vv=ed,X4=f4,z4=Lv,Ys=Ji,nd=U4,Wv=e=>Array.isArray(e)?e:[e],or=e=>e===void 0,Us=e=>Ys(e)||Array.isArray(e)?Object.keys(e):[],Ya=(e,t)=>e.hasOwnProperty(t),Ua=e=>H4(rd(e)),Yv=e=>or(e)||Array.isArray(e)&&e.length===0,Z4=(e,t,r,a)=>t&&Ya(t,r)&&e&&Ya(e,r)&&a(e[r],t[r]),ad=(e,t)=>or(e)&&t===0||or(t)&&e===0||mr(e,t),J4=(e,t)=>or(e)&&t===!1||or(t)&&e===!1||mr(e,t),Uv=e=>or(e)||mr(e,{})||e===!0,Hs=e=>or(e)||mr(e,{}),Hv=e=>or(e)||Ys(e)||e===!0||e===!1;function Xv(e,t){return Yv(e)&&Yv(t)?!0:mr(Ua(e),Ua(t))}function q4(e,t){return e=Wv(e),t=Wv(t),mr(Ua(e),Ua(t))}function Xs(e,t,r,a){var n=rd(Us(e).concat(Us(t)));return Hs(e)&&Hs(t)?!0:Hs(e)&&Us(t).length||Hs(t)&&Us(e).length?!1:n.every(function(i){var o=e[i],s=t[i];return Array.isArray(o)&&Array.isArray(s)?mr(Ua(e),Ua(t)):Array.isArray(o)&&!Array.isArray(s)||Array.isArray(s)&&!Array.isArray(o)?!1:Z4(e,t,i,a)})}function K4(e,t,r,a){return Ys(e)&&Ys(t)?a(e,t):Array.isArray(e)&&Array.isArray(t)?Xs(e,t,r,a):mr(e,t)}function id(e,t,r,a){var n=Vv(e,a),i=Vv(t,a),o=z4(n,i,a);return o.length===Math.max(n.length,i.length)}var Q4={title:mr,uniqueItems:J4,minLength:ad,minItems:ad,minProperties:ad,required:Xv,enum:Xv,type:q4,items:K4,anyOf:id,allOf:id,oneOf:id,properties:Xs,patternProperties:Xs,dependencies:Xs},eG=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],tG=["additionalProperties","additionalItems","contains","propertyNames","not"];function od(e,t,r){if(r=X4(r,{ignore:[]}),Uv(e)&&Uv(t))return!0;if(!Hv(e)||!Hv(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(nd(e)&&nd(t))return e===t;if(e===void 0&&t===!1||t===void 0&&e===!1||or(e)&&!or(t)||!or(e)&&or(t))return!1;var a=rd(Object.keys(e).concat(Object.keys(t)));if(r.ignore.length&&(a=a.filter(i=>r.ignore.indexOf(i)===-1)),!a.length)return!0;function n(i,o){return od(i,o,r)}return a.every(function(i){var o=e[i],s=t[i];if(tG.indexOf(i)!==-1)return od(o,s,r);var u=Q4[i];if(u||(u=mr),mr(o,s))return!0;if(eG.indexOf(i)===-1&&(!Ya(e,i)&&Ya(t,i)||Ya(e,i)&&!Ya(t,i)))return o===s;var c=u(o,s,i,n);if(!nd(c))throw new Error("Comparer must return true or false");return c})}var sd=od;function rG(e){return Object.prototype.toString.call(e)==="[object Array]"}var ud=Array.isArray||rG;function nG(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}var aG=nG,iG=aG;function oG(e){return iG(e)&&e%1===0}var sG=oG,uG=ud,cG=sG;function lG(e){var t;if(!uG(e)||(t=e.length,!t))return!1;for(var r=0;r<t;r++)if(!cG(e[r]))return!1;return!0}var zv=lG;function dG(e){return typeof e=="function"}var Zv=dG,fG=ud,Jv=zv,pG=Zv,zs=Math.pow(2,31)-1;function qv(e,t){var r=1,a;if(e===0)return t;if(t===0)return e;for(;e%2===0&&t%2===0;)e=e/2,t=t/2,r=r*2;for(;e%2===0;)e=e/2;for(;t;){for(;t%2===0;)t=t/2;e>t&&(a=t,t=e,e=a),t=t-e}return r*e}function Kv(e,t){var r=0,a;if(e===0)return t;if(t===0)return e;for(;!(e&1)&&!(t&1);)e>>>=1,t>>>=1,r++;for(;!(e&1);)e>>>=1;for(;t;){for(;!(t&1);)t>>>=1;e>t&&(a=t,t=e,e=a),t=t-e}return e<<r}function hG(){var e=arguments.length,t,r,a,n,i,o,s;for(t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];if(Jv(t)){if(e===2)return i=t[0],o=t[1],i<0&&(i=-i),o<0&&(o=-o),i<=zs&&o<=zs?Kv(i,o):qv(i,o);a=t}else if(fG(t[0]))if(e>1){if(a=t[0],r=t[1],!pG(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else a=t[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(n=a.length,n<2)return null;if(r){for(i=new Array(n),s=0;s<n;s++)i[s]=r(a[s],s);a=i}if(e<3&&!Jv(a))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+a+"`.");for(s=0;s<n;s++)i=a[s],i<0&&(a[s]=-i);for(i=a[0],s=1;s<n;s++)o=a[s],o<=zs&&i<=zs?i=Kv(i,o):i=qv(i,o);return i}var mG=hG,Qv=mG,gG=ud,ey=zv,vG=Zv;function yG(){var e=arguments.length,t,r,a,n,i,o,s;for(t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];if(ey(t)){if(e===2)return i=t[0],o=t[1],i<0&&(i=-i),o<0&&(o=-o),i===0||o===0?0:i/Qv(i,o)*o;a=t}else if(gG(t[0]))if(e>1){if(a=t[0],r=t[1],!vG(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else a=t[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(n=a.length,n<2)return null;if(r){for(i=new Array(n),s=0;s<n;s++)i[s]=r(a[s],s);a=i}if(e<3&&!ey(a))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+a+"`.");for(s=0;s<n;s++)i=a[s],i<0&&(a[s]=-i);for(i=a[0],s=1;s<n;s++){if(o=a[s],i===0||o===0)return 0;i=i/Qv(i,o)*o}return i}var bG=yG,wG=El,CG=Ra;function SG(e,t,r){(r!==void 0&&!CG(e[t],r)||r===void 0&&!(t in e))&&wG(e,t,r)}var ty=SG;function $G(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ry=$G,IG=Ba,EG=Ga;function _G(e){return IG(e,EG(e))}var AG=_G,ny=ty,OG=Cg,TG=Lg,xG=Dl,DG=Vg,ay=xs,iy=Jt,PG=td,RG=Ps,NG=Cl,kG=ir,MG=Ji,FG=Tl,oy=ry,jG=AG;function BG(e,t,r,a,n,i,o){var s=oy(e,r),u=oy(t,r),c=o.get(u);if(c){ny(e,r,c);return}var l=i?i(s,u,r+"",e,t,o):void 0,d=l===void 0;if(d){var f=iy(u),p=!f&&RG(u),m=!f&&!p&&FG(u);l=u,f||p||m?iy(s)?l=s:PG(s)?l=xG(s):p?(d=!1,l=OG(u,!0)):m?(d=!1,l=TG(u,!0)):l=[]:MG(u)||ay(u)?(l=s,ay(s)?l=jG(s):(!kG(s)||NG(s))&&(l=DG(u))):d=!1}d&&(o.set(u,l),n(l,u,a,i,o),o.delete(u)),ny(e,r,l)}var LG=BG,GG=Ts,VG=ty,WG=$v,YG=LG,UG=ir,HG=Ga,XG=ry;function sy(e,t,r,a,n){e!==t&&WG(t,function(i,o){if(n||(n=new GG),UG(i))YG(e,t,o,r,sy,a,n);else{var s=a?a(XG(e,o),i,o+"",e,t,n):void 0;s===void 0&&(s=i),VG(e,o,s)}},HG)}var uy=sy,zG=uy,cy=ir;function ly(e,t,r,a,n,i){return cy(e)&&cy(t)&&(i.set(t,e),zG(e,t,void 0,ly,i),i.delete(t)),e}var ZG=ly,JG=Qn,qG=Zl;function KG(e){return JG(function(t,r){var a=-1,n=r.length,i=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,o&&qG(r[0],r[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++a<n;){var s=r[a];s&&e(t,s,a,i)}return t})}var QG=KG,eV=uy,tV=QG,rV=tV(function(e,t,r,a){eV(e,t,r,a)}),nV=rV,aV=_v,iV=Qn,oV=ZG,sV=nV,uV=iV(function(e){return e.push(void 0,oV),aV(sV,void 0,e)}),cV=uV,lV=Ul;function dV(e){var t=e==null?0:e.length;return t?lV(e,1):[]}var cd=dV,fV=Ul,pV=1/0;function hV(e){var t=e==null?0:e.length;return t?fV(e,pV):[]}var dy=hV,mV=In,gV=Fv,vV=Qn,yV=jv,bV=vV(function(e){var t=mV(e,yV);return t.length&&t[0]===e[0]?gV(t):[]}),wV=bV;function CV(e,t,r,a){for(var n=r-1,i=e.length;++n<i;)if(a(e[n],t))return n;return-1}var SV=CV,$V=In,IV=Rv,EV=SV,_V=Jn,AV=Dl,OV=Array.prototype,fy=OV.splice;function TV(e,t,r,a){var n=a?EV:IV,i=-1,o=t.length,s=e;for(e===t&&(t=AV(t)),r&&(s=$V(e,_V(r)));++i<o;)for(var u=0,c=t[i],l=r?r(c):c;(u=n(s,l,u,a))>-1;)s!==e&&fy.call(s,u,1),fy.call(e,u,1);return e}var xV=TV,DV=xV;function PV(e,t){return e&&e.length&&t&&t.length?DV(e,t):e}var RV=PV,NV=Zi;function kV(e){return typeof e=="function"?e:NV}var MV=kV,FV=fg,jV=Iv,BV=MV,LV=Jt;function GV(e,t){var r=LV(e)?FV:jV;return r(e,BV(t))}var py=GV,VV=Bs,WV=Jl,YV=ql,UV=In,HV=Jn,XV=Ls,zV=200;function ZV(e,t,r,a){var n=-1,i=WV,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;r&&(t=UV(t,HV(r))),a?(i=YV,o=!1):t.length>=zV&&(i=XV,o=!1,t=new VV(t));e:for(;++n<s;){var l=e[n],d=r==null?l:r(l);if(l=a||l!==0?l:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,a)||u.push(l)}return u}var JV=ZV,qV=JV,KV=Qn,QV=td,e3=KV(function(e,t){return QV(e)?qV(e,t):[]}),t3=e3;const r3=cd,n3=dy,hy=Ji,a3=Ql,i3=ed,o3=t3;function s3(e){for(const t in e)my(e,t)&&f3(e[t])&&delete e[t];return e}const u3=e=>a3(n3(e.map(ld))),c3=(e,t)=>e.map(r=>r&&r[t]),my=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ld=e=>hy(e)||Array.isArray(e)?Object.keys(e):[],l3=e=>e!==void 0,d3=e=>hy(e)||e===!0||e===!1,f3=e=>!ld(e).length&&e!==!1&&e!==!0;var gy={allUniqueKeys:u3,deleteUndefinedProps:s3,getValues:c3,has:my,isSchema:d3,keys:ld,notUndefined:l3,uniqWith:i3,withoutArr:(e,...t)=>o3.apply(null,[e].concat(r3(t)))};const p3=sd,h3=py,{allUniqueKeys:m3,deleteUndefinedProps:g3,getValues:v3,keys:qi,notUndefined:y3,uniqWith:b3,withoutArr:vy}=gy;function w3(e){h3(e,function(t,r){t===!1&&delete e[r]})}function yy(e,t){return m3(e).reduce(function(a,n){const i=v3(e,n),o=b3(i.filter(y3),p3);return a[n]=t(o,n),a},{})}var C3={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,a){a.ignoreAdditionalProperties||(e.forEach(function(i){const o=e.filter(l=>l!==i),s=qi(i.properties),c=qi(i.patternProperties).map(l=>new RegExp(l));o.forEach(function(l){const d=qi(l.properties),f=d.filter(m=>c.some(v=>v.test(m)));vy(d,s,f).forEach(function(m){l.properties[m]=r.properties([l.properties[m],i.additionalProperties],m)})})}),e.forEach(function(i){const o=e.filter(u=>u!==i),s=qi(i.patternProperties);i.additionalProperties===!1&&o.forEach(function(u){const c=qi(u.patternProperties);vy(c,s).forEach(d=>delete u.patternProperties[d])})}));const n={additionalProperties:r.additionalProperties(e.map(i=>i.additionalProperties)),patternProperties:yy(e.map(i=>i.patternProperties),r.patternProperties),properties:yy(e.map(i=>i.properties),r.properties)};return n.additionalProperties===!1&&w3(n.properties),g3(n)}};const S3=sd,$3=py,{allUniqueKeys:I3,deleteUndefinedProps:E3,has:_3,isSchema:by,notUndefined:wy,uniqWith:A3}=gy;function O3(e){$3(e,function(t,r){t===!1&&e.splice(r,1)})}function T3(e,t){return e.map(function(r){if(r)if(Array.isArray(r.items)){const a=r.items[t];if(by(a))return a;if(_3(r,"additionalItems"))return r.additionalItems}else return r.items})}function x3(e){return e.map(function(t){if(t)return Array.isArray(t.items)?t.additionalItems:t.items})}function D3(e,t,r){return I3(r).reduce(function(n,i){const o=T3(e,i),s=A3(o.filter(wy),S3);return n[i]=t(s,i),n},[])}var P3={keywords:["items","additionalItems"],resolver(e,t,r){const a=e.map(s=>s.items),n=a.filter(wy),i={};n.every(by)?i.items=r.items(a):i.items=D3(e,r.items,a);let o;return n.every(Array.isArray)?o=e.map(s=>s.additionalItems):n.some(Array.isArray)&&(o=x3(e)),o&&(i.additionalItems=r.additionalItems(o)),i.additionalItems===!1&&Array.isArray(i.items)&&O3(i.items),E3(i)}};const Cy=gM,Zs=sd,R3=bG,N3=cV,Sy=cd,dd=dy,k3=wV,M3=Lv,fd=lv,Ha=Ji,F3=RV,$y=Pv,pd=Ql,Xa=ed,Iy=C3,Ey=P3,Js=(e,t)=>e.indexOf(t)!==-1,j3=e=>Ha(e)||e===!0||e===!1,B3=e=>e===!1,_y=e=>e===!0,qs=(e,t,r)=>r(e),Ay=e=>$y(pd(dd(e))),Ks=e=>e!==void 0,Oy=e=>pd(dd(e.map(U3))),za=e=>e[0],L3=e=>Ay(e),Ki=e=>Math.max.apply(Math,e),Qi=e=>Math.min.apply(Math,e),G3=e=>e.some(_y),V3=e=>Xa(Sy(e),fd);function W3(e){return function(t,r){return Zs({[e]:t},{[e]:r})}}function Ty(e){let{allOf:t=[],...r}=e;return r=Ha(e)?r:e,[r,...t.map(Ty)]}function xy(e,t){return e.map(r=>r&&r[t])}function Y3(e,t){return e.map(function(r,a){try{return t(r,a)}catch{return}}).filter(Ks)}function U3(e){return Ha(e)||Array.isArray(e)?Object.keys(e):[]}function hd(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),a=e.slice(1);return t.length?hd(a,Sy(t.map(n=>r.map(i=>[i].concat(n))))):hd(a,r.map(n=>n))}function Dy(e,t){let r;try{r=e.map(function(a){return JSON.stringify(a,null,2)}).join(`
|
|
31
31
|
`)}catch{r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+`". They are probably incompatible. Values:
|
|
32
|
-
`+r)}function
|
|
33
|
-
`,f);const{allOf:p,...m}=l;return m}}return Lc in l&&l.additionalProperties!==!1?rW(e,l,r,a,o):l}):[{}]}function nW(e,t,r,a,n){let i;const{oneOf:o,anyOf:s,...u}=t;if(Array.isArray(o)?i=o:Array.isArray(s)&&(i=s),i){const c=n===void 0&&a?{}:n,l=Za(t);i=i.map(f=>eo(f,r,[]));const d=ml(e,c,i,r,l);if(a)return i.map(f=>sn(u,f));t=sn(u,i[d])}return[t]}function Ny(e,t,r,a,n,i,o){const{dependencies:s,...u}=t;return nW(e,u,r,a,i).flatMap(l=>ky(e,s,l,r,a,n,i,o))}function ky(e,t,r,a,n,i,o,s){let u=[r];for(const c in t){if(!n&&ue(o,[c])===void 0||r.properties&&!(c in r.properties))continue;const[l,d]=fl(c,t);return Array.isArray(d)?u[0]=aW(r,d):Pe(d)&&(u=iW(e,r,a,c,d,n,i,o,s)),u.flatMap(f=>ky(e,l,f,a,n,i,o,s))}return u}function aW(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 iW(e,t,r,a,n,i,o,s,u){return xr(e,n,r,s,i,o,u).flatMap(l=>{const{oneOf:d,...f}=l;if(t=sn(t,f),d===void 0)return t;const p=d.map(v=>typeof v=="boolean"||!(ct in v)?[v]:Ry(e,v,r,i,o,s));return Py(p).flatMap(v=>oW(e,t,r,a,v,i,o,s,u))})}function oW(e,t,r,a,n,i,o,s,u){const c=n.filter(l=>{if(typeof l=="boolean"||!l||!l.properties)return!1;const{[a]:d}=l.properties;if(d){const f={type:"object",properties:{[a]:d}};return e.isValid(f,s,r)||i}return!1});return!i&&c.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):c.flatMap(l=>{const d=l,[f]=fl(a,d.properties),p={...d,properties:f};return xr(e,p,r,s,i,o,u).map(v=>sn(t,v))})}const sW={type:"object",$id:_$,properties:{__not_really_there__:{type:"number"}}};function md(e,t,r,a,n){let i=0;return r&&(qe(r.properties)?i+=IO(r.properties,(o,s,u)=>{const c=ue(a,u);if(typeof s=="boolean")return o;if(Nt(s,ct)){const l=qt(e,s,t,c,n);return o+md(e,t,l,c||{},n)}if((Nt(s,Zt)||Nt(s,fr))&&c){const l=Nt(s,Zt)?Zt:fr,d=Za(s);return o+to(e,t,c,ue(s,l),-1,d,n)}if(s.type==="object")return qe(c)&&(o+=1),o+md(e,t,s,c,n);if(s.type===En(c)){let l=o+1;return s.default?l+=c===s.default?1:-1:s.const&&(l+=c===s.const?1:-1),l}return o},0):$s(r.type)&&r.type===En(a)&&(i+=1)),i}function to(e,t,r,a,n=-1,i,o){const s=a.map(f=>eo(f,t,[])),u=Km(r,a,i);if(Gm(u))return u;const c=s.reduce((f,p,m)=>(ml(e,r,[sW,p],t,i)===1&&f.push(m),f),[]);if(c.length===1)return c[0];c.length||qm(s.length,f=>c.push(f));const l=new Set,{bestIndex:d}=c.reduce((f,p)=>{const{bestScore:m}=f,v=s[p],g=md(e,t,v,r,o);return l.add(g),g>m?{bestIndex:p,bestScore:g}:f},{bestIndex:n,bestScore:0});return l.size===1&&n>=0?n:d}function ro(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>Pe(t))}function no(e){return e==null}function ao(e,t,r=!1,a=!1,n=!1){if(Array.isArray(t)){const i=Array.isArray(e)?e:[],o=n?i:t,s=n?t:i,u=o.map((c,l)=>s[l]!==void 0?ao(i[l],t[l],r,a,n):c);return(r||n)&&u.length<s.length&&u.push(...s.slice(u.length)),u}if(Pe(t)){const i=Object.assign({},e);return Object.keys(t).reduce((o,s)=>{const u=ue(t,s),c=Pe(e)&&s in e,l=s in t;return o[s]=ao(e?ue(e,s):{},u,r,a,n&&(c||!l)),o},i)}return a&&(!no(e)&&no(t)||typeof t=="number"&&isNaN(t))||n&&!no(t)?e:t}function Dr(e,t,r=!1){return Object.keys(t).reduce((a,n)=>{const i=e?e[n]:{},o=t[n];if(e&&n in e&&Pe(o))a[n]=Dr(i,o,r);else if(r&&Array.isArray(i)&&Array.isArray(o)){let s=o;r==="preventDuplicates"&&(s=o.reduce((u,c)=>(i.includes(c)||u.push(c),u),[])),a[n]=i.concat(s)}else a[n]=o;return a},Object.assign({},e))}function My(e){return Array.isArray(e.enum)&&e.enum.length===1||tn in e}function gd(e,t,r={},a){const n=qt(e,t,r,void 0,a),i=n.oneOf||n.anyOf;return Array.isArray(n.enum)?!0:Array.isArray(i)?i.every(o=>typeof o!="boolean"&&My(o)):!1}function vd(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:gd(e,t.items,r,a)}function Fy(e){const t=e[tn],r=Tr(e);return Pe(t)&&$s(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function uW(e){if(I$ in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(tn in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function un(e,t){const r=e;if(e.enum){let i;if(t){const{enumNames:o}=fe(t);i=o}return!i&&r.enumNames&&(process.env.NODE_ENV!=="production"&&console.warn('The "enumNames" property in the schema is deprecated and will be removed in a future major release. Use the "ui:enumNames" property in the uiSchema instead.'),i=r.enumNames),e.enum.map((o,s)=>({label:(i==null?void 0:i[s])||String(o),value:o}))}let a,n;return e.anyOf?(a=e.anyOf,n=t==null?void 0:t.anyOf):e.oneOf&&(a=e.oneOf,n=t==null?void 0:t.oneOf),a&&a.map((i,o)=>{const{title:s}=fe(n==null?void 0:n[o]),u=i,c=uW(u),l=s||u.title||String(c);return{schema:u,label:l,value:c}})}const cW=["string","number","integer","boolean","null"];var Ja;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Ja||(Ja={}));function yd(e,t=Ja.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const a=e.items[r];if(typeof a!="boolean")return a}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==Ja.Ignore&&Pe(e.additionalItems)?e.additionalItems:{}}function jy(e,t,r,a,n,i=[],o={},s=!1){const{emptyObjectFields:u="populateAllDefaults"}=o;if(a||s)e[t]=r;else if(u!=="skipDefaults"){const c=n===void 0?i.includes(t):n;Pe(r)?u==="skipEmptyDefaults"?Da(r)||(e[t]=r):(!Da(r)||i.includes(t))&&(c||u!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(u==="populateAllDefaults"||u==="skipEmptyDefaults"||c&&i.includes(t))&&(e[t]=r)}}function _n(e,t,r={}){const{parentDefaults:a,rawFormData:n,rootSchema:i={},includeUndefinedValues:o=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:u=void 0,experimental_customMergeAllOf:c=void 0,required:l,shouldMergeDefaultsIntoFormData:d=!1}=r;let f=Pe(n)?n:{};const p=Pe(t)?t:{};let m=a,v=null,g=u,h=s;if(p[tn]!==void 0&&(u==null?void 0:u.constAsDefaults)!=="never"&&!Fy(p))m=p[tn];else if(Pe(m)&&Pe(p.default))m=Dr(m,p.default);else if($$ in p&&!p[fr]&&!p[Zt])m=p.default;else if(ct in p){const w=p[ct];s.includes(w)||(h=s.concat(w),v=Bm(w,i)),v&&!m&&(m=p.default),d&&v&&!Pe(n)&&(f=n)}else if(as in p){const w={...By(e,p,r,m),...f};v=Ny(e,p,i,!1,[],w,c)[0]}else if(ro(p))m=p.items.map((w,C)=>_n(e,w,{rootSchema:i,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:u,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(a)?a[C]:void 0,rawFormData:f,required:l,shouldMergeDefaultsIntoFormData:d}));else if(Zt in p){const{oneOf:w,...C}=p;if(w.length===0)return;const E=Za(p),{type:_="null"}=C;!Array.isArray(_)&&cW.includes(_)&&(g==null?void 0:g.constAsDefaults)==="skipOneOf"&&(g={...g,constAsDefaults:"never"}),v=w[to(e,i,n??p.default,w,0,E,c)],v=sn(C,v)}else if(fr in p){const{anyOf:w,...C}=p;if(w.length===0)return;const E=Za(p);v=w[to(e,i,n??p.default,w,0,E,c)],v=sn(C,v)}if(v)return _n(e,v,{rootSchema:i,includeUndefinedValues:o,_recurseList:h,experimental_defaultFormStateBehavior:g,experimental_customMergeAllOf:c,parentDefaults:m,rawFormData:n??f,required:l,shouldMergeDefaultsIntoFormData:d});m===void 0&&(m=p.default);const y=By(e,p,r,m);let b=y??m;if(d){const{arrayMinItems:w={}}=u||{},{mergeExtraDefaults:C}=w,E=lW(e,p,i,n,u,c);(!Pe(n)||Ia in p)&&(b=ao(b,E,C,!0))}return b}function lW(e,t,r,a,n,i){const o=!My(t)&&gd(e,t,r,i);let s=a;if(o){const c=un(t);s=(c==null?void 0:c.some(d=>Ue(d.value,a)))?a:void 0}return t[tn]&&(n==null?void 0:n.constAsDefaults)==="always"&&(s=t.const),s}function dW(e,t,{rawFormData:r,rootSchema:a={},includeUndefinedValues:n=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:s=void 0,required:u,shouldMergeDefaultsIntoFormData:c}={},l){{const d=Pe(r)?r:{},f=t,p=(o==null?void 0:o.allOf)==="populateDefaults"&&Ia in f?qt(e,f,a,d,s):f,m=p[tn],v=Object.keys(p.properties||{}).reduce((g,h)=>{var y;const b=ue(p,[at,h]),w=Pe(m)&&m[h]!==void 0,C=(Pe(b)&&tn in b||w)&&(o==null?void 0:o.constAsDefaults)!=="never"&&!Fy(b),E=_n(e,b,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:n===!0,parentDefaults:ue(l,[h]),rawFormData:ue(d,[h]),required:(y=p.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:c});return jy(g,h,E,n,u,p.required,o,C),g},{});if(p.additionalProperties){const g=Pe(p.additionalProperties)?p.additionalProperties:{},h=new Set;Pe(l)&&Object.keys(l).filter(b=>!p.properties||!p.properties[b]).forEach(b=>h.add(b));const y=[];Object.keys(d).filter(b=>!p.properties||!p.properties[b]).forEach(b=>{h.add(b),y.push(b)}),h.forEach(b=>{var w;const C=_n(e,g,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:n===!0,parentDefaults:ue(l,[b]),rawFormData:ue(d,[b]),required:(w=p.required)===null||w===void 0?void 0:w.includes(b),shouldMergeDefaultsIntoFormData:c});jy(v,b,C,n,u,y)})}return v}}function fW(e,t,{rawFormData:r,rootSchema:a={},_recurseList:n=[],experimental_defaultFormStateBehavior:i=void 0,experimental_customMergeAllOf:o=void 0,required:s,shouldMergeDefaultsIntoFormData:u}={},c){var l,d;const f=t,p=(l=i==null?void 0:i.arrayMinItems)!==null&&l!==void 0?l:{},{populate:m,mergeExtraDefaults:v}=p,g=m==="never",h=m==="requiredOnly",y=m==="all"||!g&&!h,b=(d=p==null?void 0:p.computeSkipPopulate)!==null&&d!==void 0?d:()=>!1,C=(i==null?void 0:i.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(c)&&(c=c.map((W,B)=>{const U=yd(f,Ja.Fallback,B);return _n(e,U,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,parentDefaults:W,required:s,shouldMergeDefaultsIntoFormData:u})})),Array.isArray(r)){const W=yd(f);if(g)c=r;else{const B=r.map((Y,L)=>_n(e,W,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:Y,parentDefaults:ue(c,[L]),required:s,shouldMergeDefaultsIntoFormData:u}));c=ao(c,B,(h&&s||y)&&v)}}if((Pe(f)&&tn in f&&(i==null?void 0:i.constAsDefaults)!=="never")===!1){if(g)return c??C;if(h&&!s)return c||void 0}const _=Array.isArray(c)?c.length:0;if(!f.minItems||vd(e,f,a,o)||b(e,f,a)||f.minItems<=_)return c||C;const N=c||[],R=yd(f,Ja.Invert),k=R.default,F=new Array(f.minItems-_).fill(_n(e,R,{parentDefaults:k,rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,required:s,shouldMergeDefaultsIntoFormData:u}));return N.concat(F)}function By(e,t,r={},a){switch(Tr(t)){case"object":return dW(e,t,r,a);case"array":return fW(e,t,r,a)}}function Ly(e,t,r,a,n=!1,i,o){if(!Pe(t))throw new Error("Invalid schema: "+t);const s=qt(e,t,a,r,o),u=_n(e,s,{rootSchema:a,includeUndefinedValues:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0});if(Pe(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:c}=i||{};return ao(u,r,!0,c==="useDefaultIfFormDataUndefined",!0)}return u}function bd(e={}){return"widget"in fe(e)&&fe(e).widget!=="hidden"}function Gy(e,t,r={},a,n){if(r[Vc]==="files")return!0;if(t.items){const i=qt(e,t.items,a,void 0,n);return i.type==="string"&&i.format==="data-url"}return!1}function pW(e,t,r={},a,n,i){const o=fe(r,n),{label:s=!0}=o;let u=!!s;const c=Tr(t);return c==="array"&&(u=vd(e,t,a,i)||Gy(e,t,r,a,i)||bd(r)),c==="object"&&(u=!1),c==="boolean"&&!r[Vc]&&(u=!1),r[O$]&&(u=!1),u}function hW(e,t,r){if(!r)return t;const{errors:a,errorSchema:n}=t;let i=e.toErrorList(r),o=r;return Da(n)||(o=Dr(n,r,!0),i=[...a].concat(i)),{errorSchema:o,errors:i}}const qa=Symbol("no Value");function wd(e,t,r,a,n={},i){let o;if(Nt(r,at)){const s={};if(Nt(a,at)){const l=ue(a,at,{});Object.keys(l).forEach(d=>{Nt(n,d)&&(s[d]=void 0)})}const u=Object.keys(ue(r,at,{})),c={};u.forEach(l=>{const d=ue(n,l);let f=ue(a,[at,l],{}),p=ue(r,[at,l],{});Nt(f,ct)&&(f=qt(e,f,t,d,i)),Nt(p,ct)&&(p=qt(e,p,t,d,i));const m=ue(f,"type"),v=ue(p,"type");if(!m||m===v)if(Nt(s,l)&&delete s[l],v==="object"||v==="array"&&Array.isArray(d)){const g=wd(e,t,p,f,d,i);(g!==void 0||v==="array")&&(c[l]=g)}else{const g=ue(p,"default",qa),h=ue(f,"default",qa);g!==qa&&g!==d&&(h===d?s[l]=g:ue(p,"readOnly")===!0&&(s[l]=void 0));const y=ue(p,"const",qa),b=ue(f,"const",qa);y!==qa&&y!==d&&(s[l]=b===d?y:void 0)}}),o={...typeof n=="string"||Array.isArray(n)?void 0:n,...s,...c}}else if(ue(a,"type")==="array"&&ue(r,"type")==="array"&&Array.isArray(n)){let s=ue(a,"items"),u=ue(r,"items");if(typeof s=="object"&&typeof u=="object"&&!Array.isArray(s)&&!Array.isArray(u)){Nt(s,ct)&&(s=qt(e,s,t,n,i)),Nt(u,ct)&&(u=qt(e,u,t,n,i));const c=ue(s,"type"),l=ue(u,"type");if(!c||c===l){const d=ue(r,"maxItems",-1);l==="object"?o=n.reduce((f,p)=>{const m=wd(e,t,u,s,p,i);return m!==void 0&&(d<0||f.length<d)&&f.push(m),f},[]):o=d>0&&n.length>d?n.slice(0,d):n}}else typeof s=="boolean"&&typeof u=="boolean"&&s===u&&(o=n)}return o}function Qs(e,t,r,a,n,i,o,s=[],u){if(ct in t||as in t||Ia in t){const d=qt(e,t,i,o,u);if(s.findIndex(p=>Ue(p,d))===-1)return Qs(e,d,r,a,n,i,o,s.concat(d),u)}if(pr in t&&!ue(t,[pr,ct]))return Qs(e,ue(t,pr),r,a,n,i,o,s,u);const l={$id:n||r};if(Tr(t)==="object"&&at in t)for(const d in t.properties){const f=ue(t,[at,d]),p=l[rn]+a+d;l[d]=Qs(e,Pe(f)?f:{},r,a,p,i,ue(o,[d]),s,u)}return l}function mW(e,t,r,a,n,i="root",o="_",s){return Qs(e,t,i,o,r,a,n,void 0,s)}function ea(e,t,r,a,n,i=[],o){if(ct in t||as in t||Ia in t){const u=qt(e,t,a,n,o);if(i.findIndex(l=>Ue(l,u))===-1)return ea(e,u,r,a,n,i.concat(u),o)}let s={[is]:r.replace(/^\./,"")};if(Zt in t||fr in t){const u=Zt in t?t.oneOf:t.anyOf,c=Za(t),l=to(e,a,n,u,0,c,o),d=u[l];s={...s,...ea(e,d,r,a,n,i,o)}}if(Lc in t&&t[Lc]!==!1&&Et(s,Gc,!0),pr in t&&Array.isArray(n)){const{items:u,additionalItems:c}=t;Array.isArray(u)?n.forEach((l,d)=>{u[d]?s[d]=ea(e,u[d],`${r}.${d}`,a,l,i,o):c?s[d]=ea(e,c,`${r}.${d}`,a,l,i,o):console.warn(`Unable to generate path schema for "${r}.${d}". No schema defined for it`)}):n.forEach((l,d)=>{s[d]=ea(e,u,`${r}.${d}`,a,l,i,o)})}else if(at in t)for(const u in t.properties){const c=ue(t,[at,u]);s[u]=ea(e,c,`${r}.${u}`,a,ue(n,[u]),i,o)}return s}function gW(e,t,r="",a,n,i){return ea(e,t,r,a,n,void 0,i)}class vW{constructor(t,r,a,n){this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=a,this.experimental_customMergeAllOf=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,a={},n){return!t||!r?!1:this.validator!==t||!Ue(this.rootSchema,r)||!Ue(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==n}getDefaultFormState(t,r,a=!1){return Ly(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf)}getDisplayLabel(t,r,a){return pW(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,n){return to(this.validator,this.rootSchema,t,r,a,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return ml(this.validator,t,r,this.rootSchema,a)}getMatchingOption(t,r,a){return Qm(this.validator,t,r,this.rootSchema,a)}isFilesArray(t,r){return Gy(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return vd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return gd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}mergeValidationData(t,r){return hW(this.validator,t,r)}retrieveSchema(t,r){return qt(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(t,r,a){return wd(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toIdSchema(t,r,a,n="root",i="_"){return mW(this.validator,t,r,this.rootSchema,a,n,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return gW(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function yW(e,t,r={},a){return new vW(e,t,r,a)}function Vy(e){var t;if(e.indexOf("data:")===-1)throw new Error("File is invalid: URI must be a dataURI");const a=e.slice(5).split(";base64,");if(a.length!==2)throw new Error("File is invalid: dataURI must be base64");const[n,i]=a,[o,...s]=n.split(";"),u=o||"",c=decodeURI(((t=s.map(l=>l.split("=")).find(([l])=>l==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const l=atob(i),d=new Array(l.length);for(let p=0;p<l.length;p++)d[p]=l.charCodeAt(p);return{blob:new window.Blob([new Uint8Array(d)],{type:u}),name:c}}catch(l){throw new Error("File is invalid: "+l.message)}}function cn(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function Wy(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 Wy(t,e).reverse();const r=[];for(let a=e;a<=t;a++)r.push({value:a,label:cn(a,2)});return r}function bW(e,t){let r=e;if(Array.isArray(t)){const a=r.split(/(%\d)/);t.forEach((n,i)=>{const o=a.findIndex(s=>s===`%${i+1}`);o>=0&&(a[o]=n)}),r=a.join("")}return r}function wW(e,t){return bW(e,t)}function Pr(e,t=[],r){if(Array.isArray(e))return e.map(i=>Pr(i,t)).filter(i=>i!==r);const a=e===""||e===null?-1:Number(e),n=t[a];return n?n.value:r}function CW(e,t,r=[]){const a=Pr(e,r);return Array.isArray(t)?t.filter(n=>!Ue(n,a)):Ue(a,t)?void 0:t}function Cd(e,t){return Array.isArray(t)?t.some(r=>Ue(r,e)):Ue(t,e)}function SW(e,t=[],r=!1){const a=t.map((n,i)=>Cd(n.value,e)?String(i):void 0).filter(n=>typeof n<"u");return r?a:a[0]}function $W(e,t,r=[]){const a=Pr(e,r);if(!no(a)){const n=r.findIndex(s=>a===s.value),i=r.map(({value:s})=>s);return t.slice(0,n).concat(a,t.slice(n)).sort((s,u)=>+(i.indexOf(s)>i.indexOf(u)))}return t}var IW=1,EW=4;function Yy(e){return Yi(e,IW|EW)}function _W(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:gl(e,t,r,a)}class AW{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let a=Array.isArray(t)&&t.length>0||typeof t=="string"?ue(this.errorSchema,t):this.errorSchema;return!a&&t&&(a={},_W(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Yy(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let n=ue(a,zt);return Array.isArray(n)||(n=[],a[zt]=n),Array.isArray(t)?Et(a,zt,[...new Set([...n,...t])]):Et(a,zt,[...new Set([...n,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),n=Array.isArray(t)?[...new Set([...t])]:[t];return Et(a,zt,n),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return Et(r,zt,[]),this}}function OW(e,t,r=[1900,new Date().getFullYear()+2],a="YMD"){const{day:n,month:i,year:o,hour:s,minute:u,second:c}=e,l={type:"day",range:[1,31],value:n},d={type:"month",range:[1,12],value:i},f={type:"year",range:r,value:o},p=[];switch(a){case"MDY":p.push(d,l,f);break;case"DMY":p.push(l,d,f);break;case"YMD":default:p.push(f,d,l)}return t&&p.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:c}),p}function TW(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function Uy(e,t,r={},a=!0){const n={type:t||"text",...TW(e)};return r.inputType?n.type=r.inputType:t||(e.type==="number"?(n.type="number",a&&n.step===void 0&&(n.step="any")):e.type==="integer"&&(n.type="number",n.step===void 0&&(n.step=1))),r.autocomplete&&(n.autoComplete=r.autocomplete),r.accept&&(n.accept=r.accept),n}const Hy={props:{disabled:!1},submitText:"Submit",norender:!1};function Xy(e={}){const t=fe(e);if(t&&t[os]){const r=t[os];return{...Hy,...r}}return Hy}function pe(e,t,r={}){const{templates:a}=t;return e==="ButtonTemplates"?a[e]:r[e]||a[e]}var Sd={exports:{}},je={};/**
|
|
32
|
+
`+r)}function H3(e,t,r,a,n,i){if(e.length){const o=n.complexResolvers[t];if(!o||!o.resolver)throw new Error("No resolver found for "+t);const s=r.map(d=>e.reduce((f,p)=>(d[p]!==void 0&&(f[p]=d[p]),f),{})),u=Xa(s,Zs),c=o.keywords.reduce((d,f)=>({...d,[f]:(p,m=[])=>a(p,null,i.concat(f,m))}),{}),l=o.resolver(u,i.concat(t),c,n);return Ha(l)||Dy(u,i.concat(t)),l}}function X3(e){return{required:e}}const z3=["properties","patternProperties","definitions","dependencies"],Z3=["anyOf","oneOf"],J3=["additionalProperties","additionalItems","contains","propertyNames","not","items"],Ne={type(e){if(e.some(Array.isArray)){const t=e.map(function(a){return Array.isArray(a)?a:[a]}),r=k3.apply(null,t);if(r.length===1)return r[0];if(r.length>1)return pd(r)}},dependencies(e,t,r){return Oy(e).reduce(function(n,i){const o=xy(e,i);let s=Xa(o.filter(Ks),fd);const u=s.filter(Array.isArray);if(u.length){if(u.length===s.length)n[i]=Ay(s);else{const c=s.filter(j3),l=u.map(X3);n[i]=r(c.concat(l),i)}return n}return s=Xa(s,Zs),n[i]=r(s,i),n},{})},oneOf(e,t,r){const a=hd(Cy(e)),n=Y3(a,r),i=Xa(n,Zs);if(i.length)return i},not(e){return{anyOf:e}},pattern(e){return e.map(t=>"(?="+t+")").join("")},multipleOf(e){let t=e.slice(0),r=1;for(;t.some(a=>!Number.isInteger(a));)t=t.map(a=>a*10),r=r*10;return R3(t)/r},enum(e){const t=M3.apply(null,e.concat(fd));if(t.length)return $y(t)}};Ne.$id=za,Ne.$ref=za,Ne.$schema=za,Ne.additionalItems=qs,Ne.additionalProperties=qs,Ne.anyOf=Ne.oneOf,Ne.contains=qs,Ne.default=za,Ne.definitions=Ne.dependencies,Ne.description=za,Ne.examples=V3,Ne.exclusiveMaximum=Qi,Ne.exclusiveMinimum=Ki,Ne.items=Ey,Ne.maximum=Qi,Ne.maxItems=Qi,Ne.maxLength=Qi,Ne.maxProperties=Qi,Ne.minimum=Ki,Ne.minItems=Ki,Ne.minLength=Ki,Ne.minProperties=Ki,Ne.properties=Iy,Ne.propertyNames=qs,Ne.required=L3,Ne.title=za,Ne.uniqueItems=G3;const q3={properties:Iy,items:Ey};function md(e,t,r){t=N3(t,{ignoreAdditionalProperties:!1,resolvers:Ne,complexResolvers:q3,deep:!0});const a=Object.entries(t.complexResolvers);function n(s,u,c){s=Cy(s.filter(Ks)),c=c||[];const l=Ha(u)?u:{};if(!s.length)return;if(s.some(B3))return!1;if(s.every(_y))return!0;s=s.filter(Ha);const d=Oy(s);if(t.deep&&Js(d,"allOf"))return md({allOf:s},t);const f=a.map(([p,m])=>d.filter(v=>m.keywords.includes(v)));return f.forEach(p=>F3(d,p)),d.forEach(function(p){const m=xy(s,p),v=Xa(m.filter(Ks),W3(p));if(v.length===1&&Js(Z3,p))l[p]=v[0].map(g=>n([g],g));else if(v.length===1&&!Js(z3,p)&&!Js(J3,p))l[p]=v[0];else{const g=t.resolvers[p]||t.resolvers.defaultResolver;if(!g)throw new Error("No resolver found for key "+p+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const h=(y,b=[])=>n(y,null,c.concat(p,b));l[p]=g(v,c.concat(p),h,t),l[p]===void 0?Dy(v,c.concat(p)):l[p]===void 0&&delete l[p]}}),a.reduce((p,[m,v],g)=>({...p,...H3(f[g],m,s,n,t,c)}),l)}const i=dd(Ty(e));return n(i)}md.options={resolvers:Ne};var K3=md;const Q3=Xt(K3);function Za(e){let t;const r=ue(e,"discriminator.propertyName",void 0);return $s(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function En(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":isNaN(e)?typeof e=="object"?"object":"string":"number"}var eW=wl(function(e){return rg(Ui(e,1,Is,!0))});function Tr(e){let{type:t}=e;return!t&&e.const?En(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function sn(e,t){const r=Object.assign({},e);return Object.keys(t).reduce((a,n)=>{const i=e?e[n]:{},o=t[n];return e&&n in e&&Pe(o)?a[n]=sn(i,o):e&&t&&(Tr(e)==="object"||Tr(t)==="object")&&n===O$&&Array.isArray(i)&&Array.isArray(o)?a[n]=eW(i,o):a[n]=o,a},r)}function qt(e,t,r={},a,n){return xr(e,t,r,a,void 0,void 0,n)[0]}function tW(e,t,r,a,n,i,o){const{if:s,then:u,else:c,...l}=t,d=e.isValid(s,i||{},r);let f=[l],p=[];if(a)u&&typeof u!="boolean"&&(p=p.concat(xr(e,u,r,i,a,n,o))),c&&typeof c!="boolean"&&(p=p.concat(xr(e,c,r,i,a,n,o)));else{const m=d?u:c;m&&typeof m!="boolean"&&(p=p.concat(xr(e,m,r,i,a,n,o)))}return p.length&&(f=p.map(m=>sn(l,m))),f.flatMap(m=>xr(e,m,r,i,a,n,o))}function Py(e){return e.reduce((r,a)=>a.length>1?a.flatMap(n=>qm(r.length,i=>[...r[i]].concat(n))):(r.forEach(n=>n.push(a[0])),r),[[]])}function rW(e,t,r,a,n,i,o){const s=Ry(e,t,r,a,n,i);if(s.length>1||s[0]!==t)return s;if(as in t)return Ny(e,t,r,a,n,i).flatMap(c=>xr(e,c,r,i,a,n,o));if(Ia in t&&Array.isArray(t.allOf)){const u=t.allOf.map(l=>xr(e,l,r,i,a,n,o));return Py(u).map(l=>({...t,allOf:l}))}return[t]}function Ry(e,t,r,a,n,i,o){const s=eo(t,r,n);return s!==t?xr(e,s,r,i,a,n,o):[t]}function eo(e,t,r){if(!Pe(e))return e;let a=e;if(ct in a){const{$ref:n,...i}=a;if(r.includes(n))return a;r.push(n),a={...Bm(n,t),...i}}if(at in a){const n=[],i=LO(a[at],(o,s,u)=>{const c=[...r];o[u]=eo(s,t,c),n.push(c)},{});UO(r,rT(XO(n))),a={...a,[at]:i}}return pr in a&&!Array.isArray(a.items)&&typeof a.items!="boolean"&&(a={...a,items:eo(a.items,t,r)}),Ue(e,a)?e:a}function nW(e,t,r,a,n){const i={...t,properties:{...t.properties}},o=a&&Pe(a)?a:{};return Object.keys(o).forEach(s=>{if(s in i.properties)return;let u={};typeof i.additionalProperties!="boolean"?ct in i.additionalProperties?u=qt(e,{$ref:ue(i.additionalProperties,[ct])},r,o,n):"type"in i.additionalProperties?u={...i.additionalProperties}:fr in i.additionalProperties||Zt in i.additionalProperties?u={type:"object",...i.additionalProperties}:u={type:En(ue(o,[s]))}:u={type:En(ue(o,[s]))},i.properties[s]=u,Et(i.properties,[s,Gn],!0)}),i}function xr(e,t,r,a,n=!1,i=[],o){return Pe(t)?rW(e,t,r,n,i,a,o).flatMap(u=>{var c;let l=u;if(_$ in l)return tW(e,l,r,n,i,a,o);if(Ia in l){if(n){const{allOf:f,...p}=l;return[...f,p]}try{const f=[],p=[];(c=l.allOf)===null||c===void 0||c.forEach(m=>{typeof m=="object"&&m.contains?f.push(m):p.push(m)}),f.length&&(l={...l,allOf:p}),l=o?o(l):Q3(l,{deep:!1}),f.length&&(l.allOf=f)}catch(f){console.warn(`could not merge subschemas in allOf:
|
|
33
|
+
`,f);const{allOf:p,...m}=l;return m}}return Gc in l&&l.additionalProperties!==!1?nW(e,l,r,a,o):l}):[{}]}function aW(e,t,r,a,n){let i;const{oneOf:o,anyOf:s,...u}=t;if(Array.isArray(o)?i=o:Array.isArray(s)&&(i=s),i){const c=n===void 0&&a?{}:n,l=Za(t);i=i.map(f=>eo(f,r,[]));const d=gl(e,c,i,r,l);if(a)return i.map(f=>sn(u,f));t=sn(u,i[d])}return[t]}function Ny(e,t,r,a,n,i,o){const{dependencies:s,...u}=t;return aW(e,u,r,a,i).flatMap(l=>ky(e,s,l,r,a,n,i,o))}function ky(e,t,r,a,n,i,o,s){let u=[r];for(const c in t){if(!n&&ue(o,[c])===void 0||r.properties&&!(c in r.properties))continue;const[l,d]=pl(c,t);return Array.isArray(d)?u[0]=iW(r,d):Pe(d)&&(u=oW(e,r,a,c,d,n,i,o,s)),u.flatMap(f=>ky(e,l,f,a,n,i,o,s))}return u}function iW(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 oW(e,t,r,a,n,i,o,s,u){return xr(e,n,r,s,i,o,u).flatMap(l=>{const{oneOf:d,...f}=l;if(t=sn(t,f),d===void 0)return t;const p=d.map(v=>typeof v=="boolean"||!(ct in v)?[v]:Ry(e,v,r,i,o,s));return Py(p).flatMap(v=>sW(e,t,r,a,v,i,o,s,u))})}function sW(e,t,r,a,n,i,o,s,u){const c=n.filter(l=>{if(typeof l=="boolean"||!l||!l.properties)return!1;const{[a]:d}=l.properties;if(d){const f={type:"object",properties:{[a]:d}};return e.isValid(f,s,r)||i}return!1});return!i&&c.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):c.flatMap(l=>{const d=l,[f]=pl(a,d.properties),p={...d,properties:f};return xr(e,p,r,s,i,o,u).map(v=>sn(t,v))})}const uW={type:"object",$id:A$,properties:{__not_really_there__:{type:"number"}}};function gd(e,t,r,a,n){let i=0;return r&&(qe(r.properties)?i+=EO(r.properties,(o,s,u)=>{const c=ue(a,u);if(typeof s=="boolean")return o;if(Nt(s,ct)){const l=qt(e,s,t,c,n);return o+gd(e,t,l,c||{},n)}if((Nt(s,Zt)||Nt(s,fr))&&c){const l=Nt(s,Zt)?Zt:fr,d=Za(s);return o+to(e,t,c,ue(s,l),-1,d,n)}if(s.type==="object")return qe(c)&&(o+=1),o+gd(e,t,s,c,n);if(s.type===En(c)){let l=o+1;return s.default?l+=c===s.default?1:-1:s.const&&(l+=c===s.const?1:-1),l}return o},0):$s(r.type)&&r.type===En(a)&&(i+=1)),i}function to(e,t,r,a,n=-1,i,o){const s=a.map(f=>eo(f,t,[])),u=Km(r,a,i);if(Gm(u))return u;const c=s.reduce((f,p,m)=>(gl(e,r,[uW,p],t,i)===1&&f.push(m),f),[]);if(c.length===1)return c[0];c.length||qm(s.length,f=>c.push(f));const l=new Set,{bestIndex:d}=c.reduce((f,p)=>{const{bestScore:m}=f,v=s[p],g=gd(e,t,v,r,o);return l.add(g),g>m?{bestIndex:p,bestScore:g}:f},{bestIndex:n,bestScore:0});return l.size===1&&n>=0?n:d}function ro(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>Pe(t))}function no(e){return e==null}function ao(e,t,r=!1,a=!1,n=!1){if(Array.isArray(t)){const i=Array.isArray(e)?e:[],o=n?i:t,s=n?t:i,u=o.map((c,l)=>s[l]!==void 0?ao(i[l],t[l],r,a,n):c);return(r||n)&&u.length<s.length&&u.push(...s.slice(u.length)),u}if(Pe(t)){const i=Object.assign({},e);return Object.keys(t).reduce((o,s)=>{const u=ue(t,s),c=Pe(e)&&s in e,l=s in t;return o[s]=ao(e?ue(e,s):{},u,r,a,n&&(c||!l)),o},i)}return a&&(!no(e)&&no(t)||typeof t=="number"&&isNaN(t))||n&&!no(t)?e:t}function Dr(e,t,r=!1){return Object.keys(t).reduce((a,n)=>{const i=e?e[n]:{},o=t[n];if(e&&n in e&&Pe(o))a[n]=Dr(i,o,r);else if(r&&Array.isArray(i)&&Array.isArray(o)){let s=o;r==="preventDuplicates"&&(s=o.reduce((u,c)=>(i.includes(c)||u.push(c),u),[])),a[n]=i.concat(s)}else a[n]=o;return a},Object.assign({},e))}function My(e){return Array.isArray(e.enum)&&e.enum.length===1||tn in e}function vd(e,t,r={},a){const n=qt(e,t,r,void 0,a),i=n.oneOf||n.anyOf;return Array.isArray(n.enum)?!0:Array.isArray(i)?i.every(o=>typeof o!="boolean"&&My(o)):!1}function yd(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:vd(e,t.items,r,a)}function Fy(e){const t=e[tn],r=Tr(e);return Pe(t)&&$s(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function cW(e){if(E$ in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(tn in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function un(e,t){const r=e;if(e.enum){let i;if(t){const{enumNames:o}=fe(t);i=o}return!i&&r.enumNames&&(process.env.NODE_ENV!=="production"&&console.warn('The "enumNames" property in the schema is deprecated and will be removed in a future major release. Use the "ui:enumNames" property in the uiSchema instead.'),i=r.enumNames),e.enum.map((o,s)=>({label:(i==null?void 0:i[s])||String(o),value:o}))}let a,n;return e.anyOf?(a=e.anyOf,n=t==null?void 0:t.anyOf):e.oneOf&&(a=e.oneOf,n=t==null?void 0:t.oneOf),a&&a.map((i,o)=>{const{title:s}=fe(n==null?void 0:n[o]),u=i,c=cW(u),l=s||u.title||String(c);return{schema:u,label:l,value:c}})}const lW=["string","number","integer","boolean","null"];var Ja;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Ja||(Ja={}));function bd(e,t=Ja.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const a=e.items[r];if(typeof a!="boolean")return a}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==Ja.Ignore&&Pe(e.additionalItems)?e.additionalItems:{}}function jy(e,t,r,a,n,i=[],o={},s=!1){const{emptyObjectFields:u="populateAllDefaults"}=o;if(a||s)e[t]=r;else if(u!=="skipDefaults"){const c=n===void 0?i.includes(t):n;Pe(r)?u==="skipEmptyDefaults"?Da(r)||(e[t]=r):(!Da(r)||i.includes(t))&&(c||u!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(u==="populateAllDefaults"||u==="skipEmptyDefaults"||c&&i.includes(t))&&(e[t]=r)}}function _n(e,t,r={}){const{parentDefaults:a,rawFormData:n,rootSchema:i={},includeUndefinedValues:o=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:u=void 0,experimental_customMergeAllOf:c=void 0,required:l,shouldMergeDefaultsIntoFormData:d=!1}=r;let f=Pe(n)?n:{};const p=Pe(t)?t:{};let m=a,v=null,g=u,h=s;if(p[tn]!==void 0&&(u==null?void 0:u.constAsDefaults)!=="never"&&!Fy(p))m=p[tn];else if(Pe(m)&&Pe(p.default))m=Dr(m,p.default);else if(I$ in p&&!p[fr]&&!p[Zt])m=p.default;else if(ct in p){const w=p[ct];s.includes(w)||(h=s.concat(w),v=Bm(w,i)),v&&!m&&(m=p.default),d&&v&&!Pe(n)&&(f=n)}else if(as in p){const w={...By(e,p,r,m),...f};v=Ny(e,p,i,!1,[],w,c)[0]}else if(ro(p))m=p.items.map((w,C)=>_n(e,w,{rootSchema:i,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:u,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(a)?a[C]:void 0,rawFormData:f,required:l,shouldMergeDefaultsIntoFormData:d}));else if(Zt in p){const{oneOf:w,...C}=p;if(w.length===0)return;const E=Za(p),{type:_="null"}=C;!Array.isArray(_)&&lW.includes(_)&&(g==null?void 0:g.constAsDefaults)==="skipOneOf"&&(g={...g,constAsDefaults:"never"}),v=w[to(e,i,n??p.default,w,0,E,c)],v=sn(C,v)}else if(fr in p){const{anyOf:w,...C}=p;if(w.length===0)return;const E=Za(p);v=w[to(e,i,n??p.default,w,0,E,c)],v=sn(C,v)}if(v)return _n(e,v,{rootSchema:i,includeUndefinedValues:o,_recurseList:h,experimental_defaultFormStateBehavior:g,experimental_customMergeAllOf:c,parentDefaults:m,rawFormData:n??f,required:l,shouldMergeDefaultsIntoFormData:d});m===void 0&&(m=p.default);const y=By(e,p,r,m);let b=y??m;if(d){const{arrayMinItems:w={}}=u||{},{mergeExtraDefaults:C}=w,E=dW(e,p,i,n,u,c);(!Pe(n)||Ia in p)&&(b=ao(b,E,C,!0))}return b}function dW(e,t,r,a,n,i){const o=!My(t)&&vd(e,t,r,i);let s=a;if(o){const c=un(t);s=(c==null?void 0:c.some(d=>Ue(d.value,a)))?a:void 0}return t[tn]&&(n==null?void 0:n.constAsDefaults)==="always"&&(s=t.const),s}function fW(e,t,{rawFormData:r,rootSchema:a={},includeUndefinedValues:n=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:s=void 0,required:u,shouldMergeDefaultsIntoFormData:c}={},l){{const d=Pe(r)?r:{},f=t,p=(o==null?void 0:o.allOf)==="populateDefaults"&&Ia in f?qt(e,f,a,d,s):f,m=p[tn],v=Object.keys(p.properties||{}).reduce((g,h)=>{var y;const b=ue(p,[at,h]),w=Pe(m)&&m[h]!==void 0,C=(Pe(b)&&tn in b||w)&&(o==null?void 0:o.constAsDefaults)!=="never"&&!Fy(b),E=_n(e,b,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:n===!0,parentDefaults:ue(l,[h]),rawFormData:ue(d,[h]),required:(y=p.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:c});return jy(g,h,E,n,u,p.required,o,C),g},{});if(p.additionalProperties){const g=Pe(p.additionalProperties)?p.additionalProperties:{},h=new Set;Pe(l)&&Object.keys(l).filter(b=>!p.properties||!p.properties[b]).forEach(b=>h.add(b));const y=[];Object.keys(d).filter(b=>!p.properties||!p.properties[b]).forEach(b=>{h.add(b),y.push(b)}),h.forEach(b=>{var w;const C=_n(e,g,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:n===!0,parentDefaults:ue(l,[b]),rawFormData:ue(d,[b]),required:(w=p.required)===null||w===void 0?void 0:w.includes(b),shouldMergeDefaultsIntoFormData:c});jy(v,b,C,n,u,y)})}return v}}function pW(e,t,{rawFormData:r,rootSchema:a={},_recurseList:n=[],experimental_defaultFormStateBehavior:i=void 0,experimental_customMergeAllOf:o=void 0,required:s,shouldMergeDefaultsIntoFormData:u}={},c){var l,d;const f=t,p=(l=i==null?void 0:i.arrayMinItems)!==null&&l!==void 0?l:{},{populate:m,mergeExtraDefaults:v}=p,g=m==="never",h=m==="requiredOnly",y=m==="all"||!g&&!h,b=(d=p==null?void 0:p.computeSkipPopulate)!==null&&d!==void 0?d:()=>!1,C=(i==null?void 0:i.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(c)&&(c=c.map((W,B)=>{const U=bd(f,Ja.Fallback,B);return _n(e,U,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,parentDefaults:W,required:s,shouldMergeDefaultsIntoFormData:u})})),Array.isArray(r)){const W=bd(f);if(g)c=r;else{const B=r.map((Y,L)=>_n(e,W,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:Y,parentDefaults:ue(c,[L]),required:s,shouldMergeDefaultsIntoFormData:u}));c=ao(c,B,(h&&s||y)&&v)}}if((Pe(f)&&tn in f&&(i==null?void 0:i.constAsDefaults)!=="never")===!1){if(g)return c??C;if(h&&!s)return c||void 0}const _=Array.isArray(c)?c.length:0;if(!f.minItems||yd(e,f,a,o)||b(e,f,a)||f.minItems<=_)return c||C;const N=c||[],R=bd(f,Ja.Invert),k=R.default,F=new Array(f.minItems-_).fill(_n(e,R,{parentDefaults:k,rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,required:s,shouldMergeDefaultsIntoFormData:u}));return N.concat(F)}function By(e,t,r={},a){switch(Tr(t)){case"object":return fW(e,t,r,a);case"array":return pW(e,t,r,a)}}function Ly(e,t,r,a,n=!1,i,o){if(!Pe(t))throw new Error("Invalid schema: "+t);const s=qt(e,t,a,r,o),u=_n(e,s,{rootSchema:a,includeUndefinedValues:n,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0});if(Pe(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:c}=i||{};return ao(u,r,!0,c==="useDefaultIfFormDataUndefined",!0)}return u}function wd(e={}){return"widget"in fe(e)&&fe(e).widget!=="hidden"}function Gy(e,t,r={},a,n){if(r[Wc]==="files")return!0;if(t.items){const i=qt(e,t.items,a,void 0,n);return i.type==="string"&&i.format==="data-url"}return!1}function hW(e,t,r={},a,n,i){const o=fe(r,n),{label:s=!0}=o;let u=!!s;const c=Tr(t);return c==="array"&&(u=yd(e,t,a,i)||Gy(e,t,r,a,i)||wd(r)),c==="object"&&(u=!1),c==="boolean"&&!r[Wc]&&(u=!1),r[T$]&&(u=!1),u}function mW(e,t,r){if(!r)return t;const{errors:a,errorSchema:n}=t;let i=e.toErrorList(r),o=r;return Da(n)||(o=Dr(n,r,!0),i=[...a].concat(i)),{errorSchema:o,errors:i}}const qa=Symbol("no Value");function Cd(e,t,r,a,n={},i){let o;if(Nt(r,at)){const s={};if(Nt(a,at)){const l=ue(a,at,{});Object.keys(l).forEach(d=>{Nt(n,d)&&(s[d]=void 0)})}const u=Object.keys(ue(r,at,{})),c={};u.forEach(l=>{const d=ue(n,l);let f=ue(a,[at,l],{}),p=ue(r,[at,l],{});Nt(f,ct)&&(f=qt(e,f,t,d,i)),Nt(p,ct)&&(p=qt(e,p,t,d,i));const m=ue(f,"type"),v=ue(p,"type");if(!m||m===v)if(Nt(s,l)&&delete s[l],v==="object"||v==="array"&&Array.isArray(d)){const g=Cd(e,t,p,f,d,i);(g!==void 0||v==="array")&&(c[l]=g)}else{const g=ue(p,"default",qa),h=ue(f,"default",qa);g!==qa&&g!==d&&(h===d?s[l]=g:ue(p,"readOnly")===!0&&(s[l]=void 0));const y=ue(p,"const",qa),b=ue(f,"const",qa);y!==qa&&y!==d&&(s[l]=b===d?y:void 0)}}),o={...typeof n=="string"||Array.isArray(n)?void 0:n,...s,...c}}else if(ue(a,"type")==="array"&&ue(r,"type")==="array"&&Array.isArray(n)){let s=ue(a,"items"),u=ue(r,"items");if(typeof s=="object"&&typeof u=="object"&&!Array.isArray(s)&&!Array.isArray(u)){Nt(s,ct)&&(s=qt(e,s,t,n,i)),Nt(u,ct)&&(u=qt(e,u,t,n,i));const c=ue(s,"type"),l=ue(u,"type");if(!c||c===l){const d=ue(r,"maxItems",-1);l==="object"?o=n.reduce((f,p)=>{const m=Cd(e,t,u,s,p,i);return m!==void 0&&(d<0||f.length<d)&&f.push(m),f},[]):o=d>0&&n.length>d?n.slice(0,d):n}}else typeof s=="boolean"&&typeof u=="boolean"&&s===u&&(o=n)}return o}function Qs(e,t,r,a,n,i,o,s=[],u){if(ct in t||as in t||Ia in t){const d=qt(e,t,i,o,u);if(s.findIndex(p=>Ue(p,d))===-1)return Qs(e,d,r,a,n,i,o,s.concat(d),u)}if(pr in t&&!ue(t,[pr,ct]))return Qs(e,ue(t,pr),r,a,n,i,o,s,u);const l={$id:n||r};if(Tr(t)==="object"&&at in t)for(const d in t.properties){const f=ue(t,[at,d]),p=l[rn]+a+d;l[d]=Qs(e,Pe(f)?f:{},r,a,p,i,ue(o,[d]),s,u)}return l}function gW(e,t,r,a,n,i="root",o="_",s){return Qs(e,t,i,o,r,a,n,void 0,s)}function ea(e,t,r,a,n,i=[],o){if(ct in t||as in t||Ia in t){const u=qt(e,t,a,n,o);if(i.findIndex(l=>Ue(l,u))===-1)return ea(e,u,r,a,n,i.concat(u),o)}let s={[is]:r.replace(/^\./,"")};if(Zt in t||fr in t){const u=Zt in t?t.oneOf:t.anyOf,c=Za(t),l=to(e,a,n,u,0,c,o),d=u[l];s={...s,...ea(e,d,r,a,n,i,o)}}if(Gc in t&&t[Gc]!==!1&&Et(s,Vc,!0),pr in t&&Array.isArray(n)){const{items:u,additionalItems:c}=t;Array.isArray(u)?n.forEach((l,d)=>{u[d]?s[d]=ea(e,u[d],`${r}.${d}`,a,l,i,o):c?s[d]=ea(e,c,`${r}.${d}`,a,l,i,o):console.warn(`Unable to generate path schema for "${r}.${d}". No schema defined for it`)}):n.forEach((l,d)=>{s[d]=ea(e,u,`${r}.${d}`,a,l,i,o)})}else if(at in t)for(const u in t.properties){const c=ue(t,[at,u]);s[u]=ea(e,c,`${r}.${u}`,a,ue(n,[u]),i,o)}return s}function vW(e,t,r="",a,n,i){return ea(e,t,r,a,n,void 0,i)}class yW{constructor(t,r,a,n){this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=a,this.experimental_customMergeAllOf=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,a={},n){return!t||!r?!1:this.validator!==t||!Ue(this.rootSchema,r)||!Ue(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==n}getDefaultFormState(t,r,a=!1){return Ly(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf)}getDisplayLabel(t,r,a){return hW(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,n){return to(this.validator,this.rootSchema,t,r,a,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return gl(this.validator,t,r,this.rootSchema,a)}getMatchingOption(t,r,a){return Qm(this.validator,t,r,this.rootSchema,a)}isFilesArray(t,r){return Gy(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return yd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return vd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}mergeValidationData(t,r){return mW(this.validator,t,r)}retrieveSchema(t,r){return qt(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(t,r,a){return Cd(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toIdSchema(t,r,a,n="root",i="_"){return gW(this.validator,t,r,this.rootSchema,a,n,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return vW(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function bW(e,t,r={},a){return new yW(e,t,r,a)}function Vy(e){var t;if(e.indexOf("data:")===-1)throw new Error("File is invalid: URI must be a dataURI");const a=e.slice(5).split(";base64,");if(a.length!==2)throw new Error("File is invalid: dataURI must be base64");const[n,i]=a,[o,...s]=n.split(";"),u=o||"",c=decodeURI(((t=s.map(l=>l.split("=")).find(([l])=>l==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const l=atob(i),d=new Array(l.length);for(let p=0;p<l.length;p++)d[p]=l.charCodeAt(p);return{blob:new window.Blob([new Uint8Array(d)],{type:u}),name:c}}catch(l){throw new Error("File is invalid: "+l.message)}}function cn(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function Wy(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 Wy(t,e).reverse();const r=[];for(let a=e;a<=t;a++)r.push({value:a,label:cn(a,2)});return r}function wW(e,t){let r=e;if(Array.isArray(t)){const a=r.split(/(%\d)/);t.forEach((n,i)=>{const o=a.findIndex(s=>s===`%${i+1}`);o>=0&&(a[o]=n)}),r=a.join("")}return r}function CW(e,t){return wW(e,t)}function Pr(e,t=[],r){if(Array.isArray(e))return e.map(i=>Pr(i,t)).filter(i=>i!==r);const a=e===""||e===null?-1:Number(e),n=t[a];return n?n.value:r}function SW(e,t,r=[]){const a=Pr(e,r);return Array.isArray(t)?t.filter(n=>!Ue(n,a)):Ue(a,t)?void 0:t}function Sd(e,t){return Array.isArray(t)?t.some(r=>Ue(r,e)):Ue(t,e)}function $W(e,t=[],r=!1){const a=t.map((n,i)=>Sd(n.value,e)?String(i):void 0).filter(n=>typeof n<"u");return r?a:a[0]}function IW(e,t,r=[]){const a=Pr(e,r);if(!no(a)){const n=r.findIndex(s=>a===s.value),i=r.map(({value:s})=>s);return t.slice(0,n).concat(a,t.slice(n)).sort((s,u)=>+(i.indexOf(s)>i.indexOf(u)))}return t}var EW=1,_W=4;function Yy(e){return Yi(e,EW|_W)}function AW(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:vl(e,t,r,a)}class OW{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let a=Array.isArray(t)&&t.length>0||typeof t=="string"?ue(this.errorSchema,t):this.errorSchema;return!a&&t&&(a={},AW(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Yy(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let n=ue(a,zt);return Array.isArray(n)||(n=[],a[zt]=n),Array.isArray(t)?Et(a,zt,[...new Set([...n,...t])]):Et(a,zt,[...new Set([...n,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),n=Array.isArray(t)?[...new Set([...t])]:[t];return Et(a,zt,n),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return Et(r,zt,[]),this}}function TW(e,t,r=[1900,new Date().getFullYear()+2],a="YMD"){const{day:n,month:i,year:o,hour:s,minute:u,second:c}=e,l={type:"day",range:[1,31],value:n},d={type:"month",range:[1,12],value:i},f={type:"year",range:r,value:o},p=[];switch(a){case"MDY":p.push(d,l,f);break;case"DMY":p.push(l,d,f);break;case"YMD":default:p.push(f,d,l)}return t&&p.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:c}),p}function xW(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function Uy(e,t,r={},a=!0){const n={type:t||"text",...xW(e)};return r.inputType?n.type=r.inputType:t||(e.type==="number"?(n.type="number",a&&n.step===void 0&&(n.step="any")):e.type==="integer"&&(n.type="number",n.step===void 0&&(n.step=1))),r.autocomplete&&(n.autoComplete=r.autocomplete),r.accept&&(n.accept=r.accept),n}const Hy={props:{disabled:!1},submitText:"Submit",norender:!1};function Xy(e={}){const t=fe(e);if(t&&t[os]){const r=t[os];return{...Hy,...r}}return Hy}function pe(e,t,r={}){const{templates:a}=t;return e==="ButtonTemplates"?a[e]:r[e]||a[e]}var $d={exports:{}},je={};/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-is.production.min.js
|
|
36
36
|
*
|
|
@@ -38,7 +38,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
38
38
|
*
|
|
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
|
-
*/var zy;function
|
|
41
|
+
*/var zy;function DW(){if(zy)return je;zy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function v(g){if(typeof g=="object"&&g!==null){var h=g.$$typeof;switch(h){case e:switch(g=g.type,g){case r:case n:case a:case c:case l:return g;default:switch(g=g&&g.$$typeof,g){case s:case o:case u:case f:case d:case i:return g;default:return h}}case t:return h}}}return je.ContextConsumer=o,je.ContextProvider=i,je.Element=e,je.ForwardRef=u,je.Fragment=r,je.Lazy=f,je.Memo=d,je.Portal=t,je.Profiler=n,je.StrictMode=a,je.Suspense=c,je.SuspenseList=l,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(g){return v(g)===o},je.isContextProvider=function(g){return v(g)===i},je.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},je.isForwardRef=function(g){return v(g)===u},je.isFragment=function(g){return v(g)===r},je.isLazy=function(g){return v(g)===f},je.isMemo=function(g){return v(g)===d},je.isPortal=function(g){return v(g)===t},je.isProfiler=function(g){return v(g)===n},je.isStrictMode=function(g){return v(g)===a},je.isSuspense=function(g){return v(g)===c},je.isSuspenseList=function(g){return v(g)===l},je.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===n||g===a||g===c||g===l||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===i||g.$$typeof===o||g.$$typeof===u||g.$$typeof===m||g.getModuleId!==void 0)},je.typeOf=v,je}var Be={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* react-is.development.js
|
|
44
44
|
*
|
|
@@ -46,64 +46,64 @@ React keys must be passed directly to JSX without using spread:
|
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var Zy;function DW(){return Zy||(Zy=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,v=!1,g=!1,h=!1,y=!1,b;b=Symbol.for("react.module.reference");function w(te){return!!(typeof te=="string"||typeof te=="function"||te===r||te===n||y||te===a||te===c||te===l||h||te===p||m||v||g||typeof te=="object"&&te!==null&&(te.$$typeof===f||te.$$typeof===d||te.$$typeof===i||te.$$typeof===o||te.$$typeof===u||te.$$typeof===b||te.getModuleId!==void 0))}function C(te){if(typeof te=="object"&&te!==null){var Ve=te.$$typeof;switch(Ve){case e:var wt=te.type;switch(wt){case r:case n:case a:case c:case l:return wt;default:var Ut=wt&&wt.$$typeof;switch(Ut){case s:case o:case u:case f:case d:case i:return Ut;default:return Ve}}case t:return Ve}}}var E=o,_=i,N=e,R=u,k=r,F=f,W=d,B=t,U=n,Y=a,L=c,Z=l,J=!1,se=!1;function V(te){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(te){return se||(se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(te){return C(te)===o}function P(te){return C(te)===i}function S(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function T(te){return C(te)===u}function j(te){return C(te)===r}function z(te){return C(te)===f}function H(te){return C(te)===d}function Q(te){return C(te)===t}function ce(te){return C(te)===n}function Ee(te){return C(te)===a}function ee(te){return C(te)===c}function pt(te){return C(te)===l}Be.ContextConsumer=E,Be.ContextProvider=_,Be.Element=N,Be.ForwardRef=R,Be.Fragment=k,Be.Lazy=F,Be.Memo=W,Be.Portal=B,Be.Profiler=U,Be.StrictMode=Y,Be.Suspense=L,Be.SuspenseList=Z,Be.isAsyncMode=V,Be.isConcurrentMode=D,Be.isContextConsumer=M,Be.isContextProvider=P,Be.isElement=S,Be.isForwardRef=T,Be.isFragment=j,Be.isLazy=z,Be.isMemo=H,Be.isPortal=Q,Be.isProfiler=ce,Be.isStrictMode=Ee,Be.isSuspense=ee,Be.isSuspenseList=pt,Be.isValidElementType=w,Be.typeOf=C}()),Be}process.env.NODE_ENV==="production"?Sd.exports=xW():Sd.exports=DW();var PW=Sd.exports;const Jy=Xt(PW),$d={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 RW(e){let t=ue(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:a,...n})=>$.jsx(e,{options:{...r,...a},...n}),Et(e,"MergedWidget",t)}return t}function kt(e,t,r={}){const a=Tr(e);if(typeof t=="function"||t&&Jy.isForwardRef(I.createElement(t))||Jy.isMemo(t))return RW(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t}`);if(t in r){const n=r[t];return kt(e,n,r)}if(typeof a=="string"){if(!(a in $d))throw new Error(`No widget for type '${a}'`);if(t in $d[a]){const n=r[$d[a][t]];return kt(e,n,r)}}throw new Error(`No widget '${t}' for type '${a}'`)}function NW(e){let t=0;for(let r=0;r<e.length;r+=1){const a=e.charCodeAt(r);t=(t<<5)-t+a,t=t&t}return t.toString(16)}function kW(e){const t=new Set;return JSON.stringify(e,(r,a)=>(t.add(r),a)),NW(JSON.stringify(e,Array.from(t).sort()))}function qy(e,t,r={}){try{return kt(e,t,r),!0}catch(a){const n=a;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw a}}function io(e,t){return`${$s(e)?e:e[rn]}__${t}`}function oo(e){return io(e,"description")}function Ky(e){return io(e,"error")}function Id(e){return io(e,"examples")}function Qy(e){return io(e,"help")}function eb(e){return io(e,"title")}function ta(e,t=!1){const r=t?` ${Id(e)}`:"";return`${Ky(e)} ${oo(e)} ${Qy(e)}${r}`}function tb(e,t){return`${e}-${t}`}function MW(e,t,r){return t?r:e}function rb(e){return e?new Date(e).toJSON():void 0}function nb(e,t){if(!Array.isArray(t))return e;const r=l=>l.reduce((d,f)=>(d[f]=!0,d),{}),a=l=>l.length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`,n=r(e),i=t.filter(l=>l==="*"||n[l]),o=r(i),s=e.filter(l=>!o[l]),u=i.indexOf("*");if(u===-1){if(s.length)throw new Error(`uiSchema order list does not contain ${a(s)}`);return i}if(u!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...i];return c.splice(u,1,...s),c}function ra(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 so(e){if(e.const||e.enum&&e.enum.length===1&&e.enum[0]===!0)return!0;if(e.anyOf&&e.anyOf.length===1)return so(e.anyOf[0]);if(e.oneOf&&e.oneOf.length===1)return so(e.oneOf[0]);if(e.allOf){const t=r=>so(r);return e.allOf.some(t)}return!1}function FW(e,t,r){const{props:a,state:n}=e;return!Ue(a,t)||!Ue(n,r)}function eu(e,t=!0){const{year:r,month:a,day:n,hour:i=0,minute:o=0,second:s=0}=e,u=Date.UTC(r,a-1,n,i,o,s),c=new Date(u).toJSON();return t?c:c.slice(0,10)}function uo(e,t=[]){if(!e)return[];let r=[];return zt in e&&(r=r.concat(e[zt].map(a=>{const n=`.${t.join(".")}`;return{property:n,message:a,stack:`${n} ${a}`}}))),Object.keys(e).reduce((a,n)=>{if(n!==zt){const i=e[n];Vn(i)&&(a=a.concat(uo(i,[...t,n])))}return a},r)}function ab(e){return yt(e)?vs(e,Xn):Vi(e)?[e]:cl(um(al(e)))}function jW(e){const t=new AW;return e.length&&e.forEach(r=>{const{property:a,message:n}=r,i=a==="."?[]:ab(a);i.length>0&&i[0]===""&&i.splice(0,1),n&&t.addErrors(n,i)}),t.ErrorSchema}function Ed(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;{const a=e[r];return Vn(a)?{...t,[r]:Ed(a)}:{...t,[r]:a}}},{})}function ib(e){if(!e)return"";const t=new Date(e),r=cn(t.getFullYear(),4),a=cn(t.getMonth()+1,2),n=cn(t.getDate(),2),i=cn(t.getHours(),2),o=cn(t.getMinutes(),2),s=cn(t.getSeconds(),2),u=cn(t.getMilliseconds(),3);return`${r}-${a}-${n}T${i}:${o}:${s}.${u}`}function tu(e,t){if(!t)return e;const{errors:r,errorSchema:a}=e;let n=uo(t),i=t;return Da(a)||(i=Dr(a,t,!0),n=[...r].concat(n)),{errorSchema:i,errors:n}}function BW(e){for(const t in e){const r=e,a=r[t];t===ct&&typeof a=="string"&&a.startsWith("#")?r[t]=Dh+a:r[t]=_d(a)}return e}function LW(e){for(let t=0;t<e.length;t++)e[t]=_d(e[t]);return e}function _d(e){return Array.isArray(e)?LW([...e]):qe(e)?BW({...e}):e}function ob(e,t,r){for(var a=-1,n=t.length,i={};++a<n;){var o=t[a],s=ys(e,o);r(s,o)&&gl(i,xa(o,e),s)}return i}function GW(e,t){if(e==null)return{};var r=vs(ll(e),function(a){return[a]});return t=pl(t),ob(e,r,function(a,n){return t(a,n[0])})}var VW=200;function WW(e,t,r,a){var n=-1,i=tg,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;t.length>=VW&&(i=Yc,o=!1,t=new Ea(t));e:for(;++n<s;){var l=e[n],d=l;if(l=l!==0?l:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,a)||u.push(l)}return u}var YW=bl(function(e,t){return Is(e)?WW(e,Ui(t,1,Is,!0)):[]});function UW(e,t){const r=Vn(e),a=Vn(t);if(e===t||!r&&!a)return[];if(r&&!a)return _r(e);if(!r&&a)return _r(t);{const n=_r(GW(e,(o,s)=>!Ue(o,ue(t,s)))),i=YW(_r(t),_r(e));return[...n,...i]}}var He;(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)"})(He||(He={}));function HW(e,t){var r=yt(e)?ol:Ym;return r(e,zm(t))}function XW(e,t){const r=[];for(let a=e;a<=t;a++)r.push({value:a,label:cn(a,2)});return r}function zW(e){return Object.values(e).every(t=>t!==-1)}function ZW(e,t,r=[1900,new Date().getFullYear()+2]){const{year:a,month:n,day:i,hour:o,minute:s,second:u}=e,c=[{type:"year",range:r,value:a},{type:"month",range:[1,12],value:n},{type:"day",range:[1,31],value:i}];return t&&c.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:u}),c}function JW({type:e,range:t,name:r,value:a,select:n,rootId:i,disabled:o,readonly:s,autofocus:u,registry:c,onBlur:l,onFocus:d}){const f=i+"_"+e,{SelectWidget:p}=c.widgets;return $.jsx(p,{schema:{type:"integer"},name:r,id:f,className:"form-control",options:{enumOptions:XW(t[0],t[1])},placeholder:e,value:a,disabled:o,readonly:s,autofocus:u,onChange:m=>n(e,m),onBlur:l,onFocus:d,registry:c,label:""})}function qW({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:n,id:i,name:o,registry:s,onBlur:u,onFocus:c,onChange:l,value:d}){const[f,p]=I.useReducer((h,y)=>({...h,...y}),ra(d,e));I.useEffect(()=>{d&&d!==eu(f,e)&&p(ra(d,e))},[d,f,e]),I.useEffect(()=>{zW(f)&&l(eu(f,e))},[f,e,l]);const m=I.useCallback((h,y)=>{p({[h]:y})},[]),v=I.useCallback(h=>{if(h.preventDefault(),t||r)return;const y=ra(new Date().toJSON(),e);p(y)},[t,r,e]),g=I.useCallback(h=>{h.preventDefault(),!(t||r)&&(p(ra("",e)),l(void 0))},[t,r,e,l]);return $.jsxs("ul",{className:"list-inline",children:[ZW(f,e,n.yearsRange).map((h,y)=>$.jsx("li",{children:$.jsx(JW,{name:o,rootId:i,select:m,...h,disabled:t,readonly:r,registry:s,onBlur:u,onFocus:c,autofocus:a&&y===0})},y)),(n.hideNowButton!=="undefined"?!n.hideNowButton:!0)&&$.jsx("li",{children:$.jsx("a",{href:"#",className:"btn btn-primary btn-now",onClick:v,children:"Now"})}),(n.hideClearButton!=="undefined"?!n.hideClearButton:!0)&&$.jsx("li",{children:$.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:g,children:"Clear"})})]})}function KW({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return $.jsx(r,{time:e,...t})}function QW({schema:e,options:t,id:r,value:a,disabled:n,readonly:i,label:o,autofocus:s=!1,onBlur:u,onFocus:c,onChange:l,registry:d}){const f=pe("DescriptionFieldTemplate",d,t),p=so(e),m=I.useCallback(h=>l(h.target.checked),[l]),v=I.useCallback(h=>u(r,h.target.checked),[u,r]),g=I.useCallback(h=>c(r,h.target.checked),[c,r]);return $.jsxs("div",{className:`checkbox ${n||i?"disabled":""}`,children:[e.description&&$.jsx(f,{schema:e,id:r+"__description",description:e.description,registry:d}),$.jsxs("label",{children:[$.jsx("input",{type:"checkbox",id:r,checked:typeof a>"u"?!1:a,required:p,disabled:n||i,autoFocus:s,onChange:m,onBlur:v,onFocus:g}),$.jsx("span",{children:o})]})]})}function e9(e,t,r){const a=r.indexOf(e);return t.slice(0,a).concat(e,t.slice(a)).sort((i,o)=>+(r.indexOf(i)>r.indexOf(o)))}function t9(e,t){return t.filter(r=>r!==e)}function r9({id:e,disabled:t,options:{inline:r=!1,enumOptions:a,enumDisabled:n},value:i,autofocus:o=!1,readonly:s,onChange:u}){return $.jsx("div",{className:`flex checkboxes ${r?"flex-row gap-2":"flex-col"}`,id:e,children:Array.isArray(a)&&a.map((c,l)=>{const d=i.indexOf(c.value)!==-1,f=n&&n.indexOf(c.value)!=-1,p=m=>{const v=a.map(({value:g})=>g);m.target.checked?u(e9(c.value,i,v)):u(t9(c.value,i))};return $.jsx("div",{className:"form-control",children:$.jsxs("label",{className:"justify-start gap-2 cursor-pointer label",children:[$.jsx("input",{className:"checkbox checkbox-primary",type:"checkbox",id:`${e}_${l}`,checked:d,disabled:t||f||s,autoFocus:o&&l===0,onChange:p},`${e}_${l}`),$.jsx("span",{className:"label-text",children:c.label})]})},`${e}_${l}_container`)})})}function n9(e){const{disabled:t,readonly:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"color",...e,disabled:t||r})}var Ad={exports:{}},Le={};/** @license React v16.13.1
|
|
49
|
+
*/var Zy;function PW(){return Zy||(Zy=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,v=!1,g=!1,h=!1,y=!1,b;b=Symbol.for("react.module.reference");function w(te){return!!(typeof te=="string"||typeof te=="function"||te===r||te===n||y||te===a||te===c||te===l||h||te===p||m||v||g||typeof te=="object"&&te!==null&&(te.$$typeof===f||te.$$typeof===d||te.$$typeof===i||te.$$typeof===o||te.$$typeof===u||te.$$typeof===b||te.getModuleId!==void 0))}function C(te){if(typeof te=="object"&&te!==null){var Ve=te.$$typeof;switch(Ve){case e:var wt=te.type;switch(wt){case r:case n:case a:case c:case l:return wt;default:var Ut=wt&&wt.$$typeof;switch(Ut){case s:case o:case u:case f:case d:case i:return Ut;default:return Ve}}case t:return Ve}}}var E=o,_=i,N=e,R=u,k=r,F=f,W=d,B=t,U=n,Y=a,L=c,Z=l,J=!1,se=!1;function V(te){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(te){return se||(se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(te){return C(te)===o}function P(te){return C(te)===i}function S(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function T(te){return C(te)===u}function j(te){return C(te)===r}function z(te){return C(te)===f}function H(te){return C(te)===d}function Q(te){return C(te)===t}function ce(te){return C(te)===n}function Ee(te){return C(te)===a}function ee(te){return C(te)===c}function pt(te){return C(te)===l}Be.ContextConsumer=E,Be.ContextProvider=_,Be.Element=N,Be.ForwardRef=R,Be.Fragment=k,Be.Lazy=F,Be.Memo=W,Be.Portal=B,Be.Profiler=U,Be.StrictMode=Y,Be.Suspense=L,Be.SuspenseList=Z,Be.isAsyncMode=V,Be.isConcurrentMode=D,Be.isContextConsumer=M,Be.isContextProvider=P,Be.isElement=S,Be.isForwardRef=T,Be.isFragment=j,Be.isLazy=z,Be.isMemo=H,Be.isPortal=Q,Be.isProfiler=ce,Be.isStrictMode=Ee,Be.isSuspense=ee,Be.isSuspenseList=pt,Be.isValidElementType=w,Be.typeOf=C}()),Be}process.env.NODE_ENV==="production"?$d.exports=DW():$d.exports=PW();var RW=$d.exports;const Jy=Xt(RW),Id={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 NW(e){let t=ue(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:a,...n})=>$.jsx(e,{options:{...r,...a},...n}),Et(e,"MergedWidget",t)}return t}function kt(e,t,r={}){const a=Tr(e);if(typeof t=="function"||t&&Jy.isForwardRef(I.createElement(t))||Jy.isMemo(t))return NW(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t}`);if(t in r){const n=r[t];return kt(e,n,r)}if(typeof a=="string"){if(!(a in Id))throw new Error(`No widget for type '${a}'`);if(t in Id[a]){const n=r[Id[a][t]];return kt(e,n,r)}}throw new Error(`No widget '${t}' for type '${a}'`)}function kW(e){let t=0;for(let r=0;r<e.length;r+=1){const a=e.charCodeAt(r);t=(t<<5)-t+a,t=t&t}return t.toString(16)}function MW(e){const t=new Set;return JSON.stringify(e,(r,a)=>(t.add(r),a)),kW(JSON.stringify(e,Array.from(t).sort()))}function qy(e,t,r={}){try{return kt(e,t,r),!0}catch(a){const n=a;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw a}}function io(e,t){return`${$s(e)?e:e[rn]}__${t}`}function oo(e){return io(e,"description")}function Ky(e){return io(e,"error")}function Ed(e){return io(e,"examples")}function Qy(e){return io(e,"help")}function eb(e){return io(e,"title")}function ta(e,t=!1){const r=t?` ${Ed(e)}`:"";return`${Ky(e)} ${oo(e)} ${Qy(e)}${r}`}function tb(e,t){return`${e}-${t}`}function FW(e,t,r){return t?r:e}function rb(e){return e?new Date(e).toJSON():void 0}function nb(e,t){if(!Array.isArray(t))return e;const r=l=>l.reduce((d,f)=>(d[f]=!0,d),{}),a=l=>l.length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`,n=r(e),i=t.filter(l=>l==="*"||n[l]),o=r(i),s=e.filter(l=>!o[l]),u=i.indexOf("*");if(u===-1){if(s.length)throw new Error(`uiSchema order list does not contain ${a(s)}`);return i}if(u!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...i];return c.splice(u,1,...s),c}function ra(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 so(e){if(e.const||e.enum&&e.enum.length===1&&e.enum[0]===!0)return!0;if(e.anyOf&&e.anyOf.length===1)return so(e.anyOf[0]);if(e.oneOf&&e.oneOf.length===1)return so(e.oneOf[0]);if(e.allOf){const t=r=>so(r);return e.allOf.some(t)}return!1}function jW(e,t,r){const{props:a,state:n}=e;return!Ue(a,t)||!Ue(n,r)}function eu(e,t=!0){const{year:r,month:a,day:n,hour:i=0,minute:o=0,second:s=0}=e,u=Date.UTC(r,a-1,n,i,o,s),c=new Date(u).toJSON();return t?c:c.slice(0,10)}function uo(e,t=[]){if(!e)return[];let r=[];return zt in e&&(r=r.concat(e[zt].map(a=>{const n=`.${t.join(".")}`;return{property:n,message:a,stack:`${n} ${a}`}}))),Object.keys(e).reduce((a,n)=>{if(n!==zt){const i=e[n];Vn(i)&&(a=a.concat(uo(i,[...t,n])))}return a},r)}function ab(e){return yt(e)?vs(e,Xn):Vi(e)?[e]:ll(um(il(e)))}function BW(e){const t=new OW;return e.length&&e.forEach(r=>{const{property:a,message:n}=r,i=a==="."?[]:ab(a);i.length>0&&i[0]===""&&i.splice(0,1),n&&t.addErrors(n,i)}),t.ErrorSchema}function _d(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;{const a=e[r];return Vn(a)?{...t,[r]:_d(a)}:{...t,[r]:a}}},{})}function ib(e){if(!e)return"";const t=new Date(e),r=cn(t.getFullYear(),4),a=cn(t.getMonth()+1,2),n=cn(t.getDate(),2),i=cn(t.getHours(),2),o=cn(t.getMinutes(),2),s=cn(t.getSeconds(),2),u=cn(t.getMilliseconds(),3);return`${r}-${a}-${n}T${i}:${o}:${s}.${u}`}function tu(e,t){if(!t)return e;const{errors:r,errorSchema:a}=e;let n=uo(t),i=t;return Da(a)||(i=Dr(a,t,!0),n=[...r].concat(n)),{errorSchema:i,errors:n}}function LW(e){for(const t in e){const r=e,a=r[t];t===ct&&typeof a=="string"&&a.startsWith("#")?r[t]=Dh+a:r[t]=Ad(a)}return e}function GW(e){for(let t=0;t<e.length;t++)e[t]=Ad(e[t]);return e}function Ad(e){return Array.isArray(e)?GW([...e]):qe(e)?LW({...e}):e}function ob(e,t,r){for(var a=-1,n=t.length,i={};++a<n;){var o=t[a],s=ys(e,o);r(s,o)&&vl(i,xa(o,e),s)}return i}function VW(e,t){if(e==null)return{};var r=vs(dl(e),function(a){return[a]});return t=hl(t),ob(e,r,function(a,n){return t(a,n[0])})}var WW=200;function YW(e,t,r,a){var n=-1,i=tg,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;t.length>=WW&&(i=Uc,o=!1,t=new Ea(t));e:for(;++n<s;){var l=e[n],d=l;if(l=l!==0?l:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,a)||u.push(l)}return u}var UW=wl(function(e,t){return Is(e)?YW(e,Ui(t,1,Is,!0)):[]});function HW(e,t){const r=Vn(e),a=Vn(t);if(e===t||!r&&!a)return[];if(r&&!a)return _r(e);if(!r&&a)return _r(t);{const n=_r(VW(e,(o,s)=>!Ue(o,ue(t,s)))),i=UW(_r(t),_r(e));return[...n,...i]}}var He;(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)"})(He||(He={}));function XW(e,t){var r=yt(e)?sl:Ym;return r(e,zm(t))}function zW(e,t){const r=[];for(let a=e;a<=t;a++)r.push({value:a,label:cn(a,2)});return r}function ZW(e){return Object.values(e).every(t=>t!==-1)}function JW(e,t,r=[1900,new Date().getFullYear()+2]){const{year:a,month:n,day:i,hour:o,minute:s,second:u}=e,c=[{type:"year",range:r,value:a},{type:"month",range:[1,12],value:n},{type:"day",range:[1,31],value:i}];return t&&c.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:u}),c}function qW({type:e,range:t,name:r,value:a,select:n,rootId:i,disabled:o,readonly:s,autofocus:u,registry:c,onBlur:l,onFocus:d}){const f=i+"_"+e,{SelectWidget:p}=c.widgets;return $.jsx(p,{schema:{type:"integer"},name:r,id:f,className:"form-control",options:{enumOptions:zW(t[0],t[1])},placeholder:e,value:a,disabled:o,readonly:s,autofocus:u,onChange:m=>n(e,m),onBlur:l,onFocus:d,registry:c,label:""})}function KW({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:n,id:i,name:o,registry:s,onBlur:u,onFocus:c,onChange:l,value:d}){const[f,p]=I.useReducer((h,y)=>({...h,...y}),ra(d,e));I.useEffect(()=>{d&&d!==eu(f,e)&&p(ra(d,e))},[d,f,e]),I.useEffect(()=>{ZW(f)&&l(eu(f,e))},[f,e,l]);const m=I.useCallback((h,y)=>{p({[h]:y})},[]),v=I.useCallback(h=>{if(h.preventDefault(),t||r)return;const y=ra(new Date().toJSON(),e);p(y)},[t,r,e]),g=I.useCallback(h=>{h.preventDefault(),!(t||r)&&(p(ra("",e)),l(void 0))},[t,r,e,l]);return $.jsxs("ul",{className:"list-inline",children:[JW(f,e,n.yearsRange).map((h,y)=>$.jsx("li",{children:$.jsx(qW,{name:o,rootId:i,select:m,...h,disabled:t,readonly:r,registry:s,onBlur:u,onFocus:c,autofocus:a&&y===0})},y)),(n.hideNowButton!=="undefined"?!n.hideNowButton:!0)&&$.jsx("li",{children:$.jsx("a",{href:"#",className:"btn btn-primary btn-now",onClick:v,children:"Now"})}),(n.hideClearButton!=="undefined"?!n.hideClearButton:!0)&&$.jsx("li",{children:$.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:g,children:"Clear"})})]})}function QW({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return $.jsx(r,{time:e,...t})}function e9({schema:e,options:t,id:r,value:a,disabled:n,readonly:i,label:o,autofocus:s=!1,onBlur:u,onFocus:c,onChange:l,registry:d}){const f=pe("DescriptionFieldTemplate",d,t),p=so(e),m=I.useCallback(h=>l(h.target.checked),[l]),v=I.useCallback(h=>u(r,h.target.checked),[u,r]),g=I.useCallback(h=>c(r,h.target.checked),[c,r]);return $.jsxs("div",{className:`checkbox ${n||i?"disabled":""}`,children:[e.description&&$.jsx(f,{schema:e,id:r+"__description",description:e.description,registry:d}),$.jsxs("label",{children:[$.jsx("input",{type:"checkbox",id:r,checked:typeof a>"u"?!1:a,required:p,disabled:n||i,autoFocus:s,onChange:m,onBlur:v,onFocus:g}),$.jsx("span",{children:o})]})]})}function t9(e,t,r){const a=r.indexOf(e);return t.slice(0,a).concat(e,t.slice(a)).sort((i,o)=>+(r.indexOf(i)>r.indexOf(o)))}function r9(e,t){return t.filter(r=>r!==e)}function n9({id:e,disabled:t,options:{inline:r=!1,enumOptions:a,enumDisabled:n},value:i,autofocus:o=!1,readonly:s,onChange:u}){return $.jsx("div",{className:`flex checkboxes ${r?"flex-row gap-2":"flex-col"}`,id:e,children:Array.isArray(a)&&a.map((c,l)=>{const d=i.indexOf(c.value)!==-1,f=n&&n.indexOf(c.value)!=-1,p=m=>{const v=a.map(({value:g})=>g);m.target.checked?u(t9(c.value,i,v)):u(r9(c.value,i))};return $.jsx("div",{className:"form-control",children:$.jsxs("label",{className:"justify-start gap-2 cursor-pointer label",children:[$.jsx("input",{className:"checkbox checkbox-primary",type:"checkbox",id:`${e}_${l}`,checked:d,disabled:t||f||s,autoFocus:o&&l===0,onChange:p},`${e}_${l}`),$.jsx("span",{className:"label-text",children:c.label})]})},`${e}_${l}_container`)})})}function a9(e){const{disabled:t,readonly:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"color",...e,disabled:t||r})}var ru={exports:{}},Le={};/** @license React v16.13.1
|
|
50
50
|
* react-is.production.min.js
|
|
51
51
|
*
|
|
52
52
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var sb;function
|
|
56
|
+
*/var sb;function i9(){if(sb)return Le;sb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case t:switch(C=C.type,C){case u:case c:case a:case i:case n:case d:return C;default:switch(C=C&&C.$$typeof,C){case s:case l:case m:case p:case o:return C;default:return E}}case r:return E}}}function w(C){return b(C)===c}return Le.AsyncMode=u,Le.ConcurrentMode=c,Le.ContextConsumer=s,Le.ContextProvider=o,Le.Element=t,Le.ForwardRef=l,Le.Fragment=a,Le.Lazy=m,Le.Memo=p,Le.Portal=r,Le.Profiler=i,Le.StrictMode=n,Le.Suspense=d,Le.isAsyncMode=function(C){return w(C)||b(C)===u},Le.isConcurrentMode=w,Le.isContextConsumer=function(C){return b(C)===s},Le.isContextProvider=function(C){return b(C)===o},Le.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Le.isForwardRef=function(C){return b(C)===l},Le.isFragment=function(C){return b(C)===a},Le.isLazy=function(C){return b(C)===m},Le.isMemo=function(C){return b(C)===p},Le.isPortal=function(C){return b(C)===r},Le.isProfiler=function(C){return b(C)===i},Le.isStrictMode=function(C){return b(C)===n},Le.isSuspense=function(C){return b(C)===d},Le.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===a||C===c||C===i||C===n||C===d||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===o||C.$$typeof===s||C.$$typeof===l||C.$$typeof===g||C.$$typeof===h||C.$$typeof===y||C.$$typeof===v)},Le.typeOf=b,Le}var Ge={};/** @license React v16.13.1
|
|
57
57
|
* react-is.development.js
|
|
58
58
|
*
|
|
59
59
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the MIT license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/var ub;function
|
|
63
|
+
*/var ub;function o9(){return ub||(ub=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(ee){return typeof ee=="string"||typeof ee=="function"||ee===a||ee===c||ee===i||ee===n||ee===d||ee===f||typeof ee=="object"&&ee!==null&&(ee.$$typeof===m||ee.$$typeof===p||ee.$$typeof===o||ee.$$typeof===s||ee.$$typeof===l||ee.$$typeof===g||ee.$$typeof===h||ee.$$typeof===y||ee.$$typeof===v)}function w(ee){if(typeof ee=="object"&&ee!==null){var pt=ee.$$typeof;switch(pt){case t:var te=ee.type;switch(te){case u:case c:case a:case i:case n:case d:return te;default:var Ve=te&&te.$$typeof;switch(Ve){case s:case l:case m:case p:case o:return Ve;default:return pt}}case r:return pt}}}var C=u,E=c,_=s,N=o,R=t,k=l,F=a,W=m,B=p,U=r,Y=i,L=n,Z=d,J=!1;function se(ee){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(ee)||w(ee)===u}function V(ee){return w(ee)===c}function D(ee){return w(ee)===s}function M(ee){return w(ee)===o}function P(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===t}function S(ee){return w(ee)===l}function T(ee){return w(ee)===a}function j(ee){return w(ee)===m}function z(ee){return w(ee)===p}function H(ee){return w(ee)===r}function Q(ee){return w(ee)===i}function ce(ee){return w(ee)===n}function Ee(ee){return w(ee)===d}Ge.AsyncMode=C,Ge.ConcurrentMode=E,Ge.ContextConsumer=_,Ge.ContextProvider=N,Ge.Element=R,Ge.ForwardRef=k,Ge.Fragment=F,Ge.Lazy=W,Ge.Memo=B,Ge.Portal=U,Ge.Profiler=Y,Ge.StrictMode=L,Ge.Suspense=Z,Ge.isAsyncMode=se,Ge.isConcurrentMode=V,Ge.isContextConsumer=D,Ge.isContextProvider=M,Ge.isElement=P,Ge.isForwardRef=S,Ge.isFragment=T,Ge.isLazy=j,Ge.isMemo=z,Ge.isPortal=H,Ge.isProfiler=Q,Ge.isStrictMode=ce,Ge.isSuspense=Ee,Ge.isValidElementType=b,Ge.typeOf=w}()),Ge}var cb;function s9(){return cb||(cb=1,process.env.NODE_ENV==="production"?ru.exports=i9():ru.exports=o9()),ru.exports}var lb={exports:{}};/*!
|
|
64
64
|
Copyright (c) 2018 Jed Watson.
|
|
65
65
|
Licensed under the MIT License (MIT), see
|
|
66
66
|
http://jedwatson.github.io/classnames
|
|
67
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=n(i,a(s)))}return i}function a(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=n(o,s));return o}function n(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(cb);var s9=cb.exports;const _t=Xt(s9);function Kt(e){"@babel/helpers - typeof";return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(e)}function K(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ru(e){return K(1,arguments),e instanceof Date||Kt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oe(e){K(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Kt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function co(e){if(K(1,arguments),!ru(e)&&typeof e!="number")return!1;var t=oe(e);return!isNaN(Number(t))}function Se(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Od(e,t){K(2,arguments);var r=oe(e).getTime(),a=Se(t);return new Date(r+a)}function lb(e,t){K(2,arguments);var r=Se(t);return Od(e,-r)}var u9=864e5;function c9(e){K(1,arguments);var t=oe(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),n=r-a;return Math.floor(n/u9)+1}function Ka(e){K(1,arguments);var t=1,r=oe(e),a=r.getUTCDay(),n=(a<t?7:0)+a-t;return r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r}function db(e){K(1,arguments);var t=oe(e),r=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var n=Ka(a),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=Ka(i);return t.getTime()>=n.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function l9(e){K(1,arguments);var t=db(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var a=Ka(r);return a}var d9=6048e5;function fb(e){K(1,arguments);var t=oe(e),r=Ka(t).getTime()-l9(t).getTime();return Math.round(r/d9)+1}var f9={};function na(){return f9}function aa(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=na(),d=Se((r=(a=(n=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:l.weekStartsOn)!==null&&a!==void 0?a:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=oe(e),p=f.getUTCDay(),m=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function Td(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=oe(e),d=l.getUTCFullYear(),f=na(),p=Se((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:f.firstWeekContainsDate)!==null&&a!==void 0?a:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var v=aa(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var h=aa(g,t);return l.getTime()>=v.getTime()?d+1:l.getTime()>=h.getTime()?d:d-1}function p9(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=na(),d=Se((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:l.firstWeekContainsDate)!==null&&a!==void 0?a:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),f=Td(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=aa(p,t);return m}var h9=6048e5;function pb(e,t){K(1,arguments);var r=oe(e),a=aa(r,t).getTime()-p9(r,t).getTime();return Math.round(a/h9)+1}function Ye(e,t){for(var r=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return r+a}var An={y:function(t,r){var a=t.getUTCFullYear(),n=a>0?a:1-a;return Ye(r==="yy"?n%100:n,r.length)},M:function(t,r){var a=t.getUTCMonth();return r==="M"?String(a+1):Ye(a+1,2)},d:function(t,r){return Ye(t.getUTCDate(),r.length)},a:function(t,r){var a=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,r){return Ye(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Ye(t.getUTCHours(),r.length)},m:function(t,r){return Ye(t.getUTCMinutes(),r.length)},s:function(t,r){return Ye(t.getUTCSeconds(),r.length)},S:function(t,r){var a=r.length,n=t.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return Ye(i,r.length)}},Qa={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m9={G:function(t,r,a){var n=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(t,r,a){if(r==="yo"){var n=t.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return An.y(t,r)},Y:function(t,r,a,n){var i=Td(t,n),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return Ye(s,2)}return r==="Yo"?a.ordinalNumber(o,{unit:"year"}):Ye(o,r.length)},R:function(t,r){var a=db(t);return Ye(a,r.length)},u:function(t,r){var a=t.getUTCFullYear();return Ye(a,r.length)},Q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return Ye(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return Ye(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,a){var n=t.getUTCMonth();switch(r){case"M":case"MM":return An.M(t,r);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,a){var n=t.getUTCMonth();switch(r){case"L":return String(n+1);case"LL":return Ye(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,a,n){var i=pb(t,n);return r==="wo"?a.ordinalNumber(i,{unit:"week"}):Ye(i,r.length)},I:function(t,r,a){var n=fb(t);return r==="Io"?a.ordinalNumber(n,{unit:"week"}):Ye(n,r.length)},d:function(t,r,a){return r==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):An.d(t,r)},D:function(t,r,a){var n=c9(t);return r==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):Ye(n,r.length)},E:function(t,r,a){var n=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Ye(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Ye(o,r.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,a){var n=t.getUTCDay(),i=n===0?7:n;switch(r){case"i":return String(i);case"ii":return Ye(i,r.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,a){var n=t.getUTCHours(),i=n/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,a){var n=t.getUTCHours(),i;switch(n===12?i=Qa.noon:n===0?i=Qa.midnight:i=n/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,a){var n=t.getUTCHours(),i;switch(n>=17?i=Qa.evening:n>=12?i=Qa.afternoon:n>=4?i=Qa.morning:i=Qa.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,a){if(r==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return An.h(t,r)},H:function(t,r,a){return r==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):An.H(t,r)},K:function(t,r,a){var n=t.getUTCHours()%12;return r==="Ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,r.length)},k:function(t,r,a){var n=t.getUTCHours();return n===0&&(n=24),r==="ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,r.length)},m:function(t,r,a){return r==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):An.m(t,r)},s:function(t,r,a){return r==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):An.s(t,r)},S:function(t,r){return An.S(t,r)},X:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return mb(o);case"XXXX":case"XX":return ia(o);case"XXXXX":case"XXX":default:return ia(o,":")}},x:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return mb(o);case"xxxx":case"xx":return ia(o);case"xxxxx":case"xxx":default:return ia(o,":")}},O:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+hb(o,":");case"OOOO":default:return"GMT"+ia(o,":")}},z:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+hb(o,":");case"zzzz":default:return"GMT"+ia(o,":")}},t:function(t,r,a,n){var i=n._originalDate||t,o=Math.floor(i.getTime()/1e3);return Ye(o,r.length)},T:function(t,r,a,n){var i=n._originalDate||t,o=i.getTime();return Ye(o,r.length)}};function hb(e,t){var r=e>0?"-":"+",a=Math.abs(e),n=Math.floor(a/60),i=a%60;if(i===0)return r+String(n);var o=t;return r+String(n)+o+Ye(i,2)}function mb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Ye(Math.abs(e)/60,2)}return ia(e,t)}function ia(e,t){var r=t||"",a=e>0?"-":"+",n=Math.abs(e),i=Ye(Math.floor(n/60),2),o=Ye(n%60,2);return a+i+r+o}var gb=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},vb=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},g9=function(t,r){var a=t.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return gb(t,r);var o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",gb(n,r)).replace("{{time}}",vb(i,r))},xd={p:vb,P:g9};function nu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var v9=["D","DD"],y9=["YY","YYYY"];function yb(e){return v9.indexOf(e)!==-1}function bb(e){return y9.indexOf(e)!==-1}function au(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var b9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},w9=function(t,r,a){var n,i=b9[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function Dd(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,a=e.formats[r]||e.formats[e.defaultWidth];return a}}var C9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},I9={date:Dd({formats:C9,defaultWidth:"full"}),time:Dd({formats:S9,defaultWidth:"full"}),dateTime:Dd({formats:$9,defaultWidth:"full"})},E9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_9=function(t,r,a,n){return E9[t]};function lo(e){return function(t,r){var a=r!=null&&r.context?String(r.context):"standalone",n;if(a==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[u]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return n[c]}}var A9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},O9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},T9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},x9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},D9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},P9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},R9=function(t,r){var a=Number(t),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},N9={ordinalNumber:R9,era:lo({values:A9,defaultWidth:"wide"}),quarter:lo({values:O9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:lo({values:T9,defaultWidth:"wide"}),day:lo({values:x9,defaultWidth:"wide"}),dayPeriod:lo({values:D9,defaultWidth:"wide",formattingValues:P9,defaultFormattingWidth:"wide"})};function fo(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.width,n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var o=i[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?M9(s,function(d){return d.test(o)}):k9(s,function(d){return d.test(o)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var l=t.slice(o.length);return{value:c,rest:l}}}function k9(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function M9(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function F9(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var n=a[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(n.length);return{value:o,rest:s}}}var j9=/^(\d+)(th|st|nd|rd)?/i,B9=/\d+/i,L9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},G9={any:[/^b/i,/^(a|c)/i]},V9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},W9={any:[/1/i,/2/i,/3/i,/4/i]},Y9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},U9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},H9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},X9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},z9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Z9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},J9={ordinalNumber:F9({matchPattern:j9,parsePattern:B9,valueCallback:function(t){return parseInt(t,10)}}),era:fo({matchPatterns:L9,defaultMatchWidth:"wide",parsePatterns:G9,defaultParseWidth:"any"}),quarter:fo({matchPatterns:V9,defaultMatchWidth:"wide",parsePatterns:W9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:fo({matchPatterns:Y9,defaultMatchWidth:"wide",parsePatterns:U9,defaultParseWidth:"any"}),day:fo({matchPatterns:H9,defaultMatchWidth:"wide",parsePatterns:X9,defaultParseWidth:"any"}),dayPeriod:fo({matchPatterns:z9,defaultMatchWidth:"any",parsePatterns:Z9,defaultParseWidth:"any"})},wb={code:"en-US",formatDistance:w9,formatLong:I9,formatRelative:_9,localize:N9,match:J9,options:{weekStartsOn:0,firstWeekContainsDate:1}},q9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q9=/^'([^]*?)'?$/,eY=/''/g,tY=/[a-zA-Z]/;function Cb(e,t,r){var a,n,i,o,s,u,c,l,d,f,p,m,v,g,h,y,b,w;K(2,arguments);var C=String(t),E=na(),_=(a=(n=r==null?void 0:r.locale)!==null&&n!==void 0?n:E.locale)!==null&&a!==void 0?a:wb,N=Se((i=(o=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(c=r.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:E.firstWeekContainsDate)!==null&&o!==void 0?o:(d=E.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=Se((p=(m=(v=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(h=r.locale)===null||h===void 0||(y=h.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&v!==void 0?v:E.weekStartsOn)!==null&&m!==void 0?m:(b=E.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=oe(e);if(!co(k))throw new RangeError("Invalid time value");var F=nu(k),W=lb(k,F),B={firstWeekContainsDate:N,weekStartsOn:R,locale:_,_originalDate:k},U=C.match(K9).map(function(Y){var L=Y[0];if(L==="p"||L==="P"){var Z=xd[L];return Z(Y,_.formatLong)}return Y}).join("").match(q9).map(function(Y){if(Y==="''")return"'";var L=Y[0];if(L==="'")return rY(Y);var Z=m9[L];if(Z)return!(r!=null&&r.useAdditionalWeekYearTokens)&&bb(Y)&&au(Y,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&yb(Y)&&au(Y,t,String(e)),Z(W,Y,_.localize,B);if(L.match(tY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return Y}).join("");return U}function rY(e){var t=e.match(Q9);return t?t[1].replace(eY,"'"):e}var nY=6e4;function Pd(e,t){K(2,arguments);var r=Se(t);return Od(e,r*nY)}var aY=36e5;function iY(e,t){K(2,arguments);var r=Se(t);return Od(e,r*aY)}function ei(e,t){K(2,arguments);var r=oe(e),a=Se(t);return isNaN(a)?new Date(NaN):(a&&r.setDate(r.getDate()+a),r)}function iu(e,t){K(2,arguments);var r=Se(t),a=r*7;return ei(e,a)}function gr(e,t){K(2,arguments);var r=oe(e),a=Se(t);if(isNaN(a))return new Date(NaN);if(!a)return r;var n=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+a+1,0);var o=i.getDate();return n>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}function Sb(e,t){K(2,arguments);var r=Se(t),a=r*3;return gr(e,a)}function ti(e,t){K(2,arguments);var r=Se(t);return gr(e,r*12)}function oY(e,t){K(2,arguments);var r=Se(t);return ei(e,-r)}function $b(e,t){K(2,arguments);var r=Se(t);return iu(e,-r)}function ri(e,t){K(2,arguments);var r=Se(t);return gr(e,-r)}function sY(e,t){K(2,arguments);var r=Se(t);return Sb(e,-r)}function po(e,t){K(2,arguments);var r=Se(t);return ti(e,-r)}function Ib(e){K(1,arguments);var t=oe(e),r=t.getSeconds();return r}function Rr(e){K(1,arguments);var t=oe(e),r=t.getMinutes();return r}function Nr(e){K(1,arguments);var t=oe(e),r=t.getHours();return r}function uY(e){K(1,arguments);var t=oe(e),r=t.getDay();return r}function Eb(e){K(1,arguments);var t=oe(e),r=t.getDate();return r}function _b(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=na(),d=Se((r=(a=(n=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:l.weekStartsOn)!==null&&a!==void 0?a:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=oe(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function ou(e){return K(1,arguments),_b(e,{weekStartsOn:1})}function cY(e){K(1,arguments);var t=oe(e),r=t.getFullYear(),a=new Date(0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);var n=ou(a),i=new Date(0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);var o=ou(i);return t.getTime()>=n.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function lY(e){K(1,arguments);var t=cY(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var a=ou(r);return a}var dY=6048e5;function fY(e){K(1,arguments);var t=oe(e),r=ou(t).getTime()-lY(t).getTime();return Math.round(r/dY)+1}function xt(e){K(1,arguments);var t=oe(e),r=t.getMonth();return r}function ni(e){K(1,arguments);var t=oe(e),r=Math.floor(t.getMonth()/3)+1;return r}function $e(e){return K(1,arguments),oe(e).getFullYear()}function Rd(e){K(1,arguments);var t=oe(e),r=t.getTime();return r}function pY(e,t){K(2,arguments);var r=oe(e),a=Se(t);return r.setSeconds(a),r}function su(e,t){K(2,arguments);var r=oe(e),a=Se(t);return r.setMinutes(a),r}function uu(e,t){K(2,arguments);var r=oe(e),a=Se(t);return r.setHours(a),r}function hY(e){K(1,arguments);var t=oe(e),r=t.getFullYear(),a=t.getMonth(),n=new Date(0);return n.setFullYear(r,a+1,0),n.setHours(0,0,0,0),n.getDate()}function Mt(e,t){K(2,arguments);var r=oe(e),a=Se(t),n=r.getFullYear(),i=r.getDate(),o=new Date(0);o.setFullYear(n,a,15),o.setHours(0,0,0,0);var s=hY(o);return r.setMonth(a,Math.min(i,s)),r}function ai(e,t){K(2,arguments);var r=oe(e),a=Se(t),n=Math.floor(r.getMonth()/3)+1,i=a-n;return Mt(r,r.getMonth()+i*3)}function ln(e,t){K(2,arguments);var r=oe(e),a=Se(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(a),r)}function Ab(e){K(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kt(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(a){var n=oe(a);(r===void 0||r>n||isNaN(n.getDate()))&&(r=n)}),r||new Date(NaN)}function Ob(e){K(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kt(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(a){var n=oe(a);(r===void 0||r<n||isNaN(Number(n)))&&(r=n)}),r||new Date(NaN)}function kr(e){K(1,arguments);var t=oe(e);return t.setHours(0,0,0,0),t}var mY=864e5;function cu(e,t){K(2,arguments);var r=kr(e),a=kr(t),n=r.getTime()-nu(r),i=a.getTime()-nu(a);return Math.round((n-i)/mY)}function lu(e,t){K(2,arguments);var r=oe(e),a=oe(t),n=r.getFullYear()-a.getFullYear(),i=r.getMonth()-a.getMonth();return n*12+i}function du(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()-a.getFullYear()}function Tb(e){K(1,arguments);var t=oe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Nd(e){K(1,arguments);var t=oe(e),r=t.getMonth(),a=r-r%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}function xb(e){K(1,arguments);var t=oe(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function kd(e){K(1,arguments);var t=oe(e);return t.setHours(23,59,59,999),t}function gY(e){K(1,arguments);var t=oe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function vY(e){K(1,arguments);var t=oe(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function yY(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getTime()===a.getTime()}function bY(e,t){K(2,arguments);var r=kr(e),a=kr(t);return r.getTime()===a.getTime()}function wY(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function CY(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()===a.getFullYear()}function SY(e,t){K(2,arguments);var r=Nd(e),a=Nd(t);return r.getTime()===a.getTime()}function On(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getTime()>a.getTime()}function Tn(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getTime()<a.getTime()}function ho(e,t){K(2,arguments);var r=oe(e).getTime(),a=oe(t.start).getTime(),n=oe(t.end).getTime();if(!(a<=n))throw new RangeError("Invalid interval");return r>=a&&r<=n}function Md(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function Fd(e,t){if(e){if(typeof e=="string")return Md(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Md(e,t):void 0}}function Db(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fd(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
68
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return o=c.done,c},e:function(c){s=!0,i=c},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw i}}}}function $Y(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jd(e,t){return jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},jd(e,t)}function Te(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jd(e,t)}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fu(e)}function Pb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pb=function(){return!!e})()}function IY(e,t){if(t&&(Kt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function xe(e){var t=Pb();return function(){var r,a=fu(e);if(t){var n=fu(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return IY(this,r)}}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EY(e,t){if(Kt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Kt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rb(e){var t=EY(e,"string");return Kt(t)=="symbol"?t:t+""}function Nb(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Rb(a.key),a)}}function Ae(e,t,r){return t&&Nb(e.prototype,t),r&&Nb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function q(e,t,r){return(t=Rb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _Y=10,kb=function(){function e(){_e(this,e),q(this,"priority",void 0),q(this,"subPriority",0)}return Ae(e,[{key:"validate",value:function(r,a){return!0}}]),e}(),AY=function(e){Te(r,e);var t=xe(r);function r(a,n,i,o,s){var u;return _e(this,r),u=t.call(this),u.value=a,u.validateValue=n,u.setValue=i,u.priority=o,s&&(u.subPriority=s),u}return Ae(r,[{key:"validate",value:function(n,i){return this.validateValue(n,this.value,i)}},{key:"set",value:function(n,i,o){return this.setValue(n,i,this.value,o)}}]),r}(kb),OY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",_Y),q(ie(a),"subPriority",-1),a}return Ae(r,[{key:"set",value:function(n,i){if(i.timestampIsSet)return n;var o=new Date(0);return o.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),o.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),o}}]),r}(kb),ke=function(){function e(){_e(this,e),q(this,"incompatibleTokens",void 0),q(this,"priority",void 0),q(this,"subPriority",void 0)}return Ae(e,[{key:"run",value:function(r,a,n,i){var o=this.parse(r,a,n,i);return o?{setter:new AY(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,a,n){return!0}}]),e}(),TY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",140),q(ie(a),"incompatibleTokens",["R","u","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}},{key:"set",value:function(n,i,o){return i.era=o,n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),Bd=6e4,Ld=36e5,xY=1e3,lt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Mr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function dt(e,t){return e&&{value:t(e.value),rest:e.rest}}function ot(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Fr(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var a=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:a*(n*Ld+i*Bd+o*xY),rest:t.slice(r[0].length)}}function Mb(e){return ot(lt.anyDigitsSigned,e)}function st(e,t){switch(e){case 1:return ot(lt.singleDigit,t);case 2:return ot(lt.twoDigits,t);case 3:return ot(lt.threeDigits,t);case 4:return ot(lt.fourDigits,t);default:return ot(new RegExp("^\\d{1,"+e+"}"),t)}}function pu(e,t){switch(e){case 1:return ot(lt.singleDigitSigned,t);case 2:return ot(lt.twoDigitsSigned,t);case 3:return ot(lt.threeDigitsSigned,t);case 4:return ot(lt.fourDigitsSigned,t);default:return ot(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Gd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Fb(e,t){var r=t>0,a=r?t:1-t,n;if(a<=50)n=e||100;else{var i=a+50,o=Math.floor(i/100)*100,s=e>=i%100;n=e+o-(s?100:0)}return r?n:1-n}function jb(e){return e%400===0||e%4===0&&e%100!==0}var DY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return{year:c,isTwoDigitYear:i==="yy"}};switch(i){case"y":return dt(st(4,n),s);case"yo":return dt(o.ordinalNumber(n,{unit:"year"}),s);default:return dt(st(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o){var s=n.getUTCFullYear();if(o.isTwoDigitYear){var u=Fb(o.year,s);return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n}var c=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(c,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),PY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return{year:c,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return dt(st(4,n),s);case"Yo":return dt(o.ordinalNumber(n,{unit:"year"}),s);default:return dt(st(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o,s){var u=Td(n,s);if(o.isTwoDigitYear){var c=Fb(o.year,u);return n.setUTCFullYear(c,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),aa(n,s)}var l=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(l,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),aa(n,s)}}]),r}(ke),RY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i){return pu(i==="R"?4:i.length,n)}},{key:"set",value:function(n,i,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),Ka(s)}}]),r}(ke),NY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i){return pu(i==="u"?4:i.length,n)}},{key:"set",value:function(n,i,o){return n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),kY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",120),q(ie(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"Q":case"QQ":return st(i.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),MY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",120),q(ie(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"q":case"qq":return st(i.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),FY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),q(ie(a),"priority",110),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return c-1};switch(i){case"M":return dt(ot(lt.month,n),s);case"MM":return dt(st(2,n),s);case"Mo":return dt(o.ordinalNumber(n,{unit:"month"}),s);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),jY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",110),q(ie(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return c-1};switch(i){case"L":return dt(ot(lt.month,n),s);case"LL":return dt(st(2,n),s);case"Lo":return dt(o.ordinalNumber(n,{unit:"month"}),s);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke);function BY(e,t,r){K(2,arguments);var a=oe(e),n=Se(t),i=pb(a,r)-n;return a.setUTCDate(a.getUTCDate()-i*7),a}var LY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",100),q(ie(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"w":return ot(lt.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o,s){return aa(BY(n,o,s),s)}}]),r}(ke);function GY(e,t){K(2,arguments);var r=oe(e),a=Se(t),n=fb(r)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var VY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",100),q(ie(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"I":return ot(lt.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o){return Ka(GY(n,o))}}]),r}(ke),WY=[31,28,31,30,31,30,31,31,30,31,30,31],YY=[31,29,31,30,31,30,31,31,30,31,30,31],UY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"subPriority",1),q(ie(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"d":return ot(lt.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=jb(o),u=n.getUTCMonth();return s?i>=1&&i<=YY[u]:i>=1&&i<=WY[u]}},{key:"set",value:function(n,i,o){return n.setUTCDate(o),n.setUTCHours(0,0,0,0),n}}]),r}(ke),HY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"subpriority",1),q(ie(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"D":case"DD":return ot(lt.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=jb(o);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(n,i,o){return n.setUTCMonth(0,o),n.setUTCHours(0,0,0,0),n}}]),r}(ke);function Vd(e,t,r){var a,n,i,o,s,u,c,l;K(2,arguments);var d=na(),f=Se((a=(n=(i=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=oe(e),m=Se(t),v=p.getUTCDay(),g=m%7,h=(g+7)%7,y=(h<f?7:0)+m-v;return p.setUTCDate(p.getUTCDate()+y),p}var XY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=Vd(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(ke),zY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o,s){var u=function(l){var d=Math.floor((l-1)/7)*7;return(l+s.weekStartsOn+6)%7+d};switch(i){case"e":case"ee":return dt(st(i.length,n),u);case"eo":return dt(o.ordinalNumber(n,{unit:"day"}),u);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=Vd(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(ke),ZY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o,s){var u=function(l){var d=Math.floor((l-1)/7)*7;return(l+s.weekStartsOn+6)%7+d};switch(i){case"c":case"cc":return dt(st(i.length,n),u);case"co":return dt(o.ordinalNumber(n,{unit:"day"}),u);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=Vd(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(ke);function JY(e,t){K(2,arguments);var r=Se(t);r%7===0&&(r=r-7);var a=1,n=oe(e),i=n.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<a?7:0)+r-i;return n.setUTCDate(n.getUTCDate()+u),n}var qY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return c===0?7:c};switch(i){case"i":case"ii":return st(i.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return dt(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return dt(o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return dt(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return dt(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(n,i){return i>=1&&i<=7}},{key:"set",value:function(n,i,o){return n=JY(n,o),n.setUTCHours(0,0,0,0),n}}]),r}(ke),KY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",80),q(ie(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(Gd(o),0,0,0),n}}]),r}(ke),QY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",80),q(ie(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(Gd(o),0,0,0),n}}]),r}(ke),eU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",80),q(ie(a),"incompatibleTokens",["a","b","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(Gd(o),0,0,0),n}}]),r}(ke),tU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["H","K","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"h":return ot(lt.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=12}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):!s&&o===12?n.setUTCHours(0,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(ke),rU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"H":return ot(lt.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=23}},{key:"set",value:function(n,i,o){return n.setUTCHours(o,0,0,0),n}}]),r}(ke),nU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["h","H","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"K":return ot(lt.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(ke),aU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"k":return ot(lt.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=24}},{key:"set",value:function(n,i,o){var s=o<=24?o%24:o;return n.setUTCHours(s,0,0,0),n}}]),r}(ke),iU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",60),q(ie(a),"incompatibleTokens",["t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"m":return ot(lt.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCMinutes(o,0,0),n}}]),r}(ke),oU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",50),q(ie(a),"incompatibleTokens",["t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"s":return ot(lt.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCSeconds(o,0),n}}]),r}(ke),sU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",30),q(ie(a),"incompatibleTokens",["t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i){var o=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return dt(st(i.length,n),o)}},{key:"set",value:function(n,i,o){return n.setUTCMilliseconds(o),n}}]),r}(ke),uU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",10),q(ie(a),"incompatibleTokens",["t","T","x"]),a}return Ae(r,[{key:"parse",value:function(n,i){switch(i){case"X":return Fr(Mr.basicOptionalMinutes,n);case"XX":return Fr(Mr.basic,n);case"XXXX":return Fr(Mr.basicOptionalSeconds,n);case"XXXXX":return Fr(Mr.extendedOptionalSeconds,n);case"XXX":default:return Fr(Mr.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(ke),cU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",10),q(ie(a),"incompatibleTokens",["t","T","X"]),a}return Ae(r,[{key:"parse",value:function(n,i){switch(i){case"x":return Fr(Mr.basicOptionalMinutes,n);case"xx":return Fr(Mr.basic,n);case"xxxx":return Fr(Mr.basicOptionalSeconds,n);case"xxxxx":return Fr(Mr.extendedOptionalSeconds,n);case"xxx":default:return Fr(Mr.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(ke),lU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",40),q(ie(a),"incompatibleTokens","*"),a}return Ae(r,[{key:"parse",value:function(n){return Mb(n)}},{key:"set",value:function(n,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(ke),dU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",20),q(ie(a),"incompatibleTokens","*"),a}return Ae(r,[{key:"parse",value:function(n){return Mb(n)}},{key:"set",value:function(n,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(ke),fU={G:new TY,y:new DY,Y:new PY,R:new RY,u:new NY,Q:new kY,q:new MY,M:new FY,L:new jY,w:new LY,I:new VY,d:new UY,D:new HY,E:new XY,e:new zY,c:new ZY,i:new qY,a:new KY,b:new QY,B:new eU,h:new tU,H:new rU,K:new nU,k:new aU,m:new iU,s:new oU,S:new sU,X:new uU,x:new cU,t:new lU,T:new dU},pU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mU=/^'([^]*?)'?$/,gU=/''/g,vU=/\S/,yU=/[a-zA-Z]/;function Wd(e,t,r,a){var n,i,o,s,u,c,l,d,f,p,m,v,g,h,y,b,w,C;K(3,arguments);var E=String(e),_=String(t),N=na(),R=(n=(i=a==null?void 0:a.locale)!==null&&i!==void 0?i:N.locale)!==null&&n!==void 0?n:wb;if(!R.match)throw new RangeError("locale must contain match property");var k=Se((o=(s=(u=(c=a==null?void 0:a.firstWeekContainsDate)!==null&&c!==void 0?c:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:N.firstWeekContainsDate)!==null&&s!==void 0?s:(f=N.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Se((m=(v=(g=(h=a==null?void 0:a.weekStartsOn)!==null&&h!==void 0?h:a==null||(y=a.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:N.weekStartsOn)!==null&&v!==void 0?v:(w=N.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return E===""?oe(r):new Date(NaN);var W={firstWeekContainsDate:k,weekStartsOn:F,locale:R},B=[new OY],U=_.match(hU).map(function(H){var Q=H[0];if(Q in xd){var ce=xd[Q];return ce(H,R.formatLong)}return H}).join("").match(pU),Y=[],L=Db(U),Z;try{var J=function(){var Q=Z.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&bb(Q)&&au(Q,_,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&yb(Q)&&au(Q,_,e);var ce=Q[0],Ee=fU[ce];if(Ee){var ee=Ee.incompatibleTokens;if(Array.isArray(ee)){var pt=Y.find(function(Ve){return ee.includes(Ve.token)||Ve.token===ce});if(pt)throw new RangeError("The format string mustn't contain `".concat(pt.fullToken,"` and `").concat(Q,"` at the same time"))}else if(Ee.incompatibleTokens==="*"&&Y.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));Y.push({token:ce,fullToken:Q});var te=Ee.run(E,Q,R.match,W);if(!te)return{v:new Date(NaN)};B.push(te.setter),E=te.rest}else{if(ce.match(yU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ce+"`");if(Q==="''"?Q="'":ce==="'"&&(Q=bU(Q)),E.indexOf(Q)===0)E=E.slice(Q.length);else return{v:new Date(NaN)}}};for(L.s();!(Z=L.n()).done;){var se=J();if(Kt(se)==="object")return se.v}}catch(H){L.e(H)}finally{L.f()}if(E.length>0&&vU.test(E))return new Date(NaN);var V=B.map(function(H){return H.priority}).sort(function(H,Q){return Q-H}).filter(function(H,Q,ce){return ce.indexOf(H)===Q}).map(function(H){return B.filter(function(Q){return Q.priority===H}).sort(function(Q,ce){return ce.subPriority-Q.subPriority})}).map(function(H){return H[0]}),D=oe(r);if(isNaN(D.getTime()))return new Date(NaN);var M=lb(D,nu(D)),P={},S=Db(V),T;try{for(S.s();!(T=S.n()).done;){var j=T.value;if(!j.validate(M,W))return new Date(NaN);var z=j.set(M,P,W);Array.isArray(z)?(M=z[0],$Y(P,z[1])):M=z}}catch(H){S.e(H)}finally{S.f()}return M}function bU(e){return e.match(mU)[1].replace(gU,"'")}function wU(e,t){var r;K(1,arguments);var a=Se((r=void 0)!==null&&r!==void 0?r:2);if(a!==2&&a!==1&&a!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var n=IU(e),i;if(n.date){var o=EU(n.date,a);i=_U(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),u=0,c;if(n.time&&(u=AU(n.time),isNaN(u)))return new Date(NaN);if(n.timezone){if(c=OU(n.timezone),isNaN(c))return new Date(NaN)}else{var l=new Date(s+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return new Date(s+u+c)}var hu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},CU=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,SU=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$U=/^([+-])(\d{2})(?::?(\d{2}))?$/;function IU(e){var t={},r=e.split(hu.dateTimeDelimiter),a;if(r.length>2)return t;if(/:/.test(r[0])?a=r[0]:(t.date=r[0],a=r[1],hu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hu.timeZoneDelimiter)[0],a=e.substr(t.date.length,e.length))),a){var n=hu.timezone.exec(a);n?(t.time=a.replace(n[1],""),t.timezone=n[1]):t.time=a}return t}function EU(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(r);if(!a)return{year:NaN,restDateString:""};var n=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:i===null?n:i*100,restDateString:e.slice((a[1]||a[2]).length)}}function _U(e,t){if(t===null)return new Date(NaN);var r=e.match(CU);if(!r)return new Date(NaN);var a=!!r[4],n=mo(r[1]),i=mo(r[2])-1,o=mo(r[3]),s=mo(r[4]),u=mo(r[5])-1;if(a)return RU(t,s,u)?TU(t,s,u):new Date(NaN);var c=new Date(0);return!DU(t,i,o)||!PU(t,n)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(n,o)),c)}function mo(e){return e?parseInt(e):1}function AU(e){var t=e.match(SU);if(!t)return NaN;var r=Yd(t[1]),a=Yd(t[2]),n=Yd(t[3]);return NU(r,a,n)?r*Ld+a*Bd+n*1e3:NaN}function Yd(e){return e&&parseFloat(e.replace(",","."))||0}function OU(e){if(e==="Z")return 0;var t=e.match($U);if(!t)return 0;var r=t[1]==="+"?-1:1,a=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return kU(a,n)?r*(a*Ld+n*Bd):NaN}function TU(e,t,r){var a=new Date(0);a.setUTCFullYear(e,0,4);var n=a.getUTCDay()||7,i=(t-1)*7+r+1-n;return a.setUTCDate(a.getUTCDate()+i),a}var xU=[31,null,31,30,31,30,31,31,30,31,30,31];function Bb(e){return e%400===0||e%4===0&&e%100!==0}function DU(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(xU[t]||(Bb(e)?29:28))}function PU(e,t){return t>=1&&t<=(Bb(e)?366:365)}function RU(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function NU(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function kU(e,t){return t>=0&&t<=59}function MU(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ud(e,t)}function Ud(e,t){return Ud=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},Ud(e,t)}function FU(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,i;for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Lb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jU(e,t,r){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(r):e.classList.contains(r)}function BU(e,t,r){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&jU(e,t,r))return!0;e=e.parentNode||e.host}return e}function LU(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var GU=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,r=Object.defineProperty({},"passive",{get:function(){t=!0}}),a=function(){};return window.addEventListener("testPassiveEventSupport",a,r),window.removeEventListener("testPassiveEventSupport",a,r),t}};function VU(e){return e===void 0&&(e=0),function(){return++e}}var WU=VU(),Hd,mu={},Xd={},YU=["touchstart","touchmove"],UU="ignore-react-onclickoutside";function Gb(e,t){var r={},a=YU.indexOf(t)!==-1;return a&&Hd&&(r.passive=!e.props.preventDefault),r}function gu(e,t){var r,a,n=e.displayName||e.name||"Component";return a=r=function(i){MU(o,i);function o(u){var c;return c=i.call(this,u)||this,c.__outsideClickHandler=function(l){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(l);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(l);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(l);return}throw new Error("WrappedComponent: "+n+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var l=c.getInstance();return typeof l.setClickOutsideRef=="function"?l.setClickOutsideRef():en.findDOMNode(l)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Xd[c._uid])){typeof Hd>"u"&&(Hd=GU()),Xd[c._uid]=!0;var l=c.props.eventTypes;l.forEach||(l=[l]),mu[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&LU(d)))){var f=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;BU(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},l.forEach(function(d){document.addEventListener(d,mu[c._uid],Gb(Lb(c),d))})}},c.disableOnClickOutside=function(){delete Xd[c._uid];var l=mu[c._uid];if(l&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,l,Gb(Lb(c),f))}),delete mu[c._uid]}},c.getRef=function(l){return c.instanceRef=l},c._uid=WU(),c.initTimeStamp=performance.now(),c}var s=o.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var l=FU(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?l.ref=this.getRef:l.wrappedRef=this.getRef,l.disableOnClickOutside=this.disableOnClickOutside,l.enableOnClickOutside=this.enableOnClickOutside,I.createElement(e,l)},o}(I.Component),r.displayName="OnClickOutside("+n+")",r.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:UU,preventDefault:!1,stopPropagation:!1},r.getClass=function(){return e.getClass?e.getClass():e},a}var Vb=ne.createContext(),Wb=ne.createContext();function HU(e){var t=e.children,r=ne.useState(null),a=r[0],n=r[1],i=ne.useRef(!1);ne.useEffect(function(){return function(){i.current=!0}},[]);var o=ne.useCallback(function(s){i.current||n(s)},[]);return ne.createElement(Vb.Provider,{value:a},ne.createElement(Wb.Provider,{value:o},t))}var Yb=function(t){return Array.isArray(t)?t[0]:t},Ub=function(t){if(typeof t=="function"){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return t.apply(void 0,a)}},zd=function(t,r){if(typeof t=="function")return Ub(t,r);t!=null&&(t.current=r)},Hb=function(t){return t.reduce(function(r,a){var n=a[0],i=a[1];return r[n]=i,r},{})},Xb=typeof window<"u"&&window.document&&window.document.createElement?ne.useLayoutEffect:ne.useEffect,Bt="top",sr="bottom",ur="right",Lt="left",Zd="auto",go=[Bt,sr,ur,Lt],ii="start",vo="end",XU="clippingParents",zb="viewport",yo="popper",zU="reference",Zb=go.reduce(function(e,t){return e.concat([t+"-"+ii,t+"-"+vo])},[]),Jb=[].concat(go,[Zd]).reduce(function(e,t){return e.concat([t,t+"-"+ii,t+"-"+vo])},[]),ZU="beforeRead",JU="read",qU="afterRead",KU="beforeMain",QU="main",eH="afterMain",tH="beforeWrite",rH="write",nH="afterWrite",aH=[ZU,JU,qU,KU,QU,eH,tH,rH,nH];function jr(e){return e?(e.nodeName||"").toLowerCase():null}function Qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oa(e){var t=Qt(e).Element;return e instanceof t||e instanceof Element}function cr(e){var t=Qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jd(e){if(typeof ShadowRoot>"u")return!1;var t=Qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iH(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var a=t.styles[r]||{},n=t.attributes[r]||{},i=t.elements[r];!cr(i)||!jr(i)||(Object.assign(i.style,a),Object.keys(n).forEach(function(o){var s=n[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function oH(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(a){var n=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:r[a]),s=o.reduce(function(u,c){return u[c]="",u},{});!cr(n)||!jr(n)||(Object.assign(n.style,s),Object.keys(i).forEach(function(u){n.removeAttribute(u)}))})}}const sH={name:"applyStyles",enabled:!0,phase:"write",fn:iH,effect:oH,requires:["computeStyles"]};function Br(e){return e.split("-")[0]}var sa=Math.max,vu=Math.min,oi=Math.round;function qd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qb(){return!/^((?!chrome|android).)*safari/i.test(qd())}function si(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var a=e.getBoundingClientRect(),n=1,i=1;t&&cr(e)&&(n=e.offsetWidth>0&&oi(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&oi(a.height)/e.offsetHeight||1);var o=oa(e)?Qt(e):window,s=o.visualViewport,u=!qb()&&r,c=(a.left+(u&&s?s.offsetLeft:0))/n,l=(a.top+(u&&s?s.offsetTop:0))/i,d=a.width/n,f=a.height/i;return{width:d,height:f,top:l,right:c+d,bottom:l+f,left:c,x:c,y:l}}function Kd(e){var t=si(e),r=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:a}}function Kb(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Jd(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function dn(e){return Qt(e).getComputedStyle(e)}function uH(e){return["table","td","th"].indexOf(jr(e))>=0}function xn(e){return((oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function yu(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(Jd(e)?e.host:null)||xn(e)}function Qb(e){return!cr(e)||dn(e).position==="fixed"?null:e.offsetParent}function cH(e){var t=/firefox/i.test(qd()),r=/Trident/i.test(qd());if(r&&cr(e)){var a=dn(e);if(a.position==="fixed")return null}var n=yu(e);for(Jd(n)&&(n=n.host);cr(n)&&["html","body"].indexOf(jr(n))<0;){var i=dn(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function bo(e){for(var t=Qt(e),r=Qb(e);r&&uH(r)&&dn(r).position==="static";)r=Qb(r);return r&&(jr(r)==="html"||jr(r)==="body"&&dn(r).position==="static")?t:r||cH(e)||t}function Qd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wo(e,t,r){return sa(e,vu(t,r))}function lH(e,t,r){var a=wo(e,t,r);return a>r?r:a}function e0(){return{top:0,right:0,bottom:0,left:0}}function t0(e){return Object.assign({},e0(),e)}function r0(e,t){return t.reduce(function(r,a){return r[a]=e,r},{})}var dH=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,t0(typeof t!="number"?t:r0(t,go))};function fH(e){var t,r=e.state,a=e.name,n=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Br(r.placement),u=Qd(s),c=[Lt,ur].indexOf(s)>=0,l=c?"height":"width";if(!(!i||!o)){var d=dH(n.padding,r),f=Kd(i),p=u==="y"?Bt:Lt,m=u==="y"?sr:ur,v=r.rects.reference[l]+r.rects.reference[u]-o[u]-r.rects.popper[l],g=o[u]-r.rects.reference[u],h=bo(i),y=h?u==="y"?h.clientHeight||0:h.clientWidth||0:0,b=v/2-g/2,w=d[p],C=y-f[l]-d[m],E=y/2-f[l]/2+b,_=wo(w,E,C),N=u;r.modifiersData[a]=(t={},t[N]=_,t.centerOffset=_-E,t)}}function pH(e){var t=e.state,r=e.options,a=r.element,n=a===void 0?"[data-popper-arrow]":a;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Kb(t.elements.popper,n)&&(t.elements.arrow=n))}const hH={name:"arrow",enabled:!0,phase:"main",fn:fH,effect:pH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ui(e){return e.split("-")[1]}var mH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gH(e,t){var r=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:oi(r*n)/n||0,y:oi(a*n)/n||0}}function n0(e){var t,r=e.popper,a=e.popperRect,n=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,v=m===void 0?0:m,g=typeof l=="function"?l({x:p,y:v}):{x:p,y:v};p=g.x,v=g.y;var h=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Lt,w=Bt,C=window;if(c){var E=bo(r),_="clientHeight",N="clientWidth";if(E===Qt(r)&&(E=xn(r),dn(E).position!=="static"&&s==="absolute"&&(_="scrollHeight",N="scrollWidth")),E=E,n===Bt||(n===Lt||n===ur)&&i===vo){w=sr;var R=d&&E===C&&C.visualViewport?C.visualViewport.height:E[_];v-=R-a.height,v*=u?1:-1}if(n===Lt||(n===Bt||n===sr)&&i===vo){b=ur;var k=d&&E===C&&C.visualViewport?C.visualViewport.width:E[N];p-=k-a.width,p*=u?1:-1}}var F=Object.assign({position:s},c&&mH),W=l===!0?gH({x:p,y:v},Qt(r)):{x:p,y:v};if(p=W.x,v=W.y,u){var B;return Object.assign({},F,(B={},B[w]=y?"0":"",B[b]=h?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",B))}return Object.assign({},F,(t={},t[w]=y?v+"px":"",t[b]=h?p+"px":"",t.transform="",t))}function vH(e){var t=e.state,r=e.options,a=r.gpuAcceleration,n=a===void 0?!0:a,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Br(t.placement),variation:ui(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,n0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,n0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vH,data:{}};var bu={passive:!0};function bH(e){var t=e.state,r=e.instance,a=e.options,n=a.scroll,i=n===void 0?!0:n,o=a.resize,s=o===void 0?!0:o,u=Qt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(l){l.addEventListener("scroll",r.update,bu)}),s&&u.addEventListener("resize",r.update,bu),function(){i&&c.forEach(function(l){l.removeEventListener("scroll",r.update,bu)}),s&&u.removeEventListener("resize",r.update,bu)}}const wH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bH,data:{}};var CH={left:"right",right:"left",bottom:"top",top:"bottom"};function wu(e){return e.replace(/left|right|bottom|top/g,function(t){return CH[t]})}var SH={start:"end",end:"start"};function a0(e){return e.replace(/start|end/g,function(t){return SH[t]})}function ef(e){var t=Qt(e),r=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:r,scrollTop:a}}function tf(e){return si(xn(e)).left+ef(e).scrollLeft}function $H(e,t){var r=Qt(e),a=xn(e),n=r.visualViewport,i=a.clientWidth,o=a.clientHeight,s=0,u=0;if(n){i=n.width,o=n.height;var c=qb();(c||!c&&t==="fixed")&&(s=n.offsetLeft,u=n.offsetTop)}return{width:i,height:o,x:s+tf(e),y:u}}function IH(e){var t,r=xn(e),a=ef(e),n=(t=e.ownerDocument)==null?void 0:t.body,i=sa(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=sa(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-a.scrollLeft+tf(e),u=-a.scrollTop;return dn(n||r).direction==="rtl"&&(s+=sa(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function rf(e){var t=dn(e),r=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function i0(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:cr(e)&&rf(e)?e:i0(yu(e))}function Co(e,t){var r;t===void 0&&(t=[]);var a=i0(e),n=a===((r=e.ownerDocument)==null?void 0:r.body),i=Qt(a),o=n?[i].concat(i.visualViewport||[],rf(a)?a:[]):a,s=t.concat(o);return n?s:s.concat(Co(yu(o)))}function nf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EH(e,t){var r=si(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function o0(e,t,r){return t===zb?nf($H(e,r)):oa(t)?EH(t,r):nf(IH(xn(e)))}function _H(e){var t=Co(yu(e)),r=["absolute","fixed"].indexOf(dn(e).position)>=0,a=r&&cr(e)?bo(e):e;return oa(a)?t.filter(function(n){return oa(n)&&Kb(n,a)&&jr(n)!=="body"}):[]}function AH(e,t,r,a){var n=t==="clippingParents"?_H(e):[].concat(t),i=[].concat(n,[r]),o=i[0],s=i.reduce(function(u,c){var l=o0(e,c,a);return u.top=sa(l.top,u.top),u.right=vu(l.right,u.right),u.bottom=vu(l.bottom,u.bottom),u.left=sa(l.left,u.left),u},o0(e,o,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function s0(e){var t=e.reference,r=e.element,a=e.placement,n=a?Br(a):null,i=a?ui(a):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(n){case Bt:u={x:o,y:t.y-r.height};break;case sr:u={x:o,y:t.y+t.height};break;case ur:u={x:t.x+t.width,y:s};break;case Lt:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=n?Qd(n):null;if(c!=null){var l=c==="y"?"height":"width";switch(i){case ii:u[c]=u[c]-(t[l]/2-r[l]/2);break;case vo:u[c]=u[c]+(t[l]/2-r[l]/2);break}}return u}function So(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=a===void 0?e.placement:a,i=r.strategy,o=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?XU:s,c=r.rootBoundary,l=c===void 0?zb:c,d=r.elementContext,f=d===void 0?yo:d,p=r.altBoundary,m=p===void 0?!1:p,v=r.padding,g=v===void 0?0:v,h=t0(typeof g!="number"?g:r0(g,go)),y=f===yo?zU:yo,b=e.rects.popper,w=e.elements[m?y:f],C=AH(oa(w)?w:w.contextElement||xn(e.elements.popper),u,l,o),E=si(e.elements.reference),_=s0({reference:E,element:b,placement:n}),N=nf(Object.assign({},b,_)),R=f===yo?N:E,k={top:C.top-R.top+h.top,bottom:R.bottom-C.bottom+h.bottom,left:C.left-R.left+h.left,right:R.right-C.right+h.right},F=e.modifiersData.offset;if(f===yo&&F){var W=F[n];Object.keys(k).forEach(function(B){var U=[ur,sr].indexOf(B)>=0?1:-1,Y=[Bt,sr].indexOf(B)>=0?"y":"x";k[B]+=W[Y]*U})}return k}function OH(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?Jb:u,l=ui(a),d=l?s?Zb:Zb.filter(function(m){return ui(m)===l}):go,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,v){return m[v]=So(e,{placement:v,boundary:n,rootBoundary:i,padding:o})[Br(v)],m},{});return Object.keys(p).sort(function(m,v){return p[m]-p[v]})}function TH(e){if(Br(e)===Zd)return[];var t=wu(e);return[a0(e),t,a0(t)]}function xH(e){var t=e.state,r=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,c=r.padding,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,m=p===void 0?!0:p,v=r.allowedAutoPlacements,g=t.options.placement,h=Br(g),y=h===g,b=u||(y||!m?[wu(g)]:TH(g)),w=[g].concat(b).reduce(function(S,T){return S.concat(Br(T)===Zd?OH(t,{placement:T,boundary:l,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):T)},[]),C=t.rects.reference,E=t.rects.popper,_=new Map,N=!0,R=w[0],k=0;k<w.length;k++){var F=w[k],W=Br(F),B=ui(F)===ii,U=[Bt,sr].indexOf(W)>=0,Y=U?"width":"height",L=So(t,{placement:F,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),Z=U?B?ur:Lt:B?sr:Bt;C[Y]>E[Y]&&(Z=wu(Z));var J=wu(Z),se=[];if(i&&se.push(L[W]<=0),s&&se.push(L[Z]<=0,L[J]<=0),se.every(function(S){return S})){R=F,N=!1;break}_.set(F,se)}if(N)for(var V=m?3:1,D=function(T){var j=w.find(function(z){var H=_.get(z);if(H)return H.slice(0,T).every(function(Q){return Q})});if(j)return R=j,"break"},M=V;M>0;M--){var P=D(M);if(P==="break")break}t.placement!==R&&(t.modifiersData[a]._skip=!0,t.placement=R,t.reset=!0)}}const DH={name:"flip",enabled:!0,phase:"main",fn:xH,requiresIfExists:["offset"],data:{_skip:!1}};function u0(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function c0(e){return[Bt,ur,sr,Lt].some(function(t){return e[t]>=0})}function PH(e){var t=e.state,r=e.name,a=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,o=So(t,{elementContext:"reference"}),s=So(t,{altBoundary:!0}),u=u0(o,a),c=u0(s,n,i),l=c0(u),d=c0(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const RH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PH};function NH(e,t,r){var a=Br(e),n=[Lt,Bt].indexOf(a)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*n,[Lt,ur].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function kH(e){var t=e.state,r=e.options,a=e.name,n=r.offset,i=n===void 0?[0,0]:n,o=Jb.reduce(function(l,d){return l[d]=NH(d,t.rects,i),l},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=o}const MH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kH};function FH(e){var t=e.state,r=e.name;t.modifiersData[r]=s0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jH={name:"popperOffsets",enabled:!0,phase:"read",fn:FH,data:{}};function BH(e){return e==="x"?"y":"x"}function LH(e){var t=e.state,r=e.options,a=e.name,n=r.mainAxis,i=n===void 0?!0:n,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,c=r.rootBoundary,l=r.altBoundary,d=r.padding,f=r.tether,p=f===void 0?!0:f,m=r.tetherOffset,v=m===void 0?0:m,g=So(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),h=Br(t.placement),y=ui(t.placement),b=!y,w=Qd(h),C=BH(w),E=t.modifiersData.popperOffsets,_=t.rects.reference,N=t.rects.popper,R=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,k=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(E){if(i){var B,U=w==="y"?Bt:Lt,Y=w==="y"?sr:ur,L=w==="y"?"height":"width",Z=E[w],J=Z+g[U],se=Z-g[Y],V=p?-N[L]/2:0,D=y===ii?_[L]:N[L],M=y===ii?-N[L]:-_[L],P=t.elements.arrow,S=p&&P?Kd(P):{width:0,height:0},T=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:e0(),j=T[U],z=T[Y],H=wo(0,_[L],S[L]),Q=b?_[L]/2-V-H-j-k.mainAxis:D-H-j-k.mainAxis,ce=b?-_[L]/2+V+H+z+k.mainAxis:M+H+z+k.mainAxis,Ee=t.elements.arrow&&bo(t.elements.arrow),ee=Ee?w==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,pt=(B=F==null?void 0:F[w])!=null?B:0,te=Z+Q-pt-ee,Ve=Z+ce-pt,wt=wo(p?vu(J,te):J,Z,p?sa(se,Ve):se);E[w]=wt,W[w]=wt-Z}if(s){var Ut,bn=w==="x"?Bt:Lt,qr=w==="x"?sr:ur,tr=E[C],Kr=C==="y"?"height":"width",Qr=tr+g[bn],Bn=tr-g[qr],wn=[Bt,Lt].indexOf(h)!==-1,Cn=(Ut=F==null?void 0:F[C])!=null?Ut:0,Ir=wn?Qr:tr-_[Kr]-N[Kr]-Cn+k.altAxis,Sn=wn?tr+_[Kr]+N[Kr]-Cn-k.altAxis:Bn,Sa=p&&wn?lH(Ir,tr,Sn):wo(p?Ir:Qr,tr,p?Sn:Bn);E[C]=Sa,W[C]=Sa-tr}t.modifiersData[a]=W}}const GH={name:"preventOverflow",enabled:!0,phase:"main",fn:LH,requiresIfExists:["offset"]};function VH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WH(e){return e===Qt(e)||!cr(e)?ef(e):VH(e)}function YH(e){var t=e.getBoundingClientRect(),r=oi(t.width)/e.offsetWidth||1,a=oi(t.height)/e.offsetHeight||1;return r!==1||a!==1}function UH(e,t,r){r===void 0&&(r=!1);var a=cr(t),n=cr(t)&&YH(t),i=xn(t),o=si(e,n,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!r)&&((jr(t)!=="body"||rf(i))&&(s=WH(t)),cr(t)?(u=si(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=tf(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function HH(e){var t=new Map,r=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function n(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&n(u)}}),a.push(i)}return e.forEach(function(i){r.has(i.name)||n(i)}),a}function XH(e){var t=HH(e);return aH.reduce(function(r,a){return r.concat(t.filter(function(n){return n.phase===a}))},[])}function zH(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ZH(e){var t=e.reduce(function(r,a){var n=r[a.name];return r[a.name]=n?Object.assign({},n,a,{options:Object.assign({},n.options,a.options),data:Object.assign({},n.data,a.data)}):a,r},{});return Object.keys(t).map(function(r){return t[r]})}var l0={placement:"bottom",modifiers:[],strategy:"absolute"};function d0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function JH(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,a=r===void 0?[]:r,n=t.defaultOptions,i=n===void 0?l0:n;return function(s,u,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},l0,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},d=[],f=!1,p={state:l,setOptions:function(h){var y=typeof h=="function"?h(l.options):h;v(),l.options=Object.assign({},i,l.options,y),l.scrollParents={reference:oa(s)?Co(s):s.contextElement?Co(s.contextElement):[],popper:Co(u)};var b=XH(ZH([].concat(a,l.options.modifiers)));return l.orderedModifiers=b.filter(function(w){return w.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var h=l.elements,y=h.reference,b=h.popper;if(d0(y,b)){l.rects={reference:UH(y,bo(b),l.options.strategy==="fixed"),popper:Kd(b)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(k){return l.modifiersData[k.name]=Object.assign({},k.data)});for(var w=0;w<l.orderedModifiers.length;w++){if(l.reset===!0){l.reset=!1,w=-1;continue}var C=l.orderedModifiers[w],E=C.fn,_=C.options,N=_===void 0?{}:_,R=C.name;typeof E=="function"&&(l=E({state:l,options:N,name:R,instance:p})||l)}}}},update:zH(function(){return new Promise(function(g){p.forceUpdate(),g(l)})}),destroy:function(){v(),f=!0}};if(!d0(s,u))return p;p.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function m(){l.orderedModifiers.forEach(function(g){var h=g.name,y=g.options,b=y===void 0?{}:y,w=g.effect;if(typeof w=="function"){var C=w({state:l,name:h,instance:p,options:b}),E=function(){};d.push(C||E)}})}function v(){d.forEach(function(g){return g()}),d=[]}return p}}var qH=[wH,jH,yH,sH,MH,DH,GH,hH,RH],KH=JH({defaultModifiers:qH}),QH=typeof Element<"u",e5=typeof Map=="function",t5=typeof Set=="function",r5=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Cu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,a,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(!Cu(e[a],t[a]))return!1;return!0}var i;if(e5&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(a=i.next()).done;)if(!t.has(a.value[0]))return!1;for(i=e.entries();!(a=i.next()).done;)if(!Cu(a.value[1],t.get(a.value[0])))return!1;return!0}if(t5&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(a=i.next()).done;)if(!t.has(a.value[0]))return!1;return!0}if(r5&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[a]))return!1;if(QH&&e instanceof Element)return!1;for(a=r;a--!==0;)if(!((n[a]==="_owner"||n[a]==="__v"||n[a]==="__o")&&e.$$typeof)&&!Cu(e[n[a]],t[n[a]]))return!1;return!0}return e!==e&&t!==t}var n5=function(t,r){try{return Cu(t,r)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const a5=Xt(n5);var i5=[],o5=function(t,r,a){a===void 0&&(a={});var n=ne.useRef(null),i={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||i5},o=ne.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=o[0],u=o[1],c=ne.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,v=Object.keys(m.elements);w$.flushSync(function(){u({styles:Hb(v.map(function(g){return[g,m.styles[g]||{}]})),attributes:Hb(v.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),l=ne.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:"applyStyles",enabled:!1}])};return a5(n.current,f)?n.current||f:(n.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),d=ne.useRef();return Xb(function(){d.current&&d.current.setOptions(l)},[l]),Xb(function(){if(!(t==null||r==null)){var f=a.createPopper||KH,p=f(t,r,l);return d.current=p,function(){p.destroy(),d.current=null}}},[t,r,a.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},s5=function(){},u5=function(){return Promise.resolve(null)},c5=[];function l5(e){var t=e.placement,r=t===void 0?"bottom":t,a=e.strategy,n=a===void 0?"absolute":a,i=e.modifiers,o=i===void 0?c5:i,s=e.referenceElement,u=e.onFirstUpdate,c=e.innerRef,l=e.children,d=ne.useContext(Vb),f=ne.useState(null),p=f[0],m=f[1],v=ne.useState(null),g=v[0],h=v[1];ne.useEffect(function(){zd(c,p)},[c,p]);var y=ne.useMemo(function(){return{placement:r,strategy:n,onFirstUpdate:u,modifiers:[].concat(o,[{name:"arrow",enabled:g!=null,options:{element:g}}])}},[r,n,u,o,g]),b=o5(s||d,p,y),w=b.state,C=b.styles,E=b.forceUpdate,_=b.update,N=ne.useMemo(function(){return{ref:m,style:C.popper,placement:w?w.placement:r,hasPopperEscaped:w&&w.modifiersData.hide?w.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:w&&w.modifiersData.hide?w.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:C.arrow,ref:h},forceUpdate:E||s5,update:_||u5}},[m,h,r,w,C,_,E]);return Yb(l)(N)}var d5=process.env.NODE_ENV!=="production",f0=function(){};if(d5){var f5=function(t,r){var a=arguments.length;r=new Array(a>1?a-1:0);for(var n=1;n<a;n++)r[n-1]=arguments[n];var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};f0=function(e,t,r){var a=arguments.length;r=new Array(a>2?a-2:0);for(var n=2;n<a;n++)r[n-2]=arguments[n];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||f5.apply(null,[t].concat(r))}}var p5=f0;const h5=Xt(p5);function m5(e){var t=e.children,r=e.innerRef,a=ne.useContext(Wb),n=ne.useCallback(function(i){zd(r,i),Ub(a,i)},[r,a]);return ne.useEffect(function(){return function(){return zd(r,null)}},[]),ne.useEffect(function(){h5(!!a,"`Reference` should not be used outside of a `Manager` component.")},[a]),Yb(t)({ref:n})}function g5(e,t){if(K(2,arguments),Kt(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var r=oe(e);return isNaN(r.getTime())?new Date(NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=Mt(r,t.month)),t.date!=null&&r.setDate(Se(t.date)),t.hours!=null&&r.setHours(Se(t.hours)),t.minutes!=null&&r.setMinutes(Se(t.minutes)),t.seconds!=null&&r.setSeconds(Se(t.seconds)),t.milliseconds!=null&&r.setMilliseconds(Se(t.milliseconds)),r)}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(a){A(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function af(e){return af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},af(e)}function Ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h0(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,m0(a.key),a)}}function St(e,t,r){return t&&h0(e.prototype,t),r&&h0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e,t,r){return(t=m0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ci.apply(this,arguments)}function $t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&of(e,t)}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$u(e)}function of(e,t){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},of(e,t)}function O(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function It(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,a=$u(e);if(t){var n=$u(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return function(i,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(i)}(this,r)}}function $o(e){return function(t){if(Array.isArray(t))return sf(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,r){if(t){if(typeof t=="string")return sf(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return sf(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
69
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function m0(e){var t=function(r,a){if(typeof r!="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,a);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}(e,"string");return typeof t=="symbol"?t:String(t)}var g0=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},v0=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},v5={p:v0,P:function(e,t){var r,a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return g0(e,t);switch(n){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",g0(n,t)).replace("{{time}}",v0(i,t))}},Io=12,y5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Xe(e){var t=e?typeof e=="string"||e instanceof String?wU(e):oe(e):new Date;return Dn(t)?t:null}function Dn(e,t){return t=t||new Date("1/1/1000"),co(e)&&!Tn(e,t)}function it(e,t,r){if(r==="en")return Cb(e,t,{awareOfUnicodeTokens:!0});var a=la(r);return r&&!a&&console.warn('A locale object was not found for the provided string ["'.concat(r,'"].')),!a&&ca()&&la(ca())&&(a=la(ca())),Cb(e,t,{locale:a||null,awareOfUnicodeTokens:!0})}function Lr(e,t){var r=t.dateFormat,a=t.locale;return e&&it(e,Array.isArray(r)?r[0]:r,a)||""}function y0(e,t){var r=t.hour,a=r===void 0?0:r,n=t.minute,i=n===void 0?0:n,o=t.second;return uu(su(pY(e,o===void 0?0:o),i),a)}function Gr(e,t,r){var a=la(t||ca());return _b(e,{locale:a,weekStartsOn:r})}function Pn(e){return Tb(e)}function Eo(e){return xb(e)}function b0(e){return Nd(e)}function w0(){return kr(Xe())}function Rn(e,t){return e&&t?CY(e,t):!e&&!t}function vr(e,t){return e&&t?wY(e,t):!e&&!t}function Iu(e,t){return e&&t?SY(e,t):!e&&!t}function et(e,t){return e&&t?bY(e,t):!e&&!t}function ua(e,t){return e&&t?yY(e,t):!e&&!t}function Eu(e,t,r){var a,n=kr(t),i=kd(r);try{a=ho(e,{start:n,end:i})}catch{a=!1}return a}function ca(){return(typeof window<"u"?window:globalThis).__localeId__}function la(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function uf(e,t){return it(Mt(Xe(),e),"LLLL",t)}function C0(e,t){return it(Mt(Xe(),e),"LLL",t)}function _u(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.excludeDateIntervals,o=t.includeDates,s=t.includeDateIntervals,u=t.filterDate;return Au(e,{minDate:r,maxDate:a})||n&&n.some(function(c){return et(e,c)})||i&&i.some(function(c){var l=c.start,d=c.end;return ho(e,{start:l,end:d})})||o&&!o.some(function(c){return et(e,c)})||s&&!s.some(function(c){var l=c.start,d=c.end;return ho(e,{start:l,end:d})})||u&&!u(Xe(e))||!1}function cf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.excludeDates,a=t.excludeDateIntervals;return a&&a.length>0?a.some(function(n){var i=n.start,o=n.end;return ho(e,{start:i,end:o})}):r&&r.some(function(n){return et(e,n)})||!1}function S0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.includeDates,o=t.filterDate;return Au(e,{minDate:Tb(r),maxDate:gY(a)})||n&&n.some(function(s){return vr(e,s)})||i&&!i.some(function(s){return vr(e,s)})||o&&!o(Xe(e))||!1}function lf(e,t,r,a){var n=$e(e),i=xt(e),o=$e(t),s=xt(t),u=$e(a);return n===o&&n===u?i<=r&&r<=s:n<o?u===n&&i<=r||u===o&&s>=r||u<o&&u>n:void 0}function b5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.includeDates,o=t.filterDate;return Au(e,{minDate:r,maxDate:a})||n&&n.some(function(s){return Iu(e,s)})||i&&!i.some(function(s){return Iu(e,s)})||o&&!o(Xe(e))||!1}function df(e,t,r){if(!co(t)||!co(r))return!1;var a=$e(t),n=$e(r);return a<=e&&n>=e}function $0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.includeDates,o=t.filterDate,s=new Date(e,0,1);return Au(s,{minDate:xb(r),maxDate:vY(a)})||n&&n.some(function(u){return Rn(s,u)})||i&&!i.some(function(u){return Rn(s,u)})||o&&!o(Xe(s))||!1}function ff(e,t,r,a){var n=$e(e),i=ni(e),o=$e(t),s=ni(t),u=$e(a);return n===o&&n===u?i<=r&&r<=s:n<o?u===n&&i<=r||u===o&&s>=r||u<o&&u>n:void 0}function Au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate;return r&&cu(e,r)<0||a&&cu(e,a)>0}function I0(e,t){return t.some(function(r){return Nr(r)===Nr(e)&&Rr(r)===Rr(e)})}function E0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.excludeTimes,a=t.includeTimes,n=t.filterTime;return r&&I0(e,r)||a&&!I0(e,a)||n&&!n(e)||!1}function _0(e,t){var r=t.minTime,a=t.maxTime;if(!r||!a)throw new Error("Both minTime and maxTime props required");var n,i=Xe(),o=uu(su(i,Rr(e)),Nr(e)),s=uu(su(i,Rr(r)),Nr(r)),u=uu(su(i,Rr(a)),Nr(a));try{n=!ho(o,{start:s,end:u})}catch{n=!1}return n}function A0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.includeDates,n=ri(e,1);return r&&lu(r,n)>0||a&&a.every(function(i){return lu(i,n)>0})||!1}function O0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.maxDate,a=t.includeDates,n=gr(e,1);return r&&lu(n,r)>0||a&&a.every(function(i){return lu(n,i)>0})||!1}function T0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.includeDates,n=po(e,1);return r&&du(r,n)>0||a&&a.every(function(i){return du(i,n)>0})||!1}function x0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.maxDate,a=t.includeDates,n=ti(e,1);return r&&du(n,r)>0||a&&a.every(function(i){return du(n,i)>0})||!1}function D0(e){var t=e.minDate,r=e.includeDates;if(r&&t){var a=r.filter(function(n){return cu(n,t)>=0});return Ab(a)}return r?Ab(r):t}function P0(e){var t=e.maxDate,r=e.includeDates;if(r&&t){var a=r.filter(function(n){return cu(n,t)<=0});return Ob(a)}return r?Ob(r):t}function R0(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",r=new Map,a=0,n=e.length;a<n;a++){var i=e[a];if(ru(i)){var o=it(i,"MM.dd.yyyy"),s=r.get(o)||[];s.includes(t)||(s.push(t),r.set(o,s))}else if(af(i)==="object"){var u=Object.keys(i),c=u[0],l=i[u[0]];if(typeof c=="string"&&l.constructor===Array)for(var d=0,f=l.length;d<f;d++){var p=it(l[d],"MM.dd.yyyy"),m=r.get(p)||[];m.includes(c)||(m.push(c),r.set(p,m))}}}return r}function w5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",r=new Map;return e.forEach(function(a){var n=a.date,i=a.holidayName;if(ru(n)){var o=it(n,"MM.dd.yyyy"),s=r.get(o)||{};if(!("className"in s)||s.className!==t||(u=s.holidayNames,c=[i],u.length!==c.length||!u.every(function(d,f){return d===c[f]}))){var u,c;s.className=t;var l=s.holidayNames;s.holidayNames=l?[].concat($o(l),[i]):[i],r.set(o,s)}}}),r}function C5(e,t,r,a,n){for(var i=n.length,o=[],s=0;s<i;s++){var u=Pd(iY(e,Nr(n[s])),Rr(n[s])),c=Pd(e,(r+1)*a);On(u,t)&&Tn(u,c)&&o.push(n[s])}return o}function N0(e){return e<10?"0".concat(e):"".concat(e)}function li(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Io,r=Math.ceil($e(e)/t)*t;return{startPeriod:r-(t-1),endPeriod:r}}function k0(e){var t=e.getSeconds(),r=e.getMilliseconds();return oe(e.getTime()-1e3*t-r)}function S5(e,t,r,a){for(var n=[],i=0;i<2*t+1;i++){var o=e+t-i,s=!0;r&&(s=$e(r)<=o),a&&s&&(s=$e(a)>=o),s&&n.push(o)}return n}var $5=gu(function(e){$t(r,I.Component);var t=It(r);function r(a){var n;Ct(this,r),A(O(n=t.call(this,a)),"renderOptions",function(){var u=n.props.year,c=n.state.yearsList.map(function(f){return I.createElement("div",{className:u===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:n.onChange.bind(O(n),f),"aria-selected":u===f?"true":void 0},u===f?I.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),l=n.props.minDate?$e(n.props.minDate):null,d=n.props.maxDate?$e(n.props.maxDate):null;return d&&n.state.yearsList.find(function(f){return f===d})||c.unshift(I.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},I.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),l&&n.state.yearsList.find(function(f){return f===l})||c.push(I.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},I.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),A(O(n),"onChange",function(u){n.props.onChange(u)}),A(O(n),"handleClickOutside",function(){n.props.onCancel()}),A(O(n),"shiftYears",function(u){var c=n.state.yearsList.map(function(l){return l+u});n.setState({yearsList:c})}),A(O(n),"incrementYears",function(){return n.shiftYears(1)}),A(O(n),"decrementYears",function(){return n.shiftYears(-1)});var i=a.yearDropdownItemNumber,o=a.scrollableYearDropdown,s=i||(o?10:5);return n.state={yearsList:S5(n.props.year,s,n.props.minDate,n.props.maxDate)},n.dropdownRef=I.createRef(),n}return St(r,[{key:"componentDidMount",value:function(){var a=this.dropdownRef.current;if(a){var n=a.children?Array.from(a.children):null,i=n?n.find(function(o){return o.ariaSelected}):null;a.scrollTop=i?i.offsetTop+(i.clientHeight-a.clientHeight)/2:(a.scrollHeight-a.clientHeight)/2}}},{key:"render",value:function(){var a=_t({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return I.createElement("div",{className:a,ref:this.dropdownRef},this.renderOptions())}}]),r}()),I5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),A(O(a),"renderSelectOptions",function(){for(var s=a.props.minDate?$e(a.props.minDate):1900,u=a.props.maxDate?$e(a.props.maxDate):2100,c=[],l=s;l<=u;l++)c.push(I.createElement("option",{key:l,value:l},l));return c}),A(O(a),"onSelectChange",function(s){a.onChange(s.target.value)}),A(O(a),"renderSelectMode",function(){return I.createElement("select",{value:a.props.year,className:"react-datepicker__year-select",onChange:a.onSelectChange},a.renderSelectOptions())}),A(O(a),"renderReadView",function(s){return I.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(u){return a.toggleDropdown(u)}},I.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),I.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},a.props.year))}),A(O(a),"renderDropdown",function(){return I.createElement($5,{key:"dropdown",year:a.props.year,onChange:a.onChange,onCancel:a.toggleDropdown,minDate:a.props.minDate,maxDate:a.props.maxDate,scrollableYearDropdown:a.props.scrollableYearDropdown,yearDropdownItemNumber:a.props.yearDropdownItemNumber})}),A(O(a),"renderScrollMode",function(){var s=a.state.dropdownVisible,u=[a.renderReadView(!s)];return s&&u.unshift(a.renderDropdown()),u}),A(O(a),"onChange",function(s){a.toggleDropdown(),s!==a.props.year&&a.props.onChange(s)}),A(O(a),"toggleDropdown",function(s){a.setState({dropdownVisible:!a.state.dropdownVisible},function(){a.props.adjustDateOnChange&&a.handleYearChange(a.props.date,s)})}),A(O(a),"handleYearChange",function(s,u){a.onSelect(s,u),a.setOpen()}),A(O(a),"onSelect",function(s,u){a.props.onSelect&&a.props.onSelect(s,u)}),A(O(a),"setOpen",function(){a.props.setOpen&&a.props.setOpen(!0)}),a}return St(r,[{key:"render",value:function(){var a;switch(this.props.dropdownMode){case"scroll":a=this.renderScrollMode();break;case"select":a=this.renderSelectMode()}return I.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},a)}}]),r}(),E5=gu(function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"isSelectedMonth",function(s){return a.props.month===s}),A(O(a),"renderOptions",function(){return a.props.monthNames.map(function(s,u){return I.createElement("div",{className:a.isSelectedMonth(u)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:a.onChange.bind(O(a),u),"aria-selected":a.isSelectedMonth(u)?"true":void 0},a.isSelectedMonth(u)?I.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),A(O(a),"onChange",function(s){return a.props.onChange(s)}),A(O(a),"handleClickOutside",function(){return a.props.onCancel()}),a}return St(r,[{key:"render",value:function(){return I.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),r}()),_5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),A(O(a),"renderSelectOptions",function(s){return s.map(function(u,c){return I.createElement("option",{key:c,value:c},u)})}),A(O(a),"renderSelectMode",function(s){return I.createElement("select",{value:a.props.month,className:"react-datepicker__month-select",onChange:function(u){return a.onChange(u.target.value)}},a.renderSelectOptions(s))}),A(O(a),"renderReadView",function(s,u){return I.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:a.toggleDropdown},I.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),I.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},u[a.props.month]))}),A(O(a),"renderDropdown",function(s){return I.createElement(E5,{key:"dropdown",month:a.props.month,monthNames:s,onChange:a.onChange,onCancel:a.toggleDropdown})}),A(O(a),"renderScrollMode",function(s){var u=a.state.dropdownVisible,c=[a.renderReadView(!u,s)];return u&&c.unshift(a.renderDropdown(s)),c}),A(O(a),"onChange",function(s){a.toggleDropdown(),s!==a.props.month&&a.props.onChange(s)}),A(O(a),"toggleDropdown",function(){return a.setState({dropdownVisible:!a.state.dropdownVisible})}),a}return St(r,[{key:"render",value:function(){var a,n=this,i=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(o){return C0(o,n.props.locale)}:function(o){return uf(o,n.props.locale)});switch(this.props.dropdownMode){case"scroll":a=this.renderScrollMode(i);break;case"select":a=this.renderSelectMode(i)}return I.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},a)}}]),r}();function A5(e,t){for(var r=[],a=Pn(e),n=Pn(t);!On(a,n);)r.push(Xe(a)),a=gr(a,1);return r}var O5=gu(function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"renderOptions",function(){return n.state.monthYearsList.map(function(i){var o=Rd(i),s=Rn(n.props.date,i)&&vr(n.props.date,i);return I.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:o,onClick:n.onChange.bind(O(n),o),"aria-selected":s?"true":void 0},s?I.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",it(i,n.props.dateFormat,n.props.locale))})}),A(O(n),"onChange",function(i){return n.props.onChange(i)}),A(O(n),"handleClickOutside",function(){n.props.onCancel()}),n.state={monthYearsList:A5(n.props.minDate,n.props.maxDate)},n}return St(r,[{key:"render",value:function(){var a=_t({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return I.createElement("div",{className:a},this.renderOptions())}}]),r}()),T5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),A(O(a),"renderSelectOptions",function(){for(var s=Pn(a.props.minDate),u=Pn(a.props.maxDate),c=[];!On(s,u);){var l=Rd(s);c.push(I.createElement("option",{key:l,value:l},it(s,a.props.dateFormat,a.props.locale))),s=gr(s,1)}return c}),A(O(a),"onSelectChange",function(s){a.onChange(s.target.value)}),A(O(a),"renderSelectMode",function(){return I.createElement("select",{value:Rd(Pn(a.props.date)),className:"react-datepicker__month-year-select",onChange:a.onSelectChange},a.renderSelectOptions())}),A(O(a),"renderReadView",function(s){var u=it(a.props.date,a.props.dateFormat,a.props.locale);return I.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return a.toggleDropdown(c)}},I.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),I.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},u))}),A(O(a),"renderDropdown",function(){return I.createElement(O5,{key:"dropdown",date:a.props.date,dateFormat:a.props.dateFormat,onChange:a.onChange,onCancel:a.toggleDropdown,minDate:a.props.minDate,maxDate:a.props.maxDate,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown,locale:a.props.locale})}),A(O(a),"renderScrollMode",function(){var s=a.state.dropdownVisible,u=[a.renderReadView(!s)];return s&&u.unshift(a.renderDropdown()),u}),A(O(a),"onChange",function(s){a.toggleDropdown();var u=Xe(parseInt(s));Rn(a.props.date,u)&&vr(a.props.date,u)||a.props.onChange(u)}),A(O(a),"toggleDropdown",function(){return a.setState({dropdownVisible:!a.state.dropdownVisible})}),a}return St(r,[{key:"render",value:function(){var a;switch(this.props.dropdownMode){case"scroll":a=this.renderScrollMode();break;case"select":a=this.renderSelectMode()}return I.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},a)}}]),r}(),x5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"dayEl",I.createRef()),A(O(a),"handleClick",function(s){!a.isDisabled()&&a.props.onClick&&a.props.onClick(s)}),A(O(a),"handleMouseEnter",function(s){!a.isDisabled()&&a.props.onMouseEnter&&a.props.onMouseEnter(s)}),A(O(a),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),a.props.handleOnKeyDown(s)}),A(O(a),"isSameDay",function(s){return et(a.props.day,s)}),A(O(a),"isKeyboardSelected",function(){return!a.props.disabledKeyboardNavigation&&!(a.isSameDay(a.props.selected)||a.isSameWeek(a.props.selected))&&(a.isSameDay(a.props.preSelection)||a.isSameWeek(a.props.preSelection))}),A(O(a),"isDisabled",function(){return _u(a.props.day,a.props)}),A(O(a),"isExcluded",function(){return cf(a.props.day,a.props)}),A(O(a),"isStartOfWeek",function(){return et(a.props.day,Gr(a.props.day,a.props.locale,a.props.calendarStartDay))}),A(O(a),"isSameWeek",function(s){return a.props.showWeekPicker&&et(s,Gr(a.props.day,a.props.locale,a.props.calendarStartDay))}),A(O(a),"getHighLightedClass",function(){var s=a.props,u=s.day,c=s.highlightDates;if(!c)return!1;var l=it(u,"MM.dd.yyyy");return c.get(l)}),A(O(a),"getHolidaysClass",function(){var s=a.props,u=s.day,c=s.holidays;if(!c)return!1;var l=it(u,"MM.dd.yyyy");return c.has(l)?[c.get(l).className]:void 0}),A(O(a),"isInRange",function(){var s=a.props,u=s.day,c=s.startDate,l=s.endDate;return!(!c||!l)&&Eu(u,c,l)}),A(O(a),"isInSelectingRange",function(){var s,u=a.props,c=u.day,l=u.selectsStart,d=u.selectsEnd,f=u.selectsRange,p=u.selectsDisabledDaysInRange,m=u.startDate,v=u.endDate,g=(s=a.props.selectingDate)!==null&&s!==void 0?s:a.props.preSelection;return!(!(l||d||f)||!g||!p&&a.isDisabled())&&(l&&v&&(Tn(g,v)||ua(g,v))?Eu(c,g,v):(d&&m&&(On(g,m)||ua(g,m))||!(!f||!m||v||!On(g,m)&&!ua(g,m)))&&Eu(c,m,g))}),A(O(a),"isSelectingRangeStart",function(){var s;if(!a.isInSelectingRange())return!1;var u=a.props,c=u.day,l=u.startDate,d=u.selectsStart,f=(s=a.props.selectingDate)!==null&&s!==void 0?s:a.props.preSelection;return et(c,d?f:l)}),A(O(a),"isSelectingRangeEnd",function(){var s;if(!a.isInSelectingRange())return!1;var u=a.props,c=u.day,l=u.endDate,d=u.selectsEnd,f=u.selectsRange,p=(s=a.props.selectingDate)!==null&&s!==void 0?s:a.props.preSelection;return et(c,d||f?p:l)}),A(O(a),"isRangeStart",function(){var s=a.props,u=s.day,c=s.startDate,l=s.endDate;return!(!c||!l)&&et(c,u)}),A(O(a),"isRangeEnd",function(){var s=a.props,u=s.day,c=s.startDate,l=s.endDate;return!(!c||!l)&&et(l,u)}),A(O(a),"isWeekend",function(){var s=uY(a.props.day);return s===0||s===6}),A(O(a),"isAfterMonth",function(){return a.props.month!==void 0&&(a.props.month+1)%12===xt(a.props.day)}),A(O(a),"isBeforeMonth",function(){return a.props.month!==void 0&&(xt(a.props.day)+1)%12===a.props.month}),A(O(a),"isCurrentDay",function(){return a.isSameDay(Xe())}),A(O(a),"isSelected",function(){return a.isSameDay(a.props.selected)||a.isSameWeek(a.props.selected)}),A(O(a),"getClassNames",function(s){var u,c=a.props.dayClassName?a.props.dayClassName(s):void 0;return _t("react-datepicker__day",c,"react-datepicker__day--"+it(a.props.day,"ddd",u),{"react-datepicker__day--disabled":a.isDisabled(),"react-datepicker__day--excluded":a.isExcluded(),"react-datepicker__day--selected":a.isSelected(),"react-datepicker__day--keyboard-selected":a.isKeyboardSelected(),"react-datepicker__day--range-start":a.isRangeStart(),"react-datepicker__day--range-end":a.isRangeEnd(),"react-datepicker__day--in-range":a.isInRange(),"react-datepicker__day--in-selecting-range":a.isInSelectingRange(),"react-datepicker__day--selecting-range-start":a.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":a.isSelectingRangeEnd(),"react-datepicker__day--today":a.isCurrentDay(),"react-datepicker__day--weekend":a.isWeekend(),"react-datepicker__day--outside-month":a.isAfterMonth()||a.isBeforeMonth()},a.getHighLightedClass("react-datepicker__day--highlighted"),a.getHolidaysClass())}),A(O(a),"getAriaLabel",function(){var s=a.props,u=s.day,c=s.ariaLabelPrefixWhenEnabled,l=c===void 0?"Choose":c,d=s.ariaLabelPrefixWhenDisabled,f=d===void 0?"Not available":d,p=a.isDisabled()||a.isExcluded()?f:l;return"".concat(p," ").concat(it(u,"PPPP",a.props.locale))}),A(O(a),"getTitle",function(){var s=a.props,u=s.day,c=s.holidays,l=c===void 0?new Map:c,d=it(u,"MM.dd.yyyy");return l.has(d)&&l.get(d).holidayNames.length>0?l.get(d).holidayNames.join(", "):""}),A(O(a),"getTabIndex",function(s,u){var c=s||a.props.selected,l=u||a.props.preSelection;return(!a.props.showWeekPicker||!a.props.showWeekNumber&&a.isStartOfWeek())&&(a.isKeyboardSelected()||a.isSameDay(c)&&et(l,c))?0:-1}),A(O(a),"handleFocusDay",function(){var s,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;a.getTabIndex()===0&&!u.isInputFocused&&a.isSameDay(a.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),a.props.inline&&!a.props.shouldFocusDayInline&&(c=!1),a.props.containerRef&&a.props.containerRef.current&&a.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(c=!0),a.props.monthShowsDuplicateDaysEnd&&a.isAfterMonth()&&(c=!1),a.props.monthShowsDuplicateDaysStart&&a.isBeforeMonth()&&(c=!1)),c&&((s=a.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))}),A(O(a),"renderDayContents",function(){return a.props.monthShowsDuplicateDaysEnd&&a.isAfterMonth()||a.props.monthShowsDuplicateDaysStart&&a.isBeforeMonth()?null:a.props.renderDayContents?a.props.renderDayContents(Eb(a.props.day),a.props.day):Eb(a.props.day)}),A(O(a),"render",function(){return I.createElement("div",{ref:a.dayEl,className:a.getClassNames(a.props.day),onKeyDown:a.handleOnKeyDown,onClick:a.handleClick,onMouseEnter:a.handleMouseEnter,tabIndex:a.getTabIndex(),"aria-label":a.getAriaLabel(),role:"option",title:a.getTitle(),"aria-disabled":a.isDisabled(),"aria-current":a.isCurrentDay()?"date":void 0,"aria-selected":a.isSelected()||a.isInRange()},a.renderDayContents(),a.getTitle()!==""&&I.createElement("span",{className:"holiday-overlay"},a.getTitle()))}),a}return St(r,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(a){this.handleFocusDay(a)}}]),r}(),D5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"weekNumberEl",I.createRef()),A(O(a),"handleClick",function(s){a.props.onClick&&a.props.onClick(s)}),A(O(a),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),a.props.handleOnKeyDown(s)}),A(O(a),"isKeyboardSelected",function(){return!a.props.disabledKeyboardNavigation&&!et(a.props.date,a.props.selected)&&et(a.props.date,a.props.preSelection)}),A(O(a),"getTabIndex",function(){return a.props.showWeekPicker&&a.props.showWeekNumber&&(a.isKeyboardSelected()||et(a.props.date,a.props.selected)&&et(a.props.preSelection,a.props.selected))?0:-1}),A(O(a),"handleFocusWeekNumber",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=!1;a.getTabIndex()===0&&!s.isInputFocused&&et(a.props.date,a.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(u=!0),a.props.inline&&!a.props.shouldFocusDayInline&&(u=!1),a.props.containerRef&&a.props.containerRef.current&&a.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(u=!0)),u&&a.weekNumberEl.current&&a.weekNumberEl.current.focus({preventScroll:!0})}),a}return St(r,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(a){this.handleFocusWeekNumber(a)}},{key:"render",value:function(){var a=this.props,n=a.weekNumber,i=a.ariaLabelPrefix,o=i===void 0?"week ":i,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a.onClick,"react-datepicker__week-number--selected":et(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return I.createElement("div",{ref:this.weekNumberEl,className:_t(s),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),r}(),P5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"handleDayClick",function(s,u){a.props.onDayClick&&a.props.onDayClick(s,u)}),A(O(a),"handleDayMouseEnter",function(s){a.props.onDayMouseEnter&&a.props.onDayMouseEnter(s)}),A(O(a),"handleWeekClick",function(s,u,c){if(typeof a.props.onWeekSelect=="function"&&a.props.onWeekSelect(s,u,c),a.props.showWeekPicker){var l=Gr(s,a.props.locale,a.props.calendarStartDay);a.handleDayClick(l,c)}a.props.shouldCloseOnSelect&&a.props.setOpen(!1)}),A(O(a),"formatWeekNumber",function(s){return a.props.formatWeekNumber?a.props.formatWeekNumber(s):function(u,c){var l=ca()&&la(ca());return fY(u,l?{locale:l}:null)}(s)}),A(O(a),"renderDays",function(){var s=Gr(a.props.day,a.props.locale,a.props.calendarStartDay),u=[],c=a.formatWeekNumber(s);if(a.props.showWeekNumber){var l=a.props.onWeekSelect||a.props.showWeekPicker?a.handleWeekClick.bind(O(a),s,c):void 0;u.push(I.createElement(D5,{key:"W",weekNumber:c,date:s,onClick:l,selected:a.props.selected,preSelection:a.props.preSelection,ariaLabelPrefix:a.props.ariaLabelPrefix,showWeekPicker:a.props.showWeekPicker,showWeekNumber:a.props.showWeekNumber,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,handleOnKeyDown:a.props.handleOnKeyDown,isInputFocused:a.props.isInputFocused,containerRef:a.props.containerRef}))}return u.concat([0,1,2,3,4,5,6].map(function(d){var f=ei(s,d);return I.createElement(x5,{ariaLabelPrefixWhenEnabled:a.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:a.props.disabledDayAriaLabelPrefix,key:f.valueOf(),day:f,month:a.props.month,onClick:a.handleDayClick.bind(O(a),f),onMouseEnter:a.handleDayMouseEnter.bind(O(a),f),minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,highlightDates:a.props.highlightDates,holidays:a.props.holidays,selectingDate:a.props.selectingDate,filterDate:a.props.filterDate,preSelection:a.props.preSelection,selected:a.props.selected,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,showWeekPicker:a.props.showWeekPicker,showWeekNumber:a.props.showWeekNumber,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,startDate:a.props.startDate,endDate:a.props.endDate,dayClassName:a.props.dayClassName,renderDayContents:a.props.renderDayContents,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,handleOnKeyDown:a.props.handleOnKeyDown,isInputFocused:a.props.isInputFocused,containerRef:a.props.containerRef,inline:a.props.inline,shouldFocusDayInline:a.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:a.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:a.props.monthShowsDuplicateDaysStart,locale:a.props.locale})}))}),A(O(a),"startOfWeek",function(){return Gr(a.props.day,a.props.locale,a.props.calendarStartDay)}),A(O(a),"isKeyboardSelected",function(){return!a.props.disabledKeyboardNavigation&&!et(a.startOfWeek(),a.props.selected)&&et(a.startOfWeek(),a.props.preSelection)}),a}return St(r,[{key:"render",value:function(){var a={"react-datepicker__week":!0,"react-datepicker__week--selected":et(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return I.createElement("div",{className:_t(a)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),r}(),M0="two_columns",F0="three_columns",j0="four_columns",pf=A(A(A({},M0,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),F0,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),j0,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function B0(e,t){return e?j0:t?M0:F0}var R5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"MONTH_REFS",$o(Array(12)).map(function(){return I.createRef()})),A(O(a),"QUARTER_REFS",$o(Array(4)).map(function(){return I.createRef()})),A(O(a),"isDisabled",function(s){return _u(s,a.props)}),A(O(a),"isExcluded",function(s){return cf(s,a.props)}),A(O(a),"handleDayClick",function(s,u){a.props.onDayClick&&a.props.onDayClick(s,u,a.props.orderInDisplay)}),A(O(a),"handleDayMouseEnter",function(s){a.props.onDayMouseEnter&&a.props.onDayMouseEnter(s)}),A(O(a),"handleMouseLeave",function(){a.props.onMouseLeave&&a.props.onMouseLeave()}),A(O(a),"isRangeStartMonth",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&vr(Mt(c,s),l)}),A(O(a),"isRangeStartQuarter",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&Iu(ai(c,s),l)}),A(O(a),"isRangeEndMonth",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&vr(Mt(c,s),d)}),A(O(a),"isRangeEndQuarter",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&Iu(ai(c,s),d)}),A(O(a),"isInSelectingRangeMonth",function(s){var u,c=a.props,l=c.day,d=c.selectsStart,f=c.selectsEnd,p=c.selectsRange,m=c.startDate,v=c.endDate,g=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return!(!(d||f||p)||!g)&&(d&&v?lf(g,v,s,l):(f&&m||!(!p||!m||v))&&lf(m,g,s,l))}),A(O(a),"isSelectingMonthRangeStart",function(s){var u;if(!a.isInSelectingRangeMonth(s))return!1;var c=a.props,l=c.day,d=c.startDate,f=c.selectsStart,p=Mt(l,s),m=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return vr(p,f?m:d)}),A(O(a),"isSelectingMonthRangeEnd",function(s){var u;if(!a.isInSelectingRangeMonth(s))return!1;var c=a.props,l=c.day,d=c.endDate,f=c.selectsEnd,p=c.selectsRange,m=Mt(l,s),v=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return vr(m,f||p?v:d)}),A(O(a),"isInSelectingRangeQuarter",function(s){var u,c=a.props,l=c.day,d=c.selectsStart,f=c.selectsEnd,p=c.selectsRange,m=c.startDate,v=c.endDate,g=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return!(!(d||f||p)||!g)&&(d&&v?ff(g,v,s,l):(f&&m||!(!p||!m||v))&&ff(m,g,s,l))}),A(O(a),"isWeekInMonth",function(s){var u=a.props.day,c=ei(s,6);return vr(s,u)||vr(c,u)}),A(O(a),"isCurrentMonth",function(s,u){return $e(s)===$e(Xe())&&u===xt(Xe())}),A(O(a),"isCurrentQuarter",function(s,u){return $e(s)===$e(Xe())&&u===ni(Xe())}),A(O(a),"isSelectedMonth",function(s,u,c){return xt(c)===u&&$e(s)===$e(c)}),A(O(a),"isSelectedQuarter",function(s,u,c){return ni(s)===u&&$e(s)===$e(c)}),A(O(a),"renderWeeks",function(){for(var s=[],u=a.props.fixedHeight,c=0,l=!1,d=Gr(Pn(a.props.day),a.props.locale,a.props.calendarStartDay);s.push(I.createElement(P5,{ariaLabelPrefix:a.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,key:c,day:d,month:xt(a.props.day),onDayClick:a.handleDayClick,onDayMouseEnter:a.handleDayMouseEnter,onWeekSelect:a.props.onWeekSelect,formatWeekNumber:a.props.formatWeekNumber,locale:a.props.locale,minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,inline:a.props.inline,shouldFocusDayInline:a.props.shouldFocusDayInline,highlightDates:a.props.highlightDates,holidays:a.props.holidays,selectingDate:a.props.selectingDate,filterDate:a.props.filterDate,preSelection:a.props.preSelection,selected:a.props.selected,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,showWeekNumber:a.props.showWeekNumbers,showWeekPicker:a.props.showWeekPicker,startDate:a.props.startDate,endDate:a.props.endDate,dayClassName:a.props.dayClassName,setOpen:a.props.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,renderDayContents:a.props.renderDayContents,handleOnKeyDown:a.props.handleOnKeyDown,isInputFocused:a.props.isInputFocused,containerRef:a.props.containerRef,calendarStartDay:a.props.calendarStartDay,monthShowsDuplicateDaysEnd:a.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:a.props.monthShowsDuplicateDaysStart})),!l;){c++,d=iu(d,1);var f=u&&c>=6,p=!u&&!a.isWeekInMonth(d);if(f||p){if(!a.props.peekNextMonth)break;l=!0}}return s}),A(O(a),"onMonthClick",function(s,u){a.handleDayClick(Pn(Mt(a.props.day,u)),s)}),A(O(a),"onMonthMouseEnter",function(s){a.handleDayMouseEnter(Pn(Mt(a.props.day,s)))}),A(O(a),"handleMonthNavigation",function(s,u){a.isDisabled(u)||a.isExcluded(u)||(a.props.setPreSelection(u),a.MONTH_REFS[s].current&&a.MONTH_REFS[s].current.focus())}),A(O(a),"onMonthKeyDown",function(s,u){var c=a.props,l=c.selected,d=c.preSelection,f=c.disabledKeyboardNavigation,p=c.showTwoColumnMonthYearPicker,m=c.showFourColumnMonthYearPicker,v=c.setPreSelection,g=s.key;if(g!=="Tab"&&s.preventDefault(),!f){var h=B0(m,p),y=pf[h].verticalNavigationOffset,b=pf[h].grid;switch(g){case"Enter":a.onMonthClick(s,u),v(l);break;case"ArrowRight":a.handleMonthNavigation(u===11?0:u+1,gr(d,1));break;case"ArrowLeft":a.handleMonthNavigation(u===0?11:u-1,ri(d,1));break;case"ArrowUp":a.handleMonthNavigation(b[0].includes(u)?u+12-y:u-y,ri(d,y));break;case"ArrowDown":a.handleMonthNavigation(b[b.length-1].includes(u)?u-12+y:u+y,gr(d,y))}}}),A(O(a),"onQuarterClick",function(s,u){a.handleDayClick(b0(ai(a.props.day,u)),s)}),A(O(a),"onQuarterMouseEnter",function(s){a.handleDayMouseEnter(b0(ai(a.props.day,s)))}),A(O(a),"handleQuarterNavigation",function(s,u){a.isDisabled(u)||a.isExcluded(u)||(a.props.setPreSelection(u),a.QUARTER_REFS[s-1].current&&a.QUARTER_REFS[s-1].current.focus())}),A(O(a),"onQuarterKeyDown",function(s,u){var c=s.key;if(!a.props.disabledKeyboardNavigation)switch(c){case"Enter":a.onQuarterClick(s,u),a.props.setPreSelection(a.props.selected);break;case"ArrowRight":a.handleQuarterNavigation(u===4?1:u+1,Sb(a.props.preSelection,1));break;case"ArrowLeft":a.handleQuarterNavigation(u===1?4:u-1,sY(a.props.preSelection,1))}}),A(O(a),"getMonthClassNames",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate,f=u.selected,p=u.minDate,m=u.maxDate,v=u.preSelection,g=u.monthClassName,h=u.excludeDates,y=u.includeDates,b=g?g(Mt(c,s)):void 0,w=Mt(c,s);return _t("react-datepicker__month-text","react-datepicker__month-".concat(s),b,{"react-datepicker__month-text--disabled":(p||m||h||y)&&S0(w,a.props),"react-datepicker__month-text--selected":a.isSelectedMonth(c,s,f),"react-datepicker__month-text--keyboard-selected":!a.props.disabledKeyboardNavigation&&xt(v)===s,"react-datepicker__month-text--in-selecting-range":a.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":lf(l,d,s,c),"react-datepicker__month-text--range-start":a.isRangeStartMonth(s),"react-datepicker__month-text--range-end":a.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":a.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":a.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":a.isCurrentMonth(c,s)})}),A(O(a),"getTabIndex",function(s){var u=xt(a.props.preSelection);return a.props.disabledKeyboardNavigation||s!==u?"-1":"0"}),A(O(a),"getQuarterTabIndex",function(s){var u=ni(a.props.preSelection);return a.props.disabledKeyboardNavigation||s!==u?"-1":"0"}),A(O(a),"getAriaLabel",function(s){var u=a.props,c=u.chooseDayAriaLabelPrefix,l=c===void 0?"Choose":c,d=u.disabledDayAriaLabelPrefix,f=d===void 0?"Not available":d,p=u.day,m=Mt(p,s),v=a.isDisabled(m)||a.isExcluded(m)?f:l;return"".concat(v," ").concat(it(m,"MMMM yyyy"))}),A(O(a),"getQuarterClassNames",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate,f=u.selected,p=u.minDate,m=u.maxDate,v=u.preSelection,g=u.disabledKeyboardNavigation;return _t("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(p||m)&&b5(ai(c,s),a.props),"react-datepicker__quarter-text--selected":a.isSelectedQuarter(c,s,f),"react-datepicker__quarter-text--keyboard-selected":!g&&ni(v)===s,"react-datepicker__quarter-text--in-selecting-range":a.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":ff(l,d,s,c),"react-datepicker__quarter-text--range-start":a.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":a.isRangeEndQuarter(s)})}),A(O(a),"getMonthContent",function(s){var u=a.props,c=u.showFullMonthYearPicker,l=u.renderMonthContent,d=u.locale,f=u.day,p=C0(s,d),m=uf(s,d);return l?l(s,p,m,f):c?m:p}),A(O(a),"getQuarterContent",function(s){var u=a.props,c=u.renderQuarterContent,l=function(d,f){return it(ai(Xe(),d),"QQQ",f)}(s,u.locale);return c?c(s,l):l}),A(O(a),"renderMonths",function(){var s=a.props,u=s.showTwoColumnMonthYearPicker,c=s.showFourColumnMonthYearPicker,l=s.day,d=s.selected;return pf[B0(c,u)].grid.map(function(f,p){return I.createElement("div",{className:"react-datepicker__month-wrapper",key:p},f.map(function(m,v){return I.createElement("div",{ref:a.MONTH_REFS[m],key:v,onClick:function(g){a.onMonthClick(g,m)},onKeyDown:function(g){a.onMonthKeyDown(g,m)},onMouseEnter:function(){return a.onMonthMouseEnter(m)},tabIndex:a.getTabIndex(m),className:a.getMonthClassNames(m),role:"option","aria-label":a.getAriaLabel(m),"aria-current":a.isCurrentMonth(l,m)?"date":void 0,"aria-selected":a.isSelectedMonth(l,m,d)},a.getMonthContent(m))}))})}),A(O(a),"renderQuarters",function(){var s=a.props,u=s.day,c=s.selected;return I.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(l,d){return I.createElement("div",{key:d,ref:a.QUARTER_REFS[d],role:"option",onClick:function(f){a.onQuarterClick(f,l)},onKeyDown:function(f){a.onQuarterKeyDown(f,l)},onMouseEnter:function(){return a.onQuarterMouseEnter(l)},className:a.getQuarterClassNames(l),"aria-selected":a.isSelectedQuarter(u,l,c),tabIndex:a.getQuarterTabIndex(l),"aria-current":a.isCurrentQuarter(u,l)?"date":void 0},a.getQuarterContent(l))}))}),A(O(a),"getClassNames",function(){var s=a.props,u=s.selectingDate,c=s.selectsStart,l=s.selectsEnd,d=s.showMonthYearPicker,f=s.showQuarterYearPicker,p=s.showWeekPicker;return _t("react-datepicker__month",{"react-datepicker__month--selecting-range":u&&(c||l)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":p})}),a}return St(r,[{key:"render",value:function(){var a=this.props,n=a.showMonthYearPicker,i=a.showQuarterYearPicker,o=a.day,s=a.ariaLabelPrefix,u=s===void 0?"month ":s;return I.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(u," ").concat(it(o,"yyyy-MM")),role:"listbox"},n?this.renderMonths():i?this.renderQuarters():this.renderWeeks())}}]),r}(),L0=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{height:null}),A(O(a),"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){a.list&&(a.list.scrollTop=a.centerLi&&r.calcCenterPosition(a.props.monthRef?a.props.monthRef.clientHeight-a.header.clientHeight:a.list.clientHeight,a.centerLi))})}),A(O(a),"handleClick",function(s){(a.props.minTime||a.props.maxTime)&&_0(s,a.props)||(a.props.excludeTimes||a.props.includeTimes||a.props.filterTime)&&E0(s,a.props)||a.props.onChange(s)}),A(O(a),"isSelectedTime",function(s){return a.props.selected&&(u=a.props.selected,c=s,k0(u).getTime()===k0(c).getTime());var u,c}),A(O(a),"isDisabledTime",function(s){return(a.props.minTime||a.props.maxTime)&&_0(s,a.props)||(a.props.excludeTimes||a.props.includeTimes||a.props.filterTime)&&E0(s,a.props)}),A(O(a),"liClasses",function(s){var u=["react-datepicker__time-list-item",a.props.timeClassName?a.props.timeClassName(s):void 0];return a.isSelectedTime(s)&&u.push("react-datepicker__time-list-item--selected"),a.isDisabledTime(s)&&u.push("react-datepicker__time-list-item--disabled"),a.props.injectTimes&&(60*Nr(s)+Rr(s))%a.props.intervals!=0&&u.push("react-datepicker__time-list-item--injected"),u.join(" ")}),A(O(a),"handleOnKeyDown",function(s,u){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&a.handleClick(u),a.props.handleOnKeyDown(s)}),A(O(a),"renderTimes",function(){for(var s=[],u=a.props.format?a.props.format:"p",c=a.props.intervals,l=a.props.selected||a.props.openToDate||Xe(),d=kr(l),f=a.props.injectTimes&&a.props.injectTimes.sort(function(b,w){return b-w}),p=60*function(b){var w=new Date(b.getFullYear(),b.getMonth(),b.getDate()),C=new Date(b.getFullYear(),b.getMonth(),b.getDate(),24);return Math.round((+C-+w)/36e5)}(l),m=p/c,v=0;v<m;v++){var g=Pd(d,v*c);if(s.push(g),f){var h=C5(d,g,v,c,f);s=s.concat(h)}}var y=s.reduce(function(b,w){return w.getTime()<=l.getTime()?w:b},s[0]);return s.map(function(b,w){return I.createElement("li",{key:w,onClick:a.handleClick.bind(O(a),b),className:a.liClasses(b),ref:function(C){b===y&&(a.centerLi=C)},onKeyDown:function(C){a.handleOnKeyDown(C,b)},tabIndex:b===y?0:-1,role:"option","aria-selected":a.isSelectedTime(b)?"true":void 0,"aria-disabled":a.isDisabledTime(b)?"true":void 0},it(b,u,a.props.locale))})}),a}return St(r,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var a=this,n=this.state.height;return I.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},I.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(i){a.header=i}},I.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),I.createElement("div",{className:"react-datepicker__time"},I.createElement("div",{className:"react-datepicker__time-box"},I.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){a.list=i},style:n?{height:n}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),r}();A(L0,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var N5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"YEAR_REFS",$o(Array(n.props.yearItemNumber)).map(function(){return I.createRef()})),A(O(n),"isDisabled",function(i){return _u(i,n.props)}),A(O(n),"isExcluded",function(i){return cf(i,n.props)}),A(O(n),"selectingDate",function(){var i;return(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection}),A(O(n),"updateFocusOnPaginate",function(i){var o=(function(){this.YEAR_REFS[i].current.focus()}).bind(O(n));window.requestAnimationFrame(o)}),A(O(n),"handleYearClick",function(i,o){n.props.onDayClick&&n.props.onDayClick(i,o)}),A(O(n),"handleYearNavigation",function(i,o){var s=n.props,u=s.date,c=s.yearItemNumber,l=li(u,c).startPeriod;n.isDisabled(o)||n.isExcluded(o)||(n.props.setPreSelection(o),i-l==-1?n.updateFocusOnPaginate(c-1):i-l===c?n.updateFocusOnPaginate(0):n.YEAR_REFS[i-l].current.focus())}),A(O(n),"isSameDay",function(i,o){return et(i,o)}),A(O(n),"isCurrentYear",function(i){return i===$e(Xe())}),A(O(n),"isRangeStart",function(i){return n.props.startDate&&n.props.endDate&&Rn(ln(Xe(),i),n.props.startDate)}),A(O(n),"isRangeEnd",function(i){return n.props.startDate&&n.props.endDate&&Rn(ln(Xe(),i),n.props.endDate)}),A(O(n),"isInRange",function(i){return df(i,n.props.startDate,n.props.endDate)}),A(O(n),"isInSelectingRange",function(i){var o=n.props,s=o.selectsStart,u=o.selectsEnd,c=o.selectsRange,l=o.startDate,d=o.endDate;return!(!(s||u||c)||!n.selectingDate())&&(s&&d?df(i,n.selectingDate(),d):(u&&l||!(!c||!l||d))&&df(i,l,n.selectingDate()))}),A(O(n),"isSelectingRangeStart",function(i){if(!n.isInSelectingRange(i))return!1;var o=n.props,s=o.startDate,u=o.selectsStart,c=ln(Xe(),i);return Rn(c,u?n.selectingDate():s)}),A(O(n),"isSelectingRangeEnd",function(i){if(!n.isInSelectingRange(i))return!1;var o=n.props,s=o.endDate,u=o.selectsEnd,c=o.selectsRange,l=ln(Xe(),i);return Rn(l,u||c?n.selectingDate():s)}),A(O(n),"isKeyboardSelected",function(i){var o=Eo(ln(n.props.date,i));return!n.props.disabledKeyboardNavigation&&!n.props.inline&&!et(o,Eo(n.props.selected))&&et(o,Eo(n.props.preSelection))}),A(O(n),"onYearClick",function(i,o){var s=n.props.date;n.handleYearClick(Eo(ln(s,o)),i)}),A(O(n),"onYearKeyDown",function(i,o){var s=i.key;if(!n.props.disabledKeyboardNavigation)switch(s){case"Enter":n.onYearClick(i,o),n.props.setPreSelection(n.props.selected);break;case"ArrowRight":n.handleYearNavigation(o+1,ti(n.props.preSelection,1));break;case"ArrowLeft":n.handleYearNavigation(o-1,po(n.props.preSelection,1))}}),A(O(n),"getYearClassNames",function(i){var o=n.props,s=o.minDate,u=o.maxDate,c=o.selected,l=o.excludeDates,d=o.includeDates,f=o.filterDate;return _t("react-datepicker__year-text",{"react-datepicker__year-text--selected":i===$e(c),"react-datepicker__year-text--disabled":(s||u||l||d||f)&&$0(i,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(i),"react-datepicker__year-text--range-start":n.isRangeStart(i),"react-datepicker__year-text--range-end":n.isRangeEnd(i),"react-datepicker__year-text--in-range":n.isInRange(i),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(i),"react-datepicker__year-text--today":n.isCurrentYear(i)})}),A(O(n),"getYearTabIndex",function(i){return n.props.disabledKeyboardNavigation?"-1":i===$e(n.props.preSelection)?"0":"-1"}),A(O(n),"getYearContainerClassNames",function(){var i=n.props,o=i.selectingDate,s=i.selectsStart,u=i.selectsEnd,c=i.selectsRange;return _t("react-datepicker__year",{"react-datepicker__year--selecting-range":o&&(s||u||c)})}),A(O(n),"getYearContent",function(i){return n.props.renderYearContent?n.props.renderYearContent(i):i}),n}return St(r,[{key:"render",value:function(){for(var a=this,n=[],i=this.props,o=i.date,s=i.yearItemNumber,u=i.onYearMouseEnter,c=i.onYearMouseLeave,l=li(o,s),d=l.startPeriod,f=l.endPeriod,p=function(v){n.push(I.createElement("div",{ref:a.YEAR_REFS[v-d],onClick:function(g){a.onYearClick(g,v)},onKeyDown:function(g){a.onYearKeyDown(g,v)},tabIndex:a.getYearTabIndex(v),className:a.getYearClassNames(v),onMouseEnter:function(g){return u(g,v)},onMouseLeave:function(g){return c(g,v)},key:v,"aria-current":a.isCurrentYear(v)?"date":void 0},a.getYearContent(v)))},m=d;m<=f;m++)p(m);return I.createElement("div",{className:this.getYearContainerClassNames()},I.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},n))}}]),r}(),k5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"onTimeChange",function(i){n.setState({time:i});var o=n.props.date,s=o instanceof Date&&!isNaN(o)?o:new Date;s.setHours(i.split(":")[0]),s.setMinutes(i.split(":")[1]),n.props.onChange(s)}),A(O(n),"renderTimeInput",function(){var i=n.state.time,o=n.props,s=o.date,u=o.timeString,c=o.customTimeInput;return c?I.cloneElement(c,{date:s,value:i,onChange:n.onTimeChange}):I.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(l){n.onTimeChange(l.target.value||u)}})}),n.state={time:n.props.timeString},n}return St(r,[{key:"render",value:function(){return I.createElement("div",{className:"react-datepicker__input-time-container"},I.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),I.createElement("div",{className:"react-datepicker-time__input-container"},I.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.timeString!==n.time?{time:a.timeString}:null}}]),r}();function M5(e){var t=e.className,r=e.children,a=e.showPopperArrow,n=e.arrowProps,i=n===void 0?{}:n;return I.createElement("div",{className:t},a&&I.createElement("div",ci({className:"react-datepicker__triangle"},i)),r)}var F5=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],j5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"handleClickOutside",function(i){n.props.onClickOutside(i)}),A(O(n),"setClickOutsideRef",function(){return n.containerRef.current}),A(O(n),"handleDropdownFocus",function(i){(function(){var o=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return F5.some(function(s){return o.indexOf(s)>=0})})(i.target)&&n.props.onDropdownFocus()}),A(O(n),"getDateInView",function(){var i=n.props,o=i.preSelection,s=i.selected,u=i.openToDate,c=D0(n.props),l=P0(n.props),d=Xe(),f=u||s||o;return f||(c&&Tn(d,c)?c:l&&On(d,l)?l:d)}),A(O(n),"increaseMonth",function(){n.setState(function(i){var o=i.date;return{date:gr(o,1)}},function(){return n.handleMonthChange(n.state.date)})}),A(O(n),"decreaseMonth",function(){n.setState(function(i){var o=i.date;return{date:ri(o,1)}},function(){return n.handleMonthChange(n.state.date)})}),A(O(n),"handleDayClick",function(i,o,s){n.props.onSelect(i,o,s),n.props.setPreSelection&&n.props.setPreSelection(i)}),A(O(n),"handleDayMouseEnter",function(i){n.setState({selectingDate:i}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(i)}),A(O(n),"handleMonthMouseLeave",function(){n.setState({selectingDate:null}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()}),A(O(n),"handleYearMouseEnter",function(i,o){n.setState({selectingDate:ln(Xe(),o)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(i,o)}),A(O(n),"handleYearMouseLeave",function(i,o){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(i,o)}),A(O(n),"handleYearChange",function(i){n.props.onYearChange&&(n.props.onYearChange(i),n.setState({isRenderAriaLiveMessage:!0})),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(i),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(i)}),A(O(n),"handleMonthChange",function(i){n.handleCustomMonthChange(i),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(i),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(i)}),A(O(n),"handleCustomMonthChange",function(i){n.props.onMonthChange&&(n.props.onMonthChange(i),n.setState({isRenderAriaLiveMessage:!0}))}),A(O(n),"handleMonthYearChange",function(i){n.handleYearChange(i),n.handleMonthChange(i)}),A(O(n),"changeYear",function(i){n.setState(function(o){var s=o.date;return{date:ln(s,i)}},function(){return n.handleYearChange(n.state.date)})}),A(O(n),"changeMonth",function(i){n.setState(function(o){var s=o.date;return{date:Mt(s,i)}},function(){return n.handleMonthChange(n.state.date)})}),A(O(n),"changeMonthYear",function(i){n.setState(function(o){var s=o.date;return{date:ln(Mt(s,xt(i)),$e(i))}},function(){return n.handleMonthYearChange(n.state.date)})}),A(O(n),"header",function(){var i=Gr(arguments.length>0&&arguments[0]!==void 0?arguments[0]:n.state.date,n.props.locale,n.props.calendarStartDay),o=[];return n.props.showWeekNumbers&&o.push(I.createElement("div",{key:"W",className:"react-datepicker__day-name"},n.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map(function(s){var u=ei(i,s),c=n.formatWeekday(u,n.props.locale),l=n.props.weekDayClassName?n.props.weekDayClassName(u):void 0;return I.createElement("div",{key:s,className:_t("react-datepicker__day-name",l)},c)}))}),A(O(n),"formatWeekday",function(i,o){return n.props.formatWeekDay?function(s,u,c){return u(it(s,"EEEE",c))}(i,n.props.formatWeekDay,o):n.props.useWeekdaysShort?function(s,u){return it(s,"EEE",u)}(i,o):function(s,u){return it(s,"EEEEEE",u)}(i,o)}),A(O(n),"decreaseYear",function(){n.setState(function(i){var o=i.date;return{date:po(o,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),A(O(n),"clearSelectingDate",function(){n.setState({selectingDate:null})}),A(O(n),"renderPreviousButton",function(){if(!n.props.renderCustomHeader){var i;switch(!0){case n.props.showMonthYearPicker:i=T0(n.state.date,n.props);break;case n.props.showYearPicker:i=function(h){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=y.minDate,w=y.yearItemNumber,C=w===void 0?Io:w,E=li(Eo(po(h,C)),C).endPeriod,_=b&&$e(b);return _&&_>E||!1}(n.state.date,n.props);break;default:i=A0(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!i)&&!n.props.showTimeSelectOnly){var o=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(s=n.decreaseYear),i&&n.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--previous--disabled"),s=null);var u=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,c=n.props,l=c.previousMonthButtonLabel,d=c.previousYearButtonLabel,f=n.props,p=f.previousMonthAriaLabel,m=p===void 0?typeof l=="string"?l:"Previous Month":p,v=f.previousYearAriaLabel,g=v===void 0?typeof d=="string"?d:"Previous Year":v;return I.createElement("button",{type:"button",className:o.join(" "),onClick:s,onKeyDown:n.props.handleOnKeyDown,"aria-label":u?g:m},I.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},u?n.props.previousYearButtonLabel:n.props.previousMonthButtonLabel))}}}),A(O(n),"increaseYear",function(){n.setState(function(i){var o=i.date;return{date:ti(o,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),A(O(n),"renderNextButton",function(){if(!n.props.renderCustomHeader){var i;switch(!0){case n.props.showMonthYearPicker:i=x0(n.state.date,n.props);break;case n.props.showYearPicker:i=function(h){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=y.maxDate,w=y.yearItemNumber,C=w===void 0?Io:w,E=li(ti(h,C),C).startPeriod,_=b&&$e(b);return _&&_<E||!1}(n.state.date,n.props);break;default:i=O0(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!i)&&!n.props.showTimeSelectOnly){var o=["react-datepicker__navigation","react-datepicker__navigation--next"];n.props.showTimeSelect&&o.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&o.push("react-datepicker__navigation--next--with-today-button");var s=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(s=n.increaseYear),i&&n.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--next--disabled"),s=null);var u=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,c=n.props,l=c.nextMonthButtonLabel,d=c.nextYearButtonLabel,f=n.props,p=f.nextMonthAriaLabel,m=p===void 0?typeof l=="string"?l:"Next Month":p,v=f.nextYearAriaLabel,g=v===void 0?typeof d=="string"?d:"Next Year":v;return I.createElement("button",{type:"button",className:o.join(" "),onClick:s,onKeyDown:n.props.handleOnKeyDown,"aria-label":u?g:m},I.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},u?n.props.nextYearButtonLabel:n.props.nextMonthButtonLabel))}}}),A(O(n),"renderCurrentMonth",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n.state.date,o=["react-datepicker__current-month"];return n.props.showYearDropdown&&o.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&o.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&o.push("react-datepicker__current-month--hasMonthYearDropdown"),I.createElement("div",{className:o.join(" ")},it(i,n.props.dateFormat,n.props.locale))}),A(O(n),"renderYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(n.props.showYearDropdown&&!i)return I.createElement(I5,{adjustDateOnChange:n.props.adjustDateOnChange,date:n.state.date,onSelect:n.props.onSelect,setOpen:n.props.setOpen,dropdownMode:n.props.dropdownMode,onChange:n.changeYear,minDate:n.props.minDate,maxDate:n.props.maxDate,year:$e(n.state.date),scrollableYearDropdown:n.props.scrollableYearDropdown,yearDropdownItemNumber:n.props.yearDropdownItemNumber})}),A(O(n),"renderMonthDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(n.props.showMonthDropdown&&!i)return I.createElement(_5,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,onChange:n.changeMonth,month:xt(n.state.date),useShortMonthInDropdown:n.props.useShortMonthInDropdown})}),A(O(n),"renderMonthYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(n.props.showMonthYearDropdown&&!i)return I.createElement(T5,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,dateFormat:n.props.dateFormat,onChange:n.changeMonthYear,minDate:n.props.minDate,maxDate:n.props.maxDate,date:n.state.date,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown})}),A(O(n),"handleTodayButtonClick",function(i){n.props.onSelect(w0(),i),n.props.setPreSelection&&n.props.setPreSelection(w0())}),A(O(n),"renderTodayButton",function(){if(n.props.todayButton&&!n.props.showTimeSelectOnly)return I.createElement("div",{className:"react-datepicker__today-button",onClick:function(i){return n.handleTodayButtonClick(i)}},n.props.todayButton)}),A(O(n),"renderDefaultHeader",function(i){var o=i.monthDate,s=i.i;return I.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(o),I.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(s!==0),n.renderMonthYearDropdown(s!==0),n.renderYearDropdown(s!==0)),I.createElement("div",{className:"react-datepicker__day-names"},n.header(o)))}),A(O(n),"renderCustomHeader",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=i.monthDate,s=i.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var u=A0(n.state.date,n.props),c=O0(n.state.date,n.props),l=T0(n.state.date,n.props),d=x0(n.state.date,n.props),f=!n.props.showMonthYearPicker&&!n.props.showQuarterYearPicker&&!n.props.showYearPicker;return I.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},n.props.renderCustomHeader(Su(Su({},n.state),{},{customHeaderCount:s,monthDate:o,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:c,prevYearButtonDisabled:l,nextYearButtonDisabled:d})),f&&I.createElement("div",{className:"react-datepicker__day-names"},n.header(o)))}),A(O(n),"renderYearHeader",function(){var i=n.state.date,o=n.props,s=o.showYearPicker,u=li(i,o.yearItemNumber),c=u.startPeriod,l=u.endPeriod;return I.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(l):$e(i))}),A(O(n),"renderHeader",function(i){switch(!0){case n.props.renderCustomHeader!==void 0:return n.renderCustomHeader(i);case(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker):return n.renderYearHeader(i);default:return n.renderDefaultHeader(i)}}),A(O(n),"renderMonths",function(){var i;if(!n.props.showTimeSelectOnly&&!n.props.showYearPicker){for(var o=[],s=n.props.showPreviousMonths?n.props.monthsShown-1:0,u=ri(n.state.date,s),c=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:s,l=0;l<n.props.monthsShown;++l){var d=gr(u,l-c+s),f="month-".concat(l),p=l<n.props.monthsShown-1,m=l>0;o.push(I.createElement("div",{key:f,ref:function(v){n.monthContainer=v},className:"react-datepicker__month-container"},n.renderHeader({monthDate:d,i:l}),I.createElement(R5,{chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,ariaLabelPrefix:n.props.monthAriaLabelPrefix,onChange:n.changeMonthYear,day:d,dayClassName:n.props.dayClassName,calendarStartDay:n.props.calendarStartDay,monthClassName:n.props.monthClassName,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,onWeekSelect:n.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:n.props.formatWeekNumber,locale:n.props.locale,minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,highlightDates:n.props.highlightDates,holidays:n.props.holidays,selectingDate:n.state.selectingDate,includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,inline:n.props.inline,shouldFocusDayInline:n.props.shouldFocusDayInline,fixedHeight:n.props.fixedHeight,filterDate:n.props.filterDate,preSelection:n.props.preSelection,setPreSelection:n.props.setPreSelection,selected:n.props.selected,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showWeekNumbers:n.props.showWeekNumbers,startDate:n.props.startDate,endDate:n.props.endDate,peekNextMonth:n.props.peekNextMonth,setOpen:n.props.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,isInputFocused:n.props.isInputFocused,containerRef:n.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),A(O(n),"renderYears",function(){if(!n.props.showTimeSelectOnly)return n.props.showYearPicker?I.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader(),I.createElement(N5,ci({onDayClick:n.handleDayClick,selectingDate:n.state.selectingDate,clearSelectingDate:n.clearSelectingDate,date:n.state.date},n.props,{onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave}))):void 0}),A(O(n),"renderTimeSection",function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return I.createElement(L0,{selected:n.props.selected,openToDate:n.props.openToDate,onChange:n.props.onTimeChange,timeClassName:n.props.timeClassName,format:n.props.timeFormat,includeTimes:n.props.includeTimes,intervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,todayButton:n.props.todayButton,showMonthDropdown:n.props.showMonthDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,monthRef:n.state.monthContainer,injectTimes:n.props.injectTimes,locale:n.props.locale,handleOnKeyDown:n.props.handleOnKeyDown,showTimeSelectOnly:n.props.showTimeSelectOnly})}),A(O(n),"renderInputTimeSection",function(){var i=new Date(n.props.selected),o=Dn(i)&&n.props.selected?"".concat(N0(i.getHours()),":").concat(N0(i.getMinutes())):"";if(n.props.showTimeInput)return I.createElement(k5,{date:i,timeString:o,timeInputLabel:n.props.timeInputLabel,onChange:n.props.onTimeChange,customTimeInput:n.props.customTimeInput})}),A(O(n),"renderAriaLiveRegion",function(){var i,o=li(n.state.date,n.props.yearItemNumber),s=o.startPeriod,u=o.endPeriod;return i=n.props.showYearPicker?"".concat(s," - ").concat(u):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?$e(n.state.date):"".concat(uf(xt(n.state.date),n.props.locale)," ").concat($e(n.state.date)),I.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&i)}),A(O(n),"renderChildren",function(){if(n.props.children)return I.createElement("div",{className:"react-datepicker__children-container"},n.props.children)}),n.containerRef=I.createRef(),n.state={date:n.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},n}return St(r,[{key:"componentDidMount",value:function(){var a=this;this.props.showTimeSelect&&(this.assignMonthContainer=void a.setState({monthContainer:a.monthContainer}))}},{key:"componentDidUpdate",value:function(a){var n=this;if(!this.props.preSelection||et(this.props.preSelection,a.preSelection)&&this.props.monthSelectedIn===a.monthSelectedIn)this.props.openToDate&&!et(this.props.openToDate,a.openToDate)&&this.setState({date:this.props.openToDate});else{var i=!vr(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&n.handleCustomMonthChange(n.state.date)})}}},{key:"render",value:function(){var a=this.props.container||M5;return I.createElement("div",{style:{display:"contents"},ref:this.containerRef},I.createElement(a,{className:_t("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Io}}}]),r}(),B5=function(e){var t=e.icon,r=e.className,a=r===void 0?"":r,n=e.onClick,i="react-datepicker__calendar-icon";return I.isValidElement(t)?I.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(a),onClick:function(o){typeof t.props.onClick=="function"&&t.props.onClick(o),typeof n=="function"&&n(o)}}):typeof t=="string"?I.createElement("i",{className:"".concat(i," ").concat(t," ").concat(a),"aria-hidden":"true",onClick:n}):I.createElement("svg",{className:"".concat(i," ").concat(a),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:n},I.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},G0=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),(n=t.call(this,a)).el=document.createElement("div"),n}return St(r,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return en.createPortal(this.props.children,this.el)}}]),r}(),L5=function(e){return!e.disabled&&e.tabIndex!==-1},V0=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"getTabChildren",function(){return Array.prototype.slice.call(n.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(L5)}),A(O(n),"handleFocusStart",function(){var i=n.getTabChildren();i&&i.length>1&&i[i.length-1].focus()}),A(O(n),"handleFocusEnd",function(){var i=n.getTabChildren();i&&i.length>1&&i[0].focus()}),n.tabLoopRef=I.createRef(),n}return St(r,[{key:"render",value:function(){return this.props.enableTabLoop?I.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},I.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,I.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),r}(),G5=function(e){$t(r,I.Component);var t=It(r);function r(){return Ct(this,r),t.apply(this,arguments)}return St(r,[{key:"render",value:function(){var a,n=this.props,i=n.className,o=n.wrapperClassName,s=n.hidePopper,u=n.popperComponent,c=n.popperModifiers,l=n.popperPlacement,d=n.popperProps,f=n.targetComponent,p=n.enableTabLoop,m=n.popperOnKeyDown,v=n.portalId,g=n.portalHost;if(!s){var h=_t("react-datepicker-popper",i);a=I.createElement(l5,ci({modifiers:c,placement:l},d),function(b){var w=b.ref,C=b.style,E=b.placement,_=b.arrowProps;return I.createElement(V0,{enableTabLoop:p},I.createElement("div",{ref:w,style:C,className:h,"data-placement":E,onKeyDown:m},I.cloneElement(u,{arrowProps:_})))})}this.props.popperContainer&&(a=I.createElement(this.props.popperContainer,{},a)),v&&!s&&(a=I.createElement(G0,{portalId:v,portalHost:g},a));var y=_t("react-datepicker-wrapper",o);return I.createElement(HU,{className:"react-datepicker-manager"},I.createElement(m5,null,function(b){var w=b.ref;return I.createElement("div",{ref:w,className:y},f)}),a)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),r}(),W0="react-datepicker-ignore-onclickoutside",V5=gu(j5),hf="Date input not valid.",W5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"getPreSelection",function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Xe()}),A(O(n),"modifyHolidays",function(){var i;return(i=n.props.holidays)===null||i===void 0?void 0:i.reduce(function(o,s){var u=new Date(s.date);return co(u)?[].concat($o(o),[Su(Su({},s),{},{date:u})]):o},[])}),A(O(n),"calcInitialState",function(){var i,o=n.getPreSelection(),s=D0(n.props),u=P0(n.props),c=s&&Tn(o,kr(s))?s:u&&On(o,kd(u))?u:o;return{open:n.props.startOpen||!1,preventFocus:!1,preSelection:(i=n.props.selectsRange?n.props.startDate:n.props.selected)!==null&&i!==void 0?i:c,highlightDates:R0(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),A(O(n),"clearPreventFocusTimeout",function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)}),A(O(n),"setFocus",function(){n.input&&n.input.focus&&n.input.focus({preventScroll:!0})}),A(O(n),"setBlur",function(){n.input&&n.input.blur&&n.input.blur(),n.cancelFocusInput()}),A(O(n),"setOpen",function(i){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];n.setState({open:i,preSelection:i&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:mf},function(){i||n.setState(function(s){return{focused:!!o&&s.focused}},function(){!o&&n.setBlur(),n.setState({inputValue:null})})})}),A(O(n),"inputOk",function(){return ru(n.state.preSelection)}),A(O(n),"isCalendarOpen",function(){return n.props.open===void 0?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open}),A(O(n),"handleFocus",function(i){n.state.preventFocus||(n.props.onFocus(i),n.props.preventOpenOnFocus||n.props.readOnly||n.setOpen(!0)),n.setState({focused:!0})}),A(O(n),"sendFocusBackToInput",function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})}),A(O(n),"cancelFocusInput",function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=null}),A(O(n),"deferFocusInput",function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)}),A(O(n),"handleDropdownFocus",function(){n.cancelFocusInput()}),A(O(n),"handleBlur",function(i){(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&n.props.onBlur(i),n.setState({focused:!1})}),A(O(n),"handleCalendarClickOutside",function(i){n.props.inline||n.setOpen(!1),n.props.onClickOutside(i),n.props.withPortal&&i.preventDefault()}),A(O(n),"handleChange",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var u=o[0];if(!n.props.onChangeRaw||(n.props.onChangeRaw.apply(O(n),o),typeof u.isDefaultPrevented=="function"&&!u.isDefaultPrevented())){n.setState({inputValue:u.target.value,lastPreSelectChange:Y5});var c,l,d,f,p,m,v,g,h=(c=u.target.value,l=n.props.dateFormat,d=n.props.locale,f=n.props.strictParsing,p=n.props.minDate,m=null,v=la(d)||la(ca()),g=!0,Array.isArray(l)?(l.forEach(function(y){var b=Wd(c,y,new Date,{locale:v});f&&(g=Dn(b,p)&&c===it(b,y,d)),Dn(b,p)&&g&&(m=b)}),m):(m=Wd(c,l,new Date,{locale:v}),f?g=Dn(m)&&c===it(m,l,d):Dn(m)||(l=l.match(y5).map(function(y){var b=y[0];return b==="p"||b==="P"?v?(0,v5[b])(y,v.formatLong):b:y}).join(""),c.length>0&&(m=Wd(c,l.slice(0,c.length),new Date)),Dn(m)||(m=new Date(c))),Dn(m)&&g?m:null));n.props.showTimeSelectOnly&&n.props.selected&&h&&!et(h,n.props.selected)&&(h=g5(n.props.selected,{hours:Nr(h),minutes:Rr(h),seconds:Ib(h)})),!h&&u.target.value||(n.props.showWeekPicker&&(h=Gr(h,n.props.locale,n.props.calendarStartDay)),n.setSelected(h,u,!0))}}),A(O(n),"handleSelect",function(i,o,s){if(n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(o),n.props.showWeekPicker&&(i=Gr(i,n.props.locale,n.props.calendarStartDay)),n.setSelected(i,o,!1,s),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect)n.setPreSelection(i);else if(!n.props.inline){n.props.selectsRange||n.setOpen(!1);var u=n.props,c=u.startDate,l=u.endDate;!c||l||Tn(i,c)||n.setOpen(!1)}}),A(O(n),"setSelected",function(i,o,s,u){var c=i;if(n.props.showYearPicker){if(c!==null&&$0($e(c),n.props))return}else if(n.props.showMonthYearPicker){if(c!==null&&S0(c,n.props))return}else if(c!==null&&_u(c,n.props))return;var l=n.props,d=l.onChange,f=l.selectsRange,p=l.startDate,m=l.endDate;if(!ua(n.props.selected,c)||n.props.allowSameDay||f)if(c!==null&&(!n.props.selected||s&&(n.props.showTimeSelect||n.props.showTimeSelectOnly||n.props.showTimeInput)||(c=y0(c,{hour:Nr(n.props.selected),minute:Rr(n.props.selected),second:Ib(n.props.selected)})),n.props.inline||n.setState({preSelection:c}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:u})),f){var v=p&&!m,g=p&&m;!p&&!m?d([c,null],o):v&&(Tn(c,p)?d([c,null],o):d([p,c],o)),g&&d([c,null],o)}else d(c,o);s||(n.props.onSelect(c,o),n.setState({inputValue:null}))}),A(O(n),"setPreSelection",function(i){var o=n.props.minDate!==void 0,s=n.props.maxDate!==void 0,u=!0;if(i){n.props.showWeekPicker&&(i=Gr(i,n.props.locale,n.props.calendarStartDay));var c=kr(i);if(o&&s)u=Eu(i,n.props.minDate,n.props.maxDate);else if(o){var l=kr(n.props.minDate);u=On(i,l)||ua(c,l)}else if(s){var d=kd(n.props.maxDate);u=Tn(i,d)||ua(c,d)}}u&&n.setState({preSelection:i})}),A(O(n),"toggleCalendar",function(){n.setOpen(!n.state.open)}),A(O(n),"handleTimeChange",function(i){var o=n.props.selected?n.props.selected:n.getPreSelection(),s=n.props.selected?i:y0(o,{hour:Nr(i),minute:Rr(i)});n.setState({preSelection:s}),n.props.onChange(s),n.props.shouldCloseOnSelect&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}),A(O(n),"onInputClick",function(){n.props.disabled||n.props.readOnly||n.setOpen(!0),n.props.onInputClick()}),A(O(n),"onInputKeyDown",function(i){n.props.onKeyDown(i);var o=i.key;if(n.state.open||n.props.inline||n.props.preventOpenOnFocus){if(n.state.open){if(o==="ArrowDown"||o==="ArrowUp"){i.preventDefault();var s=n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=n.calendar.componentNode&&n.calendar.componentNode.querySelector(s);return void(u&&u.focus({preventScroll:!0}))}var c=Xe(n.state.preSelection);o==="Enter"?(i.preventDefault(),n.inputOk()&&n.state.lastPreSelectChange===mf?(n.handleSelect(c,i),!n.props.shouldCloseOnSelect&&n.setPreSelection(c)):n.setOpen(!1)):o==="Escape"?(i.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1)):o==="Tab"&&n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:hf})}}else o!=="ArrowDown"&&o!=="ArrowUp"&&o!=="Enter"||n.onInputClick()}),A(O(n),"onPortalKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))}),A(O(n),"onDayKeyDown",function(i){n.props.onKeyDown(i);var o=i.key,s=Xe(n.state.preSelection);if(o==="Enter")i.preventDefault(),n.handleSelect(s,i),!n.props.shouldCloseOnSelect&&n.setPreSelection(s);else if(o==="Escape")i.preventDefault(),n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:hf});else if(!n.props.disabledKeyboardNavigation){var u;switch(o){case"ArrowLeft":u=n.props.showWeekPicker?$b(s,1):oY(s,1);break;case"ArrowRight":u=n.props.showWeekPicker?iu(s,1):ei(s,1);break;case"ArrowUp":u=$b(s,1);break;case"ArrowDown":u=iu(s,1);break;case"PageUp":u=ri(s,1);break;case"PageDown":u=gr(s,1);break;case"Home":u=po(s,1);break;case"End":u=ti(s,1);break;default:u=null}if(!u)return void(n.props.onInputError&&n.props.onInputError({code:1,msg:hf}));if(i.preventDefault(),n.setState({lastPreSelectChange:mf}),n.props.adjustDateOnChange&&n.setSelected(u),n.setPreSelection(u),n.props.inline){var c=xt(s),l=xt(u),d=$e(s),f=$e(u);c!==l||d!==f?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}}),A(O(n),"onPopperKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),n.sendFocusBackToInput())}),A(O(n),"onClearClick",function(i){i&&i.preventDefault&&i.preventDefault(),n.sendFocusBackToInput(),n.props.selectsRange?n.props.onChange([null,null],i):n.props.onChange(null,i),n.setState({inputValue:null})}),A(O(n),"clear",function(){n.onClearClick()}),A(O(n),"onScroll",function(i){typeof n.props.closeOnScroll=="boolean"&&n.props.closeOnScroll?i.target!==document&&i.target!==document.documentElement&&i.target!==document.body||n.setOpen(!1):typeof n.props.closeOnScroll=="function"&&n.props.closeOnScroll(i)&&n.setOpen(!1)}),A(O(n),"renderCalendar",function(){return n.props.inline||n.isCalendarOpen()?I.createElement(V5,{ref:function(i){n.calendar=i},locale:n.props.locale,calendarStartDay:n.props.calendarStartDay,chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,monthAriaLabelPrefix:n.props.monthAriaLabelPrefix,adjustDateOnChange:n.props.adjustDateOnChange,setOpen:n.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,dateFormat:n.props.dateFormatCalendar,useWeekdaysShort:n.props.useWeekdaysShort,formatWeekDay:n.props.formatWeekDay,dropdownMode:n.props.dropdownMode,selected:n.props.selected,preSelection:n.state.preSelection,onSelect:n.handleSelect,onWeekSelect:n.props.onWeekSelect,openToDate:n.props.openToDate,minDate:n.props.minDate,maxDate:n.props.maxDate,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,startDate:n.props.startDate,endDate:n.props.endDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,filterDate:n.props.filterDate,onClickOutside:n.handleCalendarClickOutside,formatWeekNumber:n.props.formatWeekNumber,highlightDates:n.state.highlightDates,holidays:w5(n.modifyHolidays()),includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,includeTimes:n.props.includeTimes,injectTimes:n.props.injectTimes,inline:n.props.inline,shouldFocusDayInline:n.state.shouldFocusDayInline,peekNextMonth:n.props.peekNextMonth,showMonthDropdown:n.props.showMonthDropdown,showPreviousMonths:n.props.showPreviousMonths,useShortMonthInDropdown:n.props.useShortMonthInDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showWeekNumbers:n.props.showWeekNumbers,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,forceShowMonthNavigation:n.props.forceShowMonthNavigation,showDisabledMonthNavigation:n.props.showDisabledMonthNavigation,scrollableYearDropdown:n.props.scrollableYearDropdown,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown,todayButton:n.props.todayButton,weekLabel:n.props.weekLabel,outsideClickIgnoreClass:W0,fixedHeight:n.props.fixedHeight,monthsShown:n.props.monthsShown,monthSelectedIn:n.state.monthSelectedIn,onDropdownFocus:n.handleDropdownFocus,onMonthChange:n.props.onMonthChange,onYearChange:n.props.onYearChange,dayClassName:n.props.dayClassName,weekDayClassName:n.props.weekDayClassName,monthClassName:n.props.monthClassName,timeClassName:n.props.timeClassName,showDateSelect:n.props.showDateSelect,showTimeSelect:n.props.showTimeSelect,showTimeSelectOnly:n.props.showTimeSelectOnly,onTimeChange:n.handleTimeChange,timeFormat:n.props.timeFormat,timeIntervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,className:n.props.calendarClassName,container:n.props.calendarContainer,yearItemNumber:n.props.yearItemNumber,yearDropdownItemNumber:n.props.yearDropdownItemNumber,previousMonthAriaLabel:n.props.previousMonthAriaLabel,previousMonthButtonLabel:n.props.previousMonthButtonLabel,nextMonthAriaLabel:n.props.nextMonthAriaLabel,nextMonthButtonLabel:n.props.nextMonthButtonLabel,previousYearAriaLabel:n.props.previousYearAriaLabel,previousYearButtonLabel:n.props.previousYearButtonLabel,nextYearAriaLabel:n.props.nextYearAriaLabel,nextYearButtonLabel:n.props.nextYearButtonLabel,timeInputLabel:n.props.timeInputLabel,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,renderCustomHeader:n.props.renderCustomHeader,popperProps:n.props.popperProps,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,onDayMouseEnter:n.props.onDayMouseEnter,onMonthMouseLeave:n.props.onMonthMouseLeave,onYearMouseEnter:n.props.onYearMouseEnter,onYearMouseLeave:n.props.onYearMouseLeave,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showTimeInput:n.props.showTimeInput,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,showPopperArrow:n.props.showPopperArrow,excludeScrollbar:n.props.excludeScrollbar,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,isInputFocused:n.state.focused,customTimeInput:n.props.customTimeInput,setPreSelection:n.setPreSelection},n.props.children):null}),A(O(n),"renderAriaLiveRegion",function(){var i,o=n.props,s=o.dateFormat,u=o.locale,c=n.props.showTimeInput||n.props.showTimeSelect?"PPPPp":"PPPP";return i=n.props.selectsRange?"Selected start date: ".concat(Lr(n.props.startDate,{dateFormat:c,locale:u}),". ").concat(n.props.endDate?"End date: "+Lr(n.props.endDate,{dateFormat:c,locale:u}):""):n.props.showTimeSelectOnly?"Selected time: ".concat(Lr(n.props.selected,{dateFormat:s,locale:u})):n.props.showYearPicker?"Selected year: ".concat(Lr(n.props.selected,{dateFormat:"yyyy",locale:u})):n.props.showMonthYearPicker?"Selected month: ".concat(Lr(n.props.selected,{dateFormat:"MMMM yyyy",locale:u})):n.props.showQuarterYearPicker?"Selected quarter: ".concat(Lr(n.props.selected,{dateFormat:"yyyy, QQQ",locale:u})):"Selected date: ".concat(Lr(n.props.selected,{dateFormat:c,locale:u})),I.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i)}),A(O(n),"renderDateInput",function(){var i,o=_t(n.props.className,A({},W0,n.state.open)),s=n.props.customInput||I.createElement("input",{type:"text"}),u=n.props.customInputRef||"ref",c=typeof n.props.value=="string"?n.props.value:typeof n.state.inputValue=="string"?n.state.inputValue:n.props.selectsRange?function(l,d,f){if(!l)return"";var p=Lr(l,f),m=d?Lr(d,f):"";return"".concat(p," - ").concat(m)}(n.props.startDate,n.props.endDate,n.props):Lr(n.props.selected,n.props);return I.cloneElement(s,(A(A(A(A(A(A(A(A(A(A(i={},u,function(l){n.input=l}),"value",c),"onBlur",n.handleBlur),"onChange",n.handleChange),"onClick",n.onInputClick),"onFocus",n.handleFocus),"onKeyDown",n.onInputKeyDown),"id",n.props.id),"name",n.props.name),"form",n.props.form),A(A(A(A(A(A(A(A(A(A(i,"autoFocus",n.props.autoFocus),"placeholder",n.props.placeholderText),"disabled",n.props.disabled),"autoComplete",n.props.autoComplete),"className",_t(s.props.className,o)),"title",n.props.title),"readOnly",n.props.readOnly),"required",n.props.required),"tabIndex",n.props.tabIndex),"aria-describedby",n.props.ariaDescribedBy),A(A(A(i,"aria-invalid",n.props.ariaInvalid),"aria-labelledby",n.props.ariaLabelledBy),"aria-required",n.props.ariaRequired)))}),A(O(n),"renderClearButton",function(){var i=n.props,o=i.isClearable,s=i.disabled,u=i.selected,c=i.startDate,l=i.endDate,d=i.clearButtonTitle,f=i.clearButtonClassName,p=f===void 0?"":f,m=i.ariaLabelClose,v=m===void 0?"Close":m;return!o||u==null&&c==null&&l==null?null:I.createElement("button",{type:"button",className:_t("react-datepicker__close-icon",p,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":v,onClick:n.onClearClick,title:d,tabIndex:-1})}),n.state=n.calcInitialState(),n.preventFocusTimeout=null,n}return St(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(a,n){var i,o;a.inline&&(i=a.selected,o=this.props.selected,i&&o?xt(i)!==xt(o)||$e(i)!==$e(o):i!==o)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&a.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),a.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:R0(this.props.highlightDates)}),n.focused||ua(a.selected,this.props.selected)||this.setState({inputValue:null}),n.open!==this.state.open&&(n.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),n.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var a=this.props,n=a.showIcon,i=a.icon,o=a.calendarIconClassname,s=a.toggleCalendarOnIconClick,u=this.state.open;return I.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&I.createElement(B5,ci({icon:i,className:"".concat(o," ").concat(u&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var a=this.renderCalendar();if(this.props.inline)return a;if(this.props.withPortal){var n=this.state.open?I.createElement(V0,{enableTabLoop:this.props.enableTabLoop},I.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},a)):null;return this.state.open&&this.props.portalId&&(n=I.createElement(G0,{portalId:this.props.portalId,portalHost:this.props.portalHost},n)),I.createElement("div",null,this.renderInputContainer(),n)}return I.createElement(G5,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:a,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Io,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),r}(),Y5="input",mf="navigate";function U5(e){const{onChange:t}=e,r=I.useCallback(n=>{t((n==null?void 0:n.toISOString().split("T")[0])||void 0)},[t]),a=()=>{const n=new Date().getTimezoneOffset();return e.value?new Date(`${e.value}T19:00:00.${n}Z`):null};return $.jsx(W5,{selected:a(),className:"w-full input input-bordered",onChange:r})}function H5(e){const{onChange:t,value:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"datetime-local",...e,value:ib(r),onChange:o=>t(rb(o))})}function X5(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"email",...e})}function z5(e,t){return e===null?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function Z5(e){const{name:t,size:r,type:a}=e;return new Promise((n,i)=>{const o=new window.FileReader;o.onerror=i,o.onload=s=>{var u;typeof((u=s.target)==null?void 0:u.result)=="string"?n({dataURL:z5(s.target.result,t),name:t,size:r,type:a}):n({dataURL:null,name:t,size:r,type:a})},o.readAsDataURL(e)})}function J5(e){return Promise.all(Array.from(e).map(Z5))}function q5({filesInfo:e}){return e.length===0?null:$.jsx("ul",{className:"file-info",children:e.map((t,r)=>{const{name:a,size:n,type:i}=t;return $.jsxs("li",{children:[$.jsx("strong",{children:a})," (",i,", ",n," bytes)"]},r)})})}function Y0(e){return e.filter(t=>typeof t<"u").map(t=>{const{blob:r,name:a}=Vy(t);return{name:a,size:r.size,type:r.type}})}function K5({multiple:e,id:t,readonly:r,disabled:a,onChange:n,value:i,autofocus:o=!1,options:s}){const u=I.useMemo(()=>Array.isArray(i)?Y0(i):Y0([i]),[i]),[c,l]=I.useState(u),d=I.useCallback(f=>{f.target.files&&J5(f.target.files).then(p=>{l(p);const m=p.map(v=>v.dataURL);n(e?m:m[0])})},[e,n]);return $.jsxs("div",{children:[$.jsx("p",{children:$.jsx("input",{id:t,type:"file",disabled:r||a,onChange:d,defaultValue:"",autoFocus:o,multiple:e,accept:s.accept?String(s.accept):void 0})}),$.jsx(q5,{filesInfo:c})]})}function Q5({id:e,value:t}){return $.jsx("input",{type:"hidden",id:e,value:typeof t>"u"?"":t})}function eX(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"password",...e})}function tX({options:e,value:t,required:r,disabled:a,readonly:n,autofocus:i=!1,onBlur:o,onFocus:s,onChange:u,id:c}){Math.random().toString();const{enumOptions:l,enumDisabled:d,inline:f}=e,p=I.useCallback(v=>o(c,v.target.value),[o,c]),m=I.useCallback(v=>s(c,v.target.value),[s,c]);return $.jsx("div",{className:`flex field-radio-group ${f?"flex-row gap-2":"flex-col"}`,id:c,children:Array.isArray(l)&&l.map((v,g)=>{const h=v.value===t,y=d&&d.indexOf(v.value)!=-1,b=a||y||n?"disabled":"",w=()=>u(v.value),C=$.jsxs($.Fragment,{children:[$.jsx("input",{type:"radio",className:"radio radio-secondary",id:`${c}_${g}`,checked:h,name:c,required:r,value:v.value,disabled:a||y||n,autoFocus:i&&g===0,onChange:w,onBlur:p,onFocus:m}),$.jsx("span",{className:"label-text",children:v.label})]});return $.jsx("label",{className:`label justify-start gap-2 ${b}`,children:C},g)})})}function rX(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return $.jsxs("div",{className:"field-range-wrapper",children:[$.jsx(r,{type:"range",...e}),$.jsx("span",{className:"range-view",children:t})]})}function U0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U0(Object(r),!0).forEach(function(a){q(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U0(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function nX(e){if(Array.isArray(e))return e}function aX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);u=!0);}catch(l){c=!0,n=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function iX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(e,t){return
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gf(e){return cX(e)||lX(e)||Fd(e)||dX()}function fX(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function pX(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var hX=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(pX(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=fX(n);try{i.insertRule(a,i.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),Dt="-ms-",Ou="-moz-",Me="-webkit-",H0="comm",vf="rule",yf="decl",mX="@import",X0="@keyframes",gX="@layer",vX=Math.abs,Tu=String.fromCharCode,yX=Object.assign;function bX(e,t){return At(e,0)^45?(((t<<2^At(e,0))<<2^At(e,1))<<2^At(e,2))<<2^At(e,3):0}function z0(e){return e.trim()}function wX(e,t){return(e=t.exec(e))?e[0]:e}function Fe(e,t,r){return e.replace(t,r)}function bf(e,t){return e.indexOf(t)}function At(e,t){return e.charCodeAt(t)|0}function _o(e,t,r){return e.slice(t,r)}function Vr(e){return e.length}function wf(e){return e.length}function xu(e,t){return t.push(e),e}function CX(e,t){return e.map(t).join("")}var Du=1,di=1,Z0=0,Gt=0,mt=0,fi="";function Pu(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:Du,column:di,length:o,return:""}}function Ao(e,t){return yX(Pu("",null,null,"",null,null,0),e,{length:-e.length},t)}function SX(){return mt}function $X(){return mt=Gt>0?At(fi,--Gt):0,di--,mt===10&&(di=1,Du--),mt}function er(){return mt=Gt<Z0?At(fi,Gt++):0,di++,mt===10&&(di=1,Du++),mt}function Wr(){return At(fi,Gt)}function Ru(){return Gt}function Oo(e,t){return _o(fi,e,t)}function To(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 J0(e){return Du=di=1,Z0=Vr(fi=e),Gt=0,[]}function q0(e){return fi="",e}function Nu(e){return z0(Oo(Gt-1,Cf(e===91?e+2:e===40?e+1:e)))}function IX(e){for(;(mt=Wr())&&mt<33;)er();return To(e)>2||To(mt)>3?"":" "}function EX(e,t){for(;--t&&er()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return Oo(e,Ru()+(t<6&&Wr()==32&&er()==32))}function Cf(e){for(;er();)switch(mt){case e:return Gt;case 34:case 39:e!==34&&e!==39&&Cf(mt);break;case 40:e===41&&Cf(e);break;case 92:er();break}return Gt}function _X(e,t){for(;er()&&e+mt!==57;)if(e+mt===84&&Wr()===47)break;return"/*"+Oo(t,Gt-1)+"*"+Tu(e===47?e:er())}function AX(e){for(;!To(Wr());)er();return Oo(e,Gt)}function OX(e){return q0(ku("",null,null,null,[""],e=J0(e),0,[0],e))}function ku(e,t,r,a,n,i,o,s,u){for(var c=0,l=0,d=o,f=0,p=0,m=0,v=1,g=1,h=1,y=0,b="",w=n,C=i,E=a,_=b;g;)switch(m=y,y=er()){case 40:if(m!=108&&At(_,d-1)==58){bf(_+=Fe(Nu(y),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:_+=Nu(y);break;case 9:case 10:case 13:case 32:_+=IX(m);break;case 92:_+=EX(Ru()-1,7);continue;case 47:switch(Wr()){case 42:case 47:xu(TX(_X(er(),Ru()),t,r),u);break;default:_+="/"}break;case 123*v:s[c++]=Vr(_)*h;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:h==-1&&(_=Fe(_,/\f/g,"")),p>0&&Vr(_)-d&&xu(p>32?Q0(_+";",a,r,d-1):Q0(Fe(_," ","")+";",a,r,d-2),u);break;case 59:_+=";";default:if(xu(E=K0(_,t,r,c,l,n,s,b,w=[],C=[],d),i),y===123)if(l===0)ku(_,t,E,E,w,i,d,s,C);else switch(f===99&&At(_,3)===110?100:f){case 100:case 108:case 109:case 115:ku(e,E,E,a&&xu(K0(e,E,E,0,0,n,s,b,n,w=[],d),C),n,C,d,s,a?w:C);break;default:ku(_,E,E,E,[""],C,0,s,C)}}c=l=p=0,v=h=1,b=_="",d=o;break;case 58:d=1+Vr(_),p=m;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&$X()==125)continue}switch(_+=Tu(y),y*v){case 38:h=l>0?1:(_+="\f",-1);break;case 44:s[c++]=(Vr(_)-1)*h,h=1;break;case 64:Wr()===45&&(_+=Nu(er())),f=Wr(),l=d=Vr(b=_+=AX(Ru())),y++;break;case 45:m===45&&Vr(_)==2&&(v=0)}}return i}function K0(e,t,r,a,n,i,o,s,u,c,l){for(var d=n-1,f=n===0?i:[""],p=wf(f),m=0,v=0,g=0;m<a;++m)for(var h=0,y=_o(e,d+1,d=vX(v=o[m])),b=e;h<p;++h)(b=z0(v>0?f[h]+" "+y:Fe(y,/&\f/g,f[h])))&&(u[g++]=b);return Pu(e,t,r,n===0?vf:s,u,c,l)}function TX(e,t,r){return Pu(e,t,r,H0,Tu(SX()),_o(e,2,-2),0)}function Q0(e,t,r,a){return Pu(e,t,r,yf,_o(e,0,a),_o(e,a+1,-1),a)}function pi(e,t){for(var r="",a=wf(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function xX(e,t,r,a){switch(e.type){case gX:if(e.children.length)break;case mX:case yf:return e.return=e.return||e.value;case H0:return"";case X0:return e.return=e.value+"{"+pi(e.children,a)+"}";case vf:e.value=e.props.join(",")}return Vr(r=pi(e.children,a))?e.return=e.value+"{"+r+"}":""}function DX(e){var t=wf(e);return function(r,a,n,i){for(var o="",s=0;s<t;s++)o+=e[s](r,a,n,i)||"";return o}}function PX(e){return function(t){t.root||(t=t.return)&&e(t)}}function RX(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var NX=function(t,r,a){for(var n=0,i=0;n=i,i=Wr(),n===38&&i===12&&(r[a]=1),!To(i);)er();return Oo(t,Gt)},kX=function(t,r){var a=-1,n=44;do switch(To(n)){case 0:n===38&&Wr()===12&&(r[a]=1),t[a]+=NX(Gt-1,r,a);break;case 2:t[a]+=Nu(n);break;case 4:if(n===44){t[++a]=Wr()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Tu(n)}while(n=er());return t},MX=function(t,r){return q0(kX(J0(t),r))},ew=new WeakMap,FX=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!ew.get(a))&&!n){ew.set(t,!0);for(var i=[],o=MX(r,i),s=a.props,u=0,c=0;u<o.length;u++)for(var l=0;l<s.length;l++,c++)t.props[c]=i[u]?o[u].replace(/&\f/g,s[l]):s[l]+" "+o[u]}}},jX=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function tw(e,t){switch(bX(e,t)){case 5103:return Me+"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 Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+Ou+e+Dt+e+e;case 6828:case 4268:return Me+e+Dt+e+e;case 6165:return Me+e+Dt+"flex-"+e+e;case 5187:return Me+e+Fe(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Dt+"flex-$1$2")+e;case 5443:return Me+e+Dt+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return Me+e+Dt+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+Dt+Fe(e,"shrink","negative")+e;case 5292:return Me+e+Dt+Fe(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Fe(e,"-grow","")+Me+e+Dt+Fe(e,"grow","positive")+e;case 4554:return Me+Fe(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,Me+"$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(Vr(e)-1-t>6)switch(At(e,t+1)){case 109:if(At(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+Ou+(At(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bf(e,"stretch")?tw(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(At(e,t+1)!==115)break;case 6444:switch(At(e,Vr(e)-3-(~bf(e,"!important")&&10))){case 107:return Fe(e,":",":"+Me)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(At(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(At(e,t+11)){case 114:return Me+e+Dt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Dt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Dt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+Dt+e+e}return e}var BX=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case yf:t.return=tw(t.value,t.length);break;case X0:return pi([Ao(t,{value:Fe(t.value,"@","@"+Me)})],n);case vf:if(t.length)return CX(t.props,function(i){switch(wX(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([Ao(t,{props:[Fe(i,/:(read-\w+)/,":"+Ou+"$1")]})],n);case"::placeholder":return pi([Ao(t,{props:[Fe(i,/:(plac\w+)/,":"+Me+"input-$1")]}),Ao(t,{props:[Fe(i,/:(plac\w+)/,":"+Ou+"$1")]}),Ao(t,{props:[Fe(i,/:(plac\w+)/,Dt+"input-$1")]})],n)}return""})}},LX=[BX],GX=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=t.stylisPlugins||LX,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),h=1;h<g.length;h++)i[g[h]]=!0;s.push(v)});var u,c=[FX,jX];{var l,d=[xX,PX(function(v){l.insert(v)})],f=DX(c.concat(n,d)),p=function(g){return pi(OX(g),f)};u=function(g,h,y,b){l=y,p(g?g+"{"+h.styles+"}":h.styles),b&&(m.inserted[h.name]=!0)}}var m={key:r,sheet:new hX({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return m.sheet.hydrate(s),m},rw=o9,VX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},WX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nw={};nw[rw.ForwardRef]=VX,nw[rw.Memo]=WX;var YX=!0;function UX(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var aw=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||YX===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},HX=function(t,r,a){aw(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function XX(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zX={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},ZX=/[A-Z]|^ms/g,JX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iw=function(t){return t.charCodeAt(1)===45},ow=function(t){return t!=null&&typeof t!="boolean"},Sf=RX(function(e){return iw(e)?e:e.replace(ZX,"-$&").toLowerCase()}),sw=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(JX,function(a,n,i){return Yr={name:n,styles:i,next:Yr},n})}return zX[t]!==1&&!iw(t)&&typeof r=="number"&&r!==0?r+"px":r};function xo(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Yr={name:n.name,styles:n.styles,next:Yr},n.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Yr={name:o.name,styles:o.styles,next:Yr},o=o.next;var s=i.styles+";";return s}return qX(e,t,r)}case"function":{if(e!==void 0){var u=Yr,c=r(e);return Yr=u,xo(e,t,c)}break}}var l=r;return l}function qX(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=xo(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var s=o;ow(s)&&(a+=Sf(i)+":"+sw(i,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var u=0;u<o.length;u++)ow(o[u])&&(a+=Sf(i)+":"+sw(i,o[u])+";");else{var c=xo(e,t,o);switch(i){case"animation":case"animationName":{a+=Sf(i)+":"+c+";";break}default:a+=i+"{"+c+"}"}}}return a}var uw=/label:\s*([^\s;{]+)\s*(;|$)/g,Yr;function cw(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Yr=void 0;var i=e[0];if(i==null||i.raw===void 0)a=!1,n+=xo(r,t,i);else{var o=i;n+=o[0]}for(var s=1;s<e.length;s++)if(n+=xo(r,t,e[s]),a){var u=i;n+=u[s]}uw.lastIndex=0;for(var c="",l;(l=uw.exec(n))!==null;)c+="-"+l[1];var d=XX(n)+c;return{name:d,styles:n,next:Yr}}var KX=function(t){return t()},QX=ne.useInsertionEffect?ne.useInsertionEffect:!1,ez=QX||KX,lw=ne.createContext(typeof HTMLElement<"u"?GX({key:"css"}):null);lw.Provider;var tz=function(t){return I.forwardRef(function(r,a){var n=I.useContext(lw);return t(r,n,a)})},rz=ne.createContext({}),$f={}.hasOwnProperty,If="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nz=function(t,r){var a={};for(var n in r)$f.call(r,n)&&(a[n]=r[n]);return a[If]=t,a},az=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return aw(r,a,n),ez(function(){return HX(r,a,n)}),null},iz=tz(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[If],i=[a],o="";typeof e.className=="string"?o=UX(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=cw(i,void 0,ne.useContext(rz));o+=t.key+"-"+s.name;var u={};for(var c in e)$f.call(e,c)&&c!=="css"&&c!==If&&(u[c]=e[c]);return u.className=o,r&&(u.ref=r),ne.createElement(ne.Fragment,null,ne.createElement(az,{cache:t,serialized:s,isStringTag:typeof n=="string"}),ne.createElement(n,u))}),oz=iz,de=function(t,r){var a=arguments;if(r==null||!$f.call(r,"css"))return ne.createElement.apply(void 0,a);var n=a.length,i=new Array(n);i[0]=oz,i[1]=nz(t,r);for(var o=2;o<n;o++)i[o]=a[o];return ne.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(de||(de={}));function Ef(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return cw(t)}function sz(){var e=Ef.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function uz(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const cz=Math.min,lz=Math.max,Mu=Math.round,Fu=Math.floor,ju=e=>({x:e,y:e});function dz(e){const{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function Bu(){return typeof window<"u"}function dw(e){return pw(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fw(e){var t;return(t=(pw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pw(e){return Bu()?e instanceof Node||e instanceof hn(e).Node:!1}function fz(e){return Bu()?e instanceof Element||e instanceof hn(e).Element:!1}function _f(e){return Bu()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function hw(e){return!Bu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}const pz=new Set(["inline","contents"]);function mw(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=Af(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!pz.has(n)}function hz(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mz=new Set(["html","body","#document"]);function gz(e){return mz.has(dw(e))}function Af(e){return hn(e).getComputedStyle(e)}function vz(e){if(dw(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hw(e)&&e.host||fw(e);return hw(t)?t.host:t}function gw(e){const t=vz(e);return gz(t)?e.ownerDocument?e.ownerDocument.body:e.body:_f(t)&&mw(t)?t:gw(t)}function Lu(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=gw(e),i=n===((a=e.ownerDocument)==null?void 0:a.body),o=hn(n);if(i){const s=Of(o);return t.concat(o,o.visualViewport||[],mw(n)?n:[],s&&r?Lu(s):[])}return t.concat(n,Lu(n,[],r))}function Of(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yz(e){const t=Af(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=_f(e),i=n?e.offsetWidth:r,o=n?e.offsetHeight:a,s=Mu(r)!==i||Mu(a)!==o;return s&&(r=i,a=o),{width:r,height:a,$:s}}function Tf(e){return fz(e)?e:e.contextElement}function vw(e){const t=Tf(e);if(!_f(t))return ju(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:i}=yz(t);let o=(i?Mu(r.width):r.width)/a,s=(i?Mu(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const bz=ju(0);function wz(e){const t=hn(e);return!hz()||!t.visualViewport?bz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cz(e,t,r){return!1}function yw(e,t,r,a){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=Tf(e);let o=ju(1);t&&(o=vw(e));const s=Cz()?wz(i):ju(0);let u=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,l=n.width/o.x,d=n.height/o.y;if(i){const f=hn(i),p=a;let m=f,v=Of(m);for(;v&&a&&p!==m;){const g=vw(v),h=v.getBoundingClientRect(),y=Af(v),b=h.left+(v.clientLeft+parseFloat(y.paddingLeft))*g.x,w=h.top+(v.clientTop+parseFloat(y.paddingTop))*g.y;u*=g.x,c*=g.y,l*=g.x,d*=g.y,u+=b,c+=w,m=hn(v),v=Of(m)}}return dz({width:l,height:d,x:u,y:c})}function bw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sz(e,t){let r=null,a;const n=fw(e);function i(){var s;clearTimeout(a),(s=r)==null||s.disconnect(),r=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:l,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m=Fu(d),v=Fu(n.clientWidth-(l+f)),g=Fu(n.clientHeight-(d+p)),h=Fu(l),b={rootMargin:-m+"px "+-v+"px "+-g+"px "+-h+"px",threshold:lz(0,cz(1,u))||1};let w=!0;function C(E){const _=E[0].intersectionRatio;if(_!==u){if(!w)return o();_?o(!1,_):a=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!bw(c,e.getBoundingClientRect())&&o(),w=!1}try{r=new IntersectionObserver(C,{...b,root:n.ownerDocument})}catch{r=new IntersectionObserver(C,b)}r.observe(e)}return o(!0),i}function $z(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=Tf(e),l=n||i?[...c?Lu(c):[],...Lu(t)]:[];l.forEach(h=>{n&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const d=c&&s?Sz(c,r):null;let f=-1,p=null;o&&(p=new ResizeObserver(h=>{let[y]=h;y&&y.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let m,v=u?yw(e):null;u&&g();function g(){const h=yw(e);v&&!bw(v,h)&&r(),v=h,m=requestAnimationFrame(g)}return r(),()=>{var h;l.forEach(y=>{n&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),d==null||d(),(h=p)==null||h.disconnect(),p=null,u&&cancelAnimationFrame(m)}}var xf=I.useLayoutEffect,Iz=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Gu=function(){};function Ez(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function _z(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];var i=[].concat(a);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(Ez(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var ww=function(t){return kz(t)?t.filter(Boolean):Kt(t)==="object"&&t!==null?[t]:[]},Cw=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=pn(t,Iz);return he({},r)},ut=function(t,r,a){var n=t.cx,i=t.getStyles,o=t.getClassNames,s=t.className;return{css:i(r,t),className:n(a??{},o(r,t),s)}};function Vu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Az(e){return Vu(e)?window.innerHeight:e.clientHeight}function Sw(e){return Vu(e)?window.pageYOffset:e.scrollTop}function Wu(e,t){if(Vu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Oz(e){var t=getComputedStyle(e),r=t.position==="absolute",a=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&a.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function Tz(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function Yu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Gu,n=Sw(e),i=t-n,o=10,s=0;function u(){s+=o;var c=Tz(s,n,i,r);Wu(e,c),s<r?window.requestAnimationFrame(u):a(e)}u()}function $w(e,t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=t.offsetHeight/3;a.bottom+n>r.bottom?Wu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n<r.top&&Wu(e,Math.max(t.offsetTop-n,0))}function xz(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Iw(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Dz(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Ew=!1,Pz={get passive(){return Ew=!0}},Uu=typeof window<"u"?window:{};Uu.addEventListener&&Uu.removeEventListener&&(Uu.addEventListener("p",Gu,Pz),Uu.removeEventListener("p",Gu,!1));var Rz=Ew;function Nz(e){return e!=null}function kz(e){return Array.isArray(e)}function Hu(e,t,r){return e?t:r}function Tie(e){return e}function xie(e){return e}var Mz=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];var i=Object.entries(t).filter(function(o){var s=fn(o,1),u=s[0];return!a.includes(u)});return i.reduce(function(o,s){var u=fn(s,2),c=u[0],l=u[1];return o[c]=l,o},{})},Fz=["children","innerProps"],jz=["children","innerProps"];function Bz(e){var t=e.maxHeight,r=e.menuEl,a=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,u=Oz(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var l=u.getBoundingClientRect(),d=l.height,f=r.getBoundingClientRect(),p=f.bottom,m=f.height,v=f.top,g=r.offsetParent.getBoundingClientRect(),h=g.top,y=o?window.innerHeight:Az(u),b=Sw(u),w=parseInt(getComputedStyle(r).marginBottom,10),C=parseInt(getComputedStyle(r).marginTop,10),E=h-C,_=y-v,N=E+b,R=d-b-v,k=p-y+b+w,F=b+v-C,W=160;switch(n){case"auto":case"bottom":if(_>=m)return{placement:"bottom",maxHeight:t};if(R>=m&&!o)return i&&Yu(u,k,W),{placement:"bottom",maxHeight:t};if(!o&&R>=a||o&&_>=a){i&&Yu(u,k,W);var B=o?_-w:R-w;return{placement:"bottom",maxHeight:B}}if(n==="auto"||o){var U=t,Y=o?E:N;return Y>=a&&(U=Math.min(Y-w-s,t)),{placement:"top",maxHeight:U}}if(n==="bottom")return i&&Wu(u,k),{placement:"bottom",maxHeight:t};break;case"top":if(E>=m)return{placement:"top",maxHeight:t};if(N>=m&&!o)return i&&Yu(u,F,W),{placement:"top",maxHeight:t};if(!o&&N>=a||o&&E>=a){var L=t;return(!o&&N>=a||o&&E>=a)&&(L=o?E-C:N-C),i&&Yu(u,F,W),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function Lz(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var _w=function(t){return t==="auto"?"bottom":t},Gz=function(t,r){var a,n=t.placement,i=t.theme,o=i.borderRadius,s=i.spacing,u=i.colors;return he((a={label:"menu"},q(a,Lz(n),"100%"),q(a,"position","absolute"),q(a,"width","100%"),q(a,"zIndex",1),a),r?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Aw=I.createContext(null),Vz=function(t){var r=t.children,a=t.minMenuHeight,n=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,c=I.useContext(Aw)||{},l=c.setPortalPlacement,d=I.useRef(null),f=I.useState(n),p=fn(f,2),m=p[0],v=p[1],g=I.useState(null),h=fn(g,2),y=h[0],b=h[1],w=u.spacing.controlHeight;return xf(function(){var C=d.current;if(C){var E=o==="fixed",_=s&&!E,N=Bz({maxHeight:n,menuEl:C,minHeight:a,placement:i,shouldScroll:_,isFixedPosition:E,controlHeight:w});v(N.maxHeight),b(N.placement),l==null||l(N.placement)}},[n,i,o,s,a,l,w]),r({ref:d,placerProps:he(he({},t),{},{placement:y||_w(i),maxHeight:m})})},Wz=function(t){var r=t.children,a=t.innerRef,n=t.innerProps;return de("div",me({},ut(t,"menu",{menu:!0}),{ref:a},n),r)},Yz=Wz,Uz=function(t,r){var a=t.maxHeight,n=t.theme.spacing.baseUnit;return he({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},Hz=function(t){var r=t.children,a=t.innerProps,n=t.innerRef,i=t.isMulti;return de("div",me({},ut(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:n},a),r)},Ow=function(t,r){var a=t.theme,n=a.spacing.baseUnit,i=a.colors;return he({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Xz=Ow,zz=Ow,Zz=function(t){var r=t.children,a=r===void 0?"No options":r,n=t.innerProps,i=pn(t,Fz);return de("div",me({},ut(he(he({},i),{},{children:a,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)},Jz=function(t){var r=t.children,a=r===void 0?"Loading...":r,n=t.innerProps,i=pn(t,jz);return de("div",me({},ut(he(he({},i),{},{children:a,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)},qz=function(t){var r=t.rect,a=t.offset,n=t.position;return{left:r.left,position:n,top:a,width:r.width,zIndex:1}},Kz=function(t){var r=t.appendTo,a=t.children,n=t.controlElement,i=t.innerProps,o=t.menuPlacement,s=t.menuPosition,u=I.useRef(null),c=I.useRef(null),l=I.useState(_w(o)),d=fn(l,2),f=d[0],p=d[1],m=I.useMemo(function(){return{setPortalPlacement:p}},[]),v=I.useState(null),g=fn(v,2),h=g[0],y=g[1],b=I.useCallback(function(){if(n){var _=xz(n),N=s==="fixed"?0:window.pageYOffset,R=_[f]+N;(R!==(h==null?void 0:h.offset)||_.left!==(h==null?void 0:h.rect.left)||_.width!==(h==null?void 0:h.rect.width))&&y({offset:R,rect:_})}},[n,s,f,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);xf(function(){b()},[b]);var w=I.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&u.current&&(c.current=$z(n,u.current,b,{elementResize:"ResizeObserver"in window}))},[n,b]);xf(function(){w()},[w]);var C=I.useCallback(function(_){u.current=_,w()},[w]);if(!r&&s!=="fixed"||!h)return null;var E=de("div",me({ref:C},ut(he(he({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),a);return de(Aw.Provider,{value:m},r?en.createPortal(E,r):E)},Qz=function(t){var r=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},eZ=function(t){var r=t.children,a=t.innerProps,n=t.isDisabled,i=t.isRtl;return de("div",me({},ut(t,"container",{"--is-disabled":n,"--is-rtl":i}),a),r)},tZ=function(t,r){var a=t.theme.spacing,n=t.isMulti,i=t.hasValue,o=t.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:n&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},rZ=function(t){var r=t.children,a=t.innerProps,n=t.isMulti,i=t.hasValue;return de("div",me({},ut(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":i}),a),r)},nZ=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},aZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"indicatorsContainer",{indicators:!0}),a),r)},Tw,iZ=["size"],oZ=["innerProps","isRtl","size"];function sZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var uZ=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:sZ},xw=function(t){var r=t.size,a=pn(t,iZ);return de("svg",me({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:uZ},a))},Df=function(t){return de(xw,me({size:20},t),de("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Dw=function(t){return de(xw,me({size:20},t),de("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Pw=function(t,r){var a=t.isFocused,n=t.theme,i=n.spacing.baseUnit,o=n.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:a?o.neutral60:o.neutral20,padding:i*2,":hover":{color:a?o.neutral80:o.neutral40}})},cZ=Pw,lZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),r||de(Dw,null))},dZ=Pw,fZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),r||de(Df,null))},pZ=function(t,r){var a=t.isDisabled,n=t.theme,i=n.spacing.baseUnit,o=n.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:a?o.neutral10:o.neutral20,marginBottom:i*2,marginTop:i*2})},hZ=function(t){var r=t.innerProps;return de("span",me({},r,ut(t,"indicatorSeparator",{"indicator-separator":!0})))},mZ=sz(Tw||(Tw=uz([`
|
|
67
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=n(i,a(s)))}return i}function a(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=n(o,s));return o}function n(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(lb);var u9=lb.exports;const _t=Xt(u9);function Kt(e){"@babel/helpers - typeof";return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(e)}function K(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function nu(e){return K(1,arguments),e instanceof Date||Kt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oe(e){K(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Kt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function co(e){if(K(1,arguments),!nu(e)&&typeof e!="number")return!1;var t=oe(e);return!isNaN(Number(t))}function Se(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Od(e,t){K(2,arguments);var r=oe(e).getTime(),a=Se(t);return new Date(r+a)}function db(e,t){K(2,arguments);var r=Se(t);return Od(e,-r)}var c9=864e5;function l9(e){K(1,arguments);var t=oe(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),n=r-a;return Math.floor(n/c9)+1}function Ka(e){K(1,arguments);var t=1,r=oe(e),a=r.getUTCDay(),n=(a<t?7:0)+a-t;return r.setUTCDate(r.getUTCDate()-n),r.setUTCHours(0,0,0,0),r}function fb(e){K(1,arguments);var t=oe(e),r=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var n=Ka(a),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=Ka(i);return t.getTime()>=n.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function d9(e){K(1,arguments);var t=fb(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var a=Ka(r);return a}var f9=6048e5;function pb(e){K(1,arguments);var t=oe(e),r=Ka(t).getTime()-d9(t).getTime();return Math.round(r/f9)+1}var p9={};function na(){return p9}function aa(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=na(),d=Se((r=(a=(n=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:l.weekStartsOn)!==null&&a!==void 0?a:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=oe(e),p=f.getUTCDay(),m=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function Td(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=oe(e),d=l.getUTCFullYear(),f=na(),p=Se((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:f.firstWeekContainsDate)!==null&&a!==void 0?a:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var v=aa(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var h=aa(g,t);return l.getTime()>=v.getTime()?d+1:l.getTime()>=h.getTime()?d:d-1}function h9(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=na(),d=Se((r=(a=(n=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:l.firstWeekContainsDate)!==null&&a!==void 0?a:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),f=Td(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=aa(p,t);return m}var m9=6048e5;function hb(e,t){K(1,arguments);var r=oe(e),a=aa(r,t).getTime()-h9(r,t).getTime();return Math.round(a/m9)+1}function Ye(e,t){for(var r=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return r+a}var An={y:function(t,r){var a=t.getUTCFullYear(),n=a>0?a:1-a;return Ye(r==="yy"?n%100:n,r.length)},M:function(t,r){var a=t.getUTCMonth();return r==="M"?String(a+1):Ye(a+1,2)},d:function(t,r){return Ye(t.getUTCDate(),r.length)},a:function(t,r){var a=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,r){return Ye(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Ye(t.getUTCHours(),r.length)},m:function(t,r){return Ye(t.getUTCMinutes(),r.length)},s:function(t,r){return Ye(t.getUTCSeconds(),r.length)},S:function(t,r){var a=r.length,n=t.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return Ye(i,r.length)}},Qa={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g9={G:function(t,r,a){var n=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(t,r,a){if(r==="yo"){var n=t.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return An.y(t,r)},Y:function(t,r,a,n){var i=Td(t,n),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return Ye(s,2)}return r==="Yo"?a.ordinalNumber(o,{unit:"year"}):Ye(o,r.length)},R:function(t,r){var a=fb(t);return Ye(a,r.length)},u:function(t,r){var a=t.getUTCFullYear();return Ye(a,r.length)},Q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return Ye(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,a){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return Ye(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,a){var n=t.getUTCMonth();switch(r){case"M":case"MM":return An.M(t,r);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,a){var n=t.getUTCMonth();switch(r){case"L":return String(n+1);case"LL":return Ye(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,a,n){var i=hb(t,n);return r==="wo"?a.ordinalNumber(i,{unit:"week"}):Ye(i,r.length)},I:function(t,r,a){var n=pb(t);return r==="Io"?a.ordinalNumber(n,{unit:"week"}):Ye(n,r.length)},d:function(t,r,a){return r==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):An.d(t,r)},D:function(t,r,a){var n=l9(t);return r==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):Ye(n,r.length)},E:function(t,r,a){var n=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Ye(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,a,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Ye(o,r.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,a){var n=t.getUTCDay(),i=n===0?7:n;switch(r){case"i":return String(i);case"ii":return Ye(i,r.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,a){var n=t.getUTCHours(),i=n/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,a){var n=t.getUTCHours(),i;switch(n===12?i=Qa.noon:n===0?i=Qa.midnight:i=n/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,a){var n=t.getUTCHours(),i;switch(n>=17?i=Qa.evening:n>=12?i=Qa.afternoon:n>=4?i=Qa.morning:i=Qa.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,a){if(r==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return An.h(t,r)},H:function(t,r,a){return r==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):An.H(t,r)},K:function(t,r,a){var n=t.getUTCHours()%12;return r==="Ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,r.length)},k:function(t,r,a){var n=t.getUTCHours();return n===0&&(n=24),r==="ko"?a.ordinalNumber(n,{unit:"hour"}):Ye(n,r.length)},m:function(t,r,a){return r==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):An.m(t,r)},s:function(t,r,a){return r==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):An.s(t,r)},S:function(t,r){return An.S(t,r)},X:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return gb(o);case"XXXX":case"XX":return ia(o);case"XXXXX":case"XXX":default:return ia(o,":")}},x:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"x":return gb(o);case"xxxx":case"xx":return ia(o);case"xxxxx":case"xxx":default:return ia(o,":")}},O:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+mb(o,":");case"OOOO":default:return"GMT"+ia(o,":")}},z:function(t,r,a,n){var i=n._originalDate||t,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+mb(o,":");case"zzzz":default:return"GMT"+ia(o,":")}},t:function(t,r,a,n){var i=n._originalDate||t,o=Math.floor(i.getTime()/1e3);return Ye(o,r.length)},T:function(t,r,a,n){var i=n._originalDate||t,o=i.getTime();return Ye(o,r.length)}};function mb(e,t){var r=e>0?"-":"+",a=Math.abs(e),n=Math.floor(a/60),i=a%60;if(i===0)return r+String(n);var o=t;return r+String(n)+o+Ye(i,2)}function gb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Ye(Math.abs(e)/60,2)}return ia(e,t)}function ia(e,t){var r=t||"",a=e>0?"-":"+",n=Math.abs(e),i=Ye(Math.floor(n/60),2),o=Ye(n%60,2);return a+i+r+o}var vb=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},yb=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},v9=function(t,r){var a=t.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return vb(t,r);var o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",vb(n,r)).replace("{{time}}",yb(i,r))},xd={p:yb,P:v9};function au(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var y9=["D","DD"],b9=["YY","YYYY"];function bb(e){return y9.indexOf(e)!==-1}function wb(e){return b9.indexOf(e)!==-1}function iu(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var w9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},C9=function(t,r,a){var n,i=w9[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function Dd(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,a=e.formats[r]||e.formats[e.defaultWidth];return a}}var S9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},I9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},E9={date:Dd({formats:S9,defaultWidth:"full"}),time:Dd({formats:$9,defaultWidth:"full"}),dateTime:Dd({formats:I9,defaultWidth:"full"})},_9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},A9=function(t,r,a,n){return _9[t]};function lo(e){return function(t,r){var a=r!=null&&r.context?String(r.context):"standalone",n;if(a==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[u]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return n[c]}}var O9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},T9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},x9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},D9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},P9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},R9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},N9=function(t,r){var a=Number(t),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},k9={ordinalNumber:N9,era:lo({values:O9,defaultWidth:"wide"}),quarter:lo({values:T9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:lo({values:x9,defaultWidth:"wide"}),day:lo({values:D9,defaultWidth:"wide"}),dayPeriod:lo({values:P9,defaultWidth:"wide",formattingValues:R9,defaultFormattingWidth:"wide"})};function fo(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.width,n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var o=i[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?F9(s,function(d){return d.test(o)}):M9(s,function(d){return d.test(o)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var l=t.slice(o.length);return{value:c,rest:l}}}function M9(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function F9(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function j9(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var n=a[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(n.length);return{value:o,rest:s}}}var B9=/^(\d+)(th|st|nd|rd)?/i,L9=/\d+/i,G9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},V9={any:[/^b/i,/^(a|c)/i]},W9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Y9={any:[/1/i,/2/i,/3/i,/4/i]},U9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},H9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},X9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},z9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Z9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},J9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},q9={ordinalNumber:j9({matchPattern:B9,parsePattern:L9,valueCallback:function(t){return parseInt(t,10)}}),era:fo({matchPatterns:G9,defaultMatchWidth:"wide",parsePatterns:V9,defaultParseWidth:"any"}),quarter:fo({matchPatterns:W9,defaultMatchWidth:"wide",parsePatterns:Y9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:fo({matchPatterns:U9,defaultMatchWidth:"wide",parsePatterns:H9,defaultParseWidth:"any"}),day:fo({matchPatterns:X9,defaultMatchWidth:"wide",parsePatterns:z9,defaultParseWidth:"any"}),dayPeriod:fo({matchPatterns:Z9,defaultMatchWidth:"any",parsePatterns:J9,defaultParseWidth:"any"})},Cb={code:"en-US",formatDistance:C9,formatLong:E9,formatRelative:A9,localize:k9,match:q9,options:{weekStartsOn:0,firstWeekContainsDate:1}},K9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Q9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eY=/^'([^]*?)'?$/,tY=/''/g,rY=/[a-zA-Z]/;function Sb(e,t,r){var a,n,i,o,s,u,c,l,d,f,p,m,v,g,h,y,b,w;K(2,arguments);var C=String(t),E=na(),_=(a=(n=r==null?void 0:r.locale)!==null&&n!==void 0?n:E.locale)!==null&&a!==void 0?a:Cb,N=Se((i=(o=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(c=r.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:E.firstWeekContainsDate)!==null&&o!==void 0?o:(d=E.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=Se((p=(m=(v=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(h=r.locale)===null||h===void 0||(y=h.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&v!==void 0?v:E.weekStartsOn)!==null&&m!==void 0?m:(b=E.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=oe(e);if(!co(k))throw new RangeError("Invalid time value");var F=au(k),W=db(k,F),B={firstWeekContainsDate:N,weekStartsOn:R,locale:_,_originalDate:k},U=C.match(Q9).map(function(Y){var L=Y[0];if(L==="p"||L==="P"){var Z=xd[L];return Z(Y,_.formatLong)}return Y}).join("").match(K9).map(function(Y){if(Y==="''")return"'";var L=Y[0];if(L==="'")return nY(Y);var Z=g9[L];if(Z)return!(r!=null&&r.useAdditionalWeekYearTokens)&&wb(Y)&&iu(Y,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&bb(Y)&&iu(Y,t,String(e)),Z(W,Y,_.localize,B);if(L.match(rY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return Y}).join("");return U}function nY(e){var t=e.match(eY);return t?t[1].replace(tY,"'"):e}var aY=6e4;function Pd(e,t){K(2,arguments);var r=Se(t);return Od(e,r*aY)}var iY=36e5;function oY(e,t){K(2,arguments);var r=Se(t);return Od(e,r*iY)}function ei(e,t){K(2,arguments);var r=oe(e),a=Se(t);return isNaN(a)?new Date(NaN):(a&&r.setDate(r.getDate()+a),r)}function ou(e,t){K(2,arguments);var r=Se(t),a=r*7;return ei(e,a)}function gr(e,t){K(2,arguments);var r=oe(e),a=Se(t);if(isNaN(a))return new Date(NaN);if(!a)return r;var n=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+a+1,0);var o=i.getDate();return n>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}function $b(e,t){K(2,arguments);var r=Se(t),a=r*3;return gr(e,a)}function ti(e,t){K(2,arguments);var r=Se(t);return gr(e,r*12)}function sY(e,t){K(2,arguments);var r=Se(t);return ei(e,-r)}function Ib(e,t){K(2,arguments);var r=Se(t);return ou(e,-r)}function ri(e,t){K(2,arguments);var r=Se(t);return gr(e,-r)}function uY(e,t){K(2,arguments);var r=Se(t);return $b(e,-r)}function po(e,t){K(2,arguments);var r=Se(t);return ti(e,-r)}function Eb(e){K(1,arguments);var t=oe(e),r=t.getSeconds();return r}function Rr(e){K(1,arguments);var t=oe(e),r=t.getMinutes();return r}function Nr(e){K(1,arguments);var t=oe(e),r=t.getHours();return r}function cY(e){K(1,arguments);var t=oe(e),r=t.getDay();return r}function _b(e){K(1,arguments);var t=oe(e),r=t.getDate();return r}function Ab(e,t){var r,a,n,i,o,s,u,c;K(1,arguments);var l=na(),d=Se((r=(a=(n=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:l.weekStartsOn)!==null&&a!==void 0?a:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=oe(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function su(e){return K(1,arguments),Ab(e,{weekStartsOn:1})}function lY(e){K(1,arguments);var t=oe(e),r=t.getFullYear(),a=new Date(0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);var n=su(a),i=new Date(0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);var o=su(i);return t.getTime()>=n.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function dY(e){K(1,arguments);var t=lY(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var a=su(r);return a}var fY=6048e5;function pY(e){K(1,arguments);var t=oe(e),r=su(t).getTime()-dY(t).getTime();return Math.round(r/fY)+1}function xt(e){K(1,arguments);var t=oe(e),r=t.getMonth();return r}function ni(e){K(1,arguments);var t=oe(e),r=Math.floor(t.getMonth()/3)+1;return r}function $e(e){return K(1,arguments),oe(e).getFullYear()}function Rd(e){K(1,arguments);var t=oe(e),r=t.getTime();return r}function hY(e,t){K(2,arguments);var r=oe(e),a=Se(t);return r.setSeconds(a),r}function uu(e,t){K(2,arguments);var r=oe(e),a=Se(t);return r.setMinutes(a),r}function cu(e,t){K(2,arguments);var r=oe(e),a=Se(t);return r.setHours(a),r}function mY(e){K(1,arguments);var t=oe(e),r=t.getFullYear(),a=t.getMonth(),n=new Date(0);return n.setFullYear(r,a+1,0),n.setHours(0,0,0,0),n.getDate()}function Mt(e,t){K(2,arguments);var r=oe(e),a=Se(t),n=r.getFullYear(),i=r.getDate(),o=new Date(0);o.setFullYear(n,a,15),o.setHours(0,0,0,0);var s=mY(o);return r.setMonth(a,Math.min(i,s)),r}function ai(e,t){K(2,arguments);var r=oe(e),a=Se(t),n=Math.floor(r.getMonth()/3)+1,i=a-n;return Mt(r,r.getMonth()+i*3)}function ln(e,t){K(2,arguments);var r=oe(e),a=Se(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(a),r)}function Ob(e){K(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kt(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(a){var n=oe(a);(r===void 0||r>n||isNaN(n.getDate()))&&(r=n)}),r||new Date(NaN)}function Tb(e){K(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kt(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(a){var n=oe(a);(r===void 0||r<n||isNaN(Number(n)))&&(r=n)}),r||new Date(NaN)}function kr(e){K(1,arguments);var t=oe(e);return t.setHours(0,0,0,0),t}var gY=864e5;function lu(e,t){K(2,arguments);var r=kr(e),a=kr(t),n=r.getTime()-au(r),i=a.getTime()-au(a);return Math.round((n-i)/gY)}function du(e,t){K(2,arguments);var r=oe(e),a=oe(t),n=r.getFullYear()-a.getFullYear(),i=r.getMonth()-a.getMonth();return n*12+i}function fu(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()-a.getFullYear()}function xb(e){K(1,arguments);var t=oe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Nd(e){K(1,arguments);var t=oe(e),r=t.getMonth(),a=r-r%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}function Db(e){K(1,arguments);var t=oe(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function kd(e){K(1,arguments);var t=oe(e);return t.setHours(23,59,59,999),t}function vY(e){K(1,arguments);var t=oe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function yY(e){K(1,arguments);var t=oe(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function bY(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getTime()===a.getTime()}function wY(e,t){K(2,arguments);var r=kr(e),a=kr(t);return r.getTime()===a.getTime()}function CY(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function SY(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getFullYear()===a.getFullYear()}function $Y(e,t){K(2,arguments);var r=Nd(e),a=Nd(t);return r.getTime()===a.getTime()}function On(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getTime()>a.getTime()}function Tn(e,t){K(2,arguments);var r=oe(e),a=oe(t);return r.getTime()<a.getTime()}function ho(e,t){K(2,arguments);var r=oe(e).getTime(),a=oe(t.start).getTime(),n=oe(t.end).getTime();if(!(a<=n))throw new RangeError("Invalid interval");return r>=a&&r<=n}function Md(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function Fd(e,t){if(e){if(typeof e=="string")return Md(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Md(e,t):void 0}}function Pb(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fd(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
68
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return o=c.done,c},e:function(c){s=!0,i=c},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw i}}}}function IY(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jd(e,t){return jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},jd(e,t)}function Te(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jd(e,t)}function pu(e){return pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pu(e)}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rb=function(){return!!e})()}function EY(e,t){if(t&&(Kt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function xe(e){var t=Rb();return function(){var r,a=pu(e);if(t){var n=pu(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return EY(this,r)}}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _Y(e,t){if(Kt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Kt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nb(e){var t=_Y(e,"string");return Kt(t)=="symbol"?t:t+""}function kb(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Nb(a.key),a)}}function Ae(e,t,r){return t&&kb(e.prototype,t),r&&kb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function q(e,t,r){return(t=Nb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AY=10,Mb=function(){function e(){_e(this,e),q(this,"priority",void 0),q(this,"subPriority",0)}return Ae(e,[{key:"validate",value:function(r,a){return!0}}]),e}(),OY=function(e){Te(r,e);var t=xe(r);function r(a,n,i,o,s){var u;return _e(this,r),u=t.call(this),u.value=a,u.validateValue=n,u.setValue=i,u.priority=o,s&&(u.subPriority=s),u}return Ae(r,[{key:"validate",value:function(n,i){return this.validateValue(n,this.value,i)}},{key:"set",value:function(n,i,o){return this.setValue(n,i,this.value,o)}}]),r}(Mb),TY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",AY),q(ie(a),"subPriority",-1),a}return Ae(r,[{key:"set",value:function(n,i){if(i.timestampIsSet)return n;var o=new Date(0);return o.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),o.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),o}}]),r}(Mb),ke=function(){function e(){_e(this,e),q(this,"incompatibleTokens",void 0),q(this,"priority",void 0),q(this,"subPriority",void 0)}return Ae(e,[{key:"run",value:function(r,a,n,i){var o=this.parse(r,a,n,i);return o?{setter:new OY(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,a,n){return!0}}]),e}(),xY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",140),q(ie(a),"incompatibleTokens",["R","u","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}},{key:"set",value:function(n,i,o){return i.era=o,n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),Bd=6e4,Ld=36e5,DY=1e3,lt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Mr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function dt(e,t){return e&&{value:t(e.value),rest:e.rest}}function ot(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Fr(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var a=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:a*(n*Ld+i*Bd+o*DY),rest:t.slice(r[0].length)}}function Fb(e){return ot(lt.anyDigitsSigned,e)}function st(e,t){switch(e){case 1:return ot(lt.singleDigit,t);case 2:return ot(lt.twoDigits,t);case 3:return ot(lt.threeDigits,t);case 4:return ot(lt.fourDigits,t);default:return ot(new RegExp("^\\d{1,"+e+"}"),t)}}function hu(e,t){switch(e){case 1:return ot(lt.singleDigitSigned,t);case 2:return ot(lt.twoDigitsSigned,t);case 3:return ot(lt.threeDigitsSigned,t);case 4:return ot(lt.fourDigitsSigned,t);default:return ot(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Gd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function jb(e,t){var r=t>0,a=r?t:1-t,n;if(a<=50)n=e||100;else{var i=a+50,o=Math.floor(i/100)*100,s=e>=i%100;n=e+o-(s?100:0)}return r?n:1-n}function Bb(e){return e%400===0||e%4===0&&e%100!==0}var PY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return{year:c,isTwoDigitYear:i==="yy"}};switch(i){case"y":return dt(st(4,n),s);case"yo":return dt(o.ordinalNumber(n,{unit:"year"}),s);default:return dt(st(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o){var s=n.getUTCFullYear();if(o.isTwoDigitYear){var u=jb(o.year,s);return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n}var c=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(c,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),RY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return{year:c,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return dt(st(4,n),s);case"Yo":return dt(o.ordinalNumber(n,{unit:"year"}),s);default:return dt(st(i.length,n),s)}}},{key:"validate",value:function(n,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(n,i,o,s){var u=Td(n,s);if(o.isTwoDigitYear){var c=jb(o.year,u);return n.setUTCFullYear(c,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),aa(n,s)}var l=!("era"in i)||i.era===1?o.year:1-o.year;return n.setUTCFullYear(l,0,s.firstWeekContainsDate),n.setUTCHours(0,0,0,0),aa(n,s)}}]),r}(ke),NY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i){return hu(i==="R"?4:i.length,n)}},{key:"set",value:function(n,i,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),Ka(s)}}]),r}(ke),kY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",130),q(ie(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i){return hu(i==="u"?4:i.length,n)}},{key:"set",value:function(n,i,o){return n.setUTCFullYear(o,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),MY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",120),q(ie(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"Q":case"QQ":return st(i.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),FY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",120),q(ie(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"q":case"qq":return st(i.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=1&&i<=4}},{key:"set",value:function(n,i,o){return n.setUTCMonth((o-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),jY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),q(ie(a),"priority",110),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return c-1};switch(i){case"M":return dt(ot(lt.month,n),s);case"MM":return dt(st(2,n),s);case"Mo":return dt(o.ordinalNumber(n,{unit:"month"}),s);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke),BY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",110),q(ie(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return c-1};switch(i){case"L":return dt(ot(lt.month,n),s);case"LL":return dt(st(2,n),s);case"Lo":return dt(o.ordinalNumber(n,{unit:"month"}),s);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){return n.setUTCMonth(o,1),n.setUTCHours(0,0,0,0),n}}]),r}(ke);function LY(e,t,r){K(2,arguments);var a=oe(e),n=Se(t),i=hb(a,r)-n;return a.setUTCDate(a.getUTCDate()-i*7),a}var GY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",100),q(ie(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"w":return ot(lt.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o,s){return aa(LY(n,o,s),s)}}]),r}(ke);function VY(e,t){K(2,arguments);var r=oe(e),a=Se(t),n=pb(r)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var WY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",100),q(ie(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"I":return ot(lt.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=53}},{key:"set",value:function(n,i,o){return Ka(VY(n,o))}}]),r}(ke),YY=[31,28,31,30,31,30,31,31,30,31,30,31],UY=[31,29,31,30,31,30,31,31,30,31,30,31],HY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"subPriority",1),q(ie(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"d":return ot(lt.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=Bb(o),u=n.getUTCMonth();return s?i>=1&&i<=UY[u]:i>=1&&i<=YY[u]}},{key:"set",value:function(n,i,o){return n.setUTCDate(o),n.setUTCHours(0,0,0,0),n}}]),r}(ke),XY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"subpriority",1),q(ie(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"D":case"DD":return ot(lt.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){var o=n.getUTCFullYear(),s=Bb(o);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(n,i,o){return n.setUTCMonth(0,o),n.setUTCHours(0,0,0,0),n}}]),r}(ke);function Vd(e,t,r){var a,n,i,o,s,u,c,l;K(2,arguments);var d=na(),f=Se((a=(n=(i=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=oe(e),m=Se(t),v=p.getUTCDay(),g=m%7,h=(g+7)%7,y=(h<f?7:0)+m-v;return p.setUTCDate(p.getUTCDate()+y),p}var zY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=Vd(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(ke),ZY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o,s){var u=function(l){var d=Math.floor((l-1)/7)*7;return(l+s.weekStartsOn+6)%7+d};switch(i){case"e":case"ee":return dt(st(i.length,n),u);case"eo":return dt(o.ordinalNumber(n,{unit:"day"}),u);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=Vd(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(ke),JY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o,s){var u=function(l){var d=Math.floor((l-1)/7)*7;return(l+s.weekStartsOn+6)%7+d};switch(i){case"c":case"cc":return dt(st(i.length,n),u);case"co":return dt(o.ordinalNumber(n,{unit:"day"}),u);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,i){return i>=0&&i<=6}},{key:"set",value:function(n,i,o,s){return n=Vd(n,o,s),n.setUTCHours(0,0,0,0),n}}]),r}(ke);function qY(e,t){K(2,arguments);var r=Se(t);r%7===0&&(r=r-7);var a=1,n=oe(e),i=n.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<a?7:0)+r-i;return n.setUTCDate(n.getUTCDate()+u),n}var KY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",90),q(ie(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){var s=function(c){return c===0?7:c};switch(i){case"i":case"ii":return st(i.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return dt(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return dt(o.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return dt(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return dt(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(n,i){return i>=1&&i<=7}},{key:"set",value:function(n,i,o){return n=qY(n,o),n.setUTCHours(0,0,0,0),n}}]),r}(ke),QY=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",80),q(ie(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(Gd(o),0,0,0),n}}]),r}(ke),eU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",80),q(ie(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(Gd(o),0,0,0),n}}]),r}(ke),tU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",80),q(ie(a),"incompatibleTokens",["a","b","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,i,o){return n.setUTCHours(Gd(o),0,0,0),n}}]),r}(ke),rU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["H","K","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"h":return ot(lt.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=12}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):!s&&o===12?n.setUTCHours(0,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(ke),nU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"H":return ot(lt.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=23}},{key:"set",value:function(n,i,o){return n.setUTCHours(o,0,0,0),n}}]),r}(ke),aU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["h","H","k","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"K":return ot(lt.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=11}},{key:"set",value:function(n,i,o){var s=n.getUTCHours()>=12;return s&&o<12?n.setUTCHours(o+12,0,0,0):n.setUTCHours(o,0,0,0),n}}]),r}(ke),iU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",70),q(ie(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"k":return ot(lt.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=1&&i<=24}},{key:"set",value:function(n,i,o){var s=o<=24?o%24:o;return n.setUTCHours(s,0,0,0),n}}]),r}(ke),oU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",60),q(ie(a),"incompatibleTokens",["t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"m":return ot(lt.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCMinutes(o,0,0),n}}]),r}(ke),sU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",50),q(ie(a),"incompatibleTokens",["t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i,o){switch(i){case"s":return ot(lt.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return st(i.length,n)}}},{key:"validate",value:function(n,i){return i>=0&&i<=59}},{key:"set",value:function(n,i,o){return n.setUTCSeconds(o,0),n}}]),r}(ke),uU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",30),q(ie(a),"incompatibleTokens",["t","T"]),a}return Ae(r,[{key:"parse",value:function(n,i){var o=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return dt(st(i.length,n),o)}},{key:"set",value:function(n,i,o){return n.setUTCMilliseconds(o),n}}]),r}(ke),cU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",10),q(ie(a),"incompatibleTokens",["t","T","x"]),a}return Ae(r,[{key:"parse",value:function(n,i){switch(i){case"X":return Fr(Mr.basicOptionalMinutes,n);case"XX":return Fr(Mr.basic,n);case"XXXX":return Fr(Mr.basicOptionalSeconds,n);case"XXXXX":return Fr(Mr.extendedOptionalSeconds,n);case"XXX":default:return Fr(Mr.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(ke),lU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",10),q(ie(a),"incompatibleTokens",["t","T","X"]),a}return Ae(r,[{key:"parse",value:function(n,i){switch(i){case"x":return Fr(Mr.basicOptionalMinutes,n);case"xx":return Fr(Mr.basic,n);case"xxxx":return Fr(Mr.basicOptionalSeconds,n);case"xxxxx":return Fr(Mr.extendedOptionalSeconds,n);case"xxx":default:return Fr(Mr.extended,n)}}},{key:"set",value:function(n,i,o){return i.timestampIsSet?n:new Date(n.getTime()-o)}}]),r}(ke),dU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",40),q(ie(a),"incompatibleTokens","*"),a}return Ae(r,[{key:"parse",value:function(n){return Fb(n)}},{key:"set",value:function(n,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(ke),fU=function(e){Te(r,e);var t=xe(r);function r(){var a;_e(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a=t.call.apply(t,[this].concat(i)),q(ie(a),"priority",20),q(ie(a),"incompatibleTokens","*"),a}return Ae(r,[{key:"parse",value:function(n){return Fb(n)}},{key:"set",value:function(n,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(ke),pU={G:new xY,y:new PY,Y:new RY,R:new NY,u:new kY,Q:new MY,q:new FY,M:new jY,L:new BY,w:new GY,I:new WY,d:new HY,D:new XY,E:new zY,e:new ZY,c:new JY,i:new KY,a:new QY,b:new eU,B:new tU,h:new rU,H:new nU,K:new aU,k:new iU,m:new oU,s:new sU,S:new uU,X:new cU,x:new lU,t:new dU,T:new fU},hU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gU=/^'([^]*?)'?$/,vU=/''/g,yU=/\S/,bU=/[a-zA-Z]/;function Wd(e,t,r,a){var n,i,o,s,u,c,l,d,f,p,m,v,g,h,y,b,w,C;K(3,arguments);var E=String(e),_=String(t),N=na(),R=(n=(i=a==null?void 0:a.locale)!==null&&i!==void 0?i:N.locale)!==null&&n!==void 0?n:Cb;if(!R.match)throw new RangeError("locale must contain match property");var k=Se((o=(s=(u=(c=a==null?void 0:a.firstWeekContainsDate)!==null&&c!==void 0?c:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:N.firstWeekContainsDate)!==null&&s!==void 0?s:(f=N.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Se((m=(v=(g=(h=a==null?void 0:a.weekStartsOn)!==null&&h!==void 0?h:a==null||(y=a.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:N.weekStartsOn)!==null&&v!==void 0?v:(w=N.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return E===""?oe(r):new Date(NaN);var W={firstWeekContainsDate:k,weekStartsOn:F,locale:R},B=[new TY],U=_.match(mU).map(function(H){var Q=H[0];if(Q in xd){var ce=xd[Q];return ce(H,R.formatLong)}return H}).join("").match(hU),Y=[],L=Pb(U),Z;try{var J=function(){var Q=Z.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&wb(Q)&&iu(Q,_,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&bb(Q)&&iu(Q,_,e);var ce=Q[0],Ee=pU[ce];if(Ee){var ee=Ee.incompatibleTokens;if(Array.isArray(ee)){var pt=Y.find(function(Ve){return ee.includes(Ve.token)||Ve.token===ce});if(pt)throw new RangeError("The format string mustn't contain `".concat(pt.fullToken,"` and `").concat(Q,"` at the same time"))}else if(Ee.incompatibleTokens==="*"&&Y.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));Y.push({token:ce,fullToken:Q});var te=Ee.run(E,Q,R.match,W);if(!te)return{v:new Date(NaN)};B.push(te.setter),E=te.rest}else{if(ce.match(bU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ce+"`");if(Q==="''"?Q="'":ce==="'"&&(Q=wU(Q)),E.indexOf(Q)===0)E=E.slice(Q.length);else return{v:new Date(NaN)}}};for(L.s();!(Z=L.n()).done;){var se=J();if(Kt(se)==="object")return se.v}}catch(H){L.e(H)}finally{L.f()}if(E.length>0&&yU.test(E))return new Date(NaN);var V=B.map(function(H){return H.priority}).sort(function(H,Q){return Q-H}).filter(function(H,Q,ce){return ce.indexOf(H)===Q}).map(function(H){return B.filter(function(Q){return Q.priority===H}).sort(function(Q,ce){return ce.subPriority-Q.subPriority})}).map(function(H){return H[0]}),D=oe(r);if(isNaN(D.getTime()))return new Date(NaN);var M=db(D,au(D)),P={},S=Pb(V),T;try{for(S.s();!(T=S.n()).done;){var j=T.value;if(!j.validate(M,W))return new Date(NaN);var z=j.set(M,P,W);Array.isArray(z)?(M=z[0],IY(P,z[1])):M=z}}catch(H){S.e(H)}finally{S.f()}return M}function wU(e){return e.match(gU)[1].replace(vU,"'")}function CU(e,t){var r;K(1,arguments);var a=Se((r=void 0)!==null&&r!==void 0?r:2);if(a!==2&&a!==1&&a!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var n=EU(e),i;if(n.date){var o=_U(n.date,a);i=AU(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),u=0,c;if(n.time&&(u=OU(n.time),isNaN(u)))return new Date(NaN);if(n.timezone){if(c=TU(n.timezone),isNaN(c))return new Date(NaN)}else{var l=new Date(s+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return new Date(s+u+c)}var mu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},SU=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$U=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IU=/^([+-])(\d{2})(?::?(\d{2}))?$/;function EU(e){var t={},r=e.split(mu.dateTimeDelimiter),a;if(r.length>2)return t;if(/:/.test(r[0])?a=r[0]:(t.date=r[0],a=r[1],mu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(mu.timeZoneDelimiter)[0],a=e.substr(t.date.length,e.length))),a){var n=mu.timezone.exec(a);n?(t.time=a.replace(n[1],""),t.timezone=n[1]):t.time=a}return t}function _U(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(r);if(!a)return{year:NaN,restDateString:""};var n=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:i===null?n:i*100,restDateString:e.slice((a[1]||a[2]).length)}}function AU(e,t){if(t===null)return new Date(NaN);var r=e.match(SU);if(!r)return new Date(NaN);var a=!!r[4],n=mo(r[1]),i=mo(r[2])-1,o=mo(r[3]),s=mo(r[4]),u=mo(r[5])-1;if(a)return NU(t,s,u)?xU(t,s,u):new Date(NaN);var c=new Date(0);return!PU(t,i,o)||!RU(t,n)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(n,o)),c)}function mo(e){return e?parseInt(e):1}function OU(e){var t=e.match($U);if(!t)return NaN;var r=Yd(t[1]),a=Yd(t[2]),n=Yd(t[3]);return kU(r,a,n)?r*Ld+a*Bd+n*1e3:NaN}function Yd(e){return e&&parseFloat(e.replace(",","."))||0}function TU(e){if(e==="Z")return 0;var t=e.match(IU);if(!t)return 0;var r=t[1]==="+"?-1:1,a=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return MU(a,n)?r*(a*Ld+n*Bd):NaN}function xU(e,t,r){var a=new Date(0);a.setUTCFullYear(e,0,4);var n=a.getUTCDay()||7,i=(t-1)*7+r+1-n;return a.setUTCDate(a.getUTCDate()+i),a}var DU=[31,null,31,30,31,30,31,31,30,31,30,31];function Lb(e){return e%400===0||e%4===0&&e%100!==0}function PU(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(DU[t]||(Lb(e)?29:28))}function RU(e,t){return t>=1&&t<=(Lb(e)?366:365)}function NU(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function kU(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function MU(e,t){return t>=0&&t<=59}function FU(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ud(e,t)}function Ud(e,t){return Ud=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},Ud(e,t)}function jU(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,i;for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Gb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BU(e,t,r){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(r):e.classList.contains(r)}function LU(e,t,r){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&BU(e,t,r))return!0;e=e.parentNode||e.host}return e}function GU(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var VU=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,r=Object.defineProperty({},"passive",{get:function(){t=!0}}),a=function(){};return window.addEventListener("testPassiveEventSupport",a,r),window.removeEventListener("testPassiveEventSupport",a,r),t}};function WU(e){return e===void 0&&(e=0),function(){return++e}}var YU=WU(),Hd,gu={},Xd={},UU=["touchstart","touchmove"],HU="ignore-react-onclickoutside";function Vb(e,t){var r={},a=UU.indexOf(t)!==-1;return a&&Hd&&(r.passive=!e.props.preventDefault),r}function vu(e,t){var r,a,n=e.displayName||e.name||"Component";return a=r=function(i){FU(o,i);function o(u){var c;return c=i.call(this,u)||this,c.__outsideClickHandler=function(l){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(l);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(l);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(l);return}throw new Error("WrappedComponent: "+n+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var l=c.getInstance();return typeof l.setClickOutsideRef=="function"?l.setClickOutsideRef():en.findDOMNode(l)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Xd[c._uid])){typeof Hd>"u"&&(Hd=VU()),Xd[c._uid]=!0;var l=c.props.eventTypes;l.forEach||(l=[l]),gu[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&GU(d)))){var f=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;LU(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},l.forEach(function(d){document.addEventListener(d,gu[c._uid],Vb(Gb(c),d))})}},c.disableOnClickOutside=function(){delete Xd[c._uid];var l=gu[c._uid];if(l&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,l,Vb(Gb(c),f))}),delete gu[c._uid]}},c.getRef=function(l){return c.instanceRef=l},c._uid=YU(),c.initTimeStamp=performance.now(),c}var s=o.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var l=jU(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?l.ref=this.getRef:l.wrappedRef=this.getRef,l.disableOnClickOutside=this.disableOnClickOutside,l.enableOnClickOutside=this.enableOnClickOutside,I.createElement(e,l)},o}(I.Component),r.displayName="OnClickOutside("+n+")",r.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:HU,preventDefault:!1,stopPropagation:!1},r.getClass=function(){return e.getClass?e.getClass():e},a}var Wb=ne.createContext(),Yb=ne.createContext();function XU(e){var t=e.children,r=ne.useState(null),a=r[0],n=r[1],i=ne.useRef(!1);ne.useEffect(function(){return function(){i.current=!0}},[]);var o=ne.useCallback(function(s){i.current||n(s)},[]);return ne.createElement(Wb.Provider,{value:a},ne.createElement(Yb.Provider,{value:o},t))}var Ub=function(t){return Array.isArray(t)?t[0]:t},Hb=function(t){if(typeof t=="function"){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return t.apply(void 0,a)}},zd=function(t,r){if(typeof t=="function")return Hb(t,r);t!=null&&(t.current=r)},Xb=function(t){return t.reduce(function(r,a){var n=a[0],i=a[1];return r[n]=i,r},{})},zb=typeof window<"u"&&window.document&&window.document.createElement?ne.useLayoutEffect:ne.useEffect,Bt="top",sr="bottom",ur="right",Lt="left",Zd="auto",go=[Bt,sr,ur,Lt],ii="start",vo="end",zU="clippingParents",Zb="viewport",yo="popper",ZU="reference",Jb=go.reduce(function(e,t){return e.concat([t+"-"+ii,t+"-"+vo])},[]),qb=[].concat(go,[Zd]).reduce(function(e,t){return e.concat([t,t+"-"+ii,t+"-"+vo])},[]),JU="beforeRead",qU="read",KU="afterRead",QU="beforeMain",eH="main",tH="afterMain",rH="beforeWrite",nH="write",aH="afterWrite",iH=[JU,qU,KU,QU,eH,tH,rH,nH,aH];function jr(e){return e?(e.nodeName||"").toLowerCase():null}function Qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oa(e){var t=Qt(e).Element;return e instanceof t||e instanceof Element}function cr(e){var t=Qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jd(e){if(typeof ShadowRoot>"u")return!1;var t=Qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oH(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var a=t.styles[r]||{},n=t.attributes[r]||{},i=t.elements[r];!cr(i)||!jr(i)||(Object.assign(i.style,a),Object.keys(n).forEach(function(o){var s=n[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function sH(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(a){var n=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:r[a]),s=o.reduce(function(u,c){return u[c]="",u},{});!cr(n)||!jr(n)||(Object.assign(n.style,s),Object.keys(i).forEach(function(u){n.removeAttribute(u)}))})}}const uH={name:"applyStyles",enabled:!0,phase:"write",fn:oH,effect:sH,requires:["computeStyles"]};function Br(e){return e.split("-")[0]}var sa=Math.max,yu=Math.min,oi=Math.round;function qd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Kb(){return!/^((?!chrome|android).)*safari/i.test(qd())}function si(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var a=e.getBoundingClientRect(),n=1,i=1;t&&cr(e)&&(n=e.offsetWidth>0&&oi(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&oi(a.height)/e.offsetHeight||1);var o=oa(e)?Qt(e):window,s=o.visualViewport,u=!Kb()&&r,c=(a.left+(u&&s?s.offsetLeft:0))/n,l=(a.top+(u&&s?s.offsetTop:0))/i,d=a.width/n,f=a.height/i;return{width:d,height:f,top:l,right:c+d,bottom:l+f,left:c,x:c,y:l}}function Kd(e){var t=si(e),r=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:a}}function Qb(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Jd(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function dn(e){return Qt(e).getComputedStyle(e)}function cH(e){return["table","td","th"].indexOf(jr(e))>=0}function xn(e){return((oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function bu(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(Jd(e)?e.host:null)||xn(e)}function e0(e){return!cr(e)||dn(e).position==="fixed"?null:e.offsetParent}function lH(e){var t=/firefox/i.test(qd()),r=/Trident/i.test(qd());if(r&&cr(e)){var a=dn(e);if(a.position==="fixed")return null}var n=bu(e);for(Jd(n)&&(n=n.host);cr(n)&&["html","body"].indexOf(jr(n))<0;){var i=dn(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function bo(e){for(var t=Qt(e),r=e0(e);r&&cH(r)&&dn(r).position==="static";)r=e0(r);return r&&(jr(r)==="html"||jr(r)==="body"&&dn(r).position==="static")?t:r||lH(e)||t}function Qd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wo(e,t,r){return sa(e,yu(t,r))}function dH(e,t,r){var a=wo(e,t,r);return a>r?r:a}function t0(){return{top:0,right:0,bottom:0,left:0}}function r0(e){return Object.assign({},t0(),e)}function n0(e,t){return t.reduce(function(r,a){return r[a]=e,r},{})}var fH=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,r0(typeof t!="number"?t:n0(t,go))};function pH(e){var t,r=e.state,a=e.name,n=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Br(r.placement),u=Qd(s),c=[Lt,ur].indexOf(s)>=0,l=c?"height":"width";if(!(!i||!o)){var d=fH(n.padding,r),f=Kd(i),p=u==="y"?Bt:Lt,m=u==="y"?sr:ur,v=r.rects.reference[l]+r.rects.reference[u]-o[u]-r.rects.popper[l],g=o[u]-r.rects.reference[u],h=bo(i),y=h?u==="y"?h.clientHeight||0:h.clientWidth||0:0,b=v/2-g/2,w=d[p],C=y-f[l]-d[m],E=y/2-f[l]/2+b,_=wo(w,E,C),N=u;r.modifiersData[a]=(t={},t[N]=_,t.centerOffset=_-E,t)}}function hH(e){var t=e.state,r=e.options,a=r.element,n=a===void 0?"[data-popper-arrow]":a;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Qb(t.elements.popper,n)&&(t.elements.arrow=n))}const mH={name:"arrow",enabled:!0,phase:"main",fn:pH,effect:hH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ui(e){return e.split("-")[1]}var gH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vH(e,t){var r=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:oi(r*n)/n||0,y:oi(a*n)/n||0}}function a0(e){var t,r=e.popper,a=e.popperRect,n=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,v=m===void 0?0:m,g=typeof l=="function"?l({x:p,y:v}):{x:p,y:v};p=g.x,v=g.y;var h=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Lt,w=Bt,C=window;if(c){var E=bo(r),_="clientHeight",N="clientWidth";if(E===Qt(r)&&(E=xn(r),dn(E).position!=="static"&&s==="absolute"&&(_="scrollHeight",N="scrollWidth")),E=E,n===Bt||(n===Lt||n===ur)&&i===vo){w=sr;var R=d&&E===C&&C.visualViewport?C.visualViewport.height:E[_];v-=R-a.height,v*=u?1:-1}if(n===Lt||(n===Bt||n===sr)&&i===vo){b=ur;var k=d&&E===C&&C.visualViewport?C.visualViewport.width:E[N];p-=k-a.width,p*=u?1:-1}}var F=Object.assign({position:s},c&&gH),W=l===!0?vH({x:p,y:v},Qt(r)):{x:p,y:v};if(p=W.x,v=W.y,u){var B;return Object.assign({},F,(B={},B[w]=y?"0":"",B[b]=h?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",B))}return Object.assign({},F,(t={},t[w]=y?v+"px":"",t[b]=h?p+"px":"",t.transform="",t))}function yH(e){var t=e.state,r=e.options,a=r.gpuAcceleration,n=a===void 0?!0:a,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Br(t.placement),variation:ui(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,a0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,a0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yH,data:{}};var wu={passive:!0};function wH(e){var t=e.state,r=e.instance,a=e.options,n=a.scroll,i=n===void 0?!0:n,o=a.resize,s=o===void 0?!0:o,u=Qt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(l){l.addEventListener("scroll",r.update,wu)}),s&&u.addEventListener("resize",r.update,wu),function(){i&&c.forEach(function(l){l.removeEventListener("scroll",r.update,wu)}),s&&u.removeEventListener("resize",r.update,wu)}}const CH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wH,data:{}};var SH={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(e){return e.replace(/left|right|bottom|top/g,function(t){return SH[t]})}var $H={start:"end",end:"start"};function i0(e){return e.replace(/start|end/g,function(t){return $H[t]})}function ef(e){var t=Qt(e),r=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:r,scrollTop:a}}function tf(e){return si(xn(e)).left+ef(e).scrollLeft}function IH(e,t){var r=Qt(e),a=xn(e),n=r.visualViewport,i=a.clientWidth,o=a.clientHeight,s=0,u=0;if(n){i=n.width,o=n.height;var c=Kb();(c||!c&&t==="fixed")&&(s=n.offsetLeft,u=n.offsetTop)}return{width:i,height:o,x:s+tf(e),y:u}}function EH(e){var t,r=xn(e),a=ef(e),n=(t=e.ownerDocument)==null?void 0:t.body,i=sa(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=sa(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-a.scrollLeft+tf(e),u=-a.scrollTop;return dn(n||r).direction==="rtl"&&(s+=sa(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function rf(e){var t=dn(e),r=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function o0(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:cr(e)&&rf(e)?e:o0(bu(e))}function Co(e,t){var r;t===void 0&&(t=[]);var a=o0(e),n=a===((r=e.ownerDocument)==null?void 0:r.body),i=Qt(a),o=n?[i].concat(i.visualViewport||[],rf(a)?a:[]):a,s=t.concat(o);return n?s:s.concat(Co(bu(o)))}function nf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _H(e,t){var r=si(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function s0(e,t,r){return t===Zb?nf(IH(e,r)):oa(t)?_H(t,r):nf(EH(xn(e)))}function AH(e){var t=Co(bu(e)),r=["absolute","fixed"].indexOf(dn(e).position)>=0,a=r&&cr(e)?bo(e):e;return oa(a)?t.filter(function(n){return oa(n)&&Qb(n,a)&&jr(n)!=="body"}):[]}function OH(e,t,r,a){var n=t==="clippingParents"?AH(e):[].concat(t),i=[].concat(n,[r]),o=i[0],s=i.reduce(function(u,c){var l=s0(e,c,a);return u.top=sa(l.top,u.top),u.right=yu(l.right,u.right),u.bottom=yu(l.bottom,u.bottom),u.left=sa(l.left,u.left),u},s0(e,o,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function u0(e){var t=e.reference,r=e.element,a=e.placement,n=a?Br(a):null,i=a?ui(a):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(n){case Bt:u={x:o,y:t.y-r.height};break;case sr:u={x:o,y:t.y+t.height};break;case ur:u={x:t.x+t.width,y:s};break;case Lt:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=n?Qd(n):null;if(c!=null){var l=c==="y"?"height":"width";switch(i){case ii:u[c]=u[c]-(t[l]/2-r[l]/2);break;case vo:u[c]=u[c]+(t[l]/2-r[l]/2);break}}return u}function So(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=a===void 0?e.placement:a,i=r.strategy,o=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?zU:s,c=r.rootBoundary,l=c===void 0?Zb:c,d=r.elementContext,f=d===void 0?yo:d,p=r.altBoundary,m=p===void 0?!1:p,v=r.padding,g=v===void 0?0:v,h=r0(typeof g!="number"?g:n0(g,go)),y=f===yo?ZU:yo,b=e.rects.popper,w=e.elements[m?y:f],C=OH(oa(w)?w:w.contextElement||xn(e.elements.popper),u,l,o),E=si(e.elements.reference),_=u0({reference:E,element:b,placement:n}),N=nf(Object.assign({},b,_)),R=f===yo?N:E,k={top:C.top-R.top+h.top,bottom:R.bottom-C.bottom+h.bottom,left:C.left-R.left+h.left,right:R.right-C.right+h.right},F=e.modifiersData.offset;if(f===yo&&F){var W=F[n];Object.keys(k).forEach(function(B){var U=[ur,sr].indexOf(B)>=0?1:-1,Y=[Bt,sr].indexOf(B)>=0?"y":"x";k[B]+=W[Y]*U})}return k}function TH(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?qb:u,l=ui(a),d=l?s?Jb:Jb.filter(function(m){return ui(m)===l}):go,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,v){return m[v]=So(e,{placement:v,boundary:n,rootBoundary:i,padding:o})[Br(v)],m},{});return Object.keys(p).sort(function(m,v){return p[m]-p[v]})}function xH(e){if(Br(e)===Zd)return[];var t=Cu(e);return[i0(e),t,i0(t)]}function DH(e){var t=e.state,r=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var n=r.mainAxis,i=n===void 0?!0:n,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,c=r.padding,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,m=p===void 0?!0:p,v=r.allowedAutoPlacements,g=t.options.placement,h=Br(g),y=h===g,b=u||(y||!m?[Cu(g)]:xH(g)),w=[g].concat(b).reduce(function(S,T){return S.concat(Br(T)===Zd?TH(t,{placement:T,boundary:l,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):T)},[]),C=t.rects.reference,E=t.rects.popper,_=new Map,N=!0,R=w[0],k=0;k<w.length;k++){var F=w[k],W=Br(F),B=ui(F)===ii,U=[Bt,sr].indexOf(W)>=0,Y=U?"width":"height",L=So(t,{placement:F,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),Z=U?B?ur:Lt:B?sr:Bt;C[Y]>E[Y]&&(Z=Cu(Z));var J=Cu(Z),se=[];if(i&&se.push(L[W]<=0),s&&se.push(L[Z]<=0,L[J]<=0),se.every(function(S){return S})){R=F,N=!1;break}_.set(F,se)}if(N)for(var V=m?3:1,D=function(T){var j=w.find(function(z){var H=_.get(z);if(H)return H.slice(0,T).every(function(Q){return Q})});if(j)return R=j,"break"},M=V;M>0;M--){var P=D(M);if(P==="break")break}t.placement!==R&&(t.modifiersData[a]._skip=!0,t.placement=R,t.reset=!0)}}const PH={name:"flip",enabled:!0,phase:"main",fn:DH,requiresIfExists:["offset"],data:{_skip:!1}};function c0(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function l0(e){return[Bt,ur,sr,Lt].some(function(t){return e[t]>=0})}function RH(e){var t=e.state,r=e.name,a=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,o=So(t,{elementContext:"reference"}),s=So(t,{altBoundary:!0}),u=c0(o,a),c=c0(s,n,i),l=l0(u),d=l0(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const NH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RH};function kH(e,t,r){var a=Br(e),n=[Lt,Bt].indexOf(a)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*n,[Lt,ur].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function MH(e){var t=e.state,r=e.options,a=e.name,n=r.offset,i=n===void 0?[0,0]:n,o=qb.reduce(function(l,d){return l[d]=kH(d,t.rects,i),l},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=o}const FH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MH};function jH(e){var t=e.state,r=e.name;t.modifiersData[r]=u0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const BH={name:"popperOffsets",enabled:!0,phase:"read",fn:jH,data:{}};function LH(e){return e==="x"?"y":"x"}function GH(e){var t=e.state,r=e.options,a=e.name,n=r.mainAxis,i=n===void 0?!0:n,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,c=r.rootBoundary,l=r.altBoundary,d=r.padding,f=r.tether,p=f===void 0?!0:f,m=r.tetherOffset,v=m===void 0?0:m,g=So(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),h=Br(t.placement),y=ui(t.placement),b=!y,w=Qd(h),C=LH(w),E=t.modifiersData.popperOffsets,_=t.rects.reference,N=t.rects.popper,R=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,k=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(E){if(i){var B,U=w==="y"?Bt:Lt,Y=w==="y"?sr:ur,L=w==="y"?"height":"width",Z=E[w],J=Z+g[U],se=Z-g[Y],V=p?-N[L]/2:0,D=y===ii?_[L]:N[L],M=y===ii?-N[L]:-_[L],P=t.elements.arrow,S=p&&P?Kd(P):{width:0,height:0},T=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:t0(),j=T[U],z=T[Y],H=wo(0,_[L],S[L]),Q=b?_[L]/2-V-H-j-k.mainAxis:D-H-j-k.mainAxis,ce=b?-_[L]/2+V+H+z+k.mainAxis:M+H+z+k.mainAxis,Ee=t.elements.arrow&&bo(t.elements.arrow),ee=Ee?w==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,pt=(B=F==null?void 0:F[w])!=null?B:0,te=Z+Q-pt-ee,Ve=Z+ce-pt,wt=wo(p?yu(J,te):J,Z,p?sa(se,Ve):se);E[w]=wt,W[w]=wt-Z}if(s){var Ut,bn=w==="x"?Bt:Lt,qr=w==="x"?sr:ur,tr=E[C],Kr=C==="y"?"height":"width",Qr=tr+g[bn],Bn=tr-g[qr],wn=[Bt,Lt].indexOf(h)!==-1,Cn=(Ut=F==null?void 0:F[C])!=null?Ut:0,Ir=wn?Qr:tr-_[Kr]-N[Kr]-Cn+k.altAxis,Sn=wn?tr+_[Kr]+N[Kr]-Cn-k.altAxis:Bn,Sa=p&&wn?dH(Ir,tr,Sn):wo(p?Ir:Qr,tr,p?Sn:Bn);E[C]=Sa,W[C]=Sa-tr}t.modifiersData[a]=W}}const VH={name:"preventOverflow",enabled:!0,phase:"main",fn:GH,requiresIfExists:["offset"]};function WH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function YH(e){return e===Qt(e)||!cr(e)?ef(e):WH(e)}function UH(e){var t=e.getBoundingClientRect(),r=oi(t.width)/e.offsetWidth||1,a=oi(t.height)/e.offsetHeight||1;return r!==1||a!==1}function HH(e,t,r){r===void 0&&(r=!1);var a=cr(t),n=cr(t)&&UH(t),i=xn(t),o=si(e,n,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!r)&&((jr(t)!=="body"||rf(i))&&(s=YH(t)),cr(t)?(u=si(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=tf(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function XH(e){var t=new Map,r=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function n(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&n(u)}}),a.push(i)}return e.forEach(function(i){r.has(i.name)||n(i)}),a}function zH(e){var t=XH(e);return iH.reduce(function(r,a){return r.concat(t.filter(function(n){return n.phase===a}))},[])}function ZH(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function JH(e){var t=e.reduce(function(r,a){var n=r[a.name];return r[a.name]=n?Object.assign({},n,a,{options:Object.assign({},n.options,a.options),data:Object.assign({},n.data,a.data)}):a,r},{});return Object.keys(t).map(function(r){return t[r]})}var d0={placement:"bottom",modifiers:[],strategy:"absolute"};function f0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function qH(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,a=r===void 0?[]:r,n=t.defaultOptions,i=n===void 0?d0:n;return function(s,u,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},d0,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},d=[],f=!1,p={state:l,setOptions:function(h){var y=typeof h=="function"?h(l.options):h;v(),l.options=Object.assign({},i,l.options,y),l.scrollParents={reference:oa(s)?Co(s):s.contextElement?Co(s.contextElement):[],popper:Co(u)};var b=zH(JH([].concat(a,l.options.modifiers)));return l.orderedModifiers=b.filter(function(w){return w.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var h=l.elements,y=h.reference,b=h.popper;if(f0(y,b)){l.rects={reference:HH(y,bo(b),l.options.strategy==="fixed"),popper:Kd(b)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(k){return l.modifiersData[k.name]=Object.assign({},k.data)});for(var w=0;w<l.orderedModifiers.length;w++){if(l.reset===!0){l.reset=!1,w=-1;continue}var C=l.orderedModifiers[w],E=C.fn,_=C.options,N=_===void 0?{}:_,R=C.name;typeof E=="function"&&(l=E({state:l,options:N,name:R,instance:p})||l)}}}},update:ZH(function(){return new Promise(function(g){p.forceUpdate(),g(l)})}),destroy:function(){v(),f=!0}};if(!f0(s,u))return p;p.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function m(){l.orderedModifiers.forEach(function(g){var h=g.name,y=g.options,b=y===void 0?{}:y,w=g.effect;if(typeof w=="function"){var C=w({state:l,name:h,instance:p,options:b}),E=function(){};d.push(C||E)}})}function v(){d.forEach(function(g){return g()}),d=[]}return p}}var KH=[CH,BH,bH,uH,FH,PH,VH,mH,NH],QH=qH({defaultModifiers:KH}),e5=typeof Element<"u",t5=typeof Map=="function",r5=typeof Set=="function",n5=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Su(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,a,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(!Su(e[a],t[a]))return!1;return!0}var i;if(t5&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(a=i.next()).done;)if(!t.has(a.value[0]))return!1;for(i=e.entries();!(a=i.next()).done;)if(!Su(a.value[1],t.get(a.value[0])))return!1;return!0}if(r5&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(a=i.next()).done;)if(!t.has(a.value[0]))return!1;return!0}if(n5&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[a]))return!1;if(e5&&e instanceof Element)return!1;for(a=r;a--!==0;)if(!((n[a]==="_owner"||n[a]==="__v"||n[a]==="__o")&&e.$$typeof)&&!Su(e[n[a]],t[n[a]]))return!1;return!0}return e!==e&&t!==t}var a5=function(t,r){try{return Su(t,r)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const i5=Xt(a5);var o5=[],s5=function(t,r,a){a===void 0&&(a={});var n=ne.useRef(null),i={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||o5},o=ne.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=o[0],u=o[1],c=ne.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,v=Object.keys(m.elements);C$.flushSync(function(){u({styles:Xb(v.map(function(g){return[g,m.styles[g]||{}]})),attributes:Xb(v.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),l=ne.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:"applyStyles",enabled:!1}])};return i5(n.current,f)?n.current||f:(n.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),d=ne.useRef();return zb(function(){d.current&&d.current.setOptions(l)},[l]),zb(function(){if(!(t==null||r==null)){var f=a.createPopper||QH,p=f(t,r,l);return d.current=p,function(){p.destroy(),d.current=null}}},[t,r,a.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},u5=function(){},c5=function(){return Promise.resolve(null)},l5=[];function d5(e){var t=e.placement,r=t===void 0?"bottom":t,a=e.strategy,n=a===void 0?"absolute":a,i=e.modifiers,o=i===void 0?l5:i,s=e.referenceElement,u=e.onFirstUpdate,c=e.innerRef,l=e.children,d=ne.useContext(Wb),f=ne.useState(null),p=f[0],m=f[1],v=ne.useState(null),g=v[0],h=v[1];ne.useEffect(function(){zd(c,p)},[c,p]);var y=ne.useMemo(function(){return{placement:r,strategy:n,onFirstUpdate:u,modifiers:[].concat(o,[{name:"arrow",enabled:g!=null,options:{element:g}}])}},[r,n,u,o,g]),b=s5(s||d,p,y),w=b.state,C=b.styles,E=b.forceUpdate,_=b.update,N=ne.useMemo(function(){return{ref:m,style:C.popper,placement:w?w.placement:r,hasPopperEscaped:w&&w.modifiersData.hide?w.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:w&&w.modifiersData.hide?w.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:C.arrow,ref:h},forceUpdate:E||u5,update:_||c5}},[m,h,r,w,C,_,E]);return Ub(l)(N)}var f5=process.env.NODE_ENV!=="production",p0=function(){};if(f5){var p5=function(t,r){var a=arguments.length;r=new Array(a>1?a-1:0);for(var n=1;n<a;n++)r[n-1]=arguments[n];var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};p0=function(e,t,r){var a=arguments.length;r=new Array(a>2?a-2:0);for(var n=2;n<a;n++)r[n-2]=arguments[n];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||p5.apply(null,[t].concat(r))}}var h5=p0;const m5=Xt(h5);function g5(e){var t=e.children,r=e.innerRef,a=ne.useContext(Yb),n=ne.useCallback(function(i){zd(r,i),Hb(a,i)},[r,a]);return ne.useEffect(function(){return function(){return zd(r,null)}},[]),ne.useEffect(function(){m5(!!a,"`Reference` should not be used outside of a `Manager` component.")},[a]),Ub(t)({ref:n})}function v5(e,t){if(K(2,arguments),Kt(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var r=oe(e);return isNaN(r.getTime())?new Date(NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=Mt(r,t.month)),t.date!=null&&r.setDate(Se(t.date)),t.hours!=null&&r.setHours(Se(t.hours)),t.minutes!=null&&r.setMinutes(Se(t.minutes)),t.seconds!=null&&r.setSeconds(Se(t.seconds)),t.milliseconds!=null&&r.setMilliseconds(Se(t.milliseconds)),r)}function h0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function $u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h0(Object(r),!0).forEach(function(a){A(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h0(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function af(e){return af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},af(e)}function Ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m0(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,g0(a.key),a)}}function St(e,t,r){return t&&m0(e.prototype,t),r&&m0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e,t,r){return(t=g0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ci.apply(this,arguments)}function $t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&of(e,t)}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Iu(e)}function of(e,t){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},of(e,t)}function O(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function It(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,a=Iu(e);if(t){var n=Iu(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return function(i,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(i)}(this,r)}}function $o(e){return function(t){if(Array.isArray(t))return sf(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,r){if(t){if(typeof t=="string")return sf(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return sf(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function g0(e){var t=function(r,a){if(typeof r!="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,a);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}(e,"string");return typeof t=="symbol"?t:String(t)}var v0=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},y0=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},y5={p:y0,P:function(e,t){var r,a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return v0(e,t);switch(n){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",v0(n,t)).replace("{{time}}",y0(i,t))}},Io=12,b5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Xe(e){var t=e?typeof e=="string"||e instanceof String?CU(e):oe(e):new Date;return Dn(t)?t:null}function Dn(e,t){return t=t||new Date("1/1/1000"),co(e)&&!Tn(e,t)}function it(e,t,r){if(r==="en")return Sb(e,t,{awareOfUnicodeTokens:!0});var a=la(r);return r&&!a&&console.warn('A locale object was not found for the provided string ["'.concat(r,'"].')),!a&&ca()&&la(ca())&&(a=la(ca())),Sb(e,t,{locale:a||null,awareOfUnicodeTokens:!0})}function Lr(e,t){var r=t.dateFormat,a=t.locale;return e&&it(e,Array.isArray(r)?r[0]:r,a)||""}function b0(e,t){var r=t.hour,a=r===void 0?0:r,n=t.minute,i=n===void 0?0:n,o=t.second;return cu(uu(hY(e,o===void 0?0:o),i),a)}function Gr(e,t,r){var a=la(t||ca());return Ab(e,{locale:a,weekStartsOn:r})}function Pn(e){return xb(e)}function Eo(e){return Db(e)}function w0(e){return Nd(e)}function C0(){return kr(Xe())}function Rn(e,t){return e&&t?SY(e,t):!e&&!t}function vr(e,t){return e&&t?CY(e,t):!e&&!t}function Eu(e,t){return e&&t?$Y(e,t):!e&&!t}function et(e,t){return e&&t?wY(e,t):!e&&!t}function ua(e,t){return e&&t?bY(e,t):!e&&!t}function _u(e,t,r){var a,n=kr(t),i=kd(r);try{a=ho(e,{start:n,end:i})}catch{a=!1}return a}function ca(){return(typeof window<"u"?window:globalThis).__localeId__}function la(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function uf(e,t){return it(Mt(Xe(),e),"LLLL",t)}function S0(e,t){return it(Mt(Xe(),e),"LLL",t)}function Au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.excludeDateIntervals,o=t.includeDates,s=t.includeDateIntervals,u=t.filterDate;return Ou(e,{minDate:r,maxDate:a})||n&&n.some(function(c){return et(e,c)})||i&&i.some(function(c){var l=c.start,d=c.end;return ho(e,{start:l,end:d})})||o&&!o.some(function(c){return et(e,c)})||s&&!s.some(function(c){var l=c.start,d=c.end;return ho(e,{start:l,end:d})})||u&&!u(Xe(e))||!1}function cf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.excludeDates,a=t.excludeDateIntervals;return a&&a.length>0?a.some(function(n){var i=n.start,o=n.end;return ho(e,{start:i,end:o})}):r&&r.some(function(n){return et(e,n)})||!1}function $0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.includeDates,o=t.filterDate;return Ou(e,{minDate:xb(r),maxDate:vY(a)})||n&&n.some(function(s){return vr(e,s)})||i&&!i.some(function(s){return vr(e,s)})||o&&!o(Xe(e))||!1}function lf(e,t,r,a){var n=$e(e),i=xt(e),o=$e(t),s=xt(t),u=$e(a);return n===o&&n===u?i<=r&&r<=s:n<o?u===n&&i<=r||u===o&&s>=r||u<o&&u>n:void 0}function w5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.includeDates,o=t.filterDate;return Ou(e,{minDate:r,maxDate:a})||n&&n.some(function(s){return Eu(e,s)})||i&&!i.some(function(s){return Eu(e,s)})||o&&!o(Xe(e))||!1}function df(e,t,r){if(!co(t)||!co(r))return!1;var a=$e(t),n=$e(r);return a<=e&&n>=e}function I0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate,n=t.excludeDates,i=t.includeDates,o=t.filterDate,s=new Date(e,0,1);return Ou(s,{minDate:Db(r),maxDate:yY(a)})||n&&n.some(function(u){return Rn(s,u)})||i&&!i.some(function(u){return Rn(s,u)})||o&&!o(Xe(s))||!1}function ff(e,t,r,a){var n=$e(e),i=ni(e),o=$e(t),s=ni(t),u=$e(a);return n===o&&n===u?i<=r&&r<=s:n<o?u===n&&i<=r||u===o&&s>=r||u<o&&u>n:void 0}function Ou(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.maxDate;return r&&lu(e,r)<0||a&&lu(e,a)>0}function E0(e,t){return t.some(function(r){return Nr(r)===Nr(e)&&Rr(r)===Rr(e)})}function _0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.excludeTimes,a=t.includeTimes,n=t.filterTime;return r&&E0(e,r)||a&&!E0(e,a)||n&&!n(e)||!1}function A0(e,t){var r=t.minTime,a=t.maxTime;if(!r||!a)throw new Error("Both minTime and maxTime props required");var n,i=Xe(),o=cu(uu(i,Rr(e)),Nr(e)),s=cu(uu(i,Rr(r)),Nr(r)),u=cu(uu(i,Rr(a)),Nr(a));try{n=!ho(o,{start:s,end:u})}catch{n=!1}return n}function O0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.includeDates,n=ri(e,1);return r&&du(r,n)>0||a&&a.every(function(i){return du(i,n)>0})||!1}function T0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.maxDate,a=t.includeDates,n=gr(e,1);return r&&du(n,r)>0||a&&a.every(function(i){return du(n,i)>0})||!1}function x0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.minDate,a=t.includeDates,n=po(e,1);return r&&fu(r,n)>0||a&&a.every(function(i){return fu(i,n)>0})||!1}function D0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.maxDate,a=t.includeDates,n=ti(e,1);return r&&fu(n,r)>0||a&&a.every(function(i){return fu(n,i)>0})||!1}function P0(e){var t=e.minDate,r=e.includeDates;if(r&&t){var a=r.filter(function(n){return lu(n,t)>=0});return Ob(a)}return r?Ob(r):t}function R0(e){var t=e.maxDate,r=e.includeDates;if(r&&t){var a=r.filter(function(n){return lu(n,t)<=0});return Tb(a)}return r?Tb(r):t}function N0(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",r=new Map,a=0,n=e.length;a<n;a++){var i=e[a];if(nu(i)){var o=it(i,"MM.dd.yyyy"),s=r.get(o)||[];s.includes(t)||(s.push(t),r.set(o,s))}else if(af(i)==="object"){var u=Object.keys(i),c=u[0],l=i[u[0]];if(typeof c=="string"&&l.constructor===Array)for(var d=0,f=l.length;d<f;d++){var p=it(l[d],"MM.dd.yyyy"),m=r.get(p)||[];m.includes(c)||(m.push(c),r.set(p,m))}}}return r}function C5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",r=new Map;return e.forEach(function(a){var n=a.date,i=a.holidayName;if(nu(n)){var o=it(n,"MM.dd.yyyy"),s=r.get(o)||{};if(!("className"in s)||s.className!==t||(u=s.holidayNames,c=[i],u.length!==c.length||!u.every(function(d,f){return d===c[f]}))){var u,c;s.className=t;var l=s.holidayNames;s.holidayNames=l?[].concat($o(l),[i]):[i],r.set(o,s)}}}),r}function S5(e,t,r,a,n){for(var i=n.length,o=[],s=0;s<i;s++){var u=Pd(oY(e,Nr(n[s])),Rr(n[s])),c=Pd(e,(r+1)*a);On(u,t)&&Tn(u,c)&&o.push(n[s])}return o}function k0(e){return e<10?"0".concat(e):"".concat(e)}function li(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Io,r=Math.ceil($e(e)/t)*t;return{startPeriod:r-(t-1),endPeriod:r}}function M0(e){var t=e.getSeconds(),r=e.getMilliseconds();return oe(e.getTime()-1e3*t-r)}function $5(e,t,r,a){for(var n=[],i=0;i<2*t+1;i++){var o=e+t-i,s=!0;r&&(s=$e(r)<=o),a&&s&&(s=$e(a)>=o),s&&n.push(o)}return n}var I5=vu(function(e){$t(r,I.Component);var t=It(r);function r(a){var n;Ct(this,r),A(O(n=t.call(this,a)),"renderOptions",function(){var u=n.props.year,c=n.state.yearsList.map(function(f){return I.createElement("div",{className:u===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:n.onChange.bind(O(n),f),"aria-selected":u===f?"true":void 0},u===f?I.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),l=n.props.minDate?$e(n.props.minDate):null,d=n.props.maxDate?$e(n.props.maxDate):null;return d&&n.state.yearsList.find(function(f){return f===d})||c.unshift(I.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},I.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),l&&n.state.yearsList.find(function(f){return f===l})||c.push(I.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},I.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),A(O(n),"onChange",function(u){n.props.onChange(u)}),A(O(n),"handleClickOutside",function(){n.props.onCancel()}),A(O(n),"shiftYears",function(u){var c=n.state.yearsList.map(function(l){return l+u});n.setState({yearsList:c})}),A(O(n),"incrementYears",function(){return n.shiftYears(1)}),A(O(n),"decrementYears",function(){return n.shiftYears(-1)});var i=a.yearDropdownItemNumber,o=a.scrollableYearDropdown,s=i||(o?10:5);return n.state={yearsList:$5(n.props.year,s,n.props.minDate,n.props.maxDate)},n.dropdownRef=I.createRef(),n}return St(r,[{key:"componentDidMount",value:function(){var a=this.dropdownRef.current;if(a){var n=a.children?Array.from(a.children):null,i=n?n.find(function(o){return o.ariaSelected}):null;a.scrollTop=i?i.offsetTop+(i.clientHeight-a.clientHeight)/2:(a.scrollHeight-a.clientHeight)/2}}},{key:"render",value:function(){var a=_t({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return I.createElement("div",{className:a,ref:this.dropdownRef},this.renderOptions())}}]),r}()),E5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),A(O(a),"renderSelectOptions",function(){for(var s=a.props.minDate?$e(a.props.minDate):1900,u=a.props.maxDate?$e(a.props.maxDate):2100,c=[],l=s;l<=u;l++)c.push(I.createElement("option",{key:l,value:l},l));return c}),A(O(a),"onSelectChange",function(s){a.onChange(s.target.value)}),A(O(a),"renderSelectMode",function(){return I.createElement("select",{value:a.props.year,className:"react-datepicker__year-select",onChange:a.onSelectChange},a.renderSelectOptions())}),A(O(a),"renderReadView",function(s){return I.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(u){return a.toggleDropdown(u)}},I.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),I.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},a.props.year))}),A(O(a),"renderDropdown",function(){return I.createElement(I5,{key:"dropdown",year:a.props.year,onChange:a.onChange,onCancel:a.toggleDropdown,minDate:a.props.minDate,maxDate:a.props.maxDate,scrollableYearDropdown:a.props.scrollableYearDropdown,yearDropdownItemNumber:a.props.yearDropdownItemNumber})}),A(O(a),"renderScrollMode",function(){var s=a.state.dropdownVisible,u=[a.renderReadView(!s)];return s&&u.unshift(a.renderDropdown()),u}),A(O(a),"onChange",function(s){a.toggleDropdown(),s!==a.props.year&&a.props.onChange(s)}),A(O(a),"toggleDropdown",function(s){a.setState({dropdownVisible:!a.state.dropdownVisible},function(){a.props.adjustDateOnChange&&a.handleYearChange(a.props.date,s)})}),A(O(a),"handleYearChange",function(s,u){a.onSelect(s,u),a.setOpen()}),A(O(a),"onSelect",function(s,u){a.props.onSelect&&a.props.onSelect(s,u)}),A(O(a),"setOpen",function(){a.props.setOpen&&a.props.setOpen(!0)}),a}return St(r,[{key:"render",value:function(){var a;switch(this.props.dropdownMode){case"scroll":a=this.renderScrollMode();break;case"select":a=this.renderSelectMode()}return I.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},a)}}]),r}(),_5=vu(function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"isSelectedMonth",function(s){return a.props.month===s}),A(O(a),"renderOptions",function(){return a.props.monthNames.map(function(s,u){return I.createElement("div",{className:a.isSelectedMonth(u)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:a.onChange.bind(O(a),u),"aria-selected":a.isSelectedMonth(u)?"true":void 0},a.isSelectedMonth(u)?I.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),A(O(a),"onChange",function(s){return a.props.onChange(s)}),A(O(a),"handleClickOutside",function(){return a.props.onCancel()}),a}return St(r,[{key:"render",value:function(){return I.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),r}()),A5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),A(O(a),"renderSelectOptions",function(s){return s.map(function(u,c){return I.createElement("option",{key:c,value:c},u)})}),A(O(a),"renderSelectMode",function(s){return I.createElement("select",{value:a.props.month,className:"react-datepicker__month-select",onChange:function(u){return a.onChange(u.target.value)}},a.renderSelectOptions(s))}),A(O(a),"renderReadView",function(s,u){return I.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:a.toggleDropdown},I.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),I.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},u[a.props.month]))}),A(O(a),"renderDropdown",function(s){return I.createElement(_5,{key:"dropdown",month:a.props.month,monthNames:s,onChange:a.onChange,onCancel:a.toggleDropdown})}),A(O(a),"renderScrollMode",function(s){var u=a.state.dropdownVisible,c=[a.renderReadView(!u,s)];return u&&c.unshift(a.renderDropdown(s)),c}),A(O(a),"onChange",function(s){a.toggleDropdown(),s!==a.props.month&&a.props.onChange(s)}),A(O(a),"toggleDropdown",function(){return a.setState({dropdownVisible:!a.state.dropdownVisible})}),a}return St(r,[{key:"render",value:function(){var a,n=this,i=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(o){return S0(o,n.props.locale)}:function(o){return uf(o,n.props.locale)});switch(this.props.dropdownMode){case"scroll":a=this.renderScrollMode(i);break;case"select":a=this.renderSelectMode(i)}return I.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},a)}}]),r}();function O5(e,t){for(var r=[],a=Pn(e),n=Pn(t);!On(a,n);)r.push(Xe(a)),a=gr(a,1);return r}var T5=vu(function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"renderOptions",function(){return n.state.monthYearsList.map(function(i){var o=Rd(i),s=Rn(n.props.date,i)&&vr(n.props.date,i);return I.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:o,onClick:n.onChange.bind(O(n),o),"aria-selected":s?"true":void 0},s?I.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",it(i,n.props.dateFormat,n.props.locale))})}),A(O(n),"onChange",function(i){return n.props.onChange(i)}),A(O(n),"handleClickOutside",function(){n.props.onCancel()}),n.state={monthYearsList:O5(n.props.minDate,n.props.maxDate)},n}return St(r,[{key:"render",value:function(){var a=_t({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return I.createElement("div",{className:a},this.renderOptions())}}]),r}()),x5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),A(O(a),"renderSelectOptions",function(){for(var s=Pn(a.props.minDate),u=Pn(a.props.maxDate),c=[];!On(s,u);){var l=Rd(s);c.push(I.createElement("option",{key:l,value:l},it(s,a.props.dateFormat,a.props.locale))),s=gr(s,1)}return c}),A(O(a),"onSelectChange",function(s){a.onChange(s.target.value)}),A(O(a),"renderSelectMode",function(){return I.createElement("select",{value:Rd(Pn(a.props.date)),className:"react-datepicker__month-year-select",onChange:a.onSelectChange},a.renderSelectOptions())}),A(O(a),"renderReadView",function(s){var u=it(a.props.date,a.props.dateFormat,a.props.locale);return I.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return a.toggleDropdown(c)}},I.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),I.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},u))}),A(O(a),"renderDropdown",function(){return I.createElement(T5,{key:"dropdown",date:a.props.date,dateFormat:a.props.dateFormat,onChange:a.onChange,onCancel:a.toggleDropdown,minDate:a.props.minDate,maxDate:a.props.maxDate,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown,locale:a.props.locale})}),A(O(a),"renderScrollMode",function(){var s=a.state.dropdownVisible,u=[a.renderReadView(!s)];return s&&u.unshift(a.renderDropdown()),u}),A(O(a),"onChange",function(s){a.toggleDropdown();var u=Xe(parseInt(s));Rn(a.props.date,u)&&vr(a.props.date,u)||a.props.onChange(u)}),A(O(a),"toggleDropdown",function(){return a.setState({dropdownVisible:!a.state.dropdownVisible})}),a}return St(r,[{key:"render",value:function(){var a;switch(this.props.dropdownMode){case"scroll":a=this.renderScrollMode();break;case"select":a=this.renderSelectMode()}return I.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},a)}}]),r}(),D5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"dayEl",I.createRef()),A(O(a),"handleClick",function(s){!a.isDisabled()&&a.props.onClick&&a.props.onClick(s)}),A(O(a),"handleMouseEnter",function(s){!a.isDisabled()&&a.props.onMouseEnter&&a.props.onMouseEnter(s)}),A(O(a),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),a.props.handleOnKeyDown(s)}),A(O(a),"isSameDay",function(s){return et(a.props.day,s)}),A(O(a),"isKeyboardSelected",function(){return!a.props.disabledKeyboardNavigation&&!(a.isSameDay(a.props.selected)||a.isSameWeek(a.props.selected))&&(a.isSameDay(a.props.preSelection)||a.isSameWeek(a.props.preSelection))}),A(O(a),"isDisabled",function(){return Au(a.props.day,a.props)}),A(O(a),"isExcluded",function(){return cf(a.props.day,a.props)}),A(O(a),"isStartOfWeek",function(){return et(a.props.day,Gr(a.props.day,a.props.locale,a.props.calendarStartDay))}),A(O(a),"isSameWeek",function(s){return a.props.showWeekPicker&&et(s,Gr(a.props.day,a.props.locale,a.props.calendarStartDay))}),A(O(a),"getHighLightedClass",function(){var s=a.props,u=s.day,c=s.highlightDates;if(!c)return!1;var l=it(u,"MM.dd.yyyy");return c.get(l)}),A(O(a),"getHolidaysClass",function(){var s=a.props,u=s.day,c=s.holidays;if(!c)return!1;var l=it(u,"MM.dd.yyyy");return c.has(l)?[c.get(l).className]:void 0}),A(O(a),"isInRange",function(){var s=a.props,u=s.day,c=s.startDate,l=s.endDate;return!(!c||!l)&&_u(u,c,l)}),A(O(a),"isInSelectingRange",function(){var s,u=a.props,c=u.day,l=u.selectsStart,d=u.selectsEnd,f=u.selectsRange,p=u.selectsDisabledDaysInRange,m=u.startDate,v=u.endDate,g=(s=a.props.selectingDate)!==null&&s!==void 0?s:a.props.preSelection;return!(!(l||d||f)||!g||!p&&a.isDisabled())&&(l&&v&&(Tn(g,v)||ua(g,v))?_u(c,g,v):(d&&m&&(On(g,m)||ua(g,m))||!(!f||!m||v||!On(g,m)&&!ua(g,m)))&&_u(c,m,g))}),A(O(a),"isSelectingRangeStart",function(){var s;if(!a.isInSelectingRange())return!1;var u=a.props,c=u.day,l=u.startDate,d=u.selectsStart,f=(s=a.props.selectingDate)!==null&&s!==void 0?s:a.props.preSelection;return et(c,d?f:l)}),A(O(a),"isSelectingRangeEnd",function(){var s;if(!a.isInSelectingRange())return!1;var u=a.props,c=u.day,l=u.endDate,d=u.selectsEnd,f=u.selectsRange,p=(s=a.props.selectingDate)!==null&&s!==void 0?s:a.props.preSelection;return et(c,d||f?p:l)}),A(O(a),"isRangeStart",function(){var s=a.props,u=s.day,c=s.startDate,l=s.endDate;return!(!c||!l)&&et(c,u)}),A(O(a),"isRangeEnd",function(){var s=a.props,u=s.day,c=s.startDate,l=s.endDate;return!(!c||!l)&&et(l,u)}),A(O(a),"isWeekend",function(){var s=cY(a.props.day);return s===0||s===6}),A(O(a),"isAfterMonth",function(){return a.props.month!==void 0&&(a.props.month+1)%12===xt(a.props.day)}),A(O(a),"isBeforeMonth",function(){return a.props.month!==void 0&&(xt(a.props.day)+1)%12===a.props.month}),A(O(a),"isCurrentDay",function(){return a.isSameDay(Xe())}),A(O(a),"isSelected",function(){return a.isSameDay(a.props.selected)||a.isSameWeek(a.props.selected)}),A(O(a),"getClassNames",function(s){var u,c=a.props.dayClassName?a.props.dayClassName(s):void 0;return _t("react-datepicker__day",c,"react-datepicker__day--"+it(a.props.day,"ddd",u),{"react-datepicker__day--disabled":a.isDisabled(),"react-datepicker__day--excluded":a.isExcluded(),"react-datepicker__day--selected":a.isSelected(),"react-datepicker__day--keyboard-selected":a.isKeyboardSelected(),"react-datepicker__day--range-start":a.isRangeStart(),"react-datepicker__day--range-end":a.isRangeEnd(),"react-datepicker__day--in-range":a.isInRange(),"react-datepicker__day--in-selecting-range":a.isInSelectingRange(),"react-datepicker__day--selecting-range-start":a.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":a.isSelectingRangeEnd(),"react-datepicker__day--today":a.isCurrentDay(),"react-datepicker__day--weekend":a.isWeekend(),"react-datepicker__day--outside-month":a.isAfterMonth()||a.isBeforeMonth()},a.getHighLightedClass("react-datepicker__day--highlighted"),a.getHolidaysClass())}),A(O(a),"getAriaLabel",function(){var s=a.props,u=s.day,c=s.ariaLabelPrefixWhenEnabled,l=c===void 0?"Choose":c,d=s.ariaLabelPrefixWhenDisabled,f=d===void 0?"Not available":d,p=a.isDisabled()||a.isExcluded()?f:l;return"".concat(p," ").concat(it(u,"PPPP",a.props.locale))}),A(O(a),"getTitle",function(){var s=a.props,u=s.day,c=s.holidays,l=c===void 0?new Map:c,d=it(u,"MM.dd.yyyy");return l.has(d)&&l.get(d).holidayNames.length>0?l.get(d).holidayNames.join(", "):""}),A(O(a),"getTabIndex",function(s,u){var c=s||a.props.selected,l=u||a.props.preSelection;return(!a.props.showWeekPicker||!a.props.showWeekNumber&&a.isStartOfWeek())&&(a.isKeyboardSelected()||a.isSameDay(c)&&et(l,c))?0:-1}),A(O(a),"handleFocusDay",function(){var s,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;a.getTabIndex()===0&&!u.isInputFocused&&a.isSameDay(a.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),a.props.inline&&!a.props.shouldFocusDayInline&&(c=!1),a.props.containerRef&&a.props.containerRef.current&&a.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(c=!0),a.props.monthShowsDuplicateDaysEnd&&a.isAfterMonth()&&(c=!1),a.props.monthShowsDuplicateDaysStart&&a.isBeforeMonth()&&(c=!1)),c&&((s=a.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))}),A(O(a),"renderDayContents",function(){return a.props.monthShowsDuplicateDaysEnd&&a.isAfterMonth()||a.props.monthShowsDuplicateDaysStart&&a.isBeforeMonth()?null:a.props.renderDayContents?a.props.renderDayContents(_b(a.props.day),a.props.day):_b(a.props.day)}),A(O(a),"render",function(){return I.createElement("div",{ref:a.dayEl,className:a.getClassNames(a.props.day),onKeyDown:a.handleOnKeyDown,onClick:a.handleClick,onMouseEnter:a.handleMouseEnter,tabIndex:a.getTabIndex(),"aria-label":a.getAriaLabel(),role:"option",title:a.getTitle(),"aria-disabled":a.isDisabled(),"aria-current":a.isCurrentDay()?"date":void 0,"aria-selected":a.isSelected()||a.isInRange()},a.renderDayContents(),a.getTitle()!==""&&I.createElement("span",{className:"holiday-overlay"},a.getTitle()))}),a}return St(r,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(a){this.handleFocusDay(a)}}]),r}(),P5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"weekNumberEl",I.createRef()),A(O(a),"handleClick",function(s){a.props.onClick&&a.props.onClick(s)}),A(O(a),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),a.props.handleOnKeyDown(s)}),A(O(a),"isKeyboardSelected",function(){return!a.props.disabledKeyboardNavigation&&!et(a.props.date,a.props.selected)&&et(a.props.date,a.props.preSelection)}),A(O(a),"getTabIndex",function(){return a.props.showWeekPicker&&a.props.showWeekNumber&&(a.isKeyboardSelected()||et(a.props.date,a.props.selected)&&et(a.props.preSelection,a.props.selected))?0:-1}),A(O(a),"handleFocusWeekNumber",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=!1;a.getTabIndex()===0&&!s.isInputFocused&&et(a.props.date,a.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(u=!0),a.props.inline&&!a.props.shouldFocusDayInline&&(u=!1),a.props.containerRef&&a.props.containerRef.current&&a.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(u=!0)),u&&a.weekNumberEl.current&&a.weekNumberEl.current.focus({preventScroll:!0})}),a}return St(r,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(a){this.handleFocusWeekNumber(a)}},{key:"render",value:function(){var a=this.props,n=a.weekNumber,i=a.ariaLabelPrefix,o=i===void 0?"week ":i,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a.onClick,"react-datepicker__week-number--selected":et(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return I.createElement("div",{ref:this.weekNumberEl,className:_t(s),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),r}(),R5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"handleDayClick",function(s,u){a.props.onDayClick&&a.props.onDayClick(s,u)}),A(O(a),"handleDayMouseEnter",function(s){a.props.onDayMouseEnter&&a.props.onDayMouseEnter(s)}),A(O(a),"handleWeekClick",function(s,u,c){if(typeof a.props.onWeekSelect=="function"&&a.props.onWeekSelect(s,u,c),a.props.showWeekPicker){var l=Gr(s,a.props.locale,a.props.calendarStartDay);a.handleDayClick(l,c)}a.props.shouldCloseOnSelect&&a.props.setOpen(!1)}),A(O(a),"formatWeekNumber",function(s){return a.props.formatWeekNumber?a.props.formatWeekNumber(s):function(u,c){var l=ca()&&la(ca());return pY(u,l?{locale:l}:null)}(s)}),A(O(a),"renderDays",function(){var s=Gr(a.props.day,a.props.locale,a.props.calendarStartDay),u=[],c=a.formatWeekNumber(s);if(a.props.showWeekNumber){var l=a.props.onWeekSelect||a.props.showWeekPicker?a.handleWeekClick.bind(O(a),s,c):void 0;u.push(I.createElement(P5,{key:"W",weekNumber:c,date:s,onClick:l,selected:a.props.selected,preSelection:a.props.preSelection,ariaLabelPrefix:a.props.ariaLabelPrefix,showWeekPicker:a.props.showWeekPicker,showWeekNumber:a.props.showWeekNumber,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,handleOnKeyDown:a.props.handleOnKeyDown,isInputFocused:a.props.isInputFocused,containerRef:a.props.containerRef}))}return u.concat([0,1,2,3,4,5,6].map(function(d){var f=ei(s,d);return I.createElement(D5,{ariaLabelPrefixWhenEnabled:a.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:a.props.disabledDayAriaLabelPrefix,key:f.valueOf(),day:f,month:a.props.month,onClick:a.handleDayClick.bind(O(a),f),onMouseEnter:a.handleDayMouseEnter.bind(O(a),f),minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,highlightDates:a.props.highlightDates,holidays:a.props.holidays,selectingDate:a.props.selectingDate,filterDate:a.props.filterDate,preSelection:a.props.preSelection,selected:a.props.selected,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,showWeekPicker:a.props.showWeekPicker,showWeekNumber:a.props.showWeekNumber,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,startDate:a.props.startDate,endDate:a.props.endDate,dayClassName:a.props.dayClassName,renderDayContents:a.props.renderDayContents,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,handleOnKeyDown:a.props.handleOnKeyDown,isInputFocused:a.props.isInputFocused,containerRef:a.props.containerRef,inline:a.props.inline,shouldFocusDayInline:a.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:a.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:a.props.monthShowsDuplicateDaysStart,locale:a.props.locale})}))}),A(O(a),"startOfWeek",function(){return Gr(a.props.day,a.props.locale,a.props.calendarStartDay)}),A(O(a),"isKeyboardSelected",function(){return!a.props.disabledKeyboardNavigation&&!et(a.startOfWeek(),a.props.selected)&&et(a.startOfWeek(),a.props.preSelection)}),a}return St(r,[{key:"render",value:function(){var a={"react-datepicker__week":!0,"react-datepicker__week--selected":et(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return I.createElement("div",{className:_t(a)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),r}(),F0="two_columns",j0="three_columns",B0="four_columns",pf=A(A(A({},F0,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),j0,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),B0,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function L0(e,t){return e?B0:t?F0:j0}var N5=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"MONTH_REFS",$o(Array(12)).map(function(){return I.createRef()})),A(O(a),"QUARTER_REFS",$o(Array(4)).map(function(){return I.createRef()})),A(O(a),"isDisabled",function(s){return Au(s,a.props)}),A(O(a),"isExcluded",function(s){return cf(s,a.props)}),A(O(a),"handleDayClick",function(s,u){a.props.onDayClick&&a.props.onDayClick(s,u,a.props.orderInDisplay)}),A(O(a),"handleDayMouseEnter",function(s){a.props.onDayMouseEnter&&a.props.onDayMouseEnter(s)}),A(O(a),"handleMouseLeave",function(){a.props.onMouseLeave&&a.props.onMouseLeave()}),A(O(a),"isRangeStartMonth",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&vr(Mt(c,s),l)}),A(O(a),"isRangeStartQuarter",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&Eu(ai(c,s),l)}),A(O(a),"isRangeEndMonth",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&vr(Mt(c,s),d)}),A(O(a),"isRangeEndQuarter",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate;return!(!l||!d)&&Eu(ai(c,s),d)}),A(O(a),"isInSelectingRangeMonth",function(s){var u,c=a.props,l=c.day,d=c.selectsStart,f=c.selectsEnd,p=c.selectsRange,m=c.startDate,v=c.endDate,g=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return!(!(d||f||p)||!g)&&(d&&v?lf(g,v,s,l):(f&&m||!(!p||!m||v))&&lf(m,g,s,l))}),A(O(a),"isSelectingMonthRangeStart",function(s){var u;if(!a.isInSelectingRangeMonth(s))return!1;var c=a.props,l=c.day,d=c.startDate,f=c.selectsStart,p=Mt(l,s),m=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return vr(p,f?m:d)}),A(O(a),"isSelectingMonthRangeEnd",function(s){var u;if(!a.isInSelectingRangeMonth(s))return!1;var c=a.props,l=c.day,d=c.endDate,f=c.selectsEnd,p=c.selectsRange,m=Mt(l,s),v=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return vr(m,f||p?v:d)}),A(O(a),"isInSelectingRangeQuarter",function(s){var u,c=a.props,l=c.day,d=c.selectsStart,f=c.selectsEnd,p=c.selectsRange,m=c.startDate,v=c.endDate,g=(u=a.props.selectingDate)!==null&&u!==void 0?u:a.props.preSelection;return!(!(d||f||p)||!g)&&(d&&v?ff(g,v,s,l):(f&&m||!(!p||!m||v))&&ff(m,g,s,l))}),A(O(a),"isWeekInMonth",function(s){var u=a.props.day,c=ei(s,6);return vr(s,u)||vr(c,u)}),A(O(a),"isCurrentMonth",function(s,u){return $e(s)===$e(Xe())&&u===xt(Xe())}),A(O(a),"isCurrentQuarter",function(s,u){return $e(s)===$e(Xe())&&u===ni(Xe())}),A(O(a),"isSelectedMonth",function(s,u,c){return xt(c)===u&&$e(s)===$e(c)}),A(O(a),"isSelectedQuarter",function(s,u,c){return ni(s)===u&&$e(s)===$e(c)}),A(O(a),"renderWeeks",function(){for(var s=[],u=a.props.fixedHeight,c=0,l=!1,d=Gr(Pn(a.props.day),a.props.locale,a.props.calendarStartDay);s.push(I.createElement(R5,{ariaLabelPrefix:a.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,key:c,day:d,month:xt(a.props.day),onDayClick:a.handleDayClick,onDayMouseEnter:a.handleDayMouseEnter,onWeekSelect:a.props.onWeekSelect,formatWeekNumber:a.props.formatWeekNumber,locale:a.props.locale,minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,inline:a.props.inline,shouldFocusDayInline:a.props.shouldFocusDayInline,highlightDates:a.props.highlightDates,holidays:a.props.holidays,selectingDate:a.props.selectingDate,filterDate:a.props.filterDate,preSelection:a.props.preSelection,selected:a.props.selected,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,showWeekNumber:a.props.showWeekNumbers,showWeekPicker:a.props.showWeekPicker,startDate:a.props.startDate,endDate:a.props.endDate,dayClassName:a.props.dayClassName,setOpen:a.props.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,renderDayContents:a.props.renderDayContents,handleOnKeyDown:a.props.handleOnKeyDown,isInputFocused:a.props.isInputFocused,containerRef:a.props.containerRef,calendarStartDay:a.props.calendarStartDay,monthShowsDuplicateDaysEnd:a.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:a.props.monthShowsDuplicateDaysStart})),!l;){c++,d=ou(d,1);var f=u&&c>=6,p=!u&&!a.isWeekInMonth(d);if(f||p){if(!a.props.peekNextMonth)break;l=!0}}return s}),A(O(a),"onMonthClick",function(s,u){a.handleDayClick(Pn(Mt(a.props.day,u)),s)}),A(O(a),"onMonthMouseEnter",function(s){a.handleDayMouseEnter(Pn(Mt(a.props.day,s)))}),A(O(a),"handleMonthNavigation",function(s,u){a.isDisabled(u)||a.isExcluded(u)||(a.props.setPreSelection(u),a.MONTH_REFS[s].current&&a.MONTH_REFS[s].current.focus())}),A(O(a),"onMonthKeyDown",function(s,u){var c=a.props,l=c.selected,d=c.preSelection,f=c.disabledKeyboardNavigation,p=c.showTwoColumnMonthYearPicker,m=c.showFourColumnMonthYearPicker,v=c.setPreSelection,g=s.key;if(g!=="Tab"&&s.preventDefault(),!f){var h=L0(m,p),y=pf[h].verticalNavigationOffset,b=pf[h].grid;switch(g){case"Enter":a.onMonthClick(s,u),v(l);break;case"ArrowRight":a.handleMonthNavigation(u===11?0:u+1,gr(d,1));break;case"ArrowLeft":a.handleMonthNavigation(u===0?11:u-1,ri(d,1));break;case"ArrowUp":a.handleMonthNavigation(b[0].includes(u)?u+12-y:u-y,ri(d,y));break;case"ArrowDown":a.handleMonthNavigation(b[b.length-1].includes(u)?u-12+y:u+y,gr(d,y))}}}),A(O(a),"onQuarterClick",function(s,u){a.handleDayClick(w0(ai(a.props.day,u)),s)}),A(O(a),"onQuarterMouseEnter",function(s){a.handleDayMouseEnter(w0(ai(a.props.day,s)))}),A(O(a),"handleQuarterNavigation",function(s,u){a.isDisabled(u)||a.isExcluded(u)||(a.props.setPreSelection(u),a.QUARTER_REFS[s-1].current&&a.QUARTER_REFS[s-1].current.focus())}),A(O(a),"onQuarterKeyDown",function(s,u){var c=s.key;if(!a.props.disabledKeyboardNavigation)switch(c){case"Enter":a.onQuarterClick(s,u),a.props.setPreSelection(a.props.selected);break;case"ArrowRight":a.handleQuarterNavigation(u===4?1:u+1,$b(a.props.preSelection,1));break;case"ArrowLeft":a.handleQuarterNavigation(u===1?4:u-1,uY(a.props.preSelection,1))}}),A(O(a),"getMonthClassNames",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate,f=u.selected,p=u.minDate,m=u.maxDate,v=u.preSelection,g=u.monthClassName,h=u.excludeDates,y=u.includeDates,b=g?g(Mt(c,s)):void 0,w=Mt(c,s);return _t("react-datepicker__month-text","react-datepicker__month-".concat(s),b,{"react-datepicker__month-text--disabled":(p||m||h||y)&&$0(w,a.props),"react-datepicker__month-text--selected":a.isSelectedMonth(c,s,f),"react-datepicker__month-text--keyboard-selected":!a.props.disabledKeyboardNavigation&&xt(v)===s,"react-datepicker__month-text--in-selecting-range":a.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":lf(l,d,s,c),"react-datepicker__month-text--range-start":a.isRangeStartMonth(s),"react-datepicker__month-text--range-end":a.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":a.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":a.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":a.isCurrentMonth(c,s)})}),A(O(a),"getTabIndex",function(s){var u=xt(a.props.preSelection);return a.props.disabledKeyboardNavigation||s!==u?"-1":"0"}),A(O(a),"getQuarterTabIndex",function(s){var u=ni(a.props.preSelection);return a.props.disabledKeyboardNavigation||s!==u?"-1":"0"}),A(O(a),"getAriaLabel",function(s){var u=a.props,c=u.chooseDayAriaLabelPrefix,l=c===void 0?"Choose":c,d=u.disabledDayAriaLabelPrefix,f=d===void 0?"Not available":d,p=u.day,m=Mt(p,s),v=a.isDisabled(m)||a.isExcluded(m)?f:l;return"".concat(v," ").concat(it(m,"MMMM yyyy"))}),A(O(a),"getQuarterClassNames",function(s){var u=a.props,c=u.day,l=u.startDate,d=u.endDate,f=u.selected,p=u.minDate,m=u.maxDate,v=u.preSelection,g=u.disabledKeyboardNavigation;return _t("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(p||m)&&w5(ai(c,s),a.props),"react-datepicker__quarter-text--selected":a.isSelectedQuarter(c,s,f),"react-datepicker__quarter-text--keyboard-selected":!g&&ni(v)===s,"react-datepicker__quarter-text--in-selecting-range":a.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":ff(l,d,s,c),"react-datepicker__quarter-text--range-start":a.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":a.isRangeEndQuarter(s)})}),A(O(a),"getMonthContent",function(s){var u=a.props,c=u.showFullMonthYearPicker,l=u.renderMonthContent,d=u.locale,f=u.day,p=S0(s,d),m=uf(s,d);return l?l(s,p,m,f):c?m:p}),A(O(a),"getQuarterContent",function(s){var u=a.props,c=u.renderQuarterContent,l=function(d,f){return it(ai(Xe(),d),"QQQ",f)}(s,u.locale);return c?c(s,l):l}),A(O(a),"renderMonths",function(){var s=a.props,u=s.showTwoColumnMonthYearPicker,c=s.showFourColumnMonthYearPicker,l=s.day,d=s.selected;return pf[L0(c,u)].grid.map(function(f,p){return I.createElement("div",{className:"react-datepicker__month-wrapper",key:p},f.map(function(m,v){return I.createElement("div",{ref:a.MONTH_REFS[m],key:v,onClick:function(g){a.onMonthClick(g,m)},onKeyDown:function(g){a.onMonthKeyDown(g,m)},onMouseEnter:function(){return a.onMonthMouseEnter(m)},tabIndex:a.getTabIndex(m),className:a.getMonthClassNames(m),role:"option","aria-label":a.getAriaLabel(m),"aria-current":a.isCurrentMonth(l,m)?"date":void 0,"aria-selected":a.isSelectedMonth(l,m,d)},a.getMonthContent(m))}))})}),A(O(a),"renderQuarters",function(){var s=a.props,u=s.day,c=s.selected;return I.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(l,d){return I.createElement("div",{key:d,ref:a.QUARTER_REFS[d],role:"option",onClick:function(f){a.onQuarterClick(f,l)},onKeyDown:function(f){a.onQuarterKeyDown(f,l)},onMouseEnter:function(){return a.onQuarterMouseEnter(l)},className:a.getQuarterClassNames(l),"aria-selected":a.isSelectedQuarter(u,l,c),tabIndex:a.getQuarterTabIndex(l),"aria-current":a.isCurrentQuarter(u,l)?"date":void 0},a.getQuarterContent(l))}))}),A(O(a),"getClassNames",function(){var s=a.props,u=s.selectingDate,c=s.selectsStart,l=s.selectsEnd,d=s.showMonthYearPicker,f=s.showQuarterYearPicker,p=s.showWeekPicker;return _t("react-datepicker__month",{"react-datepicker__month--selecting-range":u&&(c||l)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":p})}),a}return St(r,[{key:"render",value:function(){var a=this.props,n=a.showMonthYearPicker,i=a.showQuarterYearPicker,o=a.day,s=a.ariaLabelPrefix,u=s===void 0?"month ":s;return I.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(u," ").concat(it(o,"yyyy-MM")),role:"listbox"},n?this.renderMonths():i?this.renderQuarters():this.renderWeeks())}}]),r}(),G0=function(e){$t(r,I.Component);var t=It(r);function r(){var a;Ct(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return A(O(a=t.call.apply(t,[this].concat(i))),"state",{height:null}),A(O(a),"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){a.list&&(a.list.scrollTop=a.centerLi&&r.calcCenterPosition(a.props.monthRef?a.props.monthRef.clientHeight-a.header.clientHeight:a.list.clientHeight,a.centerLi))})}),A(O(a),"handleClick",function(s){(a.props.minTime||a.props.maxTime)&&A0(s,a.props)||(a.props.excludeTimes||a.props.includeTimes||a.props.filterTime)&&_0(s,a.props)||a.props.onChange(s)}),A(O(a),"isSelectedTime",function(s){return a.props.selected&&(u=a.props.selected,c=s,M0(u).getTime()===M0(c).getTime());var u,c}),A(O(a),"isDisabledTime",function(s){return(a.props.minTime||a.props.maxTime)&&A0(s,a.props)||(a.props.excludeTimes||a.props.includeTimes||a.props.filterTime)&&_0(s,a.props)}),A(O(a),"liClasses",function(s){var u=["react-datepicker__time-list-item",a.props.timeClassName?a.props.timeClassName(s):void 0];return a.isSelectedTime(s)&&u.push("react-datepicker__time-list-item--selected"),a.isDisabledTime(s)&&u.push("react-datepicker__time-list-item--disabled"),a.props.injectTimes&&(60*Nr(s)+Rr(s))%a.props.intervals!=0&&u.push("react-datepicker__time-list-item--injected"),u.join(" ")}),A(O(a),"handleOnKeyDown",function(s,u){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&a.handleClick(u),a.props.handleOnKeyDown(s)}),A(O(a),"renderTimes",function(){for(var s=[],u=a.props.format?a.props.format:"p",c=a.props.intervals,l=a.props.selected||a.props.openToDate||Xe(),d=kr(l),f=a.props.injectTimes&&a.props.injectTimes.sort(function(b,w){return b-w}),p=60*function(b){var w=new Date(b.getFullYear(),b.getMonth(),b.getDate()),C=new Date(b.getFullYear(),b.getMonth(),b.getDate(),24);return Math.round((+C-+w)/36e5)}(l),m=p/c,v=0;v<m;v++){var g=Pd(d,v*c);if(s.push(g),f){var h=S5(d,g,v,c,f);s=s.concat(h)}}var y=s.reduce(function(b,w){return w.getTime()<=l.getTime()?w:b},s[0]);return s.map(function(b,w){return I.createElement("li",{key:w,onClick:a.handleClick.bind(O(a),b),className:a.liClasses(b),ref:function(C){b===y&&(a.centerLi=C)},onKeyDown:function(C){a.handleOnKeyDown(C,b)},tabIndex:b===y?0:-1,role:"option","aria-selected":a.isSelectedTime(b)?"true":void 0,"aria-disabled":a.isDisabledTime(b)?"true":void 0},it(b,u,a.props.locale))})}),a}return St(r,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var a=this,n=this.state.height;return I.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},I.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(i){a.header=i}},I.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),I.createElement("div",{className:"react-datepicker__time"},I.createElement("div",{className:"react-datepicker__time-box"},I.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){a.list=i},style:n?{height:n}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),r}();A(G0,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var k5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"YEAR_REFS",$o(Array(n.props.yearItemNumber)).map(function(){return I.createRef()})),A(O(n),"isDisabled",function(i){return Au(i,n.props)}),A(O(n),"isExcluded",function(i){return cf(i,n.props)}),A(O(n),"selectingDate",function(){var i;return(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection}),A(O(n),"updateFocusOnPaginate",function(i){var o=(function(){this.YEAR_REFS[i].current.focus()}).bind(O(n));window.requestAnimationFrame(o)}),A(O(n),"handleYearClick",function(i,o){n.props.onDayClick&&n.props.onDayClick(i,o)}),A(O(n),"handleYearNavigation",function(i,o){var s=n.props,u=s.date,c=s.yearItemNumber,l=li(u,c).startPeriod;n.isDisabled(o)||n.isExcluded(o)||(n.props.setPreSelection(o),i-l==-1?n.updateFocusOnPaginate(c-1):i-l===c?n.updateFocusOnPaginate(0):n.YEAR_REFS[i-l].current.focus())}),A(O(n),"isSameDay",function(i,o){return et(i,o)}),A(O(n),"isCurrentYear",function(i){return i===$e(Xe())}),A(O(n),"isRangeStart",function(i){return n.props.startDate&&n.props.endDate&&Rn(ln(Xe(),i),n.props.startDate)}),A(O(n),"isRangeEnd",function(i){return n.props.startDate&&n.props.endDate&&Rn(ln(Xe(),i),n.props.endDate)}),A(O(n),"isInRange",function(i){return df(i,n.props.startDate,n.props.endDate)}),A(O(n),"isInSelectingRange",function(i){var o=n.props,s=o.selectsStart,u=o.selectsEnd,c=o.selectsRange,l=o.startDate,d=o.endDate;return!(!(s||u||c)||!n.selectingDate())&&(s&&d?df(i,n.selectingDate(),d):(u&&l||!(!c||!l||d))&&df(i,l,n.selectingDate()))}),A(O(n),"isSelectingRangeStart",function(i){if(!n.isInSelectingRange(i))return!1;var o=n.props,s=o.startDate,u=o.selectsStart,c=ln(Xe(),i);return Rn(c,u?n.selectingDate():s)}),A(O(n),"isSelectingRangeEnd",function(i){if(!n.isInSelectingRange(i))return!1;var o=n.props,s=o.endDate,u=o.selectsEnd,c=o.selectsRange,l=ln(Xe(),i);return Rn(l,u||c?n.selectingDate():s)}),A(O(n),"isKeyboardSelected",function(i){var o=Eo(ln(n.props.date,i));return!n.props.disabledKeyboardNavigation&&!n.props.inline&&!et(o,Eo(n.props.selected))&&et(o,Eo(n.props.preSelection))}),A(O(n),"onYearClick",function(i,o){var s=n.props.date;n.handleYearClick(Eo(ln(s,o)),i)}),A(O(n),"onYearKeyDown",function(i,o){var s=i.key;if(!n.props.disabledKeyboardNavigation)switch(s){case"Enter":n.onYearClick(i,o),n.props.setPreSelection(n.props.selected);break;case"ArrowRight":n.handleYearNavigation(o+1,ti(n.props.preSelection,1));break;case"ArrowLeft":n.handleYearNavigation(o-1,po(n.props.preSelection,1))}}),A(O(n),"getYearClassNames",function(i){var o=n.props,s=o.minDate,u=o.maxDate,c=o.selected,l=o.excludeDates,d=o.includeDates,f=o.filterDate;return _t("react-datepicker__year-text",{"react-datepicker__year-text--selected":i===$e(c),"react-datepicker__year-text--disabled":(s||u||l||d||f)&&I0(i,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(i),"react-datepicker__year-text--range-start":n.isRangeStart(i),"react-datepicker__year-text--range-end":n.isRangeEnd(i),"react-datepicker__year-text--in-range":n.isInRange(i),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(i),"react-datepicker__year-text--today":n.isCurrentYear(i)})}),A(O(n),"getYearTabIndex",function(i){return n.props.disabledKeyboardNavigation?"-1":i===$e(n.props.preSelection)?"0":"-1"}),A(O(n),"getYearContainerClassNames",function(){var i=n.props,o=i.selectingDate,s=i.selectsStart,u=i.selectsEnd,c=i.selectsRange;return _t("react-datepicker__year",{"react-datepicker__year--selecting-range":o&&(s||u||c)})}),A(O(n),"getYearContent",function(i){return n.props.renderYearContent?n.props.renderYearContent(i):i}),n}return St(r,[{key:"render",value:function(){for(var a=this,n=[],i=this.props,o=i.date,s=i.yearItemNumber,u=i.onYearMouseEnter,c=i.onYearMouseLeave,l=li(o,s),d=l.startPeriod,f=l.endPeriod,p=function(v){n.push(I.createElement("div",{ref:a.YEAR_REFS[v-d],onClick:function(g){a.onYearClick(g,v)},onKeyDown:function(g){a.onYearKeyDown(g,v)},tabIndex:a.getYearTabIndex(v),className:a.getYearClassNames(v),onMouseEnter:function(g){return u(g,v)},onMouseLeave:function(g){return c(g,v)},key:v,"aria-current":a.isCurrentYear(v)?"date":void 0},a.getYearContent(v)))},m=d;m<=f;m++)p(m);return I.createElement("div",{className:this.getYearContainerClassNames()},I.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},n))}}]),r}(),M5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"onTimeChange",function(i){n.setState({time:i});var o=n.props.date,s=o instanceof Date&&!isNaN(o)?o:new Date;s.setHours(i.split(":")[0]),s.setMinutes(i.split(":")[1]),n.props.onChange(s)}),A(O(n),"renderTimeInput",function(){var i=n.state.time,o=n.props,s=o.date,u=o.timeString,c=o.customTimeInput;return c?I.cloneElement(c,{date:s,value:i,onChange:n.onTimeChange}):I.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(l){n.onTimeChange(l.target.value||u)}})}),n.state={time:n.props.timeString},n}return St(r,[{key:"render",value:function(){return I.createElement("div",{className:"react-datepicker__input-time-container"},I.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),I.createElement("div",{className:"react-datepicker-time__input-container"},I.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.timeString!==n.time?{time:a.timeString}:null}}]),r}();function F5(e){var t=e.className,r=e.children,a=e.showPopperArrow,n=e.arrowProps,i=n===void 0?{}:n;return I.createElement("div",{className:t},a&&I.createElement("div",ci({className:"react-datepicker__triangle"},i)),r)}var j5=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],B5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"handleClickOutside",function(i){n.props.onClickOutside(i)}),A(O(n),"setClickOutsideRef",function(){return n.containerRef.current}),A(O(n),"handleDropdownFocus",function(i){(function(){var o=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return j5.some(function(s){return o.indexOf(s)>=0})})(i.target)&&n.props.onDropdownFocus()}),A(O(n),"getDateInView",function(){var i=n.props,o=i.preSelection,s=i.selected,u=i.openToDate,c=P0(n.props),l=R0(n.props),d=Xe(),f=u||s||o;return f||(c&&Tn(d,c)?c:l&&On(d,l)?l:d)}),A(O(n),"increaseMonth",function(){n.setState(function(i){var o=i.date;return{date:gr(o,1)}},function(){return n.handleMonthChange(n.state.date)})}),A(O(n),"decreaseMonth",function(){n.setState(function(i){var o=i.date;return{date:ri(o,1)}},function(){return n.handleMonthChange(n.state.date)})}),A(O(n),"handleDayClick",function(i,o,s){n.props.onSelect(i,o,s),n.props.setPreSelection&&n.props.setPreSelection(i)}),A(O(n),"handleDayMouseEnter",function(i){n.setState({selectingDate:i}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(i)}),A(O(n),"handleMonthMouseLeave",function(){n.setState({selectingDate:null}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()}),A(O(n),"handleYearMouseEnter",function(i,o){n.setState({selectingDate:ln(Xe(),o)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(i,o)}),A(O(n),"handleYearMouseLeave",function(i,o){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(i,o)}),A(O(n),"handleYearChange",function(i){n.props.onYearChange&&(n.props.onYearChange(i),n.setState({isRenderAriaLiveMessage:!0})),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(i),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(i)}),A(O(n),"handleMonthChange",function(i){n.handleCustomMonthChange(i),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(i),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(i)}),A(O(n),"handleCustomMonthChange",function(i){n.props.onMonthChange&&(n.props.onMonthChange(i),n.setState({isRenderAriaLiveMessage:!0}))}),A(O(n),"handleMonthYearChange",function(i){n.handleYearChange(i),n.handleMonthChange(i)}),A(O(n),"changeYear",function(i){n.setState(function(o){var s=o.date;return{date:ln(s,i)}},function(){return n.handleYearChange(n.state.date)})}),A(O(n),"changeMonth",function(i){n.setState(function(o){var s=o.date;return{date:Mt(s,i)}},function(){return n.handleMonthChange(n.state.date)})}),A(O(n),"changeMonthYear",function(i){n.setState(function(o){var s=o.date;return{date:ln(Mt(s,xt(i)),$e(i))}},function(){return n.handleMonthYearChange(n.state.date)})}),A(O(n),"header",function(){var i=Gr(arguments.length>0&&arguments[0]!==void 0?arguments[0]:n.state.date,n.props.locale,n.props.calendarStartDay),o=[];return n.props.showWeekNumbers&&o.push(I.createElement("div",{key:"W",className:"react-datepicker__day-name"},n.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map(function(s){var u=ei(i,s),c=n.formatWeekday(u,n.props.locale),l=n.props.weekDayClassName?n.props.weekDayClassName(u):void 0;return I.createElement("div",{key:s,className:_t("react-datepicker__day-name",l)},c)}))}),A(O(n),"formatWeekday",function(i,o){return n.props.formatWeekDay?function(s,u,c){return u(it(s,"EEEE",c))}(i,n.props.formatWeekDay,o):n.props.useWeekdaysShort?function(s,u){return it(s,"EEE",u)}(i,o):function(s,u){return it(s,"EEEEEE",u)}(i,o)}),A(O(n),"decreaseYear",function(){n.setState(function(i){var o=i.date;return{date:po(o,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),A(O(n),"clearSelectingDate",function(){n.setState({selectingDate:null})}),A(O(n),"renderPreviousButton",function(){if(!n.props.renderCustomHeader){var i;switch(!0){case n.props.showMonthYearPicker:i=x0(n.state.date,n.props);break;case n.props.showYearPicker:i=function(h){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=y.minDate,w=y.yearItemNumber,C=w===void 0?Io:w,E=li(Eo(po(h,C)),C).endPeriod,_=b&&$e(b);return _&&_>E||!1}(n.state.date,n.props);break;default:i=O0(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!i)&&!n.props.showTimeSelectOnly){var o=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(s=n.decreaseYear),i&&n.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--previous--disabled"),s=null);var u=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,c=n.props,l=c.previousMonthButtonLabel,d=c.previousYearButtonLabel,f=n.props,p=f.previousMonthAriaLabel,m=p===void 0?typeof l=="string"?l:"Previous Month":p,v=f.previousYearAriaLabel,g=v===void 0?typeof d=="string"?d:"Previous Year":v;return I.createElement("button",{type:"button",className:o.join(" "),onClick:s,onKeyDown:n.props.handleOnKeyDown,"aria-label":u?g:m},I.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},u?n.props.previousYearButtonLabel:n.props.previousMonthButtonLabel))}}}),A(O(n),"increaseYear",function(){n.setState(function(i){var o=i.date;return{date:ti(o,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),A(O(n),"renderNextButton",function(){if(!n.props.renderCustomHeader){var i;switch(!0){case n.props.showMonthYearPicker:i=D0(n.state.date,n.props);break;case n.props.showYearPicker:i=function(h){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=y.maxDate,w=y.yearItemNumber,C=w===void 0?Io:w,E=li(ti(h,C),C).startPeriod,_=b&&$e(b);return _&&_<E||!1}(n.state.date,n.props);break;default:i=T0(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!i)&&!n.props.showTimeSelectOnly){var o=["react-datepicker__navigation","react-datepicker__navigation--next"];n.props.showTimeSelect&&o.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&o.push("react-datepicker__navigation--next--with-today-button");var s=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(s=n.increaseYear),i&&n.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--next--disabled"),s=null);var u=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,c=n.props,l=c.nextMonthButtonLabel,d=c.nextYearButtonLabel,f=n.props,p=f.nextMonthAriaLabel,m=p===void 0?typeof l=="string"?l:"Next Month":p,v=f.nextYearAriaLabel,g=v===void 0?typeof d=="string"?d:"Next Year":v;return I.createElement("button",{type:"button",className:o.join(" "),onClick:s,onKeyDown:n.props.handleOnKeyDown,"aria-label":u?g:m},I.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},u?n.props.nextYearButtonLabel:n.props.nextMonthButtonLabel))}}}),A(O(n),"renderCurrentMonth",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n.state.date,o=["react-datepicker__current-month"];return n.props.showYearDropdown&&o.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&o.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&o.push("react-datepicker__current-month--hasMonthYearDropdown"),I.createElement("div",{className:o.join(" ")},it(i,n.props.dateFormat,n.props.locale))}),A(O(n),"renderYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(n.props.showYearDropdown&&!i)return I.createElement(E5,{adjustDateOnChange:n.props.adjustDateOnChange,date:n.state.date,onSelect:n.props.onSelect,setOpen:n.props.setOpen,dropdownMode:n.props.dropdownMode,onChange:n.changeYear,minDate:n.props.minDate,maxDate:n.props.maxDate,year:$e(n.state.date),scrollableYearDropdown:n.props.scrollableYearDropdown,yearDropdownItemNumber:n.props.yearDropdownItemNumber})}),A(O(n),"renderMonthDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(n.props.showMonthDropdown&&!i)return I.createElement(A5,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,onChange:n.changeMonth,month:xt(n.state.date),useShortMonthInDropdown:n.props.useShortMonthInDropdown})}),A(O(n),"renderMonthYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(n.props.showMonthYearDropdown&&!i)return I.createElement(x5,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,dateFormat:n.props.dateFormat,onChange:n.changeMonthYear,minDate:n.props.minDate,maxDate:n.props.maxDate,date:n.state.date,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown})}),A(O(n),"handleTodayButtonClick",function(i){n.props.onSelect(C0(),i),n.props.setPreSelection&&n.props.setPreSelection(C0())}),A(O(n),"renderTodayButton",function(){if(n.props.todayButton&&!n.props.showTimeSelectOnly)return I.createElement("div",{className:"react-datepicker__today-button",onClick:function(i){return n.handleTodayButtonClick(i)}},n.props.todayButton)}),A(O(n),"renderDefaultHeader",function(i){var o=i.monthDate,s=i.i;return I.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(o),I.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(s!==0),n.renderMonthYearDropdown(s!==0),n.renderYearDropdown(s!==0)),I.createElement("div",{className:"react-datepicker__day-names"},n.header(o)))}),A(O(n),"renderCustomHeader",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=i.monthDate,s=i.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var u=O0(n.state.date,n.props),c=T0(n.state.date,n.props),l=x0(n.state.date,n.props),d=D0(n.state.date,n.props),f=!n.props.showMonthYearPicker&&!n.props.showQuarterYearPicker&&!n.props.showYearPicker;return I.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},n.props.renderCustomHeader($u($u({},n.state),{},{customHeaderCount:s,monthDate:o,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:c,prevYearButtonDisabled:l,nextYearButtonDisabled:d})),f&&I.createElement("div",{className:"react-datepicker__day-names"},n.header(o)))}),A(O(n),"renderYearHeader",function(){var i=n.state.date,o=n.props,s=o.showYearPicker,u=li(i,o.yearItemNumber),c=u.startPeriod,l=u.endPeriod;return I.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(l):$e(i))}),A(O(n),"renderHeader",function(i){switch(!0){case n.props.renderCustomHeader!==void 0:return n.renderCustomHeader(i);case(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker):return n.renderYearHeader(i);default:return n.renderDefaultHeader(i)}}),A(O(n),"renderMonths",function(){var i;if(!n.props.showTimeSelectOnly&&!n.props.showYearPicker){for(var o=[],s=n.props.showPreviousMonths?n.props.monthsShown-1:0,u=ri(n.state.date,s),c=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:s,l=0;l<n.props.monthsShown;++l){var d=gr(u,l-c+s),f="month-".concat(l),p=l<n.props.monthsShown-1,m=l>0;o.push(I.createElement("div",{key:f,ref:function(v){n.monthContainer=v},className:"react-datepicker__month-container"},n.renderHeader({monthDate:d,i:l}),I.createElement(N5,{chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,ariaLabelPrefix:n.props.monthAriaLabelPrefix,onChange:n.changeMonthYear,day:d,dayClassName:n.props.dayClassName,calendarStartDay:n.props.calendarStartDay,monthClassName:n.props.monthClassName,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,onWeekSelect:n.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:n.props.formatWeekNumber,locale:n.props.locale,minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,highlightDates:n.props.highlightDates,holidays:n.props.holidays,selectingDate:n.state.selectingDate,includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,inline:n.props.inline,shouldFocusDayInline:n.props.shouldFocusDayInline,fixedHeight:n.props.fixedHeight,filterDate:n.props.filterDate,preSelection:n.props.preSelection,setPreSelection:n.props.setPreSelection,selected:n.props.selected,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showWeekNumbers:n.props.showWeekNumbers,startDate:n.props.startDate,endDate:n.props.endDate,peekNextMonth:n.props.peekNextMonth,setOpen:n.props.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,isInputFocused:n.props.isInputFocused,containerRef:n.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),A(O(n),"renderYears",function(){if(!n.props.showTimeSelectOnly)return n.props.showYearPicker?I.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader(),I.createElement(k5,ci({onDayClick:n.handleDayClick,selectingDate:n.state.selectingDate,clearSelectingDate:n.clearSelectingDate,date:n.state.date},n.props,{onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave}))):void 0}),A(O(n),"renderTimeSection",function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return I.createElement(G0,{selected:n.props.selected,openToDate:n.props.openToDate,onChange:n.props.onTimeChange,timeClassName:n.props.timeClassName,format:n.props.timeFormat,includeTimes:n.props.includeTimes,intervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,todayButton:n.props.todayButton,showMonthDropdown:n.props.showMonthDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,monthRef:n.state.monthContainer,injectTimes:n.props.injectTimes,locale:n.props.locale,handleOnKeyDown:n.props.handleOnKeyDown,showTimeSelectOnly:n.props.showTimeSelectOnly})}),A(O(n),"renderInputTimeSection",function(){var i=new Date(n.props.selected),o=Dn(i)&&n.props.selected?"".concat(k0(i.getHours()),":").concat(k0(i.getMinutes())):"";if(n.props.showTimeInput)return I.createElement(M5,{date:i,timeString:o,timeInputLabel:n.props.timeInputLabel,onChange:n.props.onTimeChange,customTimeInput:n.props.customTimeInput})}),A(O(n),"renderAriaLiveRegion",function(){var i,o=li(n.state.date,n.props.yearItemNumber),s=o.startPeriod,u=o.endPeriod;return i=n.props.showYearPicker?"".concat(s," - ").concat(u):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?$e(n.state.date):"".concat(uf(xt(n.state.date),n.props.locale)," ").concat($e(n.state.date)),I.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&i)}),A(O(n),"renderChildren",function(){if(n.props.children)return I.createElement("div",{className:"react-datepicker__children-container"},n.props.children)}),n.containerRef=I.createRef(),n.state={date:n.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},n}return St(r,[{key:"componentDidMount",value:function(){var a=this;this.props.showTimeSelect&&(this.assignMonthContainer=void a.setState({monthContainer:a.monthContainer}))}},{key:"componentDidUpdate",value:function(a){var n=this;if(!this.props.preSelection||et(this.props.preSelection,a.preSelection)&&this.props.monthSelectedIn===a.monthSelectedIn)this.props.openToDate&&!et(this.props.openToDate,a.openToDate)&&this.setState({date:this.props.openToDate});else{var i=!vr(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&n.handleCustomMonthChange(n.state.date)})}}},{key:"render",value:function(){var a=this.props.container||F5;return I.createElement("div",{style:{display:"contents"},ref:this.containerRef},I.createElement(a,{className:_t("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Io}}}]),r}(),L5=function(e){var t=e.icon,r=e.className,a=r===void 0?"":r,n=e.onClick,i="react-datepicker__calendar-icon";return I.isValidElement(t)?I.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(a),onClick:function(o){typeof t.props.onClick=="function"&&t.props.onClick(o),typeof n=="function"&&n(o)}}):typeof t=="string"?I.createElement("i",{className:"".concat(i," ").concat(t," ").concat(a),"aria-hidden":"true",onClick:n}):I.createElement("svg",{className:"".concat(i," ").concat(a),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:n},I.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},V0=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),(n=t.call(this,a)).el=document.createElement("div"),n}return St(r,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return en.createPortal(this.props.children,this.el)}}]),r}(),G5=function(e){return!e.disabled&&e.tabIndex!==-1},W0=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"getTabChildren",function(){return Array.prototype.slice.call(n.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(G5)}),A(O(n),"handleFocusStart",function(){var i=n.getTabChildren();i&&i.length>1&&i[i.length-1].focus()}),A(O(n),"handleFocusEnd",function(){var i=n.getTabChildren();i&&i.length>1&&i[0].focus()}),n.tabLoopRef=I.createRef(),n}return St(r,[{key:"render",value:function(){return this.props.enableTabLoop?I.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},I.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,I.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),r}(),V5=function(e){$t(r,I.Component);var t=It(r);function r(){return Ct(this,r),t.apply(this,arguments)}return St(r,[{key:"render",value:function(){var a,n=this.props,i=n.className,o=n.wrapperClassName,s=n.hidePopper,u=n.popperComponent,c=n.popperModifiers,l=n.popperPlacement,d=n.popperProps,f=n.targetComponent,p=n.enableTabLoop,m=n.popperOnKeyDown,v=n.portalId,g=n.portalHost;if(!s){var h=_t("react-datepicker-popper",i);a=I.createElement(d5,ci({modifiers:c,placement:l},d),function(b){var w=b.ref,C=b.style,E=b.placement,_=b.arrowProps;return I.createElement(W0,{enableTabLoop:p},I.createElement("div",{ref:w,style:C,className:h,"data-placement":E,onKeyDown:m},I.cloneElement(u,{arrowProps:_})))})}this.props.popperContainer&&(a=I.createElement(this.props.popperContainer,{},a)),v&&!s&&(a=I.createElement(V0,{portalId:v,portalHost:g},a));var y=_t("react-datepicker-wrapper",o);return I.createElement(XU,{className:"react-datepicker-manager"},I.createElement(g5,null,function(b){var w=b.ref;return I.createElement("div",{ref:w,className:y},f)}),a)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),r}(),Y0="react-datepicker-ignore-onclickoutside",W5=vu(B5),hf="Date input not valid.",Y5=function(e){$t(r,I.Component);var t=It(r);function r(a){var n;return Ct(this,r),A(O(n=t.call(this,a)),"getPreSelection",function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Xe()}),A(O(n),"modifyHolidays",function(){var i;return(i=n.props.holidays)===null||i===void 0?void 0:i.reduce(function(o,s){var u=new Date(s.date);return co(u)?[].concat($o(o),[$u($u({},s),{},{date:u})]):o},[])}),A(O(n),"calcInitialState",function(){var i,o=n.getPreSelection(),s=P0(n.props),u=R0(n.props),c=s&&Tn(o,kr(s))?s:u&&On(o,kd(u))?u:o;return{open:n.props.startOpen||!1,preventFocus:!1,preSelection:(i=n.props.selectsRange?n.props.startDate:n.props.selected)!==null&&i!==void 0?i:c,highlightDates:N0(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),A(O(n),"clearPreventFocusTimeout",function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)}),A(O(n),"setFocus",function(){n.input&&n.input.focus&&n.input.focus({preventScroll:!0})}),A(O(n),"setBlur",function(){n.input&&n.input.blur&&n.input.blur(),n.cancelFocusInput()}),A(O(n),"setOpen",function(i){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];n.setState({open:i,preSelection:i&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:mf},function(){i||n.setState(function(s){return{focused:!!o&&s.focused}},function(){!o&&n.setBlur(),n.setState({inputValue:null})})})}),A(O(n),"inputOk",function(){return nu(n.state.preSelection)}),A(O(n),"isCalendarOpen",function(){return n.props.open===void 0?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open}),A(O(n),"handleFocus",function(i){n.state.preventFocus||(n.props.onFocus(i),n.props.preventOpenOnFocus||n.props.readOnly||n.setOpen(!0)),n.setState({focused:!0})}),A(O(n),"sendFocusBackToInput",function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})}),A(O(n),"cancelFocusInput",function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=null}),A(O(n),"deferFocusInput",function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)}),A(O(n),"handleDropdownFocus",function(){n.cancelFocusInput()}),A(O(n),"handleBlur",function(i){(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&n.props.onBlur(i),n.setState({focused:!1})}),A(O(n),"handleCalendarClickOutside",function(i){n.props.inline||n.setOpen(!1),n.props.onClickOutside(i),n.props.withPortal&&i.preventDefault()}),A(O(n),"handleChange",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var u=o[0];if(!n.props.onChangeRaw||(n.props.onChangeRaw.apply(O(n),o),typeof u.isDefaultPrevented=="function"&&!u.isDefaultPrevented())){n.setState({inputValue:u.target.value,lastPreSelectChange:U5});var c,l,d,f,p,m,v,g,h=(c=u.target.value,l=n.props.dateFormat,d=n.props.locale,f=n.props.strictParsing,p=n.props.minDate,m=null,v=la(d)||la(ca()),g=!0,Array.isArray(l)?(l.forEach(function(y){var b=Wd(c,y,new Date,{locale:v});f&&(g=Dn(b,p)&&c===it(b,y,d)),Dn(b,p)&&g&&(m=b)}),m):(m=Wd(c,l,new Date,{locale:v}),f?g=Dn(m)&&c===it(m,l,d):Dn(m)||(l=l.match(b5).map(function(y){var b=y[0];return b==="p"||b==="P"?v?(0,y5[b])(y,v.formatLong):b:y}).join(""),c.length>0&&(m=Wd(c,l.slice(0,c.length),new Date)),Dn(m)||(m=new Date(c))),Dn(m)&&g?m:null));n.props.showTimeSelectOnly&&n.props.selected&&h&&!et(h,n.props.selected)&&(h=v5(n.props.selected,{hours:Nr(h),minutes:Rr(h),seconds:Eb(h)})),!h&&u.target.value||(n.props.showWeekPicker&&(h=Gr(h,n.props.locale,n.props.calendarStartDay)),n.setSelected(h,u,!0))}}),A(O(n),"handleSelect",function(i,o,s){if(n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(o),n.props.showWeekPicker&&(i=Gr(i,n.props.locale,n.props.calendarStartDay)),n.setSelected(i,o,!1,s),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect)n.setPreSelection(i);else if(!n.props.inline){n.props.selectsRange||n.setOpen(!1);var u=n.props,c=u.startDate,l=u.endDate;!c||l||Tn(i,c)||n.setOpen(!1)}}),A(O(n),"setSelected",function(i,o,s,u){var c=i;if(n.props.showYearPicker){if(c!==null&&I0($e(c),n.props))return}else if(n.props.showMonthYearPicker){if(c!==null&&$0(c,n.props))return}else if(c!==null&&Au(c,n.props))return;var l=n.props,d=l.onChange,f=l.selectsRange,p=l.startDate,m=l.endDate;if(!ua(n.props.selected,c)||n.props.allowSameDay||f)if(c!==null&&(!n.props.selected||s&&(n.props.showTimeSelect||n.props.showTimeSelectOnly||n.props.showTimeInput)||(c=b0(c,{hour:Nr(n.props.selected),minute:Rr(n.props.selected),second:Eb(n.props.selected)})),n.props.inline||n.setState({preSelection:c}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:u})),f){var v=p&&!m,g=p&&m;!p&&!m?d([c,null],o):v&&(Tn(c,p)?d([c,null],o):d([p,c],o)),g&&d([c,null],o)}else d(c,o);s||(n.props.onSelect(c,o),n.setState({inputValue:null}))}),A(O(n),"setPreSelection",function(i){var o=n.props.minDate!==void 0,s=n.props.maxDate!==void 0,u=!0;if(i){n.props.showWeekPicker&&(i=Gr(i,n.props.locale,n.props.calendarStartDay));var c=kr(i);if(o&&s)u=_u(i,n.props.minDate,n.props.maxDate);else if(o){var l=kr(n.props.minDate);u=On(i,l)||ua(c,l)}else if(s){var d=kd(n.props.maxDate);u=Tn(i,d)||ua(c,d)}}u&&n.setState({preSelection:i})}),A(O(n),"toggleCalendar",function(){n.setOpen(!n.state.open)}),A(O(n),"handleTimeChange",function(i){var o=n.props.selected?n.props.selected:n.getPreSelection(),s=n.props.selected?i:b0(o,{hour:Nr(i),minute:Rr(i)});n.setState({preSelection:s}),n.props.onChange(s),n.props.shouldCloseOnSelect&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}),A(O(n),"onInputClick",function(){n.props.disabled||n.props.readOnly||n.setOpen(!0),n.props.onInputClick()}),A(O(n),"onInputKeyDown",function(i){n.props.onKeyDown(i);var o=i.key;if(n.state.open||n.props.inline||n.props.preventOpenOnFocus){if(n.state.open){if(o==="ArrowDown"||o==="ArrowUp"){i.preventDefault();var s=n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=n.calendar.componentNode&&n.calendar.componentNode.querySelector(s);return void(u&&u.focus({preventScroll:!0}))}var c=Xe(n.state.preSelection);o==="Enter"?(i.preventDefault(),n.inputOk()&&n.state.lastPreSelectChange===mf?(n.handleSelect(c,i),!n.props.shouldCloseOnSelect&&n.setPreSelection(c)):n.setOpen(!1)):o==="Escape"?(i.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1)):o==="Tab"&&n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:hf})}}else o!=="ArrowDown"&&o!=="ArrowUp"&&o!=="Enter"||n.onInputClick()}),A(O(n),"onPortalKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))}),A(O(n),"onDayKeyDown",function(i){n.props.onKeyDown(i);var o=i.key,s=Xe(n.state.preSelection);if(o==="Enter")i.preventDefault(),n.handleSelect(s,i),!n.props.shouldCloseOnSelect&&n.setPreSelection(s);else if(o==="Escape")i.preventDefault(),n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:hf});else if(!n.props.disabledKeyboardNavigation){var u;switch(o){case"ArrowLeft":u=n.props.showWeekPicker?Ib(s,1):sY(s,1);break;case"ArrowRight":u=n.props.showWeekPicker?ou(s,1):ei(s,1);break;case"ArrowUp":u=Ib(s,1);break;case"ArrowDown":u=ou(s,1);break;case"PageUp":u=ri(s,1);break;case"PageDown":u=gr(s,1);break;case"Home":u=po(s,1);break;case"End":u=ti(s,1);break;default:u=null}if(!u)return void(n.props.onInputError&&n.props.onInputError({code:1,msg:hf}));if(i.preventDefault(),n.setState({lastPreSelectChange:mf}),n.props.adjustDateOnChange&&n.setSelected(u),n.setPreSelection(u),n.props.inline){var c=xt(s),l=xt(u),d=$e(s),f=$e(u);c!==l||d!==f?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}}),A(O(n),"onPopperKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),n.sendFocusBackToInput())}),A(O(n),"onClearClick",function(i){i&&i.preventDefault&&i.preventDefault(),n.sendFocusBackToInput(),n.props.selectsRange?n.props.onChange([null,null],i):n.props.onChange(null,i),n.setState({inputValue:null})}),A(O(n),"clear",function(){n.onClearClick()}),A(O(n),"onScroll",function(i){typeof n.props.closeOnScroll=="boolean"&&n.props.closeOnScroll?i.target!==document&&i.target!==document.documentElement&&i.target!==document.body||n.setOpen(!1):typeof n.props.closeOnScroll=="function"&&n.props.closeOnScroll(i)&&n.setOpen(!1)}),A(O(n),"renderCalendar",function(){return n.props.inline||n.isCalendarOpen()?I.createElement(W5,{ref:function(i){n.calendar=i},locale:n.props.locale,calendarStartDay:n.props.calendarStartDay,chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,monthAriaLabelPrefix:n.props.monthAriaLabelPrefix,adjustDateOnChange:n.props.adjustDateOnChange,setOpen:n.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,dateFormat:n.props.dateFormatCalendar,useWeekdaysShort:n.props.useWeekdaysShort,formatWeekDay:n.props.formatWeekDay,dropdownMode:n.props.dropdownMode,selected:n.props.selected,preSelection:n.state.preSelection,onSelect:n.handleSelect,onWeekSelect:n.props.onWeekSelect,openToDate:n.props.openToDate,minDate:n.props.minDate,maxDate:n.props.maxDate,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,startDate:n.props.startDate,endDate:n.props.endDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,filterDate:n.props.filterDate,onClickOutside:n.handleCalendarClickOutside,formatWeekNumber:n.props.formatWeekNumber,highlightDates:n.state.highlightDates,holidays:C5(n.modifyHolidays()),includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,includeTimes:n.props.includeTimes,injectTimes:n.props.injectTimes,inline:n.props.inline,shouldFocusDayInline:n.state.shouldFocusDayInline,peekNextMonth:n.props.peekNextMonth,showMonthDropdown:n.props.showMonthDropdown,showPreviousMonths:n.props.showPreviousMonths,useShortMonthInDropdown:n.props.useShortMonthInDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showWeekNumbers:n.props.showWeekNumbers,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,forceShowMonthNavigation:n.props.forceShowMonthNavigation,showDisabledMonthNavigation:n.props.showDisabledMonthNavigation,scrollableYearDropdown:n.props.scrollableYearDropdown,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown,todayButton:n.props.todayButton,weekLabel:n.props.weekLabel,outsideClickIgnoreClass:Y0,fixedHeight:n.props.fixedHeight,monthsShown:n.props.monthsShown,monthSelectedIn:n.state.monthSelectedIn,onDropdownFocus:n.handleDropdownFocus,onMonthChange:n.props.onMonthChange,onYearChange:n.props.onYearChange,dayClassName:n.props.dayClassName,weekDayClassName:n.props.weekDayClassName,monthClassName:n.props.monthClassName,timeClassName:n.props.timeClassName,showDateSelect:n.props.showDateSelect,showTimeSelect:n.props.showTimeSelect,showTimeSelectOnly:n.props.showTimeSelectOnly,onTimeChange:n.handleTimeChange,timeFormat:n.props.timeFormat,timeIntervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,className:n.props.calendarClassName,container:n.props.calendarContainer,yearItemNumber:n.props.yearItemNumber,yearDropdownItemNumber:n.props.yearDropdownItemNumber,previousMonthAriaLabel:n.props.previousMonthAriaLabel,previousMonthButtonLabel:n.props.previousMonthButtonLabel,nextMonthAriaLabel:n.props.nextMonthAriaLabel,nextMonthButtonLabel:n.props.nextMonthButtonLabel,previousYearAriaLabel:n.props.previousYearAriaLabel,previousYearButtonLabel:n.props.previousYearButtonLabel,nextYearAriaLabel:n.props.nextYearAriaLabel,nextYearButtonLabel:n.props.nextYearButtonLabel,timeInputLabel:n.props.timeInputLabel,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,renderCustomHeader:n.props.renderCustomHeader,popperProps:n.props.popperProps,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,onDayMouseEnter:n.props.onDayMouseEnter,onMonthMouseLeave:n.props.onMonthMouseLeave,onYearMouseEnter:n.props.onYearMouseEnter,onYearMouseLeave:n.props.onYearMouseLeave,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showTimeInput:n.props.showTimeInput,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,showPopperArrow:n.props.showPopperArrow,excludeScrollbar:n.props.excludeScrollbar,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,isInputFocused:n.state.focused,customTimeInput:n.props.customTimeInput,setPreSelection:n.setPreSelection},n.props.children):null}),A(O(n),"renderAriaLiveRegion",function(){var i,o=n.props,s=o.dateFormat,u=o.locale,c=n.props.showTimeInput||n.props.showTimeSelect?"PPPPp":"PPPP";return i=n.props.selectsRange?"Selected start date: ".concat(Lr(n.props.startDate,{dateFormat:c,locale:u}),". ").concat(n.props.endDate?"End date: "+Lr(n.props.endDate,{dateFormat:c,locale:u}):""):n.props.showTimeSelectOnly?"Selected time: ".concat(Lr(n.props.selected,{dateFormat:s,locale:u})):n.props.showYearPicker?"Selected year: ".concat(Lr(n.props.selected,{dateFormat:"yyyy",locale:u})):n.props.showMonthYearPicker?"Selected month: ".concat(Lr(n.props.selected,{dateFormat:"MMMM yyyy",locale:u})):n.props.showQuarterYearPicker?"Selected quarter: ".concat(Lr(n.props.selected,{dateFormat:"yyyy, QQQ",locale:u})):"Selected date: ".concat(Lr(n.props.selected,{dateFormat:c,locale:u})),I.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i)}),A(O(n),"renderDateInput",function(){var i,o=_t(n.props.className,A({},Y0,n.state.open)),s=n.props.customInput||I.createElement("input",{type:"text"}),u=n.props.customInputRef||"ref",c=typeof n.props.value=="string"?n.props.value:typeof n.state.inputValue=="string"?n.state.inputValue:n.props.selectsRange?function(l,d,f){if(!l)return"";var p=Lr(l,f),m=d?Lr(d,f):"";return"".concat(p," - ").concat(m)}(n.props.startDate,n.props.endDate,n.props):Lr(n.props.selected,n.props);return I.cloneElement(s,(A(A(A(A(A(A(A(A(A(A(i={},u,function(l){n.input=l}),"value",c),"onBlur",n.handleBlur),"onChange",n.handleChange),"onClick",n.onInputClick),"onFocus",n.handleFocus),"onKeyDown",n.onInputKeyDown),"id",n.props.id),"name",n.props.name),"form",n.props.form),A(A(A(A(A(A(A(A(A(A(i,"autoFocus",n.props.autoFocus),"placeholder",n.props.placeholderText),"disabled",n.props.disabled),"autoComplete",n.props.autoComplete),"className",_t(s.props.className,o)),"title",n.props.title),"readOnly",n.props.readOnly),"required",n.props.required),"tabIndex",n.props.tabIndex),"aria-describedby",n.props.ariaDescribedBy),A(A(A(i,"aria-invalid",n.props.ariaInvalid),"aria-labelledby",n.props.ariaLabelledBy),"aria-required",n.props.ariaRequired)))}),A(O(n),"renderClearButton",function(){var i=n.props,o=i.isClearable,s=i.disabled,u=i.selected,c=i.startDate,l=i.endDate,d=i.clearButtonTitle,f=i.clearButtonClassName,p=f===void 0?"":f,m=i.ariaLabelClose,v=m===void 0?"Close":m;return!o||u==null&&c==null&&l==null?null:I.createElement("button",{type:"button",className:_t("react-datepicker__close-icon",p,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":v,onClick:n.onClearClick,title:d,tabIndex:-1})}),n.state=n.calcInitialState(),n.preventFocusTimeout=null,n}return St(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(a,n){var i,o;a.inline&&(i=a.selected,o=this.props.selected,i&&o?xt(i)!==xt(o)||$e(i)!==$e(o):i!==o)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&a.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),a.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:N0(this.props.highlightDates)}),n.focused||ua(a.selected,this.props.selected)||this.setState({inputValue:null}),n.open!==this.state.open&&(n.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),n.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var a=this.props,n=a.showIcon,i=a.icon,o=a.calendarIconClassname,s=a.toggleCalendarOnIconClick,u=this.state.open;return I.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&I.createElement(L5,ci({icon:i,className:"".concat(o," ").concat(u&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var a=this.renderCalendar();if(this.props.inline)return a;if(this.props.withPortal){var n=this.state.open?I.createElement(W0,{enableTabLoop:this.props.enableTabLoop},I.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},a)):null;return this.state.open&&this.props.portalId&&(n=I.createElement(V0,{portalId:this.props.portalId,portalHost:this.props.portalHost},n)),I.createElement("div",null,this.renderInputContainer(),n)}return I.createElement(V5,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:a,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Io,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),r}(),U5="input",mf="navigate";function H5(e){const{onChange:t}=e,r=I.useCallback(n=>{t((n==null?void 0:n.toISOString().split("T")[0])||void 0)},[t]),a=()=>{const n=new Date().getTimezoneOffset();return e.value?new Date(`${e.value}T19:00:00.${n}Z`):null};return $.jsx(Y5,{selected:a(),className:"w-full input input-bordered",onChange:r})}function X5(e){const{onChange:t,value:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"datetime-local",...e,value:ib(r),onChange:o=>t(rb(o))})}function z5(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"email",...e})}function Z5(e,t){return e===null?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function J5(e){const{name:t,size:r,type:a}=e;return new Promise((n,i)=>{const o=new window.FileReader;o.onerror=i,o.onload=s=>{var u;typeof((u=s.target)==null?void 0:u.result)=="string"?n({dataURL:Z5(s.target.result,t),name:t,size:r,type:a}):n({dataURL:null,name:t,size:r,type:a})},o.readAsDataURL(e)})}function q5(e){return Promise.all(Array.from(e).map(J5))}function K5({filesInfo:e}){return e.length===0?null:$.jsx("ul",{className:"file-info",children:e.map((t,r)=>{const{name:a,size:n,type:i}=t;return $.jsxs("li",{children:[$.jsx("strong",{children:a})," (",i,", ",n," bytes)"]},r)})})}function U0(e){return e.filter(t=>typeof t<"u").map(t=>{const{blob:r,name:a}=Vy(t);return{name:a,size:r.size,type:r.type}})}function Q5({multiple:e,id:t,readonly:r,disabled:a,onChange:n,value:i,autofocus:o=!1,options:s}){const u=I.useMemo(()=>Array.isArray(i)?U0(i):U0([i]),[i]),[c,l]=I.useState(u),d=I.useCallback(f=>{f.target.files&&q5(f.target.files).then(p=>{l(p);const m=p.map(v=>v.dataURL);n(e?m:m[0])})},[e,n]);return $.jsxs("div",{children:[$.jsx("p",{children:$.jsx("input",{id:t,type:"file",disabled:r||a,onChange:d,defaultValue:"",autoFocus:o,multiple:e,accept:s.accept?String(s.accept):void 0})}),$.jsx(K5,{filesInfo:c})]})}function eX({id:e,value:t}){return $.jsx("input",{type:"hidden",id:e,value:typeof t>"u"?"":t})}function tX(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"password",...e})}function rX({options:e,value:t,required:r,disabled:a,readonly:n,autofocus:i=!1,onBlur:o,onFocus:s,onChange:u,id:c}){Math.random().toString();const{enumOptions:l,enumDisabled:d,inline:f}=e,p=I.useCallback(v=>o(c,v.target.value),[o,c]),m=I.useCallback(v=>s(c,v.target.value),[s,c]);return $.jsx("div",{className:`flex field-radio-group ${f?"flex-row gap-2":"flex-col"}`,id:c,children:Array.isArray(l)&&l.map((v,g)=>{const h=v.value===t,y=d&&d.indexOf(v.value)!=-1,b=a||y||n?"disabled":"",w=()=>u(v.value),C=$.jsxs($.Fragment,{children:[$.jsx("input",{type:"radio",className:"radio radio-secondary",id:`${c}_${g}`,checked:h,name:c,required:r,value:v.value,disabled:a||y||n,autoFocus:i&&g===0,onChange:w,onBlur:p,onFocus:m}),$.jsx("span",{className:"label-text",children:v.label})]});return $.jsx("label",{className:`label justify-start gap-2 ${b}`,children:C},g)})})}function nX(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return $.jsxs("div",{className:"field-range-wrapper",children:[$.jsx(r,{type:"range",...e}),$.jsx("span",{className:"range-view",children:t})]})}function H0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H0(Object(r),!0).forEach(function(a){q(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H0(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function aX(e){if(Array.isArray(e))return e}function iX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);u=!0);}catch(l){c=!0,n=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function oX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(e,t){return aX(e)||iX(e,t)||Fd(e,t)||oX()}function sX(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function pn(e,t){if(e==null)return{};var r,a,n=sX(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var uX=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function cX(e){var t=e.defaultInputValue,r=t===void 0?"":t,a=e.defaultMenuIsOpen,n=a===void 0?!1:a,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,u=e.menuIsOpen,c=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,m=pn(e,uX),v=I.useState(s!==void 0?s:r),g=fn(v,2),h=g[0],y=g[1],b=I.useState(u!==void 0?u:n),w=fn(b,2),C=w[0],E=w[1],_=I.useState(p!==void 0?p:o),N=fn(_,2),R=N[0],k=N[1],F=I.useCallback(function(J,se){typeof c=="function"&&c(J,se),k(J)},[c]),W=I.useCallback(function(J,se){var V;typeof l=="function"&&(V=l(J,se)),y(V!==void 0?V:J)},[l]),B=I.useCallback(function(){typeof f=="function"&&f(),E(!0)},[f]),U=I.useCallback(function(){typeof d=="function"&&d(),E(!1)},[d]),Y=s!==void 0?s:h,L=u!==void 0?u:C,Z=p!==void 0?p:R;return he(he({},m),{},{inputValue:Y,menuIsOpen:L,onChange:F,onInputChange:W,onMenuClose:U,onMenuOpen:B,value:Z})}function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},me.apply(null,arguments)}function lX(e){if(Array.isArray(e))return Md(e)}function dX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
71
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gf(e){return lX(e)||dX(e)||Fd(e)||fX()}function pX(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hX(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var mX=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hX(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=pX(n);try{i.insertRule(a,i.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),Dt="-ms-",Tu="-moz-",Me="-webkit-",X0="comm",vf="rule",yf="decl",gX="@import",z0="@keyframes",vX="@layer",yX=Math.abs,xu=String.fromCharCode,bX=Object.assign;function wX(e,t){return At(e,0)^45?(((t<<2^At(e,0))<<2^At(e,1))<<2^At(e,2))<<2^At(e,3):0}function Z0(e){return e.trim()}function CX(e,t){return(e=t.exec(e))?e[0]:e}function Fe(e,t,r){return e.replace(t,r)}function bf(e,t){return e.indexOf(t)}function At(e,t){return e.charCodeAt(t)|0}function _o(e,t,r){return e.slice(t,r)}function Vr(e){return e.length}function wf(e){return e.length}function Du(e,t){return t.push(e),e}function SX(e,t){return e.map(t).join("")}var Pu=1,di=1,J0=0,Gt=0,mt=0,fi="";function Ru(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:Pu,column:di,length:o,return:""}}function Ao(e,t){return bX(Ru("",null,null,"",null,null,0),e,{length:-e.length},t)}function $X(){return mt}function IX(){return mt=Gt>0?At(fi,--Gt):0,di--,mt===10&&(di=1,Pu--),mt}function er(){return mt=Gt<J0?At(fi,Gt++):0,di++,mt===10&&(di=1,Pu++),mt}function Wr(){return At(fi,Gt)}function Nu(){return Gt}function Oo(e,t){return _o(fi,e,t)}function To(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 q0(e){return Pu=di=1,J0=Vr(fi=e),Gt=0,[]}function K0(e){return fi="",e}function ku(e){return Z0(Oo(Gt-1,Cf(e===91?e+2:e===40?e+1:e)))}function EX(e){for(;(mt=Wr())&&mt<33;)er();return To(e)>2||To(mt)>3?"":" "}function _X(e,t){for(;--t&&er()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return Oo(e,Nu()+(t<6&&Wr()==32&&er()==32))}function Cf(e){for(;er();)switch(mt){case e:return Gt;case 34:case 39:e!==34&&e!==39&&Cf(mt);break;case 40:e===41&&Cf(e);break;case 92:er();break}return Gt}function AX(e,t){for(;er()&&e+mt!==57;)if(e+mt===84&&Wr()===47)break;return"/*"+Oo(t,Gt-1)+"*"+xu(e===47?e:er())}function OX(e){for(;!To(Wr());)er();return Oo(e,Gt)}function TX(e){return K0(Mu("",null,null,null,[""],e=q0(e),0,[0],e))}function Mu(e,t,r,a,n,i,o,s,u){for(var c=0,l=0,d=o,f=0,p=0,m=0,v=1,g=1,h=1,y=0,b="",w=n,C=i,E=a,_=b;g;)switch(m=y,y=er()){case 40:if(m!=108&&At(_,d-1)==58){bf(_+=Fe(ku(y),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:_+=ku(y);break;case 9:case 10:case 13:case 32:_+=EX(m);break;case 92:_+=_X(Nu()-1,7);continue;case 47:switch(Wr()){case 42:case 47:Du(xX(AX(er(),Nu()),t,r),u);break;default:_+="/"}break;case 123*v:s[c++]=Vr(_)*h;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:h==-1&&(_=Fe(_,/\f/g,"")),p>0&&Vr(_)-d&&Du(p>32?ew(_+";",a,r,d-1):ew(Fe(_," ","")+";",a,r,d-2),u);break;case 59:_+=";";default:if(Du(E=Q0(_,t,r,c,l,n,s,b,w=[],C=[],d),i),y===123)if(l===0)Mu(_,t,E,E,w,i,d,s,C);else switch(f===99&&At(_,3)===110?100:f){case 100:case 108:case 109:case 115:Mu(e,E,E,a&&Du(Q0(e,E,E,0,0,n,s,b,n,w=[],d),C),n,C,d,s,a?w:C);break;default:Mu(_,E,E,E,[""],C,0,s,C)}}c=l=p=0,v=h=1,b=_="",d=o;break;case 58:d=1+Vr(_),p=m;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&IX()==125)continue}switch(_+=xu(y),y*v){case 38:h=l>0?1:(_+="\f",-1);break;case 44:s[c++]=(Vr(_)-1)*h,h=1;break;case 64:Wr()===45&&(_+=ku(er())),f=Wr(),l=d=Vr(b=_+=OX(Nu())),y++;break;case 45:m===45&&Vr(_)==2&&(v=0)}}return i}function Q0(e,t,r,a,n,i,o,s,u,c,l){for(var d=n-1,f=n===0?i:[""],p=wf(f),m=0,v=0,g=0;m<a;++m)for(var h=0,y=_o(e,d+1,d=yX(v=o[m])),b=e;h<p;++h)(b=Z0(v>0?f[h]+" "+y:Fe(y,/&\f/g,f[h])))&&(u[g++]=b);return Ru(e,t,r,n===0?vf:s,u,c,l)}function xX(e,t,r){return Ru(e,t,r,X0,xu($X()),_o(e,2,-2),0)}function ew(e,t,r,a){return Ru(e,t,r,yf,_o(e,0,a),_o(e,a+1,-1),a)}function pi(e,t){for(var r="",a=wf(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function DX(e,t,r,a){switch(e.type){case vX:if(e.children.length)break;case gX:case yf:return e.return=e.return||e.value;case X0:return"";case z0:return e.return=e.value+"{"+pi(e.children,a)+"}";case vf:e.value=e.props.join(",")}return Vr(r=pi(e.children,a))?e.return=e.value+"{"+r+"}":""}function PX(e){var t=wf(e);return function(r,a,n,i){for(var o="",s=0;s<t;s++)o+=e[s](r,a,n,i)||"";return o}}function RX(e){return function(t){t.root||(t=t.return)&&e(t)}}function NX(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var kX=function(t,r,a){for(var n=0,i=0;n=i,i=Wr(),n===38&&i===12&&(r[a]=1),!To(i);)er();return Oo(t,Gt)},MX=function(t,r){var a=-1,n=44;do switch(To(n)){case 0:n===38&&Wr()===12&&(r[a]=1),t[a]+=kX(Gt-1,r,a);break;case 2:t[a]+=ku(n);break;case 4:if(n===44){t[++a]=Wr()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=xu(n)}while(n=er());return t},FX=function(t,r){return K0(MX(q0(t),r))},tw=new WeakMap,jX=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!tw.get(a))&&!n){tw.set(t,!0);for(var i=[],o=FX(r,i),s=a.props,u=0,c=0;u<o.length;u++)for(var l=0;l<s.length;l++,c++)t.props[c]=i[u]?o[u].replace(/&\f/g,s[l]):s[l]+" "+o[u]}}},BX=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function rw(e,t){switch(wX(e,t)){case 5103:return Me+"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 Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+Tu+e+Dt+e+e;case 6828:case 4268:return Me+e+Dt+e+e;case 6165:return Me+e+Dt+"flex-"+e+e;case 5187:return Me+e+Fe(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Dt+"flex-$1$2")+e;case 5443:return Me+e+Dt+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return Me+e+Dt+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+Dt+Fe(e,"shrink","negative")+e;case 5292:return Me+e+Dt+Fe(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Fe(e,"-grow","")+Me+e+Dt+Fe(e,"grow","positive")+e;case 4554:return Me+Fe(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,Me+"$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(Vr(e)-1-t>6)switch(At(e,t+1)){case 109:if(At(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+Tu+(At(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bf(e,"stretch")?rw(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(At(e,t+1)!==115)break;case 6444:switch(At(e,Vr(e)-3-(~bf(e,"!important")&&10))){case 107:return Fe(e,":",":"+Me)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(At(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(At(e,t+11)){case 114:return Me+e+Dt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Dt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Dt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+Dt+e+e}return e}var LX=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case yf:t.return=rw(t.value,t.length);break;case z0:return pi([Ao(t,{value:Fe(t.value,"@","@"+Me)})],n);case vf:if(t.length)return SX(t.props,function(i){switch(CX(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([Ao(t,{props:[Fe(i,/:(read-\w+)/,":"+Tu+"$1")]})],n);case"::placeholder":return pi([Ao(t,{props:[Fe(i,/:(plac\w+)/,":"+Me+"input-$1")]}),Ao(t,{props:[Fe(i,/:(plac\w+)/,":"+Tu+"$1")]}),Ao(t,{props:[Fe(i,/:(plac\w+)/,Dt+"input-$1")]})],n)}return""})}},GX=[LX],VX=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=t.stylisPlugins||GX,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),h=1;h<g.length;h++)i[g[h]]=!0;s.push(v)});var u,c=[jX,BX];{var l,d=[DX,RX(function(v){l.insert(v)})],f=PX(c.concat(n,d)),p=function(g){return pi(TX(g),f)};u=function(g,h,y,b){l=y,p(g?g+"{"+h.styles+"}":h.styles),b&&(m.inserted[h.name]=!0)}}var m={key:r,sheet:new mX({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return m.sheet.hydrate(s),m},nw=s9(),WX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},YX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aw={};aw[nw.ForwardRef]=WX,aw[nw.Memo]=YX;var UX=!0;function HX(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var iw=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||UX===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},XX=function(t,r,a){iw(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function zX(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ZX={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},JX=/[A-Z]|^ms/g,qX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ow=function(t){return t.charCodeAt(1)===45},sw=function(t){return t!=null&&typeof t!="boolean"},Sf=NX(function(e){return ow(e)?e:e.replace(JX,"-$&").toLowerCase()}),uw=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qX,function(a,n,i){return Yr={name:n,styles:i,next:Yr},n})}return ZX[t]!==1&&!ow(t)&&typeof r=="number"&&r!==0?r+"px":r};function xo(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Yr={name:n.name,styles:n.styles,next:Yr},n.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Yr={name:o.name,styles:o.styles,next:Yr},o=o.next;var s=i.styles+";";return s}return KX(e,t,r)}case"function":{if(e!==void 0){var u=Yr,c=r(e);return Yr=u,xo(e,t,c)}break}}var l=r;return l}function KX(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=xo(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var s=o;sw(s)&&(a+=Sf(i)+":"+uw(i,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var u=0;u<o.length;u++)sw(o[u])&&(a+=Sf(i)+":"+uw(i,o[u])+";");else{var c=xo(e,t,o);switch(i){case"animation":case"animationName":{a+=Sf(i)+":"+c+";";break}default:a+=i+"{"+c+"}"}}}return a}var cw=/label:\s*([^\s;{]+)\s*(;|$)/g,Yr;function lw(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Yr=void 0;var i=e[0];if(i==null||i.raw===void 0)a=!1,n+=xo(r,t,i);else{var o=i;n+=o[0]}for(var s=1;s<e.length;s++)if(n+=xo(r,t,e[s]),a){var u=i;n+=u[s]}cw.lastIndex=0;for(var c="",l;(l=cw.exec(n))!==null;)c+="-"+l[1];var d=zX(n)+c;return{name:d,styles:n,next:Yr}}var QX=function(t){return t()},ez=ne.useInsertionEffect?ne.useInsertionEffect:!1,tz=ez||QX,dw=ne.createContext(typeof HTMLElement<"u"?VX({key:"css"}):null);dw.Provider;var rz=function(t){return I.forwardRef(function(r,a){var n=I.useContext(dw);return t(r,n,a)})},nz=ne.createContext({}),$f={}.hasOwnProperty,If="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",az=function(t,r){var a={};for(var n in r)$f.call(r,n)&&(a[n]=r[n]);return a[If]=t,a},iz=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return iw(r,a,n),tz(function(){return XX(r,a,n)}),null},oz=rz(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[If],i=[a],o="";typeof e.className=="string"?o=HX(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=lw(i,void 0,ne.useContext(nz));o+=t.key+"-"+s.name;var u={};for(var c in e)$f.call(e,c)&&c!=="css"&&c!==If&&(u[c]=e[c]);return u.className=o,r&&(u.ref=r),ne.createElement(ne.Fragment,null,ne.createElement(iz,{cache:t,serialized:s,isStringTag:typeof n=="string"}),ne.createElement(n,u))}),sz=oz,de=function(t,r){var a=arguments;if(r==null||!$f.call(r,"css"))return ne.createElement.apply(void 0,a);var n=a.length,i=new Array(n);i[0]=sz,i[1]=az(t,r);for(var o=2;o<n;o++)i[o]=a[o];return ne.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(de||(de={}));function Ef(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return lw(t)}function uz(){var e=Ef.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function cz(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const lz=Math.min,dz=Math.max,Fu=Math.round,ju=Math.floor,Bu=e=>({x:e,y:e});function fz(e){const{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function Lu(){return typeof window<"u"}function fw(e){return hw(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pw(e){var t;return(t=(hw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hw(e){return Lu()?e instanceof Node||e instanceof hn(e).Node:!1}function pz(e){return Lu()?e instanceof Element||e instanceof hn(e).Element:!1}function _f(e){return Lu()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function mw(e){return!Lu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}const hz=new Set(["inline","contents"]);function gw(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=Af(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!hz.has(n)}function mz(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gz=new Set(["html","body","#document"]);function vz(e){return gz.has(fw(e))}function Af(e){return hn(e).getComputedStyle(e)}function yz(e){if(fw(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mw(e)&&e.host||pw(e);return mw(t)?t.host:t}function vw(e){const t=yz(e);return vz(t)?e.ownerDocument?e.ownerDocument.body:e.body:_f(t)&&gw(t)?t:vw(t)}function Gu(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=vw(e),i=n===((a=e.ownerDocument)==null?void 0:a.body),o=hn(n);if(i){const s=Of(o);return t.concat(o,o.visualViewport||[],gw(n)?n:[],s&&r?Gu(s):[])}return t.concat(n,Gu(n,[],r))}function Of(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bz(e){const t=Af(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=_f(e),i=n?e.offsetWidth:r,o=n?e.offsetHeight:a,s=Fu(r)!==i||Fu(a)!==o;return s&&(r=i,a=o),{width:r,height:a,$:s}}function Tf(e){return pz(e)?e:e.contextElement}function yw(e){const t=Tf(e);if(!_f(t))return Bu(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:i}=bz(t);let o=(i?Fu(r.width):r.width)/a,s=(i?Fu(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const wz=Bu(0);function Cz(e){const t=hn(e);return!mz()||!t.visualViewport?wz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sz(e,t,r){return!1}function bw(e,t,r,a){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=Tf(e);let o=Bu(1);t&&(o=yw(e));const s=Sz()?Cz(i):Bu(0);let u=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,l=n.width/o.x,d=n.height/o.y;if(i){const f=hn(i),p=a;let m=f,v=Of(m);for(;v&&a&&p!==m;){const g=yw(v),h=v.getBoundingClientRect(),y=Af(v),b=h.left+(v.clientLeft+parseFloat(y.paddingLeft))*g.x,w=h.top+(v.clientTop+parseFloat(y.paddingTop))*g.y;u*=g.x,c*=g.y,l*=g.x,d*=g.y,u+=b,c+=w,m=hn(v),v=Of(m)}}return fz({width:l,height:d,x:u,y:c})}function ww(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $z(e,t){let r=null,a;const n=pw(e);function i(){var s;clearTimeout(a),(s=r)==null||s.disconnect(),r=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:l,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m=ju(d),v=ju(n.clientWidth-(l+f)),g=ju(n.clientHeight-(d+p)),h=ju(l),b={rootMargin:-m+"px "+-v+"px "+-g+"px "+-h+"px",threshold:dz(0,lz(1,u))||1};let w=!0;function C(E){const _=E[0].intersectionRatio;if(_!==u){if(!w)return o();_?o(!1,_):a=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!ww(c,e.getBoundingClientRect())&&o(),w=!1}try{r=new IntersectionObserver(C,{...b,root:n.ownerDocument})}catch{r=new IntersectionObserver(C,b)}r.observe(e)}return o(!0),i}function Iz(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=Tf(e),l=n||i?[...c?Gu(c):[],...Gu(t)]:[];l.forEach(h=>{n&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const d=c&&s?$z(c,r):null;let f=-1,p=null;o&&(p=new ResizeObserver(h=>{let[y]=h;y&&y.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let m,v=u?bw(e):null;u&&g();function g(){const h=bw(e);v&&!ww(v,h)&&r(),v=h,m=requestAnimationFrame(g)}return r(),()=>{var h;l.forEach(y=>{n&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),d==null||d(),(h=p)==null||h.disconnect(),p=null,u&&cancelAnimationFrame(m)}}var xf=I.useLayoutEffect,Ez=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Vu=function(){};function _z(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Az(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];var i=[].concat(a);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(_z(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Cw=function(t){return Mz(t)?t.filter(Boolean):Kt(t)==="object"&&t!==null?[t]:[]},Sw=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=pn(t,Ez);return he({},r)},ut=function(t,r,a){var n=t.cx,i=t.getStyles,o=t.getClassNames,s=t.className;return{css:i(r,t),className:n(a??{},o(r,t),s)}};function Wu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Oz(e){return Wu(e)?window.innerHeight:e.clientHeight}function $w(e){return Wu(e)?window.pageYOffset:e.scrollTop}function Yu(e,t){if(Wu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Tz(e){var t=getComputedStyle(e),r=t.position==="absolute",a=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&a.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function xz(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function Uu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Vu,n=$w(e),i=t-n,o=10,s=0;function u(){s+=o;var c=xz(s,n,i,r);Yu(e,c),s<r?window.requestAnimationFrame(u):a(e)}u()}function Iw(e,t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=t.offsetHeight/3;a.bottom+n>r.bottom?Yu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n<r.top&&Yu(e,Math.max(t.offsetTop-n,0))}function Dz(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Ew(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Pz(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var _w=!1,Rz={get passive(){return _w=!0}},Hu=typeof window<"u"?window:{};Hu.addEventListener&&Hu.removeEventListener&&(Hu.addEventListener("p",Vu,Rz),Hu.removeEventListener("p",Vu,!1));var Nz=_w;function kz(e){return e!=null}function Mz(e){return Array.isArray(e)}function Xu(e,t,r){return e?t:r}function xie(e){return e}function Die(e){return e}var Fz=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];var i=Object.entries(t).filter(function(o){var s=fn(o,1),u=s[0];return!a.includes(u)});return i.reduce(function(o,s){var u=fn(s,2),c=u[0],l=u[1];return o[c]=l,o},{})},jz=["children","innerProps"],Bz=["children","innerProps"];function Lz(e){var t=e.maxHeight,r=e.menuEl,a=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,u=Tz(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var l=u.getBoundingClientRect(),d=l.height,f=r.getBoundingClientRect(),p=f.bottom,m=f.height,v=f.top,g=r.offsetParent.getBoundingClientRect(),h=g.top,y=o?window.innerHeight:Oz(u),b=$w(u),w=parseInt(getComputedStyle(r).marginBottom,10),C=parseInt(getComputedStyle(r).marginTop,10),E=h-C,_=y-v,N=E+b,R=d-b-v,k=p-y+b+w,F=b+v-C,W=160;switch(n){case"auto":case"bottom":if(_>=m)return{placement:"bottom",maxHeight:t};if(R>=m&&!o)return i&&Uu(u,k,W),{placement:"bottom",maxHeight:t};if(!o&&R>=a||o&&_>=a){i&&Uu(u,k,W);var B=o?_-w:R-w;return{placement:"bottom",maxHeight:B}}if(n==="auto"||o){var U=t,Y=o?E:N;return Y>=a&&(U=Math.min(Y-w-s,t)),{placement:"top",maxHeight:U}}if(n==="bottom")return i&&Yu(u,k),{placement:"bottom",maxHeight:t};break;case"top":if(E>=m)return{placement:"top",maxHeight:t};if(N>=m&&!o)return i&&Uu(u,F,W),{placement:"top",maxHeight:t};if(!o&&N>=a||o&&E>=a){var L=t;return(!o&&N>=a||o&&E>=a)&&(L=o?E-C:N-C),i&&Uu(u,F,W),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function Gz(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Aw=function(t){return t==="auto"?"bottom":t},Vz=function(t,r){var a,n=t.placement,i=t.theme,o=i.borderRadius,s=i.spacing,u=i.colors;return he((a={label:"menu"},q(a,Gz(n),"100%"),q(a,"position","absolute"),q(a,"width","100%"),q(a,"zIndex",1),a),r?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Ow=I.createContext(null),Wz=function(t){var r=t.children,a=t.minMenuHeight,n=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,c=I.useContext(Ow)||{},l=c.setPortalPlacement,d=I.useRef(null),f=I.useState(n),p=fn(f,2),m=p[0],v=p[1],g=I.useState(null),h=fn(g,2),y=h[0],b=h[1],w=u.spacing.controlHeight;return xf(function(){var C=d.current;if(C){var E=o==="fixed",_=s&&!E,N=Lz({maxHeight:n,menuEl:C,minHeight:a,placement:i,shouldScroll:_,isFixedPosition:E,controlHeight:w});v(N.maxHeight),b(N.placement),l==null||l(N.placement)}},[n,i,o,s,a,l,w]),r({ref:d,placerProps:he(he({},t),{},{placement:y||Aw(i),maxHeight:m})})},Yz=function(t){var r=t.children,a=t.innerRef,n=t.innerProps;return de("div",me({},ut(t,"menu",{menu:!0}),{ref:a},n),r)},Uz=Yz,Hz=function(t,r){var a=t.maxHeight,n=t.theme.spacing.baseUnit;return he({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},Xz=function(t){var r=t.children,a=t.innerProps,n=t.innerRef,i=t.isMulti;return de("div",me({},ut(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:n},a),r)},Tw=function(t,r){var a=t.theme,n=a.spacing.baseUnit,i=a.colors;return he({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},zz=Tw,Zz=Tw,Jz=function(t){var r=t.children,a=r===void 0?"No options":r,n=t.innerProps,i=pn(t,jz);return de("div",me({},ut(he(he({},i),{},{children:a,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)},qz=function(t){var r=t.children,a=r===void 0?"Loading...":r,n=t.innerProps,i=pn(t,Bz);return de("div",me({},ut(he(he({},i),{},{children:a,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)},Kz=function(t){var r=t.rect,a=t.offset,n=t.position;return{left:r.left,position:n,top:a,width:r.width,zIndex:1}},Qz=function(t){var r=t.appendTo,a=t.children,n=t.controlElement,i=t.innerProps,o=t.menuPlacement,s=t.menuPosition,u=I.useRef(null),c=I.useRef(null),l=I.useState(Aw(o)),d=fn(l,2),f=d[0],p=d[1],m=I.useMemo(function(){return{setPortalPlacement:p}},[]),v=I.useState(null),g=fn(v,2),h=g[0],y=g[1],b=I.useCallback(function(){if(n){var _=Dz(n),N=s==="fixed"?0:window.pageYOffset,R=_[f]+N;(R!==(h==null?void 0:h.offset)||_.left!==(h==null?void 0:h.rect.left)||_.width!==(h==null?void 0:h.rect.width))&&y({offset:R,rect:_})}},[n,s,f,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);xf(function(){b()},[b]);var w=I.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),n&&u.current&&(c.current=Iz(n,u.current,b,{elementResize:"ResizeObserver"in window}))},[n,b]);xf(function(){w()},[w]);var C=I.useCallback(function(_){u.current=_,w()},[w]);if(!r&&s!=="fixed"||!h)return null;var E=de("div",me({ref:C},ut(he(he({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),a);return de(Ow.Provider,{value:m},r?en.createPortal(E,r):E)},eZ=function(t){var r=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},tZ=function(t){var r=t.children,a=t.innerProps,n=t.isDisabled,i=t.isRtl;return de("div",me({},ut(t,"container",{"--is-disabled":n,"--is-rtl":i}),a),r)},rZ=function(t,r){var a=t.theme.spacing,n=t.isMulti,i=t.hasValue,o=t.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:n&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},nZ=function(t){var r=t.children,a=t.innerProps,n=t.isMulti,i=t.hasValue;return de("div",me({},ut(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":i}),a),r)},aZ=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},iZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"indicatorsContainer",{indicators:!0}),a),r)},xw,oZ=["size"],sZ=["innerProps","isRtl","size"];function uZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var cZ=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:uZ},Dw=function(t){var r=t.size,a=pn(t,oZ);return de("svg",me({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cZ},a))},Df=function(t){return de(Dw,me({size:20},t),de("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Pw=function(t){return de(Dw,me({size:20},t),de("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Rw=function(t,r){var a=t.isFocused,n=t.theme,i=n.spacing.baseUnit,o=n.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:a?o.neutral60:o.neutral20,padding:i*2,":hover":{color:a?o.neutral80:o.neutral40}})},lZ=Rw,dZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),r||de(Pw,null))},fZ=Rw,pZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),r||de(Df,null))},hZ=function(t,r){var a=t.isDisabled,n=t.theme,i=n.spacing.baseUnit,o=n.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:a?o.neutral10:o.neutral20,marginBottom:i*2,marginTop:i*2})},mZ=function(t){var r=t.innerProps;return de("span",me({},r,ut(t,"indicatorSeparator",{"indicator-separator":!0})))},gZ=uz(xw||(xw=cz([`
|
|
72
72
|
0%, 80%, 100% { opacity: 0; }
|
|
73
73
|
40% { opacity: 1; }
|
|
74
|
-
`]))),gZ=function(t,r){var a=t.isFocused,n=t.size,i=t.theme,o=i.colors,s=i.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:a?o.neutral60:o.neutral20,padding:s*2})},Pf=function(t){var r=t.delay,a=t.offset;return de("span",{css:Ef({animation:"".concat(mZ," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},vZ=function(t){var r=t.innerProps,a=t.isRtl,n=t.size,i=n===void 0?4:n,o=pn(t,oZ);return de("div",me({},ut(he(he({},o),{},{innerProps:r,isRtl:a,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),de(Pf,{delay:0,offset:a}),de(Pf,{delay:160,offset:!0}),de(Pf,{delay:320,offset:!a}))},yZ=function(t,r){var a=t.isDisabled,n=t.isFocused,i=t.theme,o=i.colors,s=i.borderRadius,u=i.spacing;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:a?o.neutral5:o.neutral0,borderColor:a?o.neutral10:n?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:n?o.primary:o.neutral30}})},bZ=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,i=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return de("div",me({ref:i},ut(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":s}),o,{"aria-disabled":a||void 0}),r)},wZ=bZ,CZ=["data"],SZ=function(t,r){var a=t.theme.spacing;return r?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},$Z=function(t){var r=t.children,a=t.cx,n=t.getStyles,i=t.getClassNames,o=t.Heading,s=t.headingProps,u=t.innerProps,c=t.label,l=t.theme,d=t.selectProps;return de("div",me({},ut(t,"group",{group:!0}),u),de(o,me({},s,{selectProps:d,theme:l,getStyles:n,getClassNames:i,cx:a}),c),de("div",null,r))},IZ=function(t,r){var a=t.theme,n=a.colors,i=a.spacing;return he({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},EZ=function(t){var r=Cw(t);r.data;var a=pn(r,CZ);return de("div",me({},ut(t,"groupHeading",{"group-heading":!0}),a))},_Z=$Z,AZ=["innerRef","isDisabled","isHidden","inputClassName"],OZ=function(t,r){var a=t.isDisabled,n=t.value,i=t.theme,o=i.spacing,s=i.colors;return he(he({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},TZ),r?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Rw={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},TZ={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Rw)},xZ=function(t){return he({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Rw)},DZ=function(t){var r=t.cx,a=t.value,n=Cw(t),i=n.innerRef,o=n.isDisabled,s=n.isHidden,u=n.inputClassName,c=pn(n,AZ);return de("div",me({},ut(t,"input",{"input-container":!0}),{"data-value":a||""}),de("input",me({className:r({input:!0},u),ref:i,style:xZ(s),disabled:o},c)))},PZ=DZ,RZ=function(t,r){var a=t.theme,n=a.spacing,i=a.borderRadius,o=a.colors;return he({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:n.baseUnit/2})},NZ=function(t,r){var a=t.theme,n=a.borderRadius,i=a.colors,o=t.cropWithEllipsis;return he({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},kZ=function(t,r){var a=t.theme,n=a.spacing,i=a.borderRadius,o=a.colors,s=t.isFocused;return he({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Nw=function(t){var r=t.children,a=t.innerProps;return de("div",a,r)},MZ=Nw,FZ=Nw;function jZ(e){var t=e.children,r=e.innerProps;return de("div",me({role:"button"},r),t||de(Df,{size:14}))}var BZ=function(t){var r=t.children,a=t.components,n=t.data,i=t.innerProps,o=t.isDisabled,s=t.removeProps,u=t.selectProps,c=a.Container,l=a.Label,d=a.Remove;return de(c,{data:n,innerProps:he(he({},ut(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},de(l,{data:n,innerProps:he({},ut(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),de(d,{data:n,innerProps:he(he({},ut(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:u}))},LZ=BZ,GZ=function(t,r){var a=t.isDisabled,n=t.isFocused,i=t.isSelected,o=t.theme,s=o.spacing,u=o.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?u.primary:n?u.primary25:"transparent",color:a?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:i?u.primary:u.primary50}})},VZ=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,i=t.isSelected,o=t.innerRef,s=t.innerProps;return de("div",me({},ut(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":i}),{ref:o,"aria-disabled":a},s),r)},WZ=VZ,YZ=function(t,r){var a=t.theme,n=a.spacing,i=a.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},UZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"placeholder",{placeholder:!0}),a),r)},HZ=UZ,XZ=function(t,r){var a=t.isDisabled,n=t.theme,i=n.spacing,o=n.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:a?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},zZ=function(t){var r=t.children,a=t.isDisabled,n=t.innerProps;return de("div",me({},ut(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),r)},ZZ=zZ,JZ={ClearIndicator:fZ,Control:wZ,DropdownIndicator:lZ,DownChevron:Dw,CrossIcon:Df,Group:_Z,GroupHeading:EZ,IndicatorsContainer:aZ,IndicatorSeparator:hZ,Input:PZ,LoadingIndicator:vZ,Menu:Yz,MenuList:Hz,MenuPortal:Kz,LoadingMessage:Jz,NoOptionsMessage:Zz,MultiValue:LZ,MultiValueContainer:MZ,MultiValueLabel:FZ,MultiValueRemove:jZ,Option:WZ,Placeholder:HZ,SelectContainer:eZ,SingleValue:ZZ,ValueContainer:rZ},qZ=function(t){return he(he({},JZ),t.components)},kw=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function KZ(e,t){return!!(e===t||kw(e)&&kw(t))}function QZ(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!KZ(e[r],t[r]))return!1;return!0}function eJ(e,t){t===void 0&&(t=QZ);var r=null;function a(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return a.clear=function(){r=null},a}function tJ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var rJ=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:tJ},nJ=function(t){return de("span",me({css:rJ},t))},Mw=nJ,aJ={guidance:function(t){var r=t.isSearchable,a=t.isMulti,n=t.tabSelectsValue,i=t.context,o=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,a=t.label,n=a===void 0?"":a,i=t.labels,o=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,a=t.focused,n=t.options,i=t.label,o=i===void 0?"":i,s=t.selectValue,u=t.isDisabled,c=t.isSelected,l=t.isAppleDevice,d=function(v,g){return v&&v.length?"".concat(v.indexOf(g)+1," of ").concat(v.length):""};if(r==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,a),".");if(r==="menu"&&l){var f=u?" disabled":"",p="".concat(c?" selected":"").concat(f);return"".concat(o).concat(p,", ").concat(d(n,a),".")}return""},onFilter:function(t){var r=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(r?" for search term "+r:"",".")}},iJ=function(t){var r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,i=t.focusableOptions,o=t.isFocused,s=t.selectValue,u=t.selectProps,c=t.id,l=t.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,p=u.inputValue,m=u.isMulti,v=u.isOptionDisabled,g=u.isSearchable,h=u.menuIsOpen,y=u.options,b=u.screenReaderStatus,w=u.tabSelectsValue,C=u.isLoading,E=u["aria-label"],_=u["aria-live"],N=I.useMemo(function(){return he(he({},aJ),d||{})},[d]),R=I.useMemo(function(){var Y="";if(r&&N.onChange){var L=r.option,Z=r.options,J=r.removedValue,se=r.removedValues,V=r.value,D=function(H){return Array.isArray(H)?null:H},M=J||L||D(V),P=M?f(M):"",S=Z||se||void 0,T=S?S.map(f):[],j=he({isDisabled:M&&v(M,s),label:P,labels:T},r);Y=N.onChange(j)}return Y},[r,N,v,s,f]),k=I.useMemo(function(){var Y="",L=a||n,Z=!!(a&&s&&s.includes(a));if(L&&N.onFocus){var J={focused:L,label:f(L),isDisabled:v(L,s),isSelected:Z,options:i,context:L===a?"menu":"value",selectValue:s,isAppleDevice:l};Y=N.onFocus(J)}return Y},[a,n,f,v,N,i,s,l]),F=I.useMemo(function(){var Y="";if(h&&y.length&&!C&&N.onFilter){var L=b({count:i.length});Y=N.onFilter({inputValue:p,resultsMessage:L})}return Y},[i,p,h,N,y,b,C]),W=(r==null?void 0:r.action)==="initial-input-focus",B=I.useMemo(function(){var Y="";if(N.guidance){var L=n?"value":h?"menu":"input";Y=N.guidance({"aria-label":E,context:L,isDisabled:a&&v(a,s),isMulti:m,isSearchable:g,tabSelectsValue:w,isInitialFocus:W})}return Y},[E,a,n,m,v,g,h,N,s,w,W]),U=de(I.Fragment,null,de("span",{id:"aria-selection"},R),de("span",{id:"aria-focused"},k),de("span",{id:"aria-results"},F),de("span",{id:"aria-guidance"},B));return de(I.Fragment,null,de(Mw,{id:c},W&&U),de(Mw,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!W&&U))},oJ=iJ,Rf=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sJ=new RegExp("["+Rf.map(function(e){return e.letters}).join("")+"]","g"),Fw={},Nf=0;Nf<Rf.length;Nf++)for(var kf=Rf[Nf],Mf=0;Mf<kf.letters.length;Mf++)Fw[kf.letters[Mf]]=kf.base;var jw=function(t){return t.replace(sJ,function(r){return Fw[r]})},uJ=eJ(jw),Bw=function(t){return t.replace(/^\s+|\s+$/g,"")},cJ=function(t){return"".concat(t.label," ").concat(t.value)},lJ=function(t){return function(r,a){if(r.data.__isNew__)return!0;var n=he({ignoreCase:!0,ignoreAccents:!0,stringify:cJ,trim:!0,matchFrom:"any"},t),i=n.ignoreCase,o=n.ignoreAccents,s=n.stringify,u=n.trim,c=n.matchFrom,l=u?Bw(a):a,d=u?Bw(s(r)):s(r);return i&&(l=l.toLowerCase(),d=d.toLowerCase()),o&&(l=uJ(l),d=jw(d)),c==="start"?d.substr(0,l.length)===l:d.indexOf(l)>-1}},dJ=["innerRef"];function fJ(e){var t=e.innerRef,r=pn(e,dJ),a=Mz(r,"onExited","in","enter","exit","appear");return de("input",me({ref:t},a,{css:Ef({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var pJ=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function hJ(e){var t=e.isEnabled,r=e.onBottomArrive,a=e.onBottomLeave,n=e.onTopArrive,i=e.onTopLeave,o=I.useRef(!1),s=I.useRef(!1),u=I.useRef(0),c=I.useRef(null),l=I.useCallback(function(g,h){if(c.current!==null){var y=c.current,b=y.scrollTop,w=y.scrollHeight,C=y.clientHeight,E=c.current,_=h>0,N=w-C-b,R=!1;N>h&&o.current&&(a&&a(g),o.current=!1),_&&s.current&&(i&&i(g),s.current=!1),_&&h>N?(r&&!o.current&&r(g),E.scrollTop=w,R=!0,o.current=!0):!_&&-h>b&&(n&&!s.current&&n(g),E.scrollTop=0,R=!0,s.current=!0),R&&pJ(g)}},[r,a,n,i]),d=I.useCallback(function(g){l(g,g.deltaY)},[l]),f=I.useCallback(function(g){u.current=g.changedTouches[0].clientY},[]),p=I.useCallback(function(g){var h=u.current-g.changedTouches[0].clientY;l(g,h)},[l]),m=I.useCallback(function(g){if(g){var h=Rz?{passive:!1}:!1;g.addEventListener("wheel",d,h),g.addEventListener("touchstart",f,h),g.addEventListener("touchmove",p,h)}},[p,f,d]),v=I.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",f,!1),g.removeEventListener("touchmove",p,!1))},[p,f,d]);return I.useEffect(function(){if(t){var g=c.current;return m(g),function(){v(g)}}},[t,m,v]),function(g){c.current=g}}var Lw=["boxSizing","height","overflow","paddingRight","position"],Gw={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Vw(e){e.cancelable&&e.preventDefault()}function Ww(e){e.stopPropagation()}function Yw(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Uw(){return"ontouchstart"in window||navigator.maxTouchPoints}var Hw=!!(typeof window<"u"&&window.document&&window.document.createElement),Do=0,hi={capture:!1,passive:!1};function mJ(e){var t=e.isEnabled,r=e.accountForScrollbars,a=r===void 0?!0:r,n=I.useRef({}),i=I.useRef(null),o=I.useCallback(function(u){if(Hw){var c=document.body,l=c&&c.style;if(a&&Lw.forEach(function(m){var v=l&&l[m];n.current[m]=v}),a&&Do<1){var d=parseInt(n.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Gw).forEach(function(m){var v=Gw[m];l&&(l[m]=v)}),l&&(l.paddingRight="".concat(p,"px"))}c&&Uw()&&(c.addEventListener("touchmove",Vw,hi),u&&(u.addEventListener("touchstart",Yw,hi),u.addEventListener("touchmove",Ww,hi))),Do+=1}},[a]),s=I.useCallback(function(u){if(Hw){var c=document.body,l=c&&c.style;Do=Math.max(Do-1,0),a&&Do<1&&Lw.forEach(function(d){var f=n.current[d];l&&(l[d]=f)}),c&&Uw()&&(c.removeEventListener("touchmove",Vw,hi),u&&(u.removeEventListener("touchstart",Yw,hi),u.removeEventListener("touchmove",Ww,hi)))}},[a]);return I.useEffect(function(){if(t){var u=i.current;return o(u),function(){s(u)}}},[t,o,s]),function(u){i.current=u}}function gJ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var vJ=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},yJ=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:gJ};function bJ(e){var t=e.children,r=e.lockEnabled,a=e.captureEnabled,n=a===void 0?!0:a,i=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,u=e.onTopLeave,c=hJ({isEnabled:n,onBottomArrive:i,onBottomLeave:o,onTopArrive:s,onTopLeave:u}),l=mJ({isEnabled:r}),d=function(p){c(p),l(p)};return de(I.Fragment,null,r&&de("div",{onClick:vJ,css:yJ}),t(d))}function wJ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var CJ=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:wJ},SJ=function(t){var r=t.name,a=t.onFocus;return de("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:CJ,value:"",onChange:function(){}})},$J=SJ;function Ff(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function IJ(){return Ff(/^iPhone/i)}function Xw(){return Ff(/^Mac/i)}function EJ(){return Ff(/^iPad/i)||Xw()&&navigator.maxTouchPoints>1}function _J(){return IJ()||EJ()}function AJ(){return Xw()||_J()}var OJ=function(t){return t.label},TJ=function(t){return t.label},xJ=function(t){return t.value},DJ=function(t){return!!t.isDisabled},PJ={clearIndicator:dZ,container:Qz,control:yZ,dropdownIndicator:cZ,group:SZ,groupHeading:IZ,indicatorsContainer:nZ,indicatorSeparator:pZ,input:OZ,loadingIndicator:gZ,loadingMessage:zz,menu:Gz,menuList:Uz,menuPortal:qz,multiValue:RZ,multiValueLabel:NZ,multiValueRemove:kZ,noOptionsMessage:Xz,option:GZ,placeholder:YZ,singleValue:XZ,valueContainer:tZ},RJ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},NJ=4,zw=4,kJ=38,MJ=zw*2,FJ={baseUnit:zw,controlHeight:kJ,menuGutter:MJ},jf={borderRadius:NJ,colors:RJ,spacing:FJ},jJ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Iw(),captureMenuScroll:!Iw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lJ(),formatGroupLabel:OJ,getOptionLabel:TJ,getOptionValue:xJ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:DJ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Dz(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Zw(e,t,r,a){var n=e1(e,t,r),i=t1(e,t,r),o=Qw(e,t),s=zu(e,t);return{type:"option",data:t,isDisabled:n,isSelected:i,label:o,value:s,index:a}}function Xu(e,t){return e.options.map(function(r,a){if("options"in r){var n=r.options.map(function(o,s){return Zw(e,o,t,s)}).filter(function(o){return Kw(e,o)});return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var i=Zw(e,r,t,a);return Kw(e,i)?i:void 0}).filter(Nz)}function Jw(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,gf(r.options.map(function(a){return a.data}))):t.push(r.data),t},[])}function qw(e,t){return e.reduce(function(r,a){return a.type==="group"?r.push.apply(r,gf(a.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(a.index,"-").concat(n.index)}}))):r.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),r},[])}function BJ(e,t){return Jw(Xu(e,t))}function Kw(e,t){var r=e.inputValue,a=r===void 0?"":r,n=t.data,i=t.isSelected,o=t.label,s=t.value;return(!n1(e)||!i)&&r1(e,{label:o,value:s,data:n},a)}function LJ(e,t){var r=e.focusedValue,a=e.selectValue,n=a.indexOf(r);if(n>-1){var i=t.indexOf(r);if(i>-1)return r;if(n<t.length)return t[n]}return null}function GJ(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Bf=function(t,r){var a,n=(a=t.find(function(i){return i.data===r}))===null||a===void 0?void 0:a.id;return n||null},Qw=function(t,r){return t.getOptionLabel(r)},zu=function(t,r){return t.getOptionValue(r)};function e1(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function t1(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var a=zu(e,t);return r.some(function(n){return zu(e,n)===a})}function r1(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var n1=function(t){var r=t.hideSelectedOptions,a=t.isMulti;return r===void 0?a:r},VJ=1,a1=function(e){Te(r,e);var t=xe(r);function r(a){var n;if(_e(this,r),n=t.call(this,a),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(u){n.controlRef=u},n.focusedOptionRef=null,n.getFocusedOptionRef=function(u){n.focusedOptionRef=u},n.menuListRef=null,n.getMenuListRef=function(u){n.menuListRef=u},n.inputRef=null,n.getInputRef=function(u){n.inputRef=u},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(u,c){var l=n.props,d=l.onChange,f=l.name;c.name=f,n.ariaOnChange(u,c),d(u,c)},n.setValue=function(u,c,l){var d=n.props,f=d.closeMenuOnSelect,p=d.isMulti,m=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(n.setState({inputIsHiddenAfterUpdate:!p}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(u,{action:c,option:l})},n.selectOption=function(u){var c=n.props,l=c.blurInputOnSelect,d=c.isMulti,f=c.name,p=n.state.selectValue,m=d&&n.isOptionSelected(u,p),v=n.isOptionDisabled(u,p);if(m){var g=n.getOptionValue(u);n.setValue(p.filter(function(h){return n.getOptionValue(h)!==g}),"deselect-option",u)}else if(!v)d?n.setValue([].concat(gf(p),[u]),"select-option",u):n.setValue(u,"select-option");else{n.ariaOnChange(u,{action:"select-option",option:u,name:f});return}l&&n.blurInput()},n.removeValue=function(u){var c=n.props.isMulti,l=n.state.selectValue,d=n.getOptionValue(u),f=l.filter(function(m){return n.getOptionValue(m)!==d}),p=Hu(c,f,f[0]||null);n.onChange(p,{action:"remove-value",removedValue:u}),n.focusInput()},n.clearValue=function(){var u=n.state.selectValue;n.onChange(Hu(n.props.isMulti,[],null),{action:"clear",removedValues:u})},n.popValue=function(){var u=n.props.isMulti,c=n.state.selectValue,l=c[c.length-1],d=c.slice(0,c.length-1),f=Hu(u,d,d[0]||null);l&&n.onChange(f,{action:"pop-value",removedValue:l})},n.getFocusedOptionId=function(u){return Bf(n.state.focusableOptionsWithIds,u)},n.getFocusableOptionsWithIds=function(){return qw(Xu(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];return _z.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(u){return Qw(n.props,u)},n.getOptionValue=function(u){return zu(n.props,u)},n.getStyles=function(u,c){var l=n.props.unstyled,d=PJ[u](c,l);d.boxSizing="border-box";var f=n.props.styles[u];return f?f(d,c):d},n.getClassNames=function(u,c){var l,d;return(l=(d=n.props.classNames)[u])===null||l===void 0?void 0:l.call(d,c)},n.getElementId=function(u){return"".concat(n.state.instancePrefix,"-").concat(u)},n.getComponents=function(){return qZ(n.props)},n.buildCategorizedOptions=function(){return Xu(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Jw(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(u,c){n.setState({ariaSelection:he({value:u},c)})},n.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(u){n.blockOptionHover=!1},n.onControlMouseDown=function(u){if(!u.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},n.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!n.props.isDisabled){var c=n.props,l=c.isMulti,d=c.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!l}),n.onMenuClose()):n.openMenu("first"),u.preventDefault()}},n.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(n.clearValue(),u.preventDefault(),n.openAfterFocus=!1,u.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(u){typeof n.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&Vu(u.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(u)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(u){var c=u.touches,l=c&&c.item(0);l&&(n.initialTouchX=l.clientX,n.initialTouchY=l.clientY,n.userIsDragging=!1)},n.onTouchMove=function(u){var c=u.touches,l=c&&c.item(0);if(l){var d=Math.abs(l.clientX-n.initialTouchX),f=Math.abs(l.clientY-n.initialTouchY),p=5;n.userIsDragging=d>p||f>p}},n.onTouchEnd=function(u){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(u.target)&&n.menuListRef&&!n.menuListRef.contains(u.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(u){n.userIsDragging||n.onControlMouseDown(u)},n.onClearIndicatorTouchEnd=function(u){n.userIsDragging||n.onClearIndicatorMouseDown(u)},n.onDropdownIndicatorTouchEnd=function(u){n.userIsDragging||n.onDropdownIndicatorMouseDown(u)},n.handleInputChange=function(u){var c=n.props.inputValue,l=u.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(l,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(u){n.props.onFocus&&n.props.onFocus(u),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(u){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(u),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(u){if(!(n.blockOptionHover||n.state.focusedOption===u)){var c=n.getFocusableOptions(),l=c.indexOf(u);n.setState({focusedOption:u,focusedOptionId:l>-1?n.getFocusedOptionId(u):null})}},n.shouldHideSelectedOptions=function(){return n1(n.props)},n.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),n.focus()},n.onKeyDown=function(u){var c=n.props,l=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,p=c.inputValue,m=c.isClearable,v=c.isDisabled,g=c.menuIsOpen,h=c.onKeyDown,y=c.tabSelectsValue,b=c.openMenuOnFocus,w=n.state,C=w.focusedOption,E=w.focusedValue,_=w.selectValue;if(!v&&!(typeof h=="function"&&(h(u),u.defaultPrevented))){switch(n.blockOptionHover=!0,u.key){case"ArrowLeft":if(!l||p)return;n.focusValue("previous");break;case"ArrowRight":if(!l||p)return;n.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)n.removeValue(E);else{if(!d)return;l?n.popValue():m&&n.clearValue()}break;case"Tab":if(n.isComposing||u.shiftKey||!g||!y||!C||b&&n.isOptionSelected(C,_))return;n.selectOption(C);break;case"Enter":if(u.keyCode===229)break;if(g){if(!C||n.isComposing)return;n.selectOption(C);break}return;case"Escape":g?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:p}),n.onMenuClose()):m&&f&&n.clearValue();break;case" ":if(p)return;if(!g){n.openMenu("first");break}if(!C)return;n.selectOption(C);break;case"ArrowUp":g?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":g?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!g)return;n.focusOption("pageup");break;case"PageDown":if(!g)return;n.focusOption("pagedown");break;case"Home":if(!g)return;n.focusOption("first");break;case"End":if(!g)return;n.focusOption("last");break;default:return}u.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++VJ),n.state.selectValue=ww(a.value),a.menuIsOpen&&n.state.selectValue.length){var i=n.getFocusableOptionsWithIds(),o=n.buildFocusableOptions(),s=o.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=i,n.state.focusedOption=o[s],n.state.focusedOptionId=Bf(i,o[s])}return n}return Ae(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&$w(this.menuListRef,this.focusedOptionRef),AJ()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var i=this.props,o=i.isDisabled,s=i.menuIsOpen,u=this.state.isFocused;(u&&!o&&n.isDisabled||u&&s&&!n.menuIsOpen)&&this.focusInput(),u&&o&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&($w(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,i){this.props.onInputChange(n,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var i=this,o=this.state,s=o.selectValue,u=o.isFocused,c=this.buildFocusableOptions(),l=n==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(s[0]);d>-1&&(l=d)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[l],focusedOptionId:this.getFocusedOptionId(c[l])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(n){var i=this.state,o=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(s);s||(u=-1);var c=o.length-1,l=-1;if(o.length){switch(n){case"previous":u===0?l=0:u===-1?l=c:l=u-1;break;case"next":u>-1&&u<c&&(l=u+1);break}this.setState({inputIsHidden:l!==-1,focusedValue:o[l]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var u=0,c=s.indexOf(o);o||(c=-1),n==="up"?u=c>0?c-1:s.length-1:n==="down"?u=(c+1)%s.length:n==="pageup"?(u=c-i,u<0&&(u=0)):n==="pagedown"?(u=c+i,u>s.length-1&&(u=s.length-1)):n==="last"&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(jf):he(he({},jf),this.props.theme):jf}},{key:"getCommonProps",value:function(){var n=this.clearValue,i=this.cx,o=this.getStyles,s=this.getClassNames,u=this.getValue,c=this.selectOption,l=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,m=d.options,v=this.hasValue();return{clearValue:n,cx:i,getStyles:o,getClassNames:s,getValue:u,hasValue:v,isMulti:f,isRtl:p,options:m,selectOption:c,selectProps:d,setValue:l,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,i=n.isClearable,o=n.isMulti;return i===void 0?o:i}},{key:"isOptionDisabled",value:function(n,i){return e1(this.props,n,i)}},{key:"isOptionSelected",value:function(n,i){return t1(this.props,n,i)}},{key:"filterOption",value:function(n,i){return r1(this.props,n,i)}},{key:"formatOptionLabel",value:function(n,i){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(n,{context:i,inputValue:o,selectValue:s})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,i=n.isDisabled,o=n.isSearchable,s=n.inputId,u=n.inputValue,c=n.tabIndex,l=n.form,d=n.menuIsOpen,f=n.required,p=this.getComponents(),m=p.Input,v=this.state,g=v.inputIsHidden,h=v.ariaSelection,y=this.commonProps,b=s||this.getElementId("input"),w=he(he(he({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?ne.createElement(m,me({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:i,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:l,type:"text",value:u},w)):ne.createElement(fJ,me({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Gu,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:l,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,i=this.getComponents(),o=i.MultiValue,s=i.MultiValueContainer,u=i.MultiValueLabel,c=i.MultiValueRemove,l=i.SingleValue,d=i.Placeholder,f=this.commonProps,p=this.props,m=p.controlShouldRenderValue,v=p.isDisabled,g=p.isMulti,h=p.inputValue,y=p.placeholder,b=this.state,w=b.selectValue,C=b.focusedValue,E=b.isFocused;if(!this.hasValue()||!m)return h?null:ne.createElement(d,me({},f,{key:"placeholder",isDisabled:v,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),y);if(g)return w.map(function(N,R){var k=N===C,F="".concat(n.getOptionLabel(N),"-").concat(n.getOptionValue(N));return ne.createElement(o,me({},f,{components:{Container:s,Label:u,Remove:c},isFocused:k,isDisabled:v,key:F,index:R,removeProps:{onClick:function(){return n.removeValue(N)},onTouchEnd:function(){return n.removeValue(N)},onMouseDown:function(B){B.preventDefault()}},data:N}),n.formatOptionLabel(N,"value"))});if(h)return null;var _=w[0];return ne.createElement(l,me({},f,{data:_,isDisabled:v}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),i=n.ClearIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,l=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(i,me({},o,{innerProps:d,isFocused:l}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),i=n.LoadingIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,l=this.state.isFocused;if(!i||!c)return null;var d={"aria-hidden":"true"};return ne.createElement(i,me({},o,{innerProps:d,isDisabled:u,isFocused:l}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),i=n.DropdownIndicator,o=n.IndicatorSeparator;if(!i||!o)return null;var s=this.commonProps,u=this.props.isDisabled,c=this.state.isFocused;return ne.createElement(o,me({},s,{isDisabled:u,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),i=n.DropdownIndicator;if(!i)return null;var o=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(i,me({},o,{innerProps:c,isDisabled:s,isFocused:u}))}},{key:"renderMenu",value:function(){var n=this,i=this.getComponents(),o=i.Group,s=i.GroupHeading,u=i.Menu,c=i.MenuList,l=i.MenuPortal,d=i.LoadingMessage,f=i.NoOptionsMessage,p=i.Option,m=this.commonProps,v=this.state.focusedOption,g=this.props,h=g.captureMenuScroll,y=g.inputValue,b=g.isLoading,w=g.loadingMessage,C=g.minMenuHeight,E=g.maxMenuHeight,_=g.menuIsOpen,N=g.menuPlacement,R=g.menuPosition,k=g.menuPortalTarget,F=g.menuShouldBlockScroll,W=g.menuShouldScrollIntoView,B=g.noOptionsMessage,U=g.onMenuScrollToTop,Y=g.onMenuScrollToBottom;if(!_)return null;var L=function(P,S){var T=P.type,j=P.data,z=P.isDisabled,H=P.isSelected,Q=P.label,ce=P.value,Ee=v===j,ee=z?void 0:function(){return n.onOptionHover(j)},pt=z?void 0:function(){return n.selectOption(j)},te="".concat(n.getElementId("option"),"-").concat(S),Ve={id:te,onClick:pt,onMouseMove:ee,onMouseOver:ee,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:H};return ne.createElement(p,me({},m,{innerProps:Ve,data:j,isDisabled:z,isSelected:H,key:te,label:Q,type:T,value:ce,isFocused:Ee,innerRef:Ee?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(P.data,"menu"))},Z;if(this.hasOptions())Z=this.getCategorizedOptions().map(function(M){if(M.type==="group"){var P=M.data,S=M.options,T=M.index,j="".concat(n.getElementId("group"),"-").concat(T),z="".concat(j,"-heading");return ne.createElement(o,me({},m,{key:j,data:P,options:S,Heading:s,headingProps:{id:z,data:M.data},label:n.formatGroupLabel(M.data)}),M.options.map(function(H){return L(H,"".concat(T,"-").concat(H.index))}))}else if(M.type==="option")return L(M,"".concat(M.index))});else if(b){var J=w({inputValue:y});if(J===null)return null;Z=ne.createElement(d,m,J)}else{var se=B({inputValue:y});if(se===null)return null;Z=ne.createElement(f,m,se)}var V={minMenuHeight:C,maxMenuHeight:E,menuPlacement:N,menuPosition:R,menuShouldScrollIntoView:W},D=ne.createElement(Vz,me({},m,V),function(M){var P=M.ref,S=M.placerProps,T=S.placement,j=S.maxHeight;return ne.createElement(u,me({},m,V,{innerRef:P,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:b,placement:T}),ne.createElement(bJ,{captureEnabled:h,onTopArrive:U,onBottomArrive:Y,lockEnabled:F},function(z){return ne.createElement(c,me({},m,{innerRef:function(Q){n.getMenuListRef(Q),z(Q)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:n.getElementId("listbox")},isLoading:b,maxHeight:j,focusedOption:v}),Z)}))});return k||R==="fixed"?ne.createElement(l,me({},m,{appendTo:k,controlElement:this.controlRef,menuPlacement:N,menuPosition:R}),D):D}},{key:"renderFormField",value:function(){var n=this,i=this.props,o=i.delimiter,s=i.isDisabled,u=i.isMulti,c=i.name,l=i.required,d=this.state.selectValue;if(l&&!this.hasValue()&&!s)return ne.createElement($J,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(u)if(o){var f=d.map(function(v){return n.getOptionValue(v)}).join(o);return ne.createElement("input",{name:c,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(v,g){return ne.createElement("input",{key:"i-".concat(g),name:c,type:"hidden",value:n.getOptionValue(v)})}):ne.createElement("input",{name:c,type:"hidden",value:""});return ne.createElement("div",null,p)}else{var m=d[0]?this.getOptionValue(d[0]):"";return ne.createElement("input",{name:c,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,i=this.state,o=i.ariaSelection,s=i.focusedOption,u=i.focusedValue,c=i.isFocused,l=i.selectValue,d=this.getFocusableOptions();return ne.createElement(oJ,me({},n,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:u,isFocused:c,selectValue:l,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),i=n.Control,o=n.IndicatorsContainer,s=n.SelectContainer,u=n.ValueContainer,c=this.props,l=c.className,d=c.id,f=c.isDisabled,p=c.menuIsOpen,m=this.state.isFocused,v=this.commonProps=this.getCommonProps();return ne.createElement(s,me({},v,{className:l,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),ne.createElement(i,me({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:p}),ne.createElement(u,me({},v,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),ne.createElement(o,me({},v,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,i){var o=i.prevProps,s=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,l=i.isFocused,d=i.prevWasFocused,f=i.instancePrefix,p=n.options,m=n.value,v=n.menuIsOpen,g=n.inputValue,h=n.isMulti,y=ww(m),b={};if(o&&(m!==o.value||p!==o.options||v!==o.menuIsOpen||g!==o.inputValue)){var w=v?BJ(n,y):[],C=v?qw(Xu(n,y),"".concat(f,"-option")):[],E=s?LJ(i,y):null,_=GJ(i,w),N=Bf(C,_);b={selectValue:y,focusedOption:_,focusedOptionId:N,focusableOptionsWithIds:C,focusedValue:E,clearFocusValueOnUpdate:!1}}var R=u!=null&&n!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},k=c,F=l&&d;return l&&!F&&(k={value:Hu(h,y,y[0]||null),options:y,action:"initial-input-focus"},F=!d),(c==null?void 0:c.action)==="initial-input-focus"&&(k=null),he(he(he({},b),R),{},{prevProps:n,ariaSelection:k,prevWasFocused:F})}}]),r}(I.Component);a1.defaultProps=jJ;var WJ=I.forwardRef(function(e,t){var r=uX(e);return ne.createElement(a1,me({ref:t},r))}),YJ=WJ;const UJ={option:(e,t)=>({...e}),control:e=>({...e,borderRadius:"0.5rem",height:"3rem"}),singleValue:(e,t)=>{const r=t.isDisabled?.5:1;return{...e,opacity:r,transition:"opacity 300ms"}},multiValue:(e,{data:t})=>({...e,backgroundColor:"#560DF8",color:"white"}),multiValueLabel:(e,{data:t})=>({...e,color:"white"})},Lf=new Set(["number","integer"]);function Gf(e,t,r){const{enum:a,type:n,items:i}=e;if(t==="")return r&&r.emptyValue!==void 0?r.emptyValue:void 0;if(n==="array"&&i&&Lf.has(Kn(i,"type")))return t.map(Ln);if(n==="boolean")return t==="true";if(Lf.has(n))return Ln(t);if(Array.isArray(a)){if(a.every(o=>Lf.has(En(o))))return Ln(t);if(a.every(o=>En(o)==="boolean"))return t==="true"}return t}function HJ({schema:e,id:t,options:r,name:a,value:n,disabled:i,readonly:o,multiple:s=!1,autofocus:u=!1,onBlur:c,onFocus:l,onChange:d}){const{enumOptions:f,enumDisabled:p}=r,m=I.useCallback(()=>l(t,Gf(e,n,r)),[l,t,e,s,r]),v=I.useCallback(()=>c(t,Gf(e,n,r)),[c,t,e,s,r]),g=I.useCallback(b=>{let w;if(s&&Array.isArray(b))w=b.map(C=>C.value);else{const C=b;w=C==null?void 0:C.value}return d(Gf(e,w,r))},[d,e,s,r]),h=b=>(f==null?void 0:f.find(w=>w.value===b))||{label:"",value:""},y=()=>{let b;return s&&Array.isArray(n)?b=n.map(w=>h(w.toString())):n&&(b=h(n.toString())),b};return $.jsx(YJ,{id:t,instanceId:t,isMulti:s,name:a,value:y(),isDisabled:i||o,autoFocus:u,options:f,onChange:g,onBlur:v,onFocus:m,styles:UJ})}function i1({id:e,name:t,options:r={},placeholder:a,value:n,required:i,disabled:o,readonly:s,autofocus:u=!1,onChange:c,onBlur:l,onFocus:d}){const f=I.useCallback(({target:{value:v}})=>c(v===""?r.emptyValue:v),[c,r.emptyValue]),p=I.useCallback(({target:{value:v}})=>l(e,v),[l,e]),m=I.useCallback(({target:{value:v}})=>d(e,v),[e,d]);return $.jsx("textarea",{id:e,name:t,className:"textarea textarea-bordered",value:n||"",placeholder:a,required:i,disabled:o,readOnly:s,autoFocus:u,rows:r.rows,onBlur:p,onFocus:m,onChange:f})}i1.defaultProps={autofocus:!1,options:{}};function XJ(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{...e})}function zJ(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"url",...e})}function ZJ(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"number",...e})}const JJ={PasswordWidget:eX,RadioWidget:tX,UpDownWidget:ZJ,RangeWidget:rX,SelectWidget:HJ,TextWidget:XJ,DateWidget:U5,DateTimeWidget:H5,AltDateWidget:qW,AltDateTimeWidget:KW,EmailWidget:X5,URLWidget:zJ,TextareaWidget:i1,HiddenWidget:Q5,ColorWidget:n9,FileWidget:K5,CheckboxWidget:QW,CheckboxesWidget:r9};function qJ(e){const{schema:t,idSchema:r,description:a,registry:n,uiSchema:i}=e;if(!a||!i)return null;const o=fe(i),s=pe("DescriptionFieldTemplate",n,o),u=`${r.$id}__description`;return $.jsx(s,{schema:t,id:u,description:a,registry:n})}function KJ(e){const{children:t,className:r,disabled:a,hasToolbar:n,hasMoveDown:i,hasMoveUp:o,hasRemove:s,index:u,onDropIndexClick:c,onReorderClick:l,readonly:d,registry:f}=e,{MoveDownButton:p,MoveUpButton:m,RemoveButton:v}=f.templates.ButtonTemplates,g={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return $.jsxs("div",{className:r,children:[$.jsx("div",{className:n?"col-xs-9":"col-xs-12",children:t}),n&&$.jsx("div",{className:"col-xs-3 array-item-toolbox",children:$.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||i)&&$.jsx(m,{registry:f,style:g,disabled:a||d||!o,onClick:l(u,u-1)}),(o||i)&&$.jsx(p,{registry:f,style:g,disabled:a||d||!i,onClick:l(u,u+1)}),s&&$.jsx(v,{registry:f,style:g,disabled:a||d,onClick:c(u)})]})})]})}function QJ(e){const{canAdd:t,className:r,disabled:a,idSchema:n,uiSchema:i,items:o,onAddClick:s,readonly:u,registry:c,required:l,schema:d,title:f}=e,p=fe(i),m=pe("ArrayFieldDescriptionTemplate",c,p),v=pe("ArrayFieldItemTemplate",c,p),g=pe("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:h}}=c.templates;return $.jsxs("fieldset",{className:r,id:n.$id,children:[$.jsx(g,{schema:d,idSchema:n,title:p.title||f,required:l,uiSchema:i,registry:c}),(p.description||d.description)&&$.jsx(m,{schema:d,idSchema:n,description:p.description||d.description,uiSchema:i,registry:c}),$.jsx("div",{className:"row array-item-list",children:o&&o.map(({key:y,...b})=>$.jsx(v,{...b},y))}),t&&$.jsx(h,{registry:c,className:"array-item-add",onClick:s,disabled:a||u})]})}function e6(e){const{schema:t,idSchema:r,title:a,uiSchema:n,required:i,registry:o}=e;if(!a)return null;const s=fe(n),u=pe("TitleFieldTemplate",o,s),c=`${r.$id}__title`;return $.jsx(u,{schema:t,id:c,title:a,required:i,uiSchema:n,registry:o})}function t6(e){const{id:t,value:r,readonly:a,disabled:n,autofocus:i,onBlur:o,onFocus:s,onChange:u,options:c,schema:l,uiSchema:d,formContext:f,registry:p,rawErrors:m,type:v,...g}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const h={...g,...Uy(l,v,c)};let y;h.type==="number"||h.type==="integer"?y=r||r===0?r:"":y=r??"";const b=I.useCallback(({target:{value:E}})=>u(E===""?c.emptyValue:E),[u,c]),w=I.useCallback(({target:{value:E}})=>o(t,E),[o,t]),C=I.useCallback(({target:{value:E}})=>s(t,E),[s,t]);return $.jsxs($.Fragment,{children:[$.jsx("input",{id:t,className:"input input-bordered",readOnly:a,disabled:n,autoFocus:i,value:y,...h,list:l.examples?`examples_${t}`:void 0,onChange:b,onBlur:w,onFocus:C},t),Array.isArray(l.examples)&&$.jsx("datalist",{id:`examples_${t}`,children:[...new Set(l.examples.concat(l.default?[l.default]:[]))].map(E=>$.jsx("option",{value:E},E))},`datalist_${t}`)]})}function r6({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Xy(e);return r?null:$.jsx("div",{children:$.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className}`,children:t})})}function Zu(e){const{iconType:t="default",icon:r,className:a,...n}=e;return $.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...n,children:$.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function n6(e){return $.jsx(Zu,{title:"Move down",className:"array-item-move-down",...e,icon:"arrow-down"})}function a6(e){return $.jsx(Zu,{title:"Move up",className:"array-item-move-up",...e,icon:"arrow-up"})}function i6(e){return $.jsx(Zu,{title:"Remove",className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function o6({registry:e,className:t,onClick:r,disabled:a}){return $.jsx("div",{className:"row",children:$.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${t}`,children:$.jsx(Zu,{registry:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:"Add",onClick:r,disabled:a})})})}const s6={SubmitButton:r6,AddButton:o6,MoveDownButton:n6,MoveUpButton:a6,RemoveButton:i6};function u6(e){const{id:t,description:r}=e;return r?typeof r=="string"?$.jsx("p",{id:t,className:"field-description",children:r}):$.jsx("div",{id:t,className:"field-description",children:r}):null}function c6({errors:e}){return $.jsxs("div",{className:"panel panel-danger errors",children:[$.jsx("div",{className:"panel-heading",children:$.jsx("h3",{className:"panel-title",children:"Errors"})}),$.jsx("ul",{className:"list-group",children:e.map((t,r)=>$.jsx("li",{className:"list-group-item text-danger",children:t.stack},r))})]})}const l6="*";function o1(e){const{label:t,required:r,id:a}=e;return t?$.jsxs("label",{className:"justify-start gap-1 label",htmlFor:a,children:[$.jsx("span",{className:"label-text",children:t}),r&&$.jsx("span",{className:"required",children:l6})]}):null}function d6(e){const{id:t,classNames:r,disabled:a,label:n,onKeyChange:i,onDropPropertyClick:o,readonly:s,required:u,schema:c,children:l,registry:d}=e,{RemoveButton:f}=d.templates.ButtonTemplates,p=`${n} Key`;return Gn in c?$.jsx("div",{className:r,children:$.jsxs("div",{className:"row",children:[$.jsx("div",{className:"form-additional",children:$.jsxs("div",{className:"form-control",children:[$.jsx(o1,{label:p,required:u,id:`${t}-key`}),$.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:v=>i(v.target.value),defaultValue:n})]})}),$.jsx("div",{className:"form-additional form-control",children:l}),$.jsx("div",{className:"col-xs-2",children:$.jsx(f,{registry:d,className:"array-item-remove btn-block",style:{border:"0"},disabled:a||s,onClick:o(n)})})]})}):$.jsx("div",{className:r,children:l})}function f6(e){const{id:t,label:r,children:a,errors:n,help:i,description:o,hidden:s,required:u,displayLabel:c}=e;return s?$.jsx("div",{className:"hidden",children:a}):$.jsxs(d6,{...e,children:[c&&$.jsx(o1,{label:r,required:u,id:t}),c&&o?o:null,a,n,i]})}function p6(e){const{description:t,disabled:r,formData:a,idSchema:n,onAddClick:i,properties:o,readonly:s,registry:u,required:c,schema:l,title:d,uiSchema:f}=e,p=fe(f),m=pe("TitleFieldTemplate",u,p),v=pe("DescriptionFieldTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return $.jsxs("fieldset",{id:n.$id,children:[(p.title||d)&&$.jsx(m,{schema:l,id:`${n.$id}__title`,title:p.title||d,required:c,uiSchema:f,registry:u}),(p.description||t)&&$.jsx(v,{schema:l,id:`${n.$id}__description`,description:p.description||t,registry:u}),o.map(h=>h.content),Ph(l,f,a)&&$.jsx(g,{registry:u,className:"object-property-expand",onClick:i(l),disabled:r||s})]})}const h6="*";function m6(e){const{id:t,title:r,required:a}=e;return $.jsxs("legend",{id:t,children:[r,a&&$.jsx("span",{className:"required",children:h6})]})}function g6(e){const{schema:t,idSchema:r,reason:a}=e;return $.jsxs("div",{className:"unsupported-field",children:[$.jsxs("p",{children:["Unsupported field schema",r&&r.$id&&$.jsxs("span",{children:[" for"," field ",$.jsx("code",{children:r.$id})]}),a&&$.jsxs("em",{children:[": ",a]}),"."]}),t&&$.jsx("pre",{children:JSON.stringify(t,null,2)})]})}const v6={ArrayFieldDescriptionTemplate:qJ,ArrayFieldItemTemplate:KJ,ArrayFieldTemplate:QJ,ArrayFieldTitleTemplate:e6,ButtonTemplates:s6,BaseInputTemplate:t6,DescriptionFieldTemplate:u6,ErrorListTemplate:c6,FieldTemplate:f6,ObjectFieldTemplate:p6,TitleFieldTemplate:m6,UnsupportedFieldTemplate:g6};var y6=El,b6=zi,w6=Rs,s1=ir,C6=Wa;function S6(e,t,r,a){if(!s1(e))return e;t=b6(t,e);for(var n=-1,i=t.length,o=i-1,s=e;s!=null&&++n<i;){var u=C6(t[n]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(n!=o){var l=s[u];c=a?a(l,u,s):void 0,c===void 0&&(c=s1(l)?l:w6(t[n+1])?[]:{})}y6(s,u,c),s=s[u]}return e}var $6=S6,I6=$6;function E6(e,t,r){return e==null?e:I6(e,t,r)}var _6=E6;const mi=Xt(_6);function Vf(){return b$.nanoid()}function u1(e){return Array.isArray(e)?e.map(t=>({key:Vf(),item:t})):[]}function Po(e){return Array.isArray(e)?e.map(t=>t.item):[]}let A6=class extends I.Component{constructor(r){super(r);we(this,"_getNewFormDataRow",()=>{const{schema:r,registry:a}=this.props,{schemaUtils:n}=a;let i=r.items;return ro(r)&&xh(r)&&(i=r.additionalItems),n.getDefaultFormState(i)});we(this,"onAddClick",r=>{r&&r.preventDefault();const{onChange:a}=this.props,{keyedFormData:n}=this.state,i={key:Vf(),item:this._getNewFormDataRow()},o=[...n,i];this.setState({keyedFormData:o,updatedKeyedFormData:!0},()=>a(Po(o)))});we(this,"onAddIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n}=this.props,{keyedFormData:i}=this.state,o={key:Vf(),item:this._getNewFormDataRow()},s=[...i];s.splice(r,0,o),this.setState({keyedFormData:s,updatedKeyedFormData:!0},()=>n(Po(s)))});we(this,"onDropIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const c in i){const l=parseInt(c);l<r?mi(s,[l],i[c]):l>r&&mi(s,[l-1],i[c])}}const u=o.filter((c,l)=>l!==r);this.setState({keyedFormData:u,updatedKeyedFormData:!0},()=>n(Po(u),s))});we(this,"onReorderClick",(r,a)=>n=>{n&&(n.preventDefault(),n.currentTarget.blur());const{onChange:i,errorSchema:o}=this.props;let s;if(this.props.errorSchema){s={};for(const d in o){const f=parseInt(d);f==r?mi(s,[a],o[r]):f==a?mi(s,[r],o[a]):mi(s,[d],o[f])}}const{keyedFormData:u}=this.state;function c(){const d=u.slice();return d.splice(r,1),d.splice(a,0,u[r]),d}const l=c();this.setState({keyedFormData:l},()=>i(Po(l),s))});we(this,"onChangeForIndex",r=>(a,n)=>{const{formData:i,onChange:o,errorSchema:s}=this.props,c=(Array.isArray(i)?i:[]).map((l,d)=>r===d?typeof a>"u"?null:a:l);o(c,s&&s&&{...s,[r]:n})});we(this,"onSelectChange",r=>{const{onChange:a}=this.props;a(r)});const{formData:a=[]}=r,n=u1(a);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(r,a){if(a.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(r.formData)?r.formData:[],i=a.keyedFormData||[];return{keyedFormData:n.length===i.length?i.map((s,u)=>({key:s.key,item:n[u]})):u1(n)}}get itemTitle(){const{schema:r}=this.props;return Kn(r,[pr,"title"],Kn(r,[pr,"description"],"Item"))}isItemRequired(r){return Array.isArray(r.type)?!r.type.includes("null"):r.type!=="null"}canAddItem(r){const{schema:a,uiSchema:n}=this.props;let{addable:i}=fe(n);return i!==!1&&(a.maxItems!==void 0?i=r.length<a.maxItems:i=!0),i}render(){const{schema:r,uiSchema:a,idSchema:n,registry:i}=this.props,{schemaUtils:o}=i;if(!(pr in r)){const s=fe(a),u=pe("UnsupportedFieldTemplate",i,s);return $.jsx(u,{schema:r,idSchema:n,reason:"Missing items definition",registry:i})}return o.isMultiSelect(r)?this.renderMultiSelect():bd(a)?this.renderCustomWidget():ro(r)?this.renderFixedArray():o.isFilesArray(r,a)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:r,uiSchema:a={},errorSchema:n,idSchema:i,name:o,disabled:s=!1,readonly:u=!1,autofocus:c=!1,required:l=!1,registry:d,onBlur:f,onFocus:p,idPrefix:m,idSeparator:v="_",rawErrors:g}=this.props,{keyedFormData:h}=this.state,y=r.title===void 0?o:r.title,{schemaUtils:b,formContext:w}=d,C=fe(a),E=$n(r.items)?r.items:{},_=b.retrieveSchema(E),N=Po(this.state.keyedFormData),R={canAdd:this.canAddItem(N),items:h.map((F,W)=>{const{key:B,item:U}=F,Y=U,L=b.retrieveSchema(E,Y),Z=n?n[W]:void 0,J=i.$id+v+W,se=b.toIdSchema(L,J,Y,m,v);return this.renderArrayFieldItem({key:B,index:W,name:o&&`${o}-${W}`,canMoveUp:W>0,canMoveDown:W<N.length-1,itemSchema:L,itemIdSchema:se,itemErrorSchema:Z,itemData:Y,itemUiSchema:a.items,autofocus:c&&W===0,onBlur:f,onFocus:p,rawErrors:g})}),className:`field field-array field-array-of-${_.type}`,disabled:s,idSchema:i,uiSchema:a,onAddClick:this.onAddClick,readonly:u,required:l,schema:r,title:y,formContext:w,formData:N,rawErrors:g,registry:d},k=pe("ArrayFieldTemplate",d,C);return $.jsx(k,{...R})}renderCustomWidget(){const{schema:r,idSchema:a,uiSchema:n,disabled:i=!1,readonly:o=!1,autofocus:s=!1,required:u=!1,hideError:c,placeholder:l,onBlur:d,onFocus:f,formData:p=[],registry:m,rawErrors:v,name:g}=this.props,{widgets:h,formContext:y}=m,b=r.title||g,{widget:w,...C}=fe(n),E=kt(r,w,h);return $.jsx(E,{id:a&&a.$id,multiple:!0,name:g,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:C,schema:r,uiSchema:n,registry:m,value:p,disabled:i,readonly:o,hideError:c,required:u,label:b,placeholder:l,formContext:y,autofocus:s,rawErrors:v})}renderMultiSelect(){const{schema:r,idSchema:a,uiSchema:n,formData:i=[],disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,placeholder:l,onBlur:d,onFocus:f,registry:p,rawErrors:m,name:v}=this.props,{widgets:g,schemaUtils:h,formContext:y}=p,b=h.retrieveSchema(r.items,i),w=r.title||v,C=un(b),{widget:E="select",..._}=fe(n),N=kt(r,E,g);return $.jsx(N,{id:a&&a.$id,name:v,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:{..._,enumOptions:C},schema:r,uiSchema:n,registry:p,value:i,disabled:o,readonly:s,required:c,label:w,placeholder:l,formContext:y,autofocus:u,rawErrors:m})}renderFiles(){const{schema:r,uiSchema:a,idSchema:n,name:i,disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,onBlur:l,onFocus:d,registry:f,formData:p=[],rawErrors:m}=this.props,v=r.title||i,{widgets:g,formContext:h}=f,{widget:y="files",...b}=fe(a),w=kt(r,y,g);return $.jsx(w,{options:b,id:n&&n.$id,name:i,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:d,schema:r,uiSchema:a,title:v,value:p,disabled:o,readonly:s,required:c,registry:f,formContext:h,autofocus:u,rawErrors:m,label:""})}renderFixedArray(){const{schema:r,uiSchema:a={},formData:n=[],errorSchema:i,idPrefix:o,idSeparator:s="_",idSchema:u,name:c,disabled:l=!1,readonly:d=!1,autofocus:f=!1,required:p=!1,registry:m,onBlur:v,onFocus:g,rawErrors:h}=this.props,{keyedFormData:y}=this.state;let{formData:b=[]}=this.props;const w=r.title||c,C=fe(a),{schemaUtils:E,formContext:_}=m,R=($n(r.items)?r.items:[]).map((B,U)=>E.retrieveSchema(B,n[U])),k=$n(r.additionalItems)?E.retrieveSchema(r.additionalItems,n):null;(!b||b.length<R.length)&&(b=b||[],b=b.concat(new Array(R.length-b.length)));const F={canAdd:this.canAddItem(b)&&!!k,className:"field field-array field-array-fixed-items",disabled:l,idSchema:u,formData:n,items:y.map((B,U)=>{const{key:Y,item:L}=B,Z=L,J=U>=R.length,se=J&&$n(r.additionalItems)?E.retrieveSchema(r.additionalItems,Z):R[U],V=u.$id+s+U,D=E.toIdSchema(se,V,Z,o,s),M=J?a.additionalItems||{}:Array.isArray(a.items)?a.items[U]:a.items||{},P=i?i[U]:void 0;return this.renderArrayFieldItem({key:Y,index:U,name:c&&`${c}-${U}`,canRemove:J,canMoveUp:U>=R.length+1,canMoveDown:J&&U<b.length-1,itemSchema:se,itemData:Z,itemUiSchema:M,itemIdSchema:D,itemErrorSchema:P,autofocus:f&&U===0,onBlur:v,onFocus:g,rawErrors:h})}),onAddClick:this.onAddClick,readonly:d,required:p,registry:m,schema:r,uiSchema:a,title:w,formContext:_,rawErrors:h},W=pe("ArrayFieldTemplate",m,C);return $.jsx(W,{...F})}renderArrayFieldItem(r){const{key:a,index:n,name:i,canRemove:o=!0,canMoveUp:s=!0,canMoveDown:u=!0,itemSchema:c,itemData:l,itemUiSchema:d,itemIdSchema:f,itemErrorSchema:p,autofocus:m,onBlur:v,onFocus:g,rawErrors:h}=r,{disabled:y,hideError:b,idPrefix:w,idSeparator:C,readonly:E,uiSchema:_,registry:N,formContext:R}=this.props,{fields:{SchemaField:k}}=N,{orderable:F=!0,removable:W=!0}=fe(_),B={moveUp:F&&s,moveDown:F&&u,remove:W&&o,toolbar:!1};return B.toolbar=Object.keys(B).some(U=>B[U]),{children:$.jsx(k,{name:i,index:n,schema:c,uiSchema:d,formData:l,formContext:R,errorSchema:p,idPrefix:w,idSeparator:C,idSchema:f,required:this.isItemRequired(c),onChange:this.onChangeForIndex(n),onBlur:v,onFocus:g,registry:N,disabled:y,readonly:E,hideError:b,autofocus:m,rawErrors:h}),className:"array-item",disabled:y,hasToolbar:B.toolbar,hasMoveUp:B.moveUp,hasMoveDown:B.moveDown,hasRemove:B.remove,index:n,key:a,onAddIndexClick:this.onAddIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:E,registry:N}}};function O6(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,registry:o,required:s,disabled:u,readonly:c,autofocus:l,onChange:d,onFocus:f,onBlur:p,rawErrors:m}=e,{title:v}=t,{widgets:g,formContext:h}=o,{widget:y="checkbox",...b}=fe(a),w=kt(t,y,g);let C;if(Array.isArray(t.oneOf))C=un({oneOf:t.oneOf.map(E=>{if($n(E))return{...E,title:E.title||(E.const===!0?"Yes":"No")}}).filter(E=>E)});else{const E=t;t.enum=t.enum??[!0,!1],!E.enumNames&&t.enum&&t.enum.length===2&&t.enum.every(_=>typeof _=="boolean")?C=[{value:t.enum[0],label:t.enum[0]?"Yes":"No"},{value:t.enum[1],label:t.enum[1]?"Yes":"No"}]:C=un({enum:t.enum,enumNames:E.enumNames})}return $.jsx(w,{name:r,options:{...b,enumOptions:C},schema:t,uiSchema:a,id:n&&n.$id,onChange:d,onFocus:f,onBlur:p,label:v===void 0?r:v,value:i,required:s,disabled:u,readonly:c,registry:o,formContext:h,autofocus:l,rawErrors:m})}function T6(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++a<n;)i[a]=e[a+t];return i}var x6=T6,D6=Ws,P6=x6;function R6(e,t){return t.length<2?e:D6(e,P6(t,0,-1))}var N6=R6,k6=zi,M6=Bv,F6=N6,j6=Wa;function B6(e,t){return t=k6(t,e),e=F6(e,t),e==null||delete e[j6(M6(t))]}var c1=B6,L6=c1;function G6(e,t){return e==null?!0:L6(e,t)}var V6=G6;const l1=Xt(V6);let d1=class extends I.Component{constructor(r){super(r);we(this,"onOptionChange",r=>{const a=parseInt(r,10),{formData:n,onChange:i,options:o,registry:s}=this.props,{schemaUtils:u}=s,c=u.retrieveSchema(o[a],n);let l;if(En(n)==="object"&&(c.type==="object"||c.properties)){l=Object.assign({},n);const d=o.slice();d.splice(a,1);for(const f of d)if(f.properties)for(const p in f.properties)p in l&&l1(l,p)}i(u.getDefaultFormState(o[a],l)),this.setState({selectedOption:parseInt(r,10)})});const{formData:a,options:n}=this.props;this.state={selectedOption:this.getMatchingOption(0,a,n)}}componentDidUpdate(r,a){const{formData:n,options:i,idSchema:o}=this.props,{selectedOption:s}=this.state;if(!Ue(n,r.formData)&&o.$id===r.idSchema.$id){const u=this.getMatchingOption(s,n,i);if(!a||u===s)return;this.setState({selectedOption:u})}}getMatchingOption(r,a,n){const{schemaUtils:i}=this.props.registry,o=i.getMatchingOption(a,n);return o!==0?o:r||0}render(){const{name:r,baseType:a,disabled:n=!1,readonly:i=!1,hideError:o=!1,errorSchema:s={},formData:u,formContext:c,idPrefix:l,idSeparator:d,idSchema:f,onBlur:p,onChange:m,onFocus:v,options:g,registry:h,uiSchema:y,schema:b}=this.props,{widgets:w,fields:C}=h,{SchemaField:E}=C,{selectedOption:_}=this.state,{widget:N="select",...R}=fe(y),k=kt({type:"number"},N,w),F=g[_]||null;let W;F&&(W=F.type?F:Object.assign({},F,{type:a}));const B=g.map((U,Y)=>({label:U.title||`Option ${Y+1}`,value:Y}));return $.jsxs("div",{className:"panel panel-default panel-body",children:[$.jsx("div",{className:"form-group",children:$.jsx(k,{id:`${f.$id}${b.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:p,onFocus:v,value:_,options:{enumOptions:B},registry:h,formContext:c,...R,label:""})}),F!==null&&$.jsx(E,{name:r,schema:W,uiSchema:y,errorSchema:s,idSchema:f,idPrefix:l,idSeparator:d,formData:u,formContext:c,onChange:m,onBlur:p,onFocus:v,registry:h,disabled:n,readonly:i,hideError:o})]})}};const W6=/\.([0-9]*0)*$/,Y6=/[0.]0*$/;function U6(e){const{registry:t,onChange:r,formData:a,value:n}=e,[i,o]=I.useState(n),{StringField:s}=t.fields;let u=a;const c=I.useCallback(l=>{o(l),`${l}`.charAt(0)==="."&&(l=`0${l}`);const d=typeof l=="string"&&l.match(W6)?Ln(l.replace(Y6,"")):Ln(l);r(d)},[r]);if(typeof i=="string"&&typeof u=="number"){const l=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");i.match(l)&&(u=i)}return $.jsx(s,{...e,formData:u,onChange:c})}var H6=Object.prototype,X6=H6.hasOwnProperty;function z6(e,t){return e!=null&&X6.call(e,t)}var Z6=z6,J6=Z6,q6=Sv;function K6(e,t){return e!=null&&q6(e,t,J6)}var Q6=K6;const eq=Xt(Q6);let tq=class extends I.Component{constructor(){super(...arguments);we(this,"state",{wasPropertyKeyModified:!1,additionalProperties:{}});we(this,"onPropertyChange",(r,a=!1)=>(n,i)=>{const{formData:o,onChange:s,errorSchema:u}=this.props;n===void 0&&a&&(n="");const c={...o,[r]:n};s(c,u&&u&&{...u,[r]:i})});we(this,"onDropPropertyClick",r=>a=>{a.preventDefault();const{onChange:n,formData:i}=this.props,o={...i};l1(o,r),n(o)});we(this,"getAvailableKey",(r,a)=>{const{uiSchema:n}=this.props,{duplicateKeySuffixSeparator:i="-"}=fe(n);let o=0,s=r;for(;s in a;)s=`${r}${i}${++o}`;return s});we(this,"onKeyChange",r=>(a,n)=>{if(r===a)return;const{formData:i,onChange:o,errorSchema:s}=this.props;a=this.getAvailableKey(a,i);const u={...i},c={[r]:a},l=Object.keys(u).map(f=>({[c[f]||f]:u[f]})),d=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(d,s&&s&&{...s,[a]:n})});we(this,"handleAddClick",r=>()=>{if(!$n(r.additionalProperties))return;const{formData:a,onChange:n,registry:i}=this.props;let o=r.additionalProperties.type;const s={...a};if(ct in r.additionalProperties){const{schemaUtils:c}=i;o=c.retrieveSchema({$ref:r.additionalProperties[ct]},a).type}const u=this.getAvailableKey("newKey",s);mi(s,u,this.getDefaultValue(o)),n(s)})}isRequired(r){const{schema:a}=this.props;return Array.isArray(a.required)&&a.required.indexOf(r)!==-1}getDefaultValue(r){switch(r){case"string":return"New Value";case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return"New Value"}}render(){const{schema:r,uiSchema:a={},formData:n,errorSchema:i,idSchema:o,name:s,required:u=!1,disabled:c=!1,readonly:l=!1,hideError:d,idPrefix:f,idSeparator:p,onBlur:m,onFocus:v,registry:g}=this.props,{fields:h,formContext:y,schemaUtils:b}=g,{SchemaField:w}=h,C=b.retrieveSchema(r,n),E=fe(a),{properties:_={}}=C,N=C.title===void 0?s:C.title,R=E.description||C.description;let k;try{const B=Object.keys(_);k=nb(B,E.order)}catch(B){return $.jsxs("div",{children:[$.jsxs("p",{className:"config-error",style:{color:"red"},children:["Invalid ",s||"root"," object field configuration:",$.jsx("em",{children:B.message}),"."]}),$.jsx("pre",{children:JSON.stringify(C)})]})}const F=pe("ObjectFieldTemplate",g,E),W={title:E.title||N,description:R,properties:k.map(B=>{const U=eq(C,[at,B,Gn]),Y=U?a.additionalProperties:a[B],L=fe(Y).widget==="hidden",Z=Kn(o,[B],{});return{content:$.jsx(w,{name:B,required:this.isRequired(B),schema:Kn(C,[at,B],{}),uiSchema:Y,errorSchema:Kn(i,B),idSchema:Z,idPrefix:f,idSeparator:p,formData:Kn(n,B),formContext:y,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(B),onChange:this.onPropertyChange(B,U),onBlur:m,onFocus:v,registry:g,disabled:c,readonly:l,hideError:d,onDropPropertyClick:this.onDropPropertyClick},B),name:B,readonly:l,disabled:c,required:u,hidden:L}}),readonly:l,disabled:c,required:u,idSchema:o,uiSchema:a,schema:C,formData:n,formContext:y,registry:g};return $.jsx(F,{...W,onAddClick:this.handleAddClick})}};var rq=Ji;function nq(e){return rq(e)?void 0:e}var aq=nq,iq=ud,oq=Ov,sq=xv;function uq(e){return sq(oq(e,void 0,iq),e+"")}var cq=uq,lq=In,dq=Jg,fq=c1,pq=zi,hq=Ba,mq=aq,gq=cq,vq=Ag,yq=1,bq=2,wq=4,Cq=gq(function(e,t){var r={};if(e==null)return r;var a=!1;t=lq(t,function(i){return i=pq(i,e),a||(a=i.length>1),i}),hq(e,vq(e),r),a&&(r=dq(r,yq|bq|wq,mq));for(var n=t.length;n--;)fq(r,t[n]);return r}),Sq=Cq;const f1=Xt(Sq),$q={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Iq(e,t,r,a){const n=t.field,{fields:i}=a;if(typeof n=="function")return n;if(typeof n=="string"&&n in i)return i[n];const o=Tr(e),s=Array.isArray(o)?o[0]:o||"",u=$q[s];return!u&&(e.anyOf||e.oneOf)?()=>null:u in i?i[u]:()=>{const c=pe("UnsupportedFieldTemplate",a,t);return $.jsx(c,{schema:e,idSchema:r,reason:`Unknown field type ${e.type}`,registry:a})}}function Eq(e){const{id:t,help:r}=e;return r?typeof r=="string"?$.jsx("p",{id:t,className:"help-block",children:r}):$.jsx("div",{id:t,className:"help-block",children:r}):null}function _q(e){const{errors:t=[]}=e;return t.length===0?null:$.jsx("div",{children:$.jsx("ul",{className:"error-detail bs-callout bs-callout-info",children:t.filter(r=>!!r).map((r,a)=>$.jsx("li",{className:"text-danger",children:r},a))})})}function Aq(e){const{schema:t,idSchema:r,uiSchema:a,formData:n,errorSchema:i,idPrefix:o,idSeparator:s,name:u,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,registry:p,wasPropertyKeyModified:m=!1}=e,{formContext:v,schemaUtils:g}=p,h=fe(a),y=pe("FieldTemplate",p,h),b=pe("DescriptionFieldTemplate",p,h),w=g.retrieveSchema(t,n),C=Dr(g.toIdSchema(w,r.$id,n,o,s),r),E=Iq(w,h,C,p),_=!!(e.disabled||h.disabled),N=!!(e.readonly||h.readonly||e.schema.readOnly||w.readOnly),R=h.hideError,k=R===void 0?e.hideError:!!R,F=!!(e.autofocus||h.autofocus);if(Object.keys(w).length===0)return null;const W=g.getDisplayLabel(w,a),{__errors:B,...U}=i||{},Y=f1(a,["ui:classNames","classNames"]);"ui:options"in Y&&(Y["ui:options"]=f1(Y["ui:options"],["classNames"]));const L=$.jsx(E,{...e,idSchema:C,schema:w,uiSchema:Y,disabled:_,readonly:N,hideError:k,autofocus:F,errorSchema:U,formContext:v,rawErrors:B}),Z=C[rn];let J;m?J=u:J=h.title||e.schema.title||w.title||u;const se=h.description||e.schema.description||w.description||"",V=B,D=h.help,M=h.widget==="hidden",P=["form-control","mb-2","field",`field-${w.type}`];!k&&V&&V.length>0&&P.push("field-error has-error has-danger"),a!=null&&a.classNames&&(console.warn("'uiSchema.classNames' is deprecated and may be removed in a major release; Use 'ui:classNames' instead."),P.push(a.classNames)),h.classNames&&P.push(h.classNames);const S={description:$.jsx(b,{schema:w,id:`${Z}__description`,description:se,registry:p}),rawDescription:se,help:$.jsx(Eq,{id:`${Z}__help`,help:D}),rawHelp:typeof D=="string"?D:void 0,errors:k?void 0:$.jsx(_q,{errors:V}),rawErrors:k?void 0:V,id:Z,label:J,hidden:M,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,disabled:_,readonly:N,hideError:k,displayLabel:W,classNames:P.join(" ").trim(),formContext:v,formData:n,schema:w,uiSchema:a,registry:p},T=p.fields.AnyOfField,j=p.fields.OneOfField;return $.jsx(y,{...S,children:$.jsxs($.Fragment,{children:[L,w.anyOf&&!(a!=null&&a["ui:field"])&&!g.isSelect(w)&&$.jsx(T,{name:u,disabled:_,readonly:N,hideError:k,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:C,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.anyOf.map(z=>g.retrieveSchema($n(z)?z:{},n)),baseType:w.type,registry:p,schema:w,uiSchema:a}),w.oneOf&&!(a!=null&&a["ui:field"])&&!g.isSelect(w)&&$.jsx(j,{name:u,disabled:_,readonly:N,hideError:k,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:C,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.oneOf.map(z=>g.retrieveSchema($n(z)?z:{},n)),baseType:w.type,registry:p,schema:w,uiSchema:a})]})})}let Oq=class extends I.Component{shouldComponentUpdate(t){return!Ue(this.props,t)}render(){return $.jsx(Aq,{...this.props})}};function Tq(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,required:o,disabled:s=!1,readonly:u=!1,autofocus:c=!1,onChange:l,onBlur:d,onFocus:f,registry:p,rawErrors:m}=e,{title:v,format:g}=t,{widgets:h,formContext:y,schemaUtils:b}=p,w=b.isSelect(t)?un(t):void 0;let C=w?"select":"text";g&&qy(t,g,h)&&(C=g);const{widget:E=C,placeholder:_="",...N}=fe(a),R=kt(t,E,h);return $.jsx(R,{name:r,options:{...N,enumOptions:w},schema:t,uiSchema:a,id:n&&n.$id,label:v===void 0?r:v,value:i,onChange:l,onBlur:d,onFocus:f,required:o,disabled:s,readonly:u,formContext:y,autofocus:c,registry:p,placeholder:_,rawErrors:m})}function xq(e){const{formData:t,onChange:r}=e;return I.useEffect(()=>{t===void 0&&r(null)},[t,r]),null}const Dq={AnyOfField:d1,ArrayField:A6,BooleanField:O6,NumberField:U6,ObjectField:tq,OneOfField:d1,SchemaField:Oq,StringField:Tq,NullField:xq};function Pq(e,t){return ob(e,t,function(r,a){return Xm(e,a)})}var p1=Fm(function(e,t){return e==null?{}:Pq(e,t)}),Rq=0;function Nq(e){var t=++Rq;return al(e)+t}function Wf(){return Nq("rjsf-array-item-")}function h1(e){return Array.isArray(e)?e.map(t=>({key:Wf(),item:t})):[]}function Ro(e){return Array.isArray(e)?e.map(t=>t.item):[]}class kq extends I.Component{constructor(r){super(r);we(this,"_getNewFormDataRow",()=>{const{schema:r,registry:a}=this.props,{schemaUtils:n}=a;let i=r.items;return ro(r)&&xh(r)&&(i=r.additionalItems),n.getDefaultFormState(i)});we(this,"onAddClick",r=>{this._handleAddClick(r)});we(this,"onAddIndexClick",r=>a=>{this._handleAddClick(a,r)});we(this,"onCopyIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const l in i){const d=parseInt(l);d<=r?Et(s,[d],i[l]):d>r&&Et(s,[d+1],i[l])}}const u={key:Wf(),item:Yy(o[r].item)},c=[...o];r!==void 0?c.splice(r+1,0,u):c.push(u),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(Ro(c),s))});we(this,"onDropIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const c in i){const l=parseInt(c);l<r?Et(s,[l],i[c]):l>r&&Et(s,[l-1],i[c])}}const u=o.filter((c,l)=>l!==r);this.setState({keyedFormData:u,updatedKeyedFormData:!0},()=>n(Ro(u),s))});we(this,"onReorderClick",(r,a)=>n=>{n&&(n.preventDefault(),n.currentTarget.blur());const{onChange:i,errorSchema:o}=this.props;let s;if(o){s={};for(const d in o){const f=parseInt(d);f==r?Et(s,[a],o[r]):f==a?Et(s,[r],o[a]):Et(s,[d],o[f])}}const{keyedFormData:u}=this.state;function c(){const d=u.slice();return d.splice(r,1),d.splice(a,0,u[r]),d}const l=c();this.setState({keyedFormData:l},()=>i(Ro(l),s))});we(this,"onChangeForIndex",r=>(a,n,i)=>{const{formData:o,onChange:s,errorSchema:u}=this.props,l=(Array.isArray(o)?o:[]).map((d,f)=>r===f?typeof a>"u"?null:a:d);s(l,u&&u&&{...u,[r]:n},i)});we(this,"onSelectChange",r=>{const{onChange:a,idSchema:n}=this.props;a(r,void 0,n&&n.$id)});const{formData:a=[]}=r,n=h1(a);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(r,a){if(a.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(r.formData)?r.formData:[],i=a.keyedFormData||[];return{keyedFormData:n.length===i.length?i.map((s,u)=>({key:s.key,item:n[u]})):h1(n)}}get itemTitle(){const{schema:r,registry:a}=this.props,{translateString:n}=a;return ue(r,[pr,"title"],ue(r,[pr,"description"],n(He.ArrayItemTitle)))}isItemRequired(r){return Array.isArray(r.type)?!r.type.includes("null"):r.type!=="null"}canAddItem(r){const{schema:a,uiSchema:n,registry:i}=this.props;let{addable:o}=fe(n,i.globalUiOptions);return o!==!1&&(a.maxItems!==void 0?o=r.length<a.maxItems:o=!0),o}_handleAddClick(r,a){r&&r.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const l in i){const d=parseInt(l);a===void 0||d<a?Et(s,[d],i[l]):d>=a&&Et(s,[d+1],i[l])}}const u={key:Wf(),item:this._getNewFormDataRow()},c=[...o];a!==void 0?c.splice(a,0,u):c.push(u),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(Ro(c),s))}render(){const{schema:r,uiSchema:a,idSchema:n,registry:i}=this.props,{schemaUtils:o,translateString:s}=i;if(!(pr in r)){const u=fe(a),c=pe("UnsupportedFieldTemplate",i,u);return $.jsx(c,{schema:r,idSchema:n,reason:s(He.MissingItems),registry:i})}return o.isMultiSelect(r)?this.renderMultiSelect():bd(a)?this.renderCustomWidget():ro(r)?this.renderFixedArray():o.isFilesArray(r,a)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:r,uiSchema:a={},errorSchema:n,idSchema:i,name:o,title:s,disabled:u=!1,readonly:c=!1,autofocus:l=!1,required:d=!1,registry:f,onBlur:p,onFocus:m,idPrefix:v,idSeparator:g="_",rawErrors:h}=this.props,{keyedFormData:y}=this.state,b=r.title||s||o,{schemaUtils:w,formContext:C}=f,E=fe(a),_=qe(r.items)?r.items:{},N=w.retrieveSchema(_),R=Ro(this.state.keyedFormData),k=this.canAddItem(R),F={canAdd:k,items:y.map((B,U)=>{const{key:Y,item:L}=B,Z=L,J=w.retrieveSchema(_,Z),se=n?n[U]:void 0,V=i.$id+g+U,D=w.toIdSchema(J,V,Z,v,g);return this.renderArrayFieldItem({key:Y,index:U,name:o&&`${o}-${U}`,title:b?`${b}-${U+1}`:void 0,canAdd:k,canMoveUp:U>0,canMoveDown:U<R.length-1,itemSchema:J,itemIdSchema:D,itemErrorSchema:se,itemData:Z,itemUiSchema:a.items,autofocus:l&&U===0,onBlur:p,onFocus:m,rawErrors:h,totalItems:y.length})}),className:`field field-array field-array-of-${N.type}`,disabled:u,idSchema:i,uiSchema:a,onAddClick:this.onAddClick,readonly:c,required:d,schema:r,title:b,formContext:C,formData:R,rawErrors:h,registry:f},W=pe("ArrayFieldTemplate",f,E);return $.jsx(W,{...F})}renderCustomWidget(){const{schema:r,idSchema:a,uiSchema:n,disabled:i=!1,readonly:o=!1,autofocus:s=!1,required:u=!1,hideError:c,placeholder:l,onBlur:d,onFocus:f,formData:p=[],registry:m,rawErrors:v,name:g}=this.props,{widgets:h,formContext:y,globalUiOptions:b,schemaUtils:w}=m,{widget:C,title:E,..._}=fe(n,b),N=kt(r,C,h),R=E??r.title??g,k=w.getDisplayLabel(r,n,b);return $.jsx(N,{id:a.$id,name:g,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:_,schema:r,uiSchema:n,registry:m,value:p,disabled:i,readonly:o,hideError:c,required:u,label:R,hideLabel:!k,placeholder:l,formContext:y,autofocus:s,rawErrors:v})}renderMultiSelect(){const{schema:r,idSchema:a,uiSchema:n,formData:i=[],disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,placeholder:l,onBlur:d,onFocus:f,registry:p,rawErrors:m,name:v}=this.props,{widgets:g,schemaUtils:h,formContext:y,globalUiOptions:b}=p,w=h.retrieveSchema(r.items,i),C=un(w,n),{widget:E="select",title:_,...N}=fe(n,b),R=kt(r,E,g),k=_??r.title??v,F=h.getDisplayLabel(r,n,b);return $.jsx(R,{id:a.$id,name:v,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:{...N,enumOptions:C},schema:r,uiSchema:n,registry:p,value:i,disabled:o,readonly:s,required:c,label:k,hideLabel:!F,placeholder:l,formContext:y,autofocus:u,rawErrors:m})}renderFiles(){const{schema:r,uiSchema:a,idSchema:n,name:i,disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,onBlur:l,onFocus:d,registry:f,formData:p=[],rawErrors:m}=this.props,{widgets:v,formContext:g,globalUiOptions:h,schemaUtils:y}=f,{widget:b="files",title:w,...C}=fe(a,h),E=kt(r,b,v),_=w??r.title??i,N=y.getDisplayLabel(r,a,h);return $.jsx(E,{options:C,id:n.$id,name:i,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:d,schema:r,uiSchema:a,value:p,disabled:o,readonly:s,required:c,registry:f,formContext:g,autofocus:u,rawErrors:m,label:_,hideLabel:!N})}renderFixedArray(){const{schema:r,uiSchema:a={},formData:n=[],errorSchema:i,idPrefix:o,idSeparator:s="_",idSchema:u,name:c,title:l,disabled:d=!1,readonly:f=!1,autofocus:p=!1,required:m=!1,registry:v,onBlur:g,onFocus:h,rawErrors:y}=this.props,{keyedFormData:b}=this.state;let{formData:w=[]}=this.props;const C=r.title||l||c,E=fe(a),{schemaUtils:_,formContext:N}=v,k=(qe(r.items)?r.items:[]).map((Y,L)=>_.retrieveSchema(Y,n[L])),F=qe(r.additionalItems)?_.retrieveSchema(r.additionalItems,n):null;(!w||w.length<k.length)&&(w=w||[],w=w.concat(new Array(k.length-w.length)));const W=this.canAddItem(w)&&!!F,B={canAdd:W,className:"field field-array field-array-fixed-items",disabled:d,idSchema:u,formData:n,items:b.map((Y,L)=>{const{key:Z,item:J}=Y,se=J,V=L>=k.length,D=(V&&qe(r.additionalItems)?_.retrieveSchema(r.additionalItems,se):k[L])||{},M=u.$id+s+L,P=_.toIdSchema(D,M,se,o,s),S=V?a.additionalItems||{}:Array.isArray(a.items)?a.items[L]:a.items||{},T=i?i[L]:void 0;return this.renderArrayFieldItem({key:Z,index:L,name:c&&`${c}-${L}`,title:C?`${C}-${L+1}`:void 0,canAdd:W,canRemove:V,canMoveUp:L>=k.length+1,canMoveDown:V&&L<w.length-1,itemSchema:D,itemData:se,itemUiSchema:S,itemIdSchema:P,itemErrorSchema:T,autofocus:p&&L===0,onBlur:g,onFocus:h,rawErrors:y,totalItems:b.length})}),onAddClick:this.onAddClick,readonly:f,required:m,registry:v,schema:r,uiSchema:a,title:C,formContext:N,errorSchema:i,rawErrors:y},U=pe("ArrayFieldTemplate",v,E);return $.jsx(U,{...B})}renderArrayFieldItem(r){const{key:a,index:n,name:i,canAdd:o,canRemove:s=!0,canMoveUp:u,canMoveDown:c,itemSchema:l,itemData:d,itemUiSchema:f,itemIdSchema:p,itemErrorSchema:m,autofocus:v,onBlur:g,onFocus:h,rawErrors:y,totalItems:b,title:w}=r,{disabled:C,hideError:E,idPrefix:_,idSeparator:N,readonly:R,uiSchema:k,registry:F,formContext:W}=this.props,{fields:{ArraySchemaField:B,SchemaField:U},globalUiOptions:Y}=F,L=B||U,{orderable:Z=!0,removable:J=!0,copyable:se=!1}=fe(k,Y),V={moveUp:Z&&u,moveDown:Z&&c,copy:se&&o,remove:J&&s,toolbar:!1};return V.toolbar=Object.keys(V).some(D=>V[D]),{children:$.jsx(L,{name:i,title:w,index:n,schema:l,uiSchema:f,formData:d,formContext:W,errorSchema:m,idPrefix:_,idSeparator:N,idSchema:p,required:this.isItemRequired(l),onChange:this.onChangeForIndex(n),onBlur:g,onFocus:h,registry:F,disabled:C,readonly:R,hideError:E,autofocus:v,rawErrors:y}),className:"array-item",disabled:C,canAdd:o,hasCopy:V.copy,hasToolbar:V.toolbar,hasMoveUp:V.moveUp,hasMoveDown:V.moveDown,hasRemove:V.remove,index:n,totalItems:b,key:a,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:R,registry:F,schema:l,uiSchema:f}}}function Mq(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,registry:o,required:s,disabled:u,readonly:c,hideError:l,autofocus:d,title:f,onChange:p,onFocus:m,onBlur:v,rawErrors:g}=e,{title:h}=t,{widgets:y,formContext:b,translateString:w,globalUiOptions:C}=o,{widget:E="checkbox",title:_,label:N=!0,...R}=fe(a,C),k=kt(t,E,y),F=w(He.YesLabel),W=w(He.NoLabel);let B;const U=_??h??f??r;if(Array.isArray(t.oneOf))B=un({oneOf:t.oneOf.map(Y=>{if(qe(Y))return{...Y,title:Y.title||(Y.const===!0?F:W)}}).filter(Y=>Y)},a);else{const Y=t,L=t.enum??[!0,!1];!Y.enumNames&&L.length===2&&L.every(Z=>typeof Z=="boolean")?B=[{value:L[0],label:L[0]?F:W},{value:L[1],label:L[1]?F:W}]:B=un({enum:L,enumNames:Y.enumNames},a)}return $.jsx(k,{options:{...R,enumOptions:B},schema:t,uiSchema:a,id:n.$id,name:r,onChange:p,onFocus:m,onBlur:v,label:U,hideLabel:!N,value:i,required:s,disabled:u,readonly:c,hideError:l,registry:o,formContext:b,autofocus:d,rawErrors:g})}class m1 extends I.Component{constructor(r){super(r);we(this,"onOptionChange",r=>{const{selectedOption:a,retrievedOptions:n}=this.state,{formData:i,onChange:o,registry:s}=this.props,{schemaUtils:u}=s,c=r!==void 0?parseInt(r,10):-1;if(c===a)return;const l=c>=0?n[c]:void 0,d=a>=0?n[a]:void 0;let f=u.sanitizeDataForNewSchema(l,d,i);l&&(f=u.getDefaultFormState(l,f,"excludeObjectChildren")),this.setState({selectedOption:c},()=>{o(f,void 0,this.getFieldId())})});const{formData:a,options:n,registry:{schemaUtils:i}}=this.props,o=n.map(s=>i.retrieveSchema(s,a));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,a,o)}}componentDidUpdate(r,a){const{formData:n,options:i,idSchema:o}=this.props,{selectedOption:s}=this.state;let u=this.state;if(!Ue(r.options,i)){const{registry:{schemaUtils:c}}=this.props,l=i.map(d=>c.retrieveSchema(d,n));u={selectedOption:s,retrievedOptions:l}}if(!Ue(n,r.formData)&&o.$id===r.idSchema.$id){const{retrievedOptions:c}=u,l=this.getMatchingOption(s,n,c);a&&l!==s&&(u={selectedOption:l,retrievedOptions:c})}u!==this.state&&this.setState(u)}getMatchingOption(r,a,n){const{schema:i,registry:{schemaUtils:o}}=this.props,s=Za(i);return o.getClosestMatchingOption(a,n,r,s)}getFieldId(){const{idSchema:r,schema:a}=this.props;return`${r.$id}${a.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:r,disabled:a=!1,errorSchema:n={},formContext:i,onBlur:o,onFocus:s,readonly:u,registry:c,schema:l,uiSchema:d}=this.props,{widgets:f,fields:p,translateString:m,globalUiOptions:v,schemaUtils:g}=c,{SchemaField:h}=p,{selectedOption:y,retrievedOptions:b}=this.state,{widget:w="select",placeholder:C,autofocus:E,autocomplete:_,title:N=l.title,...R}=fe(d,v),k=kt({type:"number"},w,f),F=ue(n,zt,[]),W=Ss(n,[zt]),B=g.getDisplayLabel(l,d,v),U=y>=0&&b[y]||null;let Y;if(U){const{required:D}=l;Y=D?sn({required:D},U):U}let L=[];Zt in l&&d&&Zt in d?Array.isArray(d[Zt])?L=d[Zt]:console.warn(`uiSchema.oneOf is not an array for "${N||r}"`):fr in l&&d&&fr in d&&(Array.isArray(d[fr])?L=d[fr]:console.warn(`uiSchema.anyOf is not an array for "${N||r}"`));let Z=d;y>=0&&L.length>y&&(Z=L[y]);const J=N?He.TitleOptionPrefix:He.OptionPrefix,se=N?[N]:[],V=b.map((D,M)=>{const{title:P=D.title}=fe(L[M]);return{label:P||m(J,se.concat(String(M+1))),value:M}});return $.jsxs("div",{className:"panel panel-default panel-body",children:[$.jsx("div",{className:"form-group",children:$.jsx(k,{id:this.getFieldId(),name:`${r}${l.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:s,disabled:a||Da(V),multiple:!1,rawErrors:F,errorSchema:W,value:y>=0?y:void 0,options:{enumOptions:V,...R},registry:c,formContext:i,placeholder:C,autocomplete:_,autofocus:E,label:N??r,hideLabel:!B,readonly:u})}),Y&&Y.type!=="null"&&$.jsx(h,{...this.props,schema:Y,uiSchema:Z})]})}}const Fq=/\.([0-9]*0)*$/,jq=/[0.]0*$/;function Bq(e){const{registry:t,onChange:r,formData:a,value:n}=e,[i,o]=I.useState(n),{StringField:s}=t.fields;let u=a;const c=I.useCallback((l,d,f)=>{o(l),`${l}`.charAt(0)==="."&&(l=`0${l}`);const p=typeof l=="string"&&l.match(Fq)?Ln(l.replace(jq,"")):Ln(l);r(p,d,f)},[r]);if(typeof i=="string"&&typeof u=="number"){const l=new RegExp(`^(${String(u).replace(".","\\.")})?\\.?0*$`);i.match(l)&&(u=i)}return $.jsx(s,{...e,formData:u,onChange:c})}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},da.apply(this,arguments)}const Lq=["children","options"],g1=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","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),{class:"className",for:"htmlFor"}),v1={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Gq=["style","script","pre"],Vq=["src","href","data","formAction","srcDoc","action"],Wq=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Yq=/\n{2,}$/,y1=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Uq=/^ *> ?/gm,Hq=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Xq=/^ {2,}\n/,zq=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,b1=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,w1=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Zq=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Jq=/^(?:\n *)*\n/,qq=/\r\n?/g,Kq=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Qq=/^\[\^([^\]]+)]/,eK=/\f/g,tK=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,rK=/^\s*?\[(x|\s)\]/,C1=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S1=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$1=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Yf=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,nK=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,I1=/^<!--[\s\S]*?(?:-->)/,aK=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uf=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,iK=/^\{.*\}$/,oK=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sK=/^<([^ >]+[:@\/][^ >]+)>/,uK=/-([a-z])?/gi,E1=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cK=/^[^\n]+(?: \n|\n{2,})/,lK=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dK=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,fK=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pK=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hK=/\t/g,mK=/(^ *\||\| *$)/g,gK=/^ *:-+: *$/,vK=/^ *:-+ *$/,yK=/^ *-+: *$/,Ju=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,qu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",bK=RegExp(`^([*_])\\1${Ju(1)}${qu}\\1\\1(?!\\1)`),wK=RegExp(`^([*_])${Ju(0)}${qu}\\1(?!\\1)`),CK=RegExp(`^(==)${Ju(0)}${qu}\\1`),SK=RegExp(`^(~~)${Ju(0)}${qu}\\1`),$K=/^(:[a-zA-Z0-9-_]+:)/,IK=/^\\([^0-9A-Za-z\s])/,EK=/\\([^0-9A-Za-z\s])/g,_K=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,AK=/^\n+/,OK=/^([ \t]*)/,TK=/(?:^|\n)( *)$/,Hf="(?:\\d+\\.)",Xf="(?:[*+-])";function _1(e){return"( *)("+(e===1?Hf:Xf)+") +"}const A1=_1(1),O1=_1(2);function T1(e){return RegExp("^"+(e===1?A1:O1))}const xK=T1(1),DK=T1(2);function x1(e){return RegExp("^"+(e===1?A1:O1)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Hf:Xf)+" )[^\\n]*)*(\\n|$)","gm")}const PK=x1(1),RK=x1(2);function D1(e){const t=e===1?Hf:Xf;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const P1=D1(1),R1=D1(2);function N1(e,t){const r=t===1,a=r?P1:R1,n=r?PK:RK,i=r?xK:DK;return{t:o=>i.test(o),o:gi(function(o,s){const u=TK.exec(s.prevCapture);return u&&(s.list||!s.inline&&!s.simple)?a.exec(o=u[1]+o):null}),i:1,u(o,s,u){const c=r?+o[2]:void 0,l=o[0].replace(Yq,`
|
|
74
|
+
`]))),vZ=function(t,r){var a=t.isFocused,n=t.size,i=t.theme,o=i.colors,s=i.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:a?o.neutral60:o.neutral20,padding:s*2})},Pf=function(t){var r=t.delay,a=t.offset;return de("span",{css:Ef({animation:"".concat(gZ," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},yZ=function(t){var r=t.innerProps,a=t.isRtl,n=t.size,i=n===void 0?4:n,o=pn(t,sZ);return de("div",me({},ut(he(he({},o),{},{innerProps:r,isRtl:a,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),de(Pf,{delay:0,offset:a}),de(Pf,{delay:160,offset:!0}),de(Pf,{delay:320,offset:!a}))},bZ=function(t,r){var a=t.isDisabled,n=t.isFocused,i=t.theme,o=i.colors,s=i.borderRadius,u=i.spacing;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:a?o.neutral5:o.neutral0,borderColor:a?o.neutral10:n?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:n?o.primary:o.neutral30}})},wZ=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,i=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return de("div",me({ref:i},ut(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":n,"control--menu-is-open":s}),o,{"aria-disabled":a||void 0}),r)},CZ=wZ,SZ=["data"],$Z=function(t,r){var a=t.theme.spacing;return r?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},IZ=function(t){var r=t.children,a=t.cx,n=t.getStyles,i=t.getClassNames,o=t.Heading,s=t.headingProps,u=t.innerProps,c=t.label,l=t.theme,d=t.selectProps;return de("div",me({},ut(t,"group",{group:!0}),u),de(o,me({},s,{selectProps:d,theme:l,getStyles:n,getClassNames:i,cx:a}),c),de("div",null,r))},EZ=function(t,r){var a=t.theme,n=a.colors,i=a.spacing;return he({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},_Z=function(t){var r=Sw(t);r.data;var a=pn(r,SZ);return de("div",me({},ut(t,"groupHeading",{"group-heading":!0}),a))},AZ=IZ,OZ=["innerRef","isDisabled","isHidden","inputClassName"],TZ=function(t,r){var a=t.isDisabled,n=t.value,i=t.theme,o=i.spacing,s=i.colors;return he(he({visibility:a?"hidden":"visible",transform:n?"translateZ(0)":""},xZ),r?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Nw={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},xZ={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Nw)},DZ=function(t){return he({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Nw)},PZ=function(t){var r=t.cx,a=t.value,n=Sw(t),i=n.innerRef,o=n.isDisabled,s=n.isHidden,u=n.inputClassName,c=pn(n,OZ);return de("div",me({},ut(t,"input",{"input-container":!0}),{"data-value":a||""}),de("input",me({className:r({input:!0},u),ref:i,style:DZ(s),disabled:o},c)))},RZ=PZ,NZ=function(t,r){var a=t.theme,n=a.spacing,i=a.borderRadius,o=a.colors;return he({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:n.baseUnit/2})},kZ=function(t,r){var a=t.theme,n=a.borderRadius,i=a.colors,o=t.cropWithEllipsis;return he({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},MZ=function(t,r){var a=t.theme,n=a.spacing,i=a.borderRadius,o=a.colors,s=t.isFocused;return he({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},kw=function(t){var r=t.children,a=t.innerProps;return de("div",a,r)},FZ=kw,jZ=kw;function BZ(e){var t=e.children,r=e.innerProps;return de("div",me({role:"button"},r),t||de(Df,{size:14}))}var LZ=function(t){var r=t.children,a=t.components,n=t.data,i=t.innerProps,o=t.isDisabled,s=t.removeProps,u=t.selectProps,c=a.Container,l=a.Label,d=a.Remove;return de(c,{data:n,innerProps:he(he({},ut(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},de(l,{data:n,innerProps:he({},ut(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),de(d,{data:n,innerProps:he(he({},ut(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:u}))},GZ=LZ,VZ=function(t,r){var a=t.isDisabled,n=t.isFocused,i=t.isSelected,o=t.theme,s=o.spacing,u=o.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?u.primary:n?u.primary25:"transparent",color:a?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:i?u.primary:u.primary50}})},WZ=function(t){var r=t.children,a=t.isDisabled,n=t.isFocused,i=t.isSelected,o=t.innerRef,s=t.innerProps;return de("div",me({},ut(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":n,"option--is-selected":i}),{ref:o,"aria-disabled":a},s),r)},YZ=WZ,UZ=function(t,r){var a=t.theme,n=a.spacing,i=a.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},HZ=function(t){var r=t.children,a=t.innerProps;return de("div",me({},ut(t,"placeholder",{placeholder:!0}),a),r)},XZ=HZ,zZ=function(t,r){var a=t.isDisabled,n=t.theme,i=n.spacing,o=n.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:a?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},ZZ=function(t){var r=t.children,a=t.isDisabled,n=t.innerProps;return de("div",me({},ut(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),n),r)},JZ=ZZ,qZ={ClearIndicator:pZ,Control:CZ,DropdownIndicator:dZ,DownChevron:Pw,CrossIcon:Df,Group:AZ,GroupHeading:_Z,IndicatorsContainer:iZ,IndicatorSeparator:mZ,Input:RZ,LoadingIndicator:yZ,Menu:Uz,MenuList:Xz,MenuPortal:Qz,LoadingMessage:qz,NoOptionsMessage:Jz,MultiValue:GZ,MultiValueContainer:FZ,MultiValueLabel:jZ,MultiValueRemove:BZ,Option:YZ,Placeholder:XZ,SelectContainer:tZ,SingleValue:JZ,ValueContainer:nZ},KZ=function(t){return he(he({},qZ),t.components)},Mw=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function QZ(e,t){return!!(e===t||Mw(e)&&Mw(t))}function eJ(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!QZ(e[r],t[r]))return!1;return!0}function tJ(e,t){t===void 0&&(t=eJ);var r=null;function a(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return a.clear=function(){r=null},a}function rJ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var nJ=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:rJ},aJ=function(t){return de("span",me({css:nJ},t))},Fw=aJ,iJ={guidance:function(t){var r=t.isSearchable,a=t.isMulti,n=t.tabSelectsValue,i=t.context,o=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,a=t.label,n=a===void 0?"":a,i=t.labels,o=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,a=t.focused,n=t.options,i=t.label,o=i===void 0?"":i,s=t.selectValue,u=t.isDisabled,c=t.isSelected,l=t.isAppleDevice,d=function(v,g){return v&&v.length?"".concat(v.indexOf(g)+1," of ").concat(v.length):""};if(r==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,a),".");if(r==="menu"&&l){var f=u?" disabled":"",p="".concat(c?" selected":"").concat(f);return"".concat(o).concat(p,", ").concat(d(n,a),".")}return""},onFilter:function(t){var r=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(r?" for search term "+r:"",".")}},oJ=function(t){var r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,i=t.focusableOptions,o=t.isFocused,s=t.selectValue,u=t.selectProps,c=t.id,l=t.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,p=u.inputValue,m=u.isMulti,v=u.isOptionDisabled,g=u.isSearchable,h=u.menuIsOpen,y=u.options,b=u.screenReaderStatus,w=u.tabSelectsValue,C=u.isLoading,E=u["aria-label"],_=u["aria-live"],N=I.useMemo(function(){return he(he({},iJ),d||{})},[d]),R=I.useMemo(function(){var Y="";if(r&&N.onChange){var L=r.option,Z=r.options,J=r.removedValue,se=r.removedValues,V=r.value,D=function(H){return Array.isArray(H)?null:H},M=J||L||D(V),P=M?f(M):"",S=Z||se||void 0,T=S?S.map(f):[],j=he({isDisabled:M&&v(M,s),label:P,labels:T},r);Y=N.onChange(j)}return Y},[r,N,v,s,f]),k=I.useMemo(function(){var Y="",L=a||n,Z=!!(a&&s&&s.includes(a));if(L&&N.onFocus){var J={focused:L,label:f(L),isDisabled:v(L,s),isSelected:Z,options:i,context:L===a?"menu":"value",selectValue:s,isAppleDevice:l};Y=N.onFocus(J)}return Y},[a,n,f,v,N,i,s,l]),F=I.useMemo(function(){var Y="";if(h&&y.length&&!C&&N.onFilter){var L=b({count:i.length});Y=N.onFilter({inputValue:p,resultsMessage:L})}return Y},[i,p,h,N,y,b,C]),W=(r==null?void 0:r.action)==="initial-input-focus",B=I.useMemo(function(){var Y="";if(N.guidance){var L=n?"value":h?"menu":"input";Y=N.guidance({"aria-label":E,context:L,isDisabled:a&&v(a,s),isMulti:m,isSearchable:g,tabSelectsValue:w,isInitialFocus:W})}return Y},[E,a,n,m,v,g,h,N,s,w,W]),U=de(I.Fragment,null,de("span",{id:"aria-selection"},R),de("span",{id:"aria-focused"},k),de("span",{id:"aria-results"},F),de("span",{id:"aria-guidance"},B));return de(I.Fragment,null,de(Fw,{id:c},W&&U),de(Fw,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!W&&U))},sJ=oJ,Rf=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],uJ=new RegExp("["+Rf.map(function(e){return e.letters}).join("")+"]","g"),jw={},Nf=0;Nf<Rf.length;Nf++)for(var kf=Rf[Nf],Mf=0;Mf<kf.letters.length;Mf++)jw[kf.letters[Mf]]=kf.base;var Bw=function(t){return t.replace(uJ,function(r){return jw[r]})},cJ=tJ(Bw),Lw=function(t){return t.replace(/^\s+|\s+$/g,"")},lJ=function(t){return"".concat(t.label," ").concat(t.value)},dJ=function(t){return function(r,a){if(r.data.__isNew__)return!0;var n=he({ignoreCase:!0,ignoreAccents:!0,stringify:lJ,trim:!0,matchFrom:"any"},t),i=n.ignoreCase,o=n.ignoreAccents,s=n.stringify,u=n.trim,c=n.matchFrom,l=u?Lw(a):a,d=u?Lw(s(r)):s(r);return i&&(l=l.toLowerCase(),d=d.toLowerCase()),o&&(l=cJ(l),d=Bw(d)),c==="start"?d.substr(0,l.length)===l:d.indexOf(l)>-1}},fJ=["innerRef"];function pJ(e){var t=e.innerRef,r=pn(e,fJ),a=Fz(r,"onExited","in","enter","exit","appear");return de("input",me({ref:t},a,{css:Ef({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var hJ=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function mJ(e){var t=e.isEnabled,r=e.onBottomArrive,a=e.onBottomLeave,n=e.onTopArrive,i=e.onTopLeave,o=I.useRef(!1),s=I.useRef(!1),u=I.useRef(0),c=I.useRef(null),l=I.useCallback(function(g,h){if(c.current!==null){var y=c.current,b=y.scrollTop,w=y.scrollHeight,C=y.clientHeight,E=c.current,_=h>0,N=w-C-b,R=!1;N>h&&o.current&&(a&&a(g),o.current=!1),_&&s.current&&(i&&i(g),s.current=!1),_&&h>N?(r&&!o.current&&r(g),E.scrollTop=w,R=!0,o.current=!0):!_&&-h>b&&(n&&!s.current&&n(g),E.scrollTop=0,R=!0,s.current=!0),R&&hJ(g)}},[r,a,n,i]),d=I.useCallback(function(g){l(g,g.deltaY)},[l]),f=I.useCallback(function(g){u.current=g.changedTouches[0].clientY},[]),p=I.useCallback(function(g){var h=u.current-g.changedTouches[0].clientY;l(g,h)},[l]),m=I.useCallback(function(g){if(g){var h=Nz?{passive:!1}:!1;g.addEventListener("wheel",d,h),g.addEventListener("touchstart",f,h),g.addEventListener("touchmove",p,h)}},[p,f,d]),v=I.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",f,!1),g.removeEventListener("touchmove",p,!1))},[p,f,d]);return I.useEffect(function(){if(t){var g=c.current;return m(g),function(){v(g)}}},[t,m,v]),function(g){c.current=g}}var Gw=["boxSizing","height","overflow","paddingRight","position"],Vw={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ww(e){e.cancelable&&e.preventDefault()}function Yw(e){e.stopPropagation()}function Uw(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Hw(){return"ontouchstart"in window||navigator.maxTouchPoints}var Xw=!!(typeof window<"u"&&window.document&&window.document.createElement),Do=0,hi={capture:!1,passive:!1};function gJ(e){var t=e.isEnabled,r=e.accountForScrollbars,a=r===void 0?!0:r,n=I.useRef({}),i=I.useRef(null),o=I.useCallback(function(u){if(Xw){var c=document.body,l=c&&c.style;if(a&&Gw.forEach(function(m){var v=l&&l[m];n.current[m]=v}),a&&Do<1){var d=parseInt(n.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Vw).forEach(function(m){var v=Vw[m];l&&(l[m]=v)}),l&&(l.paddingRight="".concat(p,"px"))}c&&Hw()&&(c.addEventListener("touchmove",Ww,hi),u&&(u.addEventListener("touchstart",Uw,hi),u.addEventListener("touchmove",Yw,hi))),Do+=1}},[a]),s=I.useCallback(function(u){if(Xw){var c=document.body,l=c&&c.style;Do=Math.max(Do-1,0),a&&Do<1&&Gw.forEach(function(d){var f=n.current[d];l&&(l[d]=f)}),c&&Hw()&&(c.removeEventListener("touchmove",Ww,hi),u&&(u.removeEventListener("touchstart",Uw,hi),u.removeEventListener("touchmove",Yw,hi)))}},[a]);return I.useEffect(function(){if(t){var u=i.current;return o(u),function(){s(u)}}},[t,o,s]),function(u){i.current=u}}function vJ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var yJ=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},bJ=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:vJ};function wJ(e){var t=e.children,r=e.lockEnabled,a=e.captureEnabled,n=a===void 0?!0:a,i=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,u=e.onTopLeave,c=mJ({isEnabled:n,onBottomArrive:i,onBottomLeave:o,onTopArrive:s,onTopLeave:u}),l=gJ({isEnabled:r}),d=function(p){c(p),l(p)};return de(I.Fragment,null,r&&de("div",{onClick:yJ,css:bJ}),t(d))}function CJ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var SJ=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:CJ},$J=function(t){var r=t.name,a=t.onFocus;return de("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:SJ,value:"",onChange:function(){}})},IJ=$J;function Ff(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function EJ(){return Ff(/^iPhone/i)}function zw(){return Ff(/^Mac/i)}function _J(){return Ff(/^iPad/i)||zw()&&navigator.maxTouchPoints>1}function AJ(){return EJ()||_J()}function OJ(){return zw()||AJ()}var TJ=function(t){return t.label},xJ=function(t){return t.label},DJ=function(t){return t.value},PJ=function(t){return!!t.isDisabled},RJ={clearIndicator:fZ,container:eZ,control:bZ,dropdownIndicator:lZ,group:$Z,groupHeading:EZ,indicatorsContainer:aZ,indicatorSeparator:hZ,input:TZ,loadingIndicator:vZ,loadingMessage:Zz,menu:Vz,menuList:Hz,menuPortal:Kz,multiValue:NZ,multiValueLabel:kZ,multiValueRemove:MZ,noOptionsMessage:zz,option:VZ,placeholder:UZ,singleValue:zZ,valueContainer:rZ},NJ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kJ=4,Zw=4,MJ=38,FJ=Zw*2,jJ={baseUnit:Zw,controlHeight:MJ,menuGutter:FJ},jf={borderRadius:kJ,colors:NJ,spacing:jJ},BJ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ew(),captureMenuScroll:!Ew(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:dJ(),formatGroupLabel:TJ,getOptionLabel:xJ,getOptionValue:DJ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:PJ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Pz(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Jw(e,t,r,a){var n=t1(e,t,r),i=r1(e,t,r),o=e1(e,t),s=Zu(e,t);return{type:"option",data:t,isDisabled:n,isSelected:i,label:o,value:s,index:a}}function zu(e,t){return e.options.map(function(r,a){if("options"in r){var n=r.options.map(function(o,s){return Jw(e,o,t,s)}).filter(function(o){return Qw(e,o)});return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var i=Jw(e,r,t,a);return Qw(e,i)?i:void 0}).filter(kz)}function qw(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,gf(r.options.map(function(a){return a.data}))):t.push(r.data),t},[])}function Kw(e,t){return e.reduce(function(r,a){return a.type==="group"?r.push.apply(r,gf(a.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(a.index,"-").concat(n.index)}}))):r.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),r},[])}function LJ(e,t){return qw(zu(e,t))}function Qw(e,t){var r=e.inputValue,a=r===void 0?"":r,n=t.data,i=t.isSelected,o=t.label,s=t.value;return(!a1(e)||!i)&&n1(e,{label:o,value:s,data:n},a)}function GJ(e,t){var r=e.focusedValue,a=e.selectValue,n=a.indexOf(r);if(n>-1){var i=t.indexOf(r);if(i>-1)return r;if(n<t.length)return t[n]}return null}function VJ(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Bf=function(t,r){var a,n=(a=t.find(function(i){return i.data===r}))===null||a===void 0?void 0:a.id;return n||null},e1=function(t,r){return t.getOptionLabel(r)},Zu=function(t,r){return t.getOptionValue(r)};function t1(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function r1(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var a=Zu(e,t);return r.some(function(n){return Zu(e,n)===a})}function n1(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var a1=function(t){var r=t.hideSelectedOptions,a=t.isMulti;return r===void 0?a:r},WJ=1,i1=function(e){Te(r,e);var t=xe(r);function r(a){var n;if(_e(this,r),n=t.call(this,a),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(u){n.controlRef=u},n.focusedOptionRef=null,n.getFocusedOptionRef=function(u){n.focusedOptionRef=u},n.menuListRef=null,n.getMenuListRef=function(u){n.menuListRef=u},n.inputRef=null,n.getInputRef=function(u){n.inputRef=u},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(u,c){var l=n.props,d=l.onChange,f=l.name;c.name=f,n.ariaOnChange(u,c),d(u,c)},n.setValue=function(u,c,l){var d=n.props,f=d.closeMenuOnSelect,p=d.isMulti,m=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(n.setState({inputIsHiddenAfterUpdate:!p}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(u,{action:c,option:l})},n.selectOption=function(u){var c=n.props,l=c.blurInputOnSelect,d=c.isMulti,f=c.name,p=n.state.selectValue,m=d&&n.isOptionSelected(u,p),v=n.isOptionDisabled(u,p);if(m){var g=n.getOptionValue(u);n.setValue(p.filter(function(h){return n.getOptionValue(h)!==g}),"deselect-option",u)}else if(!v)d?n.setValue([].concat(gf(p),[u]),"select-option",u):n.setValue(u,"select-option");else{n.ariaOnChange(u,{action:"select-option",option:u,name:f});return}l&&n.blurInput()},n.removeValue=function(u){var c=n.props.isMulti,l=n.state.selectValue,d=n.getOptionValue(u),f=l.filter(function(m){return n.getOptionValue(m)!==d}),p=Xu(c,f,f[0]||null);n.onChange(p,{action:"remove-value",removedValue:u}),n.focusInput()},n.clearValue=function(){var u=n.state.selectValue;n.onChange(Xu(n.props.isMulti,[],null),{action:"clear",removedValues:u})},n.popValue=function(){var u=n.props.isMulti,c=n.state.selectValue,l=c[c.length-1],d=c.slice(0,c.length-1),f=Xu(u,d,d[0]||null);l&&n.onChange(f,{action:"pop-value",removedValue:l})},n.getFocusedOptionId=function(u){return Bf(n.state.focusableOptionsWithIds,u)},n.getFocusableOptionsWithIds=function(){return Kw(zu(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];return Az.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(u){return e1(n.props,u)},n.getOptionValue=function(u){return Zu(n.props,u)},n.getStyles=function(u,c){var l=n.props.unstyled,d=RJ[u](c,l);d.boxSizing="border-box";var f=n.props.styles[u];return f?f(d,c):d},n.getClassNames=function(u,c){var l,d;return(l=(d=n.props.classNames)[u])===null||l===void 0?void 0:l.call(d,c)},n.getElementId=function(u){return"".concat(n.state.instancePrefix,"-").concat(u)},n.getComponents=function(){return KZ(n.props)},n.buildCategorizedOptions=function(){return zu(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return qw(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(u,c){n.setState({ariaSelection:he({value:u},c)})},n.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(u){n.blockOptionHover=!1},n.onControlMouseDown=function(u){if(!u.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},n.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!n.props.isDisabled){var c=n.props,l=c.isMulti,d=c.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!l}),n.onMenuClose()):n.openMenu("first"),u.preventDefault()}},n.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(n.clearValue(),u.preventDefault(),n.openAfterFocus=!1,u.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(u){typeof n.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&Wu(u.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(u)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(u){var c=u.touches,l=c&&c.item(0);l&&(n.initialTouchX=l.clientX,n.initialTouchY=l.clientY,n.userIsDragging=!1)},n.onTouchMove=function(u){var c=u.touches,l=c&&c.item(0);if(l){var d=Math.abs(l.clientX-n.initialTouchX),f=Math.abs(l.clientY-n.initialTouchY),p=5;n.userIsDragging=d>p||f>p}},n.onTouchEnd=function(u){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(u.target)&&n.menuListRef&&!n.menuListRef.contains(u.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(u){n.userIsDragging||n.onControlMouseDown(u)},n.onClearIndicatorTouchEnd=function(u){n.userIsDragging||n.onClearIndicatorMouseDown(u)},n.onDropdownIndicatorTouchEnd=function(u){n.userIsDragging||n.onDropdownIndicatorMouseDown(u)},n.handleInputChange=function(u){var c=n.props.inputValue,l=u.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(l,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(u){n.props.onFocus&&n.props.onFocus(u),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(u){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(u),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(u){if(!(n.blockOptionHover||n.state.focusedOption===u)){var c=n.getFocusableOptions(),l=c.indexOf(u);n.setState({focusedOption:u,focusedOptionId:l>-1?n.getFocusedOptionId(u):null})}},n.shouldHideSelectedOptions=function(){return a1(n.props)},n.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),n.focus()},n.onKeyDown=function(u){var c=n.props,l=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,p=c.inputValue,m=c.isClearable,v=c.isDisabled,g=c.menuIsOpen,h=c.onKeyDown,y=c.tabSelectsValue,b=c.openMenuOnFocus,w=n.state,C=w.focusedOption,E=w.focusedValue,_=w.selectValue;if(!v&&!(typeof h=="function"&&(h(u),u.defaultPrevented))){switch(n.blockOptionHover=!0,u.key){case"ArrowLeft":if(!l||p)return;n.focusValue("previous");break;case"ArrowRight":if(!l||p)return;n.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)n.removeValue(E);else{if(!d)return;l?n.popValue():m&&n.clearValue()}break;case"Tab":if(n.isComposing||u.shiftKey||!g||!y||!C||b&&n.isOptionSelected(C,_))return;n.selectOption(C);break;case"Enter":if(u.keyCode===229)break;if(g){if(!C||n.isComposing)return;n.selectOption(C);break}return;case"Escape":g?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:p}),n.onMenuClose()):m&&f&&n.clearValue();break;case" ":if(p)return;if(!g){n.openMenu("first");break}if(!C)return;n.selectOption(C);break;case"ArrowUp":g?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":g?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!g)return;n.focusOption("pageup");break;case"PageDown":if(!g)return;n.focusOption("pagedown");break;case"Home":if(!g)return;n.focusOption("first");break;case"End":if(!g)return;n.focusOption("last");break;default:return}u.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++WJ),n.state.selectValue=Cw(a.value),a.menuIsOpen&&n.state.selectValue.length){var i=n.getFocusableOptionsWithIds(),o=n.buildFocusableOptions(),s=o.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=i,n.state.focusedOption=o[s],n.state.focusedOptionId=Bf(i,o[s])}return n}return Ae(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Iw(this.menuListRef,this.focusedOptionRef),OJ()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var i=this.props,o=i.isDisabled,s=i.menuIsOpen,u=this.state.isFocused;(u&&!o&&n.isDisabled||u&&s&&!n.menuIsOpen)&&this.focusInput(),u&&o&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Iw(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,i){this.props.onInputChange(n,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var i=this,o=this.state,s=o.selectValue,u=o.isFocused,c=this.buildFocusableOptions(),l=n==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(s[0]);d>-1&&(l=d)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[l],focusedOptionId:this.getFocusedOptionId(c[l])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(n){var i=this.state,o=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(s);s||(u=-1);var c=o.length-1,l=-1;if(o.length){switch(n){case"previous":u===0?l=0:u===-1?l=c:l=u-1;break;case"next":u>-1&&u<c&&(l=u+1);break}this.setState({inputIsHidden:l!==-1,focusedValue:o[l]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var u=0,c=s.indexOf(o);o||(c=-1),n==="up"?u=c>0?c-1:s.length-1:n==="down"?u=(c+1)%s.length:n==="pageup"?(u=c-i,u<0&&(u=0)):n==="pagedown"?(u=c+i,u>s.length-1&&(u=s.length-1)):n==="last"&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(jf):he(he({},jf),this.props.theme):jf}},{key:"getCommonProps",value:function(){var n=this.clearValue,i=this.cx,o=this.getStyles,s=this.getClassNames,u=this.getValue,c=this.selectOption,l=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,m=d.options,v=this.hasValue();return{clearValue:n,cx:i,getStyles:o,getClassNames:s,getValue:u,hasValue:v,isMulti:f,isRtl:p,options:m,selectOption:c,selectProps:d,setValue:l,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,i=n.isClearable,o=n.isMulti;return i===void 0?o:i}},{key:"isOptionDisabled",value:function(n,i){return t1(this.props,n,i)}},{key:"isOptionSelected",value:function(n,i){return r1(this.props,n,i)}},{key:"filterOption",value:function(n,i){return n1(this.props,n,i)}},{key:"formatOptionLabel",value:function(n,i){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(n,{context:i,inputValue:o,selectValue:s})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,i=n.isDisabled,o=n.isSearchable,s=n.inputId,u=n.inputValue,c=n.tabIndex,l=n.form,d=n.menuIsOpen,f=n.required,p=this.getComponents(),m=p.Input,v=this.state,g=v.inputIsHidden,h=v.ariaSelection,y=this.commonProps,b=s||this.getElementId("input"),w=he(he(he({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?ne.createElement(m,me({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:i,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:l,type:"text",value:u},w)):ne.createElement(pJ,me({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Vu,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:l,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,i=this.getComponents(),o=i.MultiValue,s=i.MultiValueContainer,u=i.MultiValueLabel,c=i.MultiValueRemove,l=i.SingleValue,d=i.Placeholder,f=this.commonProps,p=this.props,m=p.controlShouldRenderValue,v=p.isDisabled,g=p.isMulti,h=p.inputValue,y=p.placeholder,b=this.state,w=b.selectValue,C=b.focusedValue,E=b.isFocused;if(!this.hasValue()||!m)return h?null:ne.createElement(d,me({},f,{key:"placeholder",isDisabled:v,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),y);if(g)return w.map(function(N,R){var k=N===C,F="".concat(n.getOptionLabel(N),"-").concat(n.getOptionValue(N));return ne.createElement(o,me({},f,{components:{Container:s,Label:u,Remove:c},isFocused:k,isDisabled:v,key:F,index:R,removeProps:{onClick:function(){return n.removeValue(N)},onTouchEnd:function(){return n.removeValue(N)},onMouseDown:function(B){B.preventDefault()}},data:N}),n.formatOptionLabel(N,"value"))});if(h)return null;var _=w[0];return ne.createElement(l,me({},f,{data:_,isDisabled:v}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),i=n.ClearIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,l=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(i,me({},o,{innerProps:d,isFocused:l}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),i=n.LoadingIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,l=this.state.isFocused;if(!i||!c)return null;var d={"aria-hidden":"true"};return ne.createElement(i,me({},o,{innerProps:d,isDisabled:u,isFocused:l}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),i=n.DropdownIndicator,o=n.IndicatorSeparator;if(!i||!o)return null;var s=this.commonProps,u=this.props.isDisabled,c=this.state.isFocused;return ne.createElement(o,me({},s,{isDisabled:u,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),i=n.DropdownIndicator;if(!i)return null;var o=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ne.createElement(i,me({},o,{innerProps:c,isDisabled:s,isFocused:u}))}},{key:"renderMenu",value:function(){var n=this,i=this.getComponents(),o=i.Group,s=i.GroupHeading,u=i.Menu,c=i.MenuList,l=i.MenuPortal,d=i.LoadingMessage,f=i.NoOptionsMessage,p=i.Option,m=this.commonProps,v=this.state.focusedOption,g=this.props,h=g.captureMenuScroll,y=g.inputValue,b=g.isLoading,w=g.loadingMessage,C=g.minMenuHeight,E=g.maxMenuHeight,_=g.menuIsOpen,N=g.menuPlacement,R=g.menuPosition,k=g.menuPortalTarget,F=g.menuShouldBlockScroll,W=g.menuShouldScrollIntoView,B=g.noOptionsMessage,U=g.onMenuScrollToTop,Y=g.onMenuScrollToBottom;if(!_)return null;var L=function(P,S){var T=P.type,j=P.data,z=P.isDisabled,H=P.isSelected,Q=P.label,ce=P.value,Ee=v===j,ee=z?void 0:function(){return n.onOptionHover(j)},pt=z?void 0:function(){return n.selectOption(j)},te="".concat(n.getElementId("option"),"-").concat(S),Ve={id:te,onClick:pt,onMouseMove:ee,onMouseOver:ee,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:H};return ne.createElement(p,me({},m,{innerProps:Ve,data:j,isDisabled:z,isSelected:H,key:te,label:Q,type:T,value:ce,isFocused:Ee,innerRef:Ee?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(P.data,"menu"))},Z;if(this.hasOptions())Z=this.getCategorizedOptions().map(function(M){if(M.type==="group"){var P=M.data,S=M.options,T=M.index,j="".concat(n.getElementId("group"),"-").concat(T),z="".concat(j,"-heading");return ne.createElement(o,me({},m,{key:j,data:P,options:S,Heading:s,headingProps:{id:z,data:M.data},label:n.formatGroupLabel(M.data)}),M.options.map(function(H){return L(H,"".concat(T,"-").concat(H.index))}))}else if(M.type==="option")return L(M,"".concat(M.index))});else if(b){var J=w({inputValue:y});if(J===null)return null;Z=ne.createElement(d,m,J)}else{var se=B({inputValue:y});if(se===null)return null;Z=ne.createElement(f,m,se)}var V={minMenuHeight:C,maxMenuHeight:E,menuPlacement:N,menuPosition:R,menuShouldScrollIntoView:W},D=ne.createElement(Wz,me({},m,V),function(M){var P=M.ref,S=M.placerProps,T=S.placement,j=S.maxHeight;return ne.createElement(u,me({},m,V,{innerRef:P,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:b,placement:T}),ne.createElement(wJ,{captureEnabled:h,onTopArrive:U,onBottomArrive:Y,lockEnabled:F},function(z){return ne.createElement(c,me({},m,{innerRef:function(Q){n.getMenuListRef(Q),z(Q)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:n.getElementId("listbox")},isLoading:b,maxHeight:j,focusedOption:v}),Z)}))});return k||R==="fixed"?ne.createElement(l,me({},m,{appendTo:k,controlElement:this.controlRef,menuPlacement:N,menuPosition:R}),D):D}},{key:"renderFormField",value:function(){var n=this,i=this.props,o=i.delimiter,s=i.isDisabled,u=i.isMulti,c=i.name,l=i.required,d=this.state.selectValue;if(l&&!this.hasValue()&&!s)return ne.createElement(IJ,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(u)if(o){var f=d.map(function(v){return n.getOptionValue(v)}).join(o);return ne.createElement("input",{name:c,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(v,g){return ne.createElement("input",{key:"i-".concat(g),name:c,type:"hidden",value:n.getOptionValue(v)})}):ne.createElement("input",{name:c,type:"hidden",value:""});return ne.createElement("div",null,p)}else{var m=d[0]?this.getOptionValue(d[0]):"";return ne.createElement("input",{name:c,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,i=this.state,o=i.ariaSelection,s=i.focusedOption,u=i.focusedValue,c=i.isFocused,l=i.selectValue,d=this.getFocusableOptions();return ne.createElement(sJ,me({},n,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:u,isFocused:c,selectValue:l,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),i=n.Control,o=n.IndicatorsContainer,s=n.SelectContainer,u=n.ValueContainer,c=this.props,l=c.className,d=c.id,f=c.isDisabled,p=c.menuIsOpen,m=this.state.isFocused,v=this.commonProps=this.getCommonProps();return ne.createElement(s,me({},v,{className:l,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),ne.createElement(i,me({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:p}),ne.createElement(u,me({},v,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),ne.createElement(o,me({},v,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,i){var o=i.prevProps,s=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,l=i.isFocused,d=i.prevWasFocused,f=i.instancePrefix,p=n.options,m=n.value,v=n.menuIsOpen,g=n.inputValue,h=n.isMulti,y=Cw(m),b={};if(o&&(m!==o.value||p!==o.options||v!==o.menuIsOpen||g!==o.inputValue)){var w=v?LJ(n,y):[],C=v?Kw(zu(n,y),"".concat(f,"-option")):[],E=s?GJ(i,y):null,_=VJ(i,w),N=Bf(C,_);b={selectValue:y,focusedOption:_,focusedOptionId:N,focusableOptionsWithIds:C,focusedValue:E,clearFocusValueOnUpdate:!1}}var R=u!=null&&n!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},k=c,F=l&&d;return l&&!F&&(k={value:Xu(h,y,y[0]||null),options:y,action:"initial-input-focus"},F=!d),(c==null?void 0:c.action)==="initial-input-focus"&&(k=null),he(he(he({},b),R),{},{prevProps:n,ariaSelection:k,prevWasFocused:F})}}]),r}(I.Component);i1.defaultProps=BJ;var YJ=I.forwardRef(function(e,t){var r=cX(e);return ne.createElement(i1,me({ref:t},r))}),UJ=YJ;const HJ={option:(e,t)=>({...e}),control:e=>({...e,borderRadius:"0.5rem",height:"3rem"}),singleValue:(e,t)=>{const r=t.isDisabled?.5:1;return{...e,opacity:r,transition:"opacity 300ms"}},multiValue:(e,{data:t})=>({...e,backgroundColor:"#560DF8",color:"white"}),multiValueLabel:(e,{data:t})=>({...e,color:"white"})},Lf=new Set(["number","integer"]);function Gf(e,t,r){const{enum:a,type:n,items:i}=e;if(t==="")return r&&r.emptyValue!==void 0?r.emptyValue:void 0;if(n==="array"&&i&&Lf.has(Kn(i,"type")))return t.map(Ln);if(n==="boolean")return t==="true";if(Lf.has(n))return Ln(t);if(Array.isArray(a)){if(a.every(o=>Lf.has(En(o))))return Ln(t);if(a.every(o=>En(o)==="boolean"))return t==="true"}return t}function XJ({schema:e,id:t,options:r,name:a,value:n,disabled:i,readonly:o,multiple:s=!1,autofocus:u=!1,onBlur:c,onFocus:l,onChange:d}){const{enumOptions:f,enumDisabled:p}=r,m=I.useCallback(()=>l(t,Gf(e,n,r)),[l,t,e,s,r]),v=I.useCallback(()=>c(t,Gf(e,n,r)),[c,t,e,s,r]),g=I.useCallback(b=>{let w;if(s&&Array.isArray(b))w=b.map(C=>C.value);else{const C=b;w=C==null?void 0:C.value}return d(Gf(e,w,r))},[d,e,s,r]),h=b=>(f==null?void 0:f.find(w=>w.value===b))||{label:"",value:""},y=()=>{let b;return s&&Array.isArray(n)?b=n.map(w=>h(w.toString())):n&&(b=h(n.toString())),b};return $.jsx(UJ,{id:t,instanceId:t,isMulti:s,name:a,value:y(),isDisabled:i||o,autoFocus:u,options:f,onChange:g,onBlur:v,onFocus:m,styles:HJ})}function o1({id:e,name:t,options:r={},placeholder:a,value:n,required:i,disabled:o,readonly:s,autofocus:u=!1,onChange:c,onBlur:l,onFocus:d}){const f=I.useCallback(({target:{value:v}})=>c(v===""?r.emptyValue:v),[c,r.emptyValue]),p=I.useCallback(({target:{value:v}})=>l(e,v),[l,e]),m=I.useCallback(({target:{value:v}})=>d(e,v),[e,d]);return $.jsx("textarea",{id:e,name:t,className:"textarea textarea-bordered",value:n||"",placeholder:a,required:i,disabled:o,readOnly:s,autoFocus:u,rows:r.rows,onBlur:p,onFocus:m,onChange:f})}o1.defaultProps={autofocus:!1,options:{}};function zJ(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{...e})}function ZJ(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"url",...e})}function JJ(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"number",...e})}const qJ={PasswordWidget:tX,RadioWidget:rX,UpDownWidget:JJ,RangeWidget:nX,SelectWidget:XJ,TextWidget:zJ,DateWidget:H5,DateTimeWidget:X5,AltDateWidget:KW,AltDateTimeWidget:QW,EmailWidget:z5,URLWidget:ZJ,TextareaWidget:o1,HiddenWidget:eX,ColorWidget:a9,FileWidget:Q5,CheckboxWidget:e9,CheckboxesWidget:n9};function KJ(e){const{schema:t,idSchema:r,description:a,registry:n,uiSchema:i}=e;if(!a||!i)return null;const o=fe(i),s=pe("DescriptionFieldTemplate",n,o),u=`${r.$id}__description`;return $.jsx(s,{schema:t,id:u,description:a,registry:n})}function QJ(e){const{children:t,className:r,disabled:a,hasToolbar:n,hasMoveDown:i,hasMoveUp:o,hasRemove:s,index:u,onDropIndexClick:c,onReorderClick:l,readonly:d,registry:f}=e,{MoveDownButton:p,MoveUpButton:m,RemoveButton:v}=f.templates.ButtonTemplates,g={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return $.jsxs("div",{className:r,children:[$.jsx("div",{className:n?"col-xs-9":"col-xs-12",children:t}),n&&$.jsx("div",{className:"col-xs-3 array-item-toolbox",children:$.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||i)&&$.jsx(m,{registry:f,style:g,disabled:a||d||!o,onClick:l(u,u-1)}),(o||i)&&$.jsx(p,{registry:f,style:g,disabled:a||d||!i,onClick:l(u,u+1)}),s&&$.jsx(v,{registry:f,style:g,disabled:a||d,onClick:c(u)})]})})]})}function e6(e){const{canAdd:t,className:r,disabled:a,idSchema:n,uiSchema:i,items:o,onAddClick:s,readonly:u,registry:c,required:l,schema:d,title:f}=e,p=fe(i),m=pe("ArrayFieldDescriptionTemplate",c,p),v=pe("ArrayFieldItemTemplate",c,p),g=pe("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:h}}=c.templates;return $.jsxs("fieldset",{className:r,id:n.$id,children:[$.jsx(g,{schema:d,idSchema:n,title:p.title||f,required:l,uiSchema:i,registry:c}),(p.description||d.description)&&$.jsx(m,{schema:d,idSchema:n,description:p.description||d.description,uiSchema:i,registry:c}),$.jsx("div",{className:"row array-item-list",children:o&&o.map(({key:y,...b})=>$.jsx(v,{...b},y))}),t&&$.jsx(h,{registry:c,className:"array-item-add",onClick:s,disabled:a||u})]})}function t6(e){const{schema:t,idSchema:r,title:a,uiSchema:n,required:i,registry:o}=e;if(!a)return null;const s=fe(n),u=pe("TitleFieldTemplate",o,s),c=`${r.$id}__title`;return $.jsx(u,{schema:t,id:c,title:a,required:i,uiSchema:n,registry:o})}function r6(e){const{id:t,value:r,readonly:a,disabled:n,autofocus:i,onBlur:o,onFocus:s,onChange:u,options:c,schema:l,uiSchema:d,formContext:f,registry:p,rawErrors:m,type:v,...g}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const h={...g,...Uy(l,v,c)};let y;h.type==="number"||h.type==="integer"?y=r||r===0?r:"":y=r??"";const b=I.useCallback(({target:{value:E}})=>u(E===""?c.emptyValue:E),[u,c]),w=I.useCallback(({target:{value:E}})=>o(t,E),[o,t]),C=I.useCallback(({target:{value:E}})=>s(t,E),[s,t]);return $.jsxs($.Fragment,{children:[$.jsx("input",{id:t,className:"input input-bordered",readOnly:a,disabled:n,autoFocus:i,value:y,...h,list:l.examples?`examples_${t}`:void 0,onChange:b,onBlur:w,onFocus:C},t),Array.isArray(l.examples)&&$.jsx("datalist",{id:`examples_${t}`,children:[...new Set(l.examples.concat(l.default?[l.default]:[]))].map(E=>$.jsx("option",{value:E},E))},`datalist_${t}`)]})}function n6({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Xy(e);return r?null:$.jsx("div",{children:$.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className}`,children:t})})}function Ju(e){const{iconType:t="default",icon:r,className:a,...n}=e;return $.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...n,children:$.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function a6(e){return $.jsx(Ju,{title:"Move down",className:"array-item-move-down",...e,icon:"arrow-down"})}function i6(e){return $.jsx(Ju,{title:"Move up",className:"array-item-move-up",...e,icon:"arrow-up"})}function o6(e){return $.jsx(Ju,{title:"Remove",className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function s6({registry:e,className:t,onClick:r,disabled:a}){return $.jsx("div",{className:"row",children:$.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${t}`,children:$.jsx(Ju,{registry:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:"Add",onClick:r,disabled:a})})})}const u6={SubmitButton:n6,AddButton:s6,MoveDownButton:a6,MoveUpButton:i6,RemoveButton:o6};function c6(e){const{id:t,description:r}=e;return r?typeof r=="string"?$.jsx("p",{id:t,className:"field-description",children:r}):$.jsx("div",{id:t,className:"field-description",children:r}):null}function l6({errors:e}){return $.jsxs("div",{className:"panel panel-danger errors",children:[$.jsx("div",{className:"panel-heading",children:$.jsx("h3",{className:"panel-title",children:"Errors"})}),$.jsx("ul",{className:"list-group",children:e.map((t,r)=>$.jsx("li",{className:"list-group-item text-danger",children:t.stack},r))})]})}const d6="*";function s1(e){const{label:t,required:r,id:a}=e;return t?$.jsxs("label",{className:"justify-start gap-1 label",htmlFor:a,children:[$.jsx("span",{className:"label-text",children:t}),r&&$.jsx("span",{className:"required",children:d6})]}):null}function f6(e){const{id:t,classNames:r,disabled:a,label:n,onKeyChange:i,onDropPropertyClick:o,readonly:s,required:u,schema:c,children:l,registry:d}=e,{RemoveButton:f}=d.templates.ButtonTemplates,p=`${n} Key`;return Gn in c?$.jsx("div",{className:r,children:$.jsxs("div",{className:"row",children:[$.jsx("div",{className:"form-additional",children:$.jsxs("div",{className:"form-control",children:[$.jsx(s1,{label:p,required:u,id:`${t}-key`}),$.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:v=>i(v.target.value),defaultValue:n})]})}),$.jsx("div",{className:"form-additional form-control",children:l}),$.jsx("div",{className:"col-xs-2",children:$.jsx(f,{registry:d,className:"array-item-remove btn-block",style:{border:"0"},disabled:a||s,onClick:o(n)})})]})}):$.jsx("div",{className:r,children:l})}function p6(e){const{id:t,label:r,children:a,errors:n,help:i,description:o,hidden:s,required:u,displayLabel:c}=e;return s?$.jsx("div",{className:"hidden",children:a}):$.jsxs(f6,{...e,children:[c&&$.jsx(s1,{label:r,required:u,id:t}),c&&o?o:null,a,n,i]})}function h6(e){const{description:t,disabled:r,formData:a,idSchema:n,onAddClick:i,properties:o,readonly:s,registry:u,required:c,schema:l,title:d,uiSchema:f}=e,p=fe(f),m=pe("TitleFieldTemplate",u,p),v=pe("DescriptionFieldTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return $.jsxs("fieldset",{id:n.$id,children:[(p.title||d)&&$.jsx(m,{schema:l,id:`${n.$id}__title`,title:p.title||d,required:c,uiSchema:f,registry:u}),(p.description||t)&&$.jsx(v,{schema:l,id:`${n.$id}__description`,description:p.description||t,registry:u}),o.map(h=>h.content),Ph(l,f,a)&&$.jsx(g,{registry:u,className:"object-property-expand",onClick:i(l),disabled:r||s})]})}const m6="*";function g6(e){const{id:t,title:r,required:a}=e;return $.jsxs("legend",{id:t,children:[r,a&&$.jsx("span",{className:"required",children:m6})]})}function v6(e){const{schema:t,idSchema:r,reason:a}=e;return $.jsxs("div",{className:"unsupported-field",children:[$.jsxs("p",{children:["Unsupported field schema",r&&r.$id&&$.jsxs("span",{children:[" for"," field ",$.jsx("code",{children:r.$id})]}),a&&$.jsxs("em",{children:[": ",a]}),"."]}),t&&$.jsx("pre",{children:JSON.stringify(t,null,2)})]})}const y6={ArrayFieldDescriptionTemplate:KJ,ArrayFieldItemTemplate:QJ,ArrayFieldTemplate:e6,ArrayFieldTitleTemplate:t6,ButtonTemplates:u6,BaseInputTemplate:r6,DescriptionFieldTemplate:c6,ErrorListTemplate:l6,FieldTemplate:p6,ObjectFieldTemplate:h6,TitleFieldTemplate:g6,UnsupportedFieldTemplate:v6};var b6=_l,w6=zi,C6=Rs,u1=ir,S6=Wa;function $6(e,t,r,a){if(!u1(e))return e;t=w6(t,e);for(var n=-1,i=t.length,o=i-1,s=e;s!=null&&++n<i;){var u=S6(t[n]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(n!=o){var l=s[u];c=a?a(l,u,s):void 0,c===void 0&&(c=u1(l)?l:C6(t[n+1])?[]:{})}b6(s,u,c),s=s[u]}return e}var I6=$6,E6=I6;function _6(e,t,r){return e==null?e:E6(e,t,r)}var A6=_6;const mi=Xt(A6);function Vf(){return w$.nanoid()}function c1(e){return Array.isArray(e)?e.map(t=>({key:Vf(),item:t})):[]}function Po(e){return Array.isArray(e)?e.map(t=>t.item):[]}let O6=class extends I.Component{constructor(r){super(r);we(this,"_getNewFormDataRow",()=>{const{schema:r,registry:a}=this.props,{schemaUtils:n}=a;let i=r.items;return ro(r)&&xh(r)&&(i=r.additionalItems),n.getDefaultFormState(i)});we(this,"onAddClick",r=>{r&&r.preventDefault();const{onChange:a}=this.props,{keyedFormData:n}=this.state,i={key:Vf(),item:this._getNewFormDataRow()},o=[...n,i];this.setState({keyedFormData:o,updatedKeyedFormData:!0},()=>a(Po(o)))});we(this,"onAddIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n}=this.props,{keyedFormData:i}=this.state,o={key:Vf(),item:this._getNewFormDataRow()},s=[...i];s.splice(r,0,o),this.setState({keyedFormData:s,updatedKeyedFormData:!0},()=>n(Po(s)))});we(this,"onDropIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const c in i){const l=parseInt(c);l<r?mi(s,[l],i[c]):l>r&&mi(s,[l-1],i[c])}}const u=o.filter((c,l)=>l!==r);this.setState({keyedFormData:u,updatedKeyedFormData:!0},()=>n(Po(u),s))});we(this,"onReorderClick",(r,a)=>n=>{n&&(n.preventDefault(),n.currentTarget.blur());const{onChange:i,errorSchema:o}=this.props;let s;if(this.props.errorSchema){s={};for(const d in o){const f=parseInt(d);f==r?mi(s,[a],o[r]):f==a?mi(s,[r],o[a]):mi(s,[d],o[f])}}const{keyedFormData:u}=this.state;function c(){const d=u.slice();return d.splice(r,1),d.splice(a,0,u[r]),d}const l=c();this.setState({keyedFormData:l},()=>i(Po(l),s))});we(this,"onChangeForIndex",r=>(a,n)=>{const{formData:i,onChange:o,errorSchema:s}=this.props,c=(Array.isArray(i)?i:[]).map((l,d)=>r===d?typeof a>"u"?null:a:l);o(c,s&&s&&{...s,[r]:n})});we(this,"onSelectChange",r=>{const{onChange:a}=this.props;a(r)});const{formData:a=[]}=r,n=c1(a);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(r,a){if(a.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(r.formData)?r.formData:[],i=a.keyedFormData||[];return{keyedFormData:n.length===i.length?i.map((s,u)=>({key:s.key,item:n[u]})):c1(n)}}get itemTitle(){const{schema:r}=this.props;return Kn(r,[pr,"title"],Kn(r,[pr,"description"],"Item"))}isItemRequired(r){return Array.isArray(r.type)?!r.type.includes("null"):r.type!=="null"}canAddItem(r){const{schema:a,uiSchema:n}=this.props;let{addable:i}=fe(n);return i!==!1&&(a.maxItems!==void 0?i=r.length<a.maxItems:i=!0),i}render(){const{schema:r,uiSchema:a,idSchema:n,registry:i}=this.props,{schemaUtils:o}=i;if(!(pr in r)){const s=fe(a),u=pe("UnsupportedFieldTemplate",i,s);return $.jsx(u,{schema:r,idSchema:n,reason:"Missing items definition",registry:i})}return o.isMultiSelect(r)?this.renderMultiSelect():wd(a)?this.renderCustomWidget():ro(r)?this.renderFixedArray():o.isFilesArray(r,a)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:r,uiSchema:a={},errorSchema:n,idSchema:i,name:o,disabled:s=!1,readonly:u=!1,autofocus:c=!1,required:l=!1,registry:d,onBlur:f,onFocus:p,idPrefix:m,idSeparator:v="_",rawErrors:g}=this.props,{keyedFormData:h}=this.state,y=r.title===void 0?o:r.title,{schemaUtils:b,formContext:w}=d,C=fe(a),E=$n(r.items)?r.items:{},_=b.retrieveSchema(E),N=Po(this.state.keyedFormData),R={canAdd:this.canAddItem(N),items:h.map((F,W)=>{const{key:B,item:U}=F,Y=U,L=b.retrieveSchema(E,Y),Z=n?n[W]:void 0,J=i.$id+v+W,se=b.toIdSchema(L,J,Y,m,v);return this.renderArrayFieldItem({key:B,index:W,name:o&&`${o}-${W}`,canMoveUp:W>0,canMoveDown:W<N.length-1,itemSchema:L,itemIdSchema:se,itemErrorSchema:Z,itemData:Y,itemUiSchema:a.items,autofocus:c&&W===0,onBlur:f,onFocus:p,rawErrors:g})}),className:`field field-array field-array-of-${_.type}`,disabled:s,idSchema:i,uiSchema:a,onAddClick:this.onAddClick,readonly:u,required:l,schema:r,title:y,formContext:w,formData:N,rawErrors:g,registry:d},k=pe("ArrayFieldTemplate",d,C);return $.jsx(k,{...R})}renderCustomWidget(){const{schema:r,idSchema:a,uiSchema:n,disabled:i=!1,readonly:o=!1,autofocus:s=!1,required:u=!1,hideError:c,placeholder:l,onBlur:d,onFocus:f,formData:p=[],registry:m,rawErrors:v,name:g}=this.props,{widgets:h,formContext:y}=m,b=r.title||g,{widget:w,...C}=fe(n),E=kt(r,w,h);return $.jsx(E,{id:a&&a.$id,multiple:!0,name:g,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:C,schema:r,uiSchema:n,registry:m,value:p,disabled:i,readonly:o,hideError:c,required:u,label:b,placeholder:l,formContext:y,autofocus:s,rawErrors:v})}renderMultiSelect(){const{schema:r,idSchema:a,uiSchema:n,formData:i=[],disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,placeholder:l,onBlur:d,onFocus:f,registry:p,rawErrors:m,name:v}=this.props,{widgets:g,schemaUtils:h,formContext:y}=p,b=h.retrieveSchema(r.items,i),w=r.title||v,C=un(b),{widget:E="select",..._}=fe(n),N=kt(r,E,g);return $.jsx(N,{id:a&&a.$id,name:v,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:{..._,enumOptions:C},schema:r,uiSchema:n,registry:p,value:i,disabled:o,readonly:s,required:c,label:w,placeholder:l,formContext:y,autofocus:u,rawErrors:m})}renderFiles(){const{schema:r,uiSchema:a,idSchema:n,name:i,disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,onBlur:l,onFocus:d,registry:f,formData:p=[],rawErrors:m}=this.props,v=r.title||i,{widgets:g,formContext:h}=f,{widget:y="files",...b}=fe(a),w=kt(r,y,g);return $.jsx(w,{options:b,id:n&&n.$id,name:i,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:d,schema:r,uiSchema:a,title:v,value:p,disabled:o,readonly:s,required:c,registry:f,formContext:h,autofocus:u,rawErrors:m,label:""})}renderFixedArray(){const{schema:r,uiSchema:a={},formData:n=[],errorSchema:i,idPrefix:o,idSeparator:s="_",idSchema:u,name:c,disabled:l=!1,readonly:d=!1,autofocus:f=!1,required:p=!1,registry:m,onBlur:v,onFocus:g,rawErrors:h}=this.props,{keyedFormData:y}=this.state;let{formData:b=[]}=this.props;const w=r.title||c,C=fe(a),{schemaUtils:E,formContext:_}=m,R=($n(r.items)?r.items:[]).map((B,U)=>E.retrieveSchema(B,n[U])),k=$n(r.additionalItems)?E.retrieveSchema(r.additionalItems,n):null;(!b||b.length<R.length)&&(b=b||[],b=b.concat(new Array(R.length-b.length)));const F={canAdd:this.canAddItem(b)&&!!k,className:"field field-array field-array-fixed-items",disabled:l,idSchema:u,formData:n,items:y.map((B,U)=>{const{key:Y,item:L}=B,Z=L,J=U>=R.length,se=J&&$n(r.additionalItems)?E.retrieveSchema(r.additionalItems,Z):R[U],V=u.$id+s+U,D=E.toIdSchema(se,V,Z,o,s),M=J?a.additionalItems||{}:Array.isArray(a.items)?a.items[U]:a.items||{},P=i?i[U]:void 0;return this.renderArrayFieldItem({key:Y,index:U,name:c&&`${c}-${U}`,canRemove:J,canMoveUp:U>=R.length+1,canMoveDown:J&&U<b.length-1,itemSchema:se,itemData:Z,itemUiSchema:M,itemIdSchema:D,itemErrorSchema:P,autofocus:f&&U===0,onBlur:v,onFocus:g,rawErrors:h})}),onAddClick:this.onAddClick,readonly:d,required:p,registry:m,schema:r,uiSchema:a,title:w,formContext:_,rawErrors:h},W=pe("ArrayFieldTemplate",m,C);return $.jsx(W,{...F})}renderArrayFieldItem(r){const{key:a,index:n,name:i,canRemove:o=!0,canMoveUp:s=!0,canMoveDown:u=!0,itemSchema:c,itemData:l,itemUiSchema:d,itemIdSchema:f,itemErrorSchema:p,autofocus:m,onBlur:v,onFocus:g,rawErrors:h}=r,{disabled:y,hideError:b,idPrefix:w,idSeparator:C,readonly:E,uiSchema:_,registry:N,formContext:R}=this.props,{fields:{SchemaField:k}}=N,{orderable:F=!0,removable:W=!0}=fe(_),B={moveUp:F&&s,moveDown:F&&u,remove:W&&o,toolbar:!1};return B.toolbar=Object.keys(B).some(U=>B[U]),{children:$.jsx(k,{name:i,index:n,schema:c,uiSchema:d,formData:l,formContext:R,errorSchema:p,idPrefix:w,idSeparator:C,idSchema:f,required:this.isItemRequired(c),onChange:this.onChangeForIndex(n),onBlur:v,onFocus:g,registry:N,disabled:y,readonly:E,hideError:b,autofocus:m,rawErrors:h}),className:"array-item",disabled:y,hasToolbar:B.toolbar,hasMoveUp:B.moveUp,hasMoveDown:B.moveDown,hasRemove:B.remove,index:n,key:a,onAddIndexClick:this.onAddIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:E,registry:N}}};function T6(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,registry:o,required:s,disabled:u,readonly:c,autofocus:l,onChange:d,onFocus:f,onBlur:p,rawErrors:m}=e,{title:v}=t,{widgets:g,formContext:h}=o,{widget:y="checkbox",...b}=fe(a),w=kt(t,y,g);let C;if(Array.isArray(t.oneOf))C=un({oneOf:t.oneOf.map(E=>{if($n(E))return{...E,title:E.title||(E.const===!0?"Yes":"No")}}).filter(E=>E)});else{const E=t;t.enum=t.enum??[!0,!1],!E.enumNames&&t.enum&&t.enum.length===2&&t.enum.every(_=>typeof _=="boolean")?C=[{value:t.enum[0],label:t.enum[0]?"Yes":"No"},{value:t.enum[1],label:t.enum[1]?"Yes":"No"}]:C=un({enum:t.enum,enumNames:E.enumNames})}return $.jsx(w,{name:r,options:{...b,enumOptions:C},schema:t,uiSchema:a,id:n&&n.$id,onChange:d,onFocus:f,onBlur:p,label:v===void 0?r:v,value:i,required:s,disabled:u,readonly:c,registry:o,formContext:h,autofocus:l,rawErrors:m})}function x6(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++a<n;)i[a]=e[a+t];return i}var D6=x6,P6=Ws,R6=D6;function N6(e,t){return t.length<2?e:P6(e,R6(t,0,-1))}var k6=N6,M6=zi,F6=Bv,j6=k6,B6=Wa;function L6(e,t){return t=M6(t,e),e=j6(e,t),e==null||delete e[B6(F6(t))]}var l1=L6,G6=l1;function V6(e,t){return e==null?!0:G6(e,t)}var W6=V6;const d1=Xt(W6);let f1=class extends I.Component{constructor(r){super(r);we(this,"onOptionChange",r=>{const a=parseInt(r,10),{formData:n,onChange:i,options:o,registry:s}=this.props,{schemaUtils:u}=s,c=u.retrieveSchema(o[a],n);let l;if(En(n)==="object"&&(c.type==="object"||c.properties)){l=Object.assign({},n);const d=o.slice();d.splice(a,1);for(const f of d)if(f.properties)for(const p in f.properties)p in l&&d1(l,p)}i(u.getDefaultFormState(o[a],l)),this.setState({selectedOption:parseInt(r,10)})});const{formData:a,options:n}=this.props;this.state={selectedOption:this.getMatchingOption(0,a,n)}}componentDidUpdate(r,a){const{formData:n,options:i,idSchema:o}=this.props,{selectedOption:s}=this.state;if(!Ue(n,r.formData)&&o.$id===r.idSchema.$id){const u=this.getMatchingOption(s,n,i);if(!a||u===s)return;this.setState({selectedOption:u})}}getMatchingOption(r,a,n){const{schemaUtils:i}=this.props.registry,o=i.getMatchingOption(a,n);return o!==0?o:r||0}render(){const{name:r,baseType:a,disabled:n=!1,readonly:i=!1,hideError:o=!1,errorSchema:s={},formData:u,formContext:c,idPrefix:l,idSeparator:d,idSchema:f,onBlur:p,onChange:m,onFocus:v,options:g,registry:h,uiSchema:y,schema:b}=this.props,{widgets:w,fields:C}=h,{SchemaField:E}=C,{selectedOption:_}=this.state,{widget:N="select",...R}=fe(y),k=kt({type:"number"},N,w),F=g[_]||null;let W;F&&(W=F.type?F:Object.assign({},F,{type:a}));const B=g.map((U,Y)=>({label:U.title||`Option ${Y+1}`,value:Y}));return $.jsxs("div",{className:"panel panel-default panel-body",children:[$.jsx("div",{className:"form-group",children:$.jsx(k,{id:`${f.$id}${b.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:p,onFocus:v,value:_,options:{enumOptions:B},registry:h,formContext:c,...R,label:""})}),F!==null&&$.jsx(E,{name:r,schema:W,uiSchema:y,errorSchema:s,idSchema:f,idPrefix:l,idSeparator:d,formData:u,formContext:c,onChange:m,onBlur:p,onFocus:v,registry:h,disabled:n,readonly:i,hideError:o})]})}};const Y6=/\.([0-9]*0)*$/,U6=/[0.]0*$/;function H6(e){const{registry:t,onChange:r,formData:a,value:n}=e,[i,o]=I.useState(n),{StringField:s}=t.fields;let u=a;const c=I.useCallback(l=>{o(l),`${l}`.charAt(0)==="."&&(l=`0${l}`);const d=typeof l=="string"&&l.match(Y6)?Ln(l.replace(U6,"")):Ln(l);r(d)},[r]);if(typeof i=="string"&&typeof u=="number"){const l=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");i.match(l)&&(u=i)}return $.jsx(s,{...e,formData:u,onChange:c})}var X6=Object.prototype,z6=X6.hasOwnProperty;function Z6(e,t){return e!=null&&z6.call(e,t)}var J6=Z6,q6=J6,K6=Sv;function Q6(e,t){return e!=null&&K6(e,t,q6)}var eq=Q6;const tq=Xt(eq);let rq=class extends I.Component{constructor(){super(...arguments);we(this,"state",{wasPropertyKeyModified:!1,additionalProperties:{}});we(this,"onPropertyChange",(r,a=!1)=>(n,i)=>{const{formData:o,onChange:s,errorSchema:u}=this.props;n===void 0&&a&&(n="");const c={...o,[r]:n};s(c,u&&u&&{...u,[r]:i})});we(this,"onDropPropertyClick",r=>a=>{a.preventDefault();const{onChange:n,formData:i}=this.props,o={...i};d1(o,r),n(o)});we(this,"getAvailableKey",(r,a)=>{const{uiSchema:n}=this.props,{duplicateKeySuffixSeparator:i="-"}=fe(n);let o=0,s=r;for(;s in a;)s=`${r}${i}${++o}`;return s});we(this,"onKeyChange",r=>(a,n)=>{if(r===a)return;const{formData:i,onChange:o,errorSchema:s}=this.props;a=this.getAvailableKey(a,i);const u={...i},c={[r]:a},l=Object.keys(u).map(f=>({[c[f]||f]:u[f]})),d=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(d,s&&s&&{...s,[a]:n})});we(this,"handleAddClick",r=>()=>{if(!$n(r.additionalProperties))return;const{formData:a,onChange:n,registry:i}=this.props;let o=r.additionalProperties.type;const s={...a};if(ct in r.additionalProperties){const{schemaUtils:c}=i;o=c.retrieveSchema({$ref:r.additionalProperties[ct]},a).type}const u=this.getAvailableKey("newKey",s);mi(s,u,this.getDefaultValue(o)),n(s)})}isRequired(r){const{schema:a}=this.props;return Array.isArray(a.required)&&a.required.indexOf(r)!==-1}getDefaultValue(r){switch(r){case"string":return"New Value";case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return"New Value"}}render(){const{schema:r,uiSchema:a={},formData:n,errorSchema:i,idSchema:o,name:s,required:u=!1,disabled:c=!1,readonly:l=!1,hideError:d,idPrefix:f,idSeparator:p,onBlur:m,onFocus:v,registry:g}=this.props,{fields:h,formContext:y,schemaUtils:b}=g,{SchemaField:w}=h,C=b.retrieveSchema(r,n),E=fe(a),{properties:_={}}=C,N=C.title===void 0?s:C.title,R=E.description||C.description;let k;try{const B=Object.keys(_);k=nb(B,E.order)}catch(B){return $.jsxs("div",{children:[$.jsxs("p",{className:"config-error",style:{color:"red"},children:["Invalid ",s||"root"," object field configuration:",$.jsx("em",{children:B.message}),"."]}),$.jsx("pre",{children:JSON.stringify(C)})]})}const F=pe("ObjectFieldTemplate",g,E),W={title:E.title||N,description:R,properties:k.map(B=>{const U=tq(C,[at,B,Gn]),Y=U?a.additionalProperties:a[B],L=fe(Y).widget==="hidden",Z=Kn(o,[B],{});return{content:$.jsx(w,{name:B,required:this.isRequired(B),schema:Kn(C,[at,B],{}),uiSchema:Y,errorSchema:Kn(i,B),idSchema:Z,idPrefix:f,idSeparator:p,formData:Kn(n,B),formContext:y,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(B),onChange:this.onPropertyChange(B,U),onBlur:m,onFocus:v,registry:g,disabled:c,readonly:l,hideError:d,onDropPropertyClick:this.onDropPropertyClick},B),name:B,readonly:l,disabled:c,required:u,hidden:L}}),readonly:l,disabled:c,required:u,idSchema:o,uiSchema:a,schema:C,formData:n,formContext:y,registry:g};return $.jsx(F,{...W,onAddClick:this.handleAddClick})}};var nq=Ji;function aq(e){return nq(e)?void 0:e}var iq=aq,oq=cd,sq=Ov,uq=xv;function cq(e){return uq(sq(e,void 0,oq),e+"")}var lq=cq,dq=In,fq=Jg,pq=l1,hq=zi,mq=Ba,gq=iq,vq=lq,yq=Ag,bq=1,wq=2,Cq=4,Sq=vq(function(e,t){var r={};if(e==null)return r;var a=!1;t=dq(t,function(i){return i=hq(i,e),a||(a=i.length>1),i}),mq(e,yq(e),r),a&&(r=fq(r,bq|wq|Cq,gq));for(var n=t.length;n--;)pq(r,t[n]);return r}),$q=Sq;const p1=Xt($q),Iq={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Eq(e,t,r,a){const n=t.field,{fields:i}=a;if(typeof n=="function")return n;if(typeof n=="string"&&n in i)return i[n];const o=Tr(e),s=Array.isArray(o)?o[0]:o||"",u=Iq[s];return!u&&(e.anyOf||e.oneOf)?()=>null:u in i?i[u]:()=>{const c=pe("UnsupportedFieldTemplate",a,t);return $.jsx(c,{schema:e,idSchema:r,reason:`Unknown field type ${e.type}`,registry:a})}}function _q(e){const{id:t,help:r}=e;return r?typeof r=="string"?$.jsx("p",{id:t,className:"help-block",children:r}):$.jsx("div",{id:t,className:"help-block",children:r}):null}function Aq(e){const{errors:t=[]}=e;return t.length===0?null:$.jsx("div",{children:$.jsx("ul",{className:"error-detail bs-callout bs-callout-info",children:t.filter(r=>!!r).map((r,a)=>$.jsx("li",{className:"text-danger",children:r},a))})})}function Oq(e){const{schema:t,idSchema:r,uiSchema:a,formData:n,errorSchema:i,idPrefix:o,idSeparator:s,name:u,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,registry:p,wasPropertyKeyModified:m=!1}=e,{formContext:v,schemaUtils:g}=p,h=fe(a),y=pe("FieldTemplate",p,h),b=pe("DescriptionFieldTemplate",p,h),w=g.retrieveSchema(t,n),C=Dr(g.toIdSchema(w,r.$id,n,o,s),r),E=Eq(w,h,C,p),_=!!(e.disabled||h.disabled),N=!!(e.readonly||h.readonly||e.schema.readOnly||w.readOnly),R=h.hideError,k=R===void 0?e.hideError:!!R,F=!!(e.autofocus||h.autofocus);if(Object.keys(w).length===0)return null;const W=g.getDisplayLabel(w,a),{__errors:B,...U}=i||{},Y=p1(a,["ui:classNames","classNames"]);"ui:options"in Y&&(Y["ui:options"]=p1(Y["ui:options"],["classNames"]));const L=$.jsx(E,{...e,idSchema:C,schema:w,uiSchema:Y,disabled:_,readonly:N,hideError:k,autofocus:F,errorSchema:U,formContext:v,rawErrors:B}),Z=C[rn];let J;m?J=u:J=h.title||e.schema.title||w.title||u;const se=h.description||e.schema.description||w.description||"",V=B,D=h.help,M=h.widget==="hidden",P=["form-control","mb-2","field",`field-${w.type}`];!k&&V&&V.length>0&&P.push("field-error has-error has-danger"),a!=null&&a.classNames&&(console.warn("'uiSchema.classNames' is deprecated and may be removed in a major release; Use 'ui:classNames' instead."),P.push(a.classNames)),h.classNames&&P.push(h.classNames);const S={description:$.jsx(b,{schema:w,id:`${Z}__description`,description:se,registry:p}),rawDescription:se,help:$.jsx(_q,{id:`${Z}__help`,help:D}),rawHelp:typeof D=="string"?D:void 0,errors:k?void 0:$.jsx(Aq,{errors:V}),rawErrors:k?void 0:V,id:Z,label:J,hidden:M,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,disabled:_,readonly:N,hideError:k,displayLabel:W,classNames:P.join(" ").trim(),formContext:v,formData:n,schema:w,uiSchema:a,registry:p},T=p.fields.AnyOfField,j=p.fields.OneOfField;return $.jsx(y,{...S,children:$.jsxs($.Fragment,{children:[L,w.anyOf&&!(a!=null&&a["ui:field"])&&!g.isSelect(w)&&$.jsx(T,{name:u,disabled:_,readonly:N,hideError:k,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:C,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.anyOf.map(z=>g.retrieveSchema($n(z)?z:{},n)),baseType:w.type,registry:p,schema:w,uiSchema:a}),w.oneOf&&!(a!=null&&a["ui:field"])&&!g.isSelect(w)&&$.jsx(j,{name:u,disabled:_,readonly:N,hideError:k,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:C,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.oneOf.map(z=>g.retrieveSchema($n(z)?z:{},n)),baseType:w.type,registry:p,schema:w,uiSchema:a})]})})}let Tq=class extends I.Component{shouldComponentUpdate(t){return!Ue(this.props,t)}render(){return $.jsx(Oq,{...this.props})}};function xq(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,required:o,disabled:s=!1,readonly:u=!1,autofocus:c=!1,onChange:l,onBlur:d,onFocus:f,registry:p,rawErrors:m}=e,{title:v,format:g}=t,{widgets:h,formContext:y,schemaUtils:b}=p,w=b.isSelect(t)?un(t):void 0;let C=w?"select":"text";g&&qy(t,g,h)&&(C=g);const{widget:E=C,placeholder:_="",...N}=fe(a),R=kt(t,E,h);return $.jsx(R,{name:r,options:{...N,enumOptions:w},schema:t,uiSchema:a,id:n&&n.$id,label:v===void 0?r:v,value:i,onChange:l,onBlur:d,onFocus:f,required:o,disabled:s,readonly:u,formContext:y,autofocus:c,registry:p,placeholder:_,rawErrors:m})}function Dq(e){const{formData:t,onChange:r}=e;return I.useEffect(()=>{t===void 0&&r(null)},[t,r]),null}const Pq={AnyOfField:f1,ArrayField:O6,BooleanField:T6,NumberField:H6,ObjectField:rq,OneOfField:f1,SchemaField:Tq,StringField:xq,NullField:Dq};function Rq(e,t){return ob(e,t,function(r,a){return Xm(e,a)})}var h1=Fm(function(e,t){return e==null?{}:Rq(e,t)}),Nq=0;function kq(e){var t=++Nq;return il(e)+t}function Wf(){return kq("rjsf-array-item-")}function m1(e){return Array.isArray(e)?e.map(t=>({key:Wf(),item:t})):[]}function Ro(e){return Array.isArray(e)?e.map(t=>t.item):[]}class Mq extends I.Component{constructor(r){super(r);we(this,"_getNewFormDataRow",()=>{const{schema:r,registry:a}=this.props,{schemaUtils:n}=a;let i=r.items;return ro(r)&&xh(r)&&(i=r.additionalItems),n.getDefaultFormState(i)});we(this,"onAddClick",r=>{this._handleAddClick(r)});we(this,"onAddIndexClick",r=>a=>{this._handleAddClick(a,r)});we(this,"onCopyIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const l in i){const d=parseInt(l);d<=r?Et(s,[d],i[l]):d>r&&Et(s,[d+1],i[l])}}const u={key:Wf(),item:Yy(o[r].item)},c=[...o];r!==void 0?c.splice(r+1,0,u):c.push(u),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(Ro(c),s))});we(this,"onDropIndexClick",r=>a=>{a&&a.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const c in i){const l=parseInt(c);l<r?Et(s,[l],i[c]):l>r&&Et(s,[l-1],i[c])}}const u=o.filter((c,l)=>l!==r);this.setState({keyedFormData:u,updatedKeyedFormData:!0},()=>n(Ro(u),s))});we(this,"onReorderClick",(r,a)=>n=>{n&&(n.preventDefault(),n.currentTarget.blur());const{onChange:i,errorSchema:o}=this.props;let s;if(o){s={};for(const d in o){const f=parseInt(d);f==r?Et(s,[a],o[r]):f==a?Et(s,[r],o[a]):Et(s,[d],o[f])}}const{keyedFormData:u}=this.state;function c(){const d=u.slice();return d.splice(r,1),d.splice(a,0,u[r]),d}const l=c();this.setState({keyedFormData:l},()=>i(Ro(l),s))});we(this,"onChangeForIndex",r=>(a,n,i)=>{const{formData:o,onChange:s,errorSchema:u}=this.props,l=(Array.isArray(o)?o:[]).map((d,f)=>r===f?typeof a>"u"?null:a:d);s(l,u&&u&&{...u,[r]:n},i)});we(this,"onSelectChange",r=>{const{onChange:a,idSchema:n}=this.props;a(r,void 0,n&&n.$id)});const{formData:a=[]}=r,n=m1(a);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(r,a){if(a.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(r.formData)?r.formData:[],i=a.keyedFormData||[];return{keyedFormData:n.length===i.length?i.map((s,u)=>({key:s.key,item:n[u]})):m1(n)}}get itemTitle(){const{schema:r,registry:a}=this.props,{translateString:n}=a;return ue(r,[pr,"title"],ue(r,[pr,"description"],n(He.ArrayItemTitle)))}isItemRequired(r){return Array.isArray(r.type)?!r.type.includes("null"):r.type!=="null"}canAddItem(r){const{schema:a,uiSchema:n,registry:i}=this.props;let{addable:o}=fe(n,i.globalUiOptions);return o!==!1&&(a.maxItems!==void 0?o=r.length<a.maxItems:o=!0),o}_handleAddClick(r,a){r&&r.preventDefault();const{onChange:n,errorSchema:i}=this.props,{keyedFormData:o}=this.state;let s;if(i){s={};for(const l in i){const d=parseInt(l);a===void 0||d<a?Et(s,[d],i[l]):d>=a&&Et(s,[d+1],i[l])}}const u={key:Wf(),item:this._getNewFormDataRow()},c=[...o];a!==void 0?c.splice(a,0,u):c.push(u),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(Ro(c),s))}render(){const{schema:r,uiSchema:a,idSchema:n,registry:i}=this.props,{schemaUtils:o,translateString:s}=i;if(!(pr in r)){const u=fe(a),c=pe("UnsupportedFieldTemplate",i,u);return $.jsx(c,{schema:r,idSchema:n,reason:s(He.MissingItems),registry:i})}return o.isMultiSelect(r)?this.renderMultiSelect():wd(a)?this.renderCustomWidget():ro(r)?this.renderFixedArray():o.isFilesArray(r,a)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:r,uiSchema:a={},errorSchema:n,idSchema:i,name:o,title:s,disabled:u=!1,readonly:c=!1,autofocus:l=!1,required:d=!1,registry:f,onBlur:p,onFocus:m,idPrefix:v,idSeparator:g="_",rawErrors:h}=this.props,{keyedFormData:y}=this.state,b=r.title||s||o,{schemaUtils:w,formContext:C}=f,E=fe(a),_=qe(r.items)?r.items:{},N=w.retrieveSchema(_),R=Ro(this.state.keyedFormData),k=this.canAddItem(R),F={canAdd:k,items:y.map((B,U)=>{const{key:Y,item:L}=B,Z=L,J=w.retrieveSchema(_,Z),se=n?n[U]:void 0,V=i.$id+g+U,D=w.toIdSchema(J,V,Z,v,g);return this.renderArrayFieldItem({key:Y,index:U,name:o&&`${o}-${U}`,title:b?`${b}-${U+1}`:void 0,canAdd:k,canMoveUp:U>0,canMoveDown:U<R.length-1,itemSchema:J,itemIdSchema:D,itemErrorSchema:se,itemData:Z,itemUiSchema:a.items,autofocus:l&&U===0,onBlur:p,onFocus:m,rawErrors:h,totalItems:y.length})}),className:`field field-array field-array-of-${N.type}`,disabled:u,idSchema:i,uiSchema:a,onAddClick:this.onAddClick,readonly:c,required:d,schema:r,title:b,formContext:C,formData:R,rawErrors:h,registry:f},W=pe("ArrayFieldTemplate",f,E);return $.jsx(W,{...F})}renderCustomWidget(){const{schema:r,idSchema:a,uiSchema:n,disabled:i=!1,readonly:o=!1,autofocus:s=!1,required:u=!1,hideError:c,placeholder:l,onBlur:d,onFocus:f,formData:p=[],registry:m,rawErrors:v,name:g}=this.props,{widgets:h,formContext:y,globalUiOptions:b,schemaUtils:w}=m,{widget:C,title:E,..._}=fe(n,b),N=kt(r,C,h),R=E??r.title??g,k=w.getDisplayLabel(r,n,b);return $.jsx(N,{id:a.$id,name:g,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:_,schema:r,uiSchema:n,registry:m,value:p,disabled:i,readonly:o,hideError:c,required:u,label:R,hideLabel:!k,placeholder:l,formContext:y,autofocus:s,rawErrors:v})}renderMultiSelect(){const{schema:r,idSchema:a,uiSchema:n,formData:i=[],disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,placeholder:l,onBlur:d,onFocus:f,registry:p,rawErrors:m,name:v}=this.props,{widgets:g,schemaUtils:h,formContext:y,globalUiOptions:b}=p,w=h.retrieveSchema(r.items,i),C=un(w,n),{widget:E="select",title:_,...N}=fe(n,b),R=kt(r,E,g),k=_??r.title??v,F=h.getDisplayLabel(r,n,b);return $.jsx(R,{id:a.$id,name:v,multiple:!0,onChange:this.onSelectChange,onBlur:d,onFocus:f,options:{...N,enumOptions:C},schema:r,uiSchema:n,registry:p,value:i,disabled:o,readonly:s,required:c,label:k,hideLabel:!F,placeholder:l,formContext:y,autofocus:u,rawErrors:m})}renderFiles(){const{schema:r,uiSchema:a,idSchema:n,name:i,disabled:o=!1,readonly:s=!1,autofocus:u=!1,required:c=!1,onBlur:l,onFocus:d,registry:f,formData:p=[],rawErrors:m}=this.props,{widgets:v,formContext:g,globalUiOptions:h,schemaUtils:y}=f,{widget:b="files",title:w,...C}=fe(a,h),E=kt(r,b,v),_=w??r.title??i,N=y.getDisplayLabel(r,a,h);return $.jsx(E,{options:C,id:n.$id,name:i,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:d,schema:r,uiSchema:a,value:p,disabled:o,readonly:s,required:c,registry:f,formContext:g,autofocus:u,rawErrors:m,label:_,hideLabel:!N})}renderFixedArray(){const{schema:r,uiSchema:a={},formData:n=[],errorSchema:i,idPrefix:o,idSeparator:s="_",idSchema:u,name:c,title:l,disabled:d=!1,readonly:f=!1,autofocus:p=!1,required:m=!1,registry:v,onBlur:g,onFocus:h,rawErrors:y}=this.props,{keyedFormData:b}=this.state;let{formData:w=[]}=this.props;const C=r.title||l||c,E=fe(a),{schemaUtils:_,formContext:N}=v,k=(qe(r.items)?r.items:[]).map((Y,L)=>_.retrieveSchema(Y,n[L])),F=qe(r.additionalItems)?_.retrieveSchema(r.additionalItems,n):null;(!w||w.length<k.length)&&(w=w||[],w=w.concat(new Array(k.length-w.length)));const W=this.canAddItem(w)&&!!F,B={canAdd:W,className:"field field-array field-array-fixed-items",disabled:d,idSchema:u,formData:n,items:b.map((Y,L)=>{const{key:Z,item:J}=Y,se=J,V=L>=k.length,D=(V&&qe(r.additionalItems)?_.retrieveSchema(r.additionalItems,se):k[L])||{},M=u.$id+s+L,P=_.toIdSchema(D,M,se,o,s),S=V?a.additionalItems||{}:Array.isArray(a.items)?a.items[L]:a.items||{},T=i?i[L]:void 0;return this.renderArrayFieldItem({key:Z,index:L,name:c&&`${c}-${L}`,title:C?`${C}-${L+1}`:void 0,canAdd:W,canRemove:V,canMoveUp:L>=k.length+1,canMoveDown:V&&L<w.length-1,itemSchema:D,itemData:se,itemUiSchema:S,itemIdSchema:P,itemErrorSchema:T,autofocus:p&&L===0,onBlur:g,onFocus:h,rawErrors:y,totalItems:b.length})}),onAddClick:this.onAddClick,readonly:f,required:m,registry:v,schema:r,uiSchema:a,title:C,formContext:N,errorSchema:i,rawErrors:y},U=pe("ArrayFieldTemplate",v,E);return $.jsx(U,{...B})}renderArrayFieldItem(r){const{key:a,index:n,name:i,canAdd:o,canRemove:s=!0,canMoveUp:u,canMoveDown:c,itemSchema:l,itemData:d,itemUiSchema:f,itemIdSchema:p,itemErrorSchema:m,autofocus:v,onBlur:g,onFocus:h,rawErrors:y,totalItems:b,title:w}=r,{disabled:C,hideError:E,idPrefix:_,idSeparator:N,readonly:R,uiSchema:k,registry:F,formContext:W}=this.props,{fields:{ArraySchemaField:B,SchemaField:U},globalUiOptions:Y}=F,L=B||U,{orderable:Z=!0,removable:J=!0,copyable:se=!1}=fe(k,Y),V={moveUp:Z&&u,moveDown:Z&&c,copy:se&&o,remove:J&&s,toolbar:!1};return V.toolbar=Object.keys(V).some(D=>V[D]),{children:$.jsx(L,{name:i,title:w,index:n,schema:l,uiSchema:f,formData:d,formContext:W,errorSchema:m,idPrefix:_,idSeparator:N,idSchema:p,required:this.isItemRequired(l),onChange:this.onChangeForIndex(n),onBlur:g,onFocus:h,registry:F,disabled:C,readonly:R,hideError:E,autofocus:v,rawErrors:y}),className:"array-item",disabled:C,canAdd:o,hasCopy:V.copy,hasToolbar:V.toolbar,hasMoveUp:V.moveUp,hasMoveDown:V.moveDown,hasRemove:V.remove,index:n,totalItems:b,key:a,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:R,registry:F,schema:l,uiSchema:f}}}function Fq(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,registry:o,required:s,disabled:u,readonly:c,hideError:l,autofocus:d,title:f,onChange:p,onFocus:m,onBlur:v,rawErrors:g}=e,{title:h}=t,{widgets:y,formContext:b,translateString:w,globalUiOptions:C}=o,{widget:E="checkbox",title:_,label:N=!0,...R}=fe(a,C),k=kt(t,E,y),F=w(He.YesLabel),W=w(He.NoLabel);let B;const U=_??h??f??r;if(Array.isArray(t.oneOf))B=un({oneOf:t.oneOf.map(Y=>{if(qe(Y))return{...Y,title:Y.title||(Y.const===!0?F:W)}}).filter(Y=>Y)},a);else{const Y=t,L=t.enum??[!0,!1];!Y.enumNames&&L.length===2&&L.every(Z=>typeof Z=="boolean")?B=[{value:L[0],label:L[0]?F:W},{value:L[1],label:L[1]?F:W}]:B=un({enum:L,enumNames:Y.enumNames},a)}return $.jsx(k,{options:{...R,enumOptions:B},schema:t,uiSchema:a,id:n.$id,name:r,onChange:p,onFocus:m,onBlur:v,label:U,hideLabel:!N,value:i,required:s,disabled:u,readonly:c,hideError:l,registry:o,formContext:b,autofocus:d,rawErrors:g})}class g1 extends I.Component{constructor(r){super(r);we(this,"onOptionChange",r=>{const{selectedOption:a,retrievedOptions:n}=this.state,{formData:i,onChange:o,registry:s}=this.props,{schemaUtils:u}=s,c=r!==void 0?parseInt(r,10):-1;if(c===a)return;const l=c>=0?n[c]:void 0,d=a>=0?n[a]:void 0;let f=u.sanitizeDataForNewSchema(l,d,i);l&&(f=u.getDefaultFormState(l,f,"excludeObjectChildren")),this.setState({selectedOption:c},()=>{o(f,void 0,this.getFieldId())})});const{formData:a,options:n,registry:{schemaUtils:i}}=this.props,o=n.map(s=>i.retrieveSchema(s,a));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,a,o)}}componentDidUpdate(r,a){const{formData:n,options:i,idSchema:o}=this.props,{selectedOption:s}=this.state;let u=this.state;if(!Ue(r.options,i)){const{registry:{schemaUtils:c}}=this.props,l=i.map(d=>c.retrieveSchema(d,n));u={selectedOption:s,retrievedOptions:l}}if(!Ue(n,r.formData)&&o.$id===r.idSchema.$id){const{retrievedOptions:c}=u,l=this.getMatchingOption(s,n,c);a&&l!==s&&(u={selectedOption:l,retrievedOptions:c})}u!==this.state&&this.setState(u)}getMatchingOption(r,a,n){const{schema:i,registry:{schemaUtils:o}}=this.props,s=Za(i);return o.getClosestMatchingOption(a,n,r,s)}getFieldId(){const{idSchema:r,schema:a}=this.props;return`${r.$id}${a.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:r,disabled:a=!1,errorSchema:n={},formContext:i,onBlur:o,onFocus:s,readonly:u,registry:c,schema:l,uiSchema:d}=this.props,{widgets:f,fields:p,translateString:m,globalUiOptions:v,schemaUtils:g}=c,{SchemaField:h}=p,{selectedOption:y,retrievedOptions:b}=this.state,{widget:w="select",placeholder:C,autofocus:E,autocomplete:_,title:N=l.title,...R}=fe(d,v),k=kt({type:"number"},w,f),F=ue(n,zt,[]),W=Ss(n,[zt]),B=g.getDisplayLabel(l,d,v),U=y>=0&&b[y]||null;let Y;if(U){const{required:D}=l;Y=D?sn({required:D},U):U}let L=[];Zt in l&&d&&Zt in d?Array.isArray(d[Zt])?L=d[Zt]:console.warn(`uiSchema.oneOf is not an array for "${N||r}"`):fr in l&&d&&fr in d&&(Array.isArray(d[fr])?L=d[fr]:console.warn(`uiSchema.anyOf is not an array for "${N||r}"`));let Z=d;y>=0&&L.length>y&&(Z=L[y]);const J=N?He.TitleOptionPrefix:He.OptionPrefix,se=N?[N]:[],V=b.map((D,M)=>{const{title:P=D.title}=fe(L[M]);return{label:P||m(J,se.concat(String(M+1))),value:M}});return $.jsxs("div",{className:"panel panel-default panel-body",children:[$.jsx("div",{className:"form-group",children:$.jsx(k,{id:this.getFieldId(),name:`${r}${l.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:s,disabled:a||Da(V),multiple:!1,rawErrors:F,errorSchema:W,value:y>=0?y:void 0,options:{enumOptions:V,...R},registry:c,formContext:i,placeholder:C,autocomplete:_,autofocus:E,label:N??r,hideLabel:!B,readonly:u})}),Y&&Y.type!=="null"&&$.jsx(h,{...this.props,schema:Y,uiSchema:Z})]})}}const jq=/\.([0-9]*0)*$/,Bq=/[0.]0*$/;function Lq(e){const{registry:t,onChange:r,formData:a,value:n}=e,[i,o]=I.useState(n),{StringField:s}=t.fields;let u=a;const c=I.useCallback((l,d,f)=>{o(l),`${l}`.charAt(0)==="."&&(l=`0${l}`);const p=typeof l=="string"&&l.match(jq)?Ln(l.replace(Bq,"")):Ln(l);r(p,d,f)},[r]);if(typeof i=="string"&&typeof u=="number"){const l=new RegExp(`^(${String(u).replace(".","\\.")})?\\.?0*$`);i.match(l)&&(u=i)}return $.jsx(s,{...e,formData:u,onChange:c})}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},da.apply(this,arguments)}const Gq=["children","options"],v1=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","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),{class:"className",for:"htmlFor"}),y1={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Vq=["style","script","pre"],Wq=["src","href","data","formAction","srcDoc","action"],Yq=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Uq=/\n{2,}$/,b1=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Hq=/^ *> ?/gm,Xq=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,zq=/^ {2,}\n/,Zq=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,w1=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,C1=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Jq=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,qq=/^(?:\n *)*\n/,Kq=/\r\n?/g,Qq=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,eK=/^\[\^([^\]]+)]/,tK=/\f/g,rK=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,nK=/^\s*?\[(x|\s)\]/,S1=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$1=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,I1=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Yf=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,aK=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,E1=/^<!--[\s\S]*?(?:-->)/,iK=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uf=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oK=/^\{.*\}$/,sK=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,uK=/^<([^ >]+[:@\/][^ >]+)>/,cK=/-([a-z])?/gi,_1=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,lK=/^[^\n]+(?: \n|\n{2,})/,dK=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,fK=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,pK=/^\[([^\]]*)\] ?\[([^\]]*)\]/,hK=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,mK=/\t/g,gK=/(^ *\||\| *$)/g,vK=/^ *:-+: *$/,yK=/^ *:-+ *$/,bK=/^ *-+: *$/,qu=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Ku="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wK=RegExp(`^([*_])\\1${qu(1)}${Ku}\\1\\1(?!\\1)`),CK=RegExp(`^([*_])${qu(0)}${Ku}\\1(?!\\1)`),SK=RegExp(`^(==)${qu(0)}${Ku}\\1`),$K=RegExp(`^(~~)${qu(0)}${Ku}\\1`),IK=/^(:[a-zA-Z0-9-_]+:)/,EK=/^\\([^0-9A-Za-z\s])/,_K=/\\([^0-9A-Za-z\s])/g,AK=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,OK=/^\n+/,TK=/^([ \t]*)/,xK=/(?:^|\n)( *)$/,Hf="(?:\\d+\\.)",Xf="(?:[*+-])";function A1(e){return"( *)("+(e===1?Hf:Xf)+") +"}const O1=A1(1),T1=A1(2);function x1(e){return RegExp("^"+(e===1?O1:T1))}const DK=x1(1),PK=x1(2);function D1(e){return RegExp("^"+(e===1?O1:T1)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Hf:Xf)+" )[^\\n]*)*(\\n|$)","gm")}const RK=D1(1),NK=D1(2);function P1(e){const t=e===1?Hf:Xf;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const R1=P1(1),N1=P1(2);function k1(e,t){const r=t===1,a=r?R1:N1,n=r?RK:NK,i=r?DK:PK;return{t:o=>i.test(o),o:gi(function(o,s){const u=xK.exec(s.prevCapture);return u&&(s.list||!s.inline&&!s.simple)?a.exec(o=u[1]+o):null}),i:1,u(o,s,u){const c=r?+o[2]:void 0,l=o[0].replace(Uq,`
|
|
75
75
|
`).match(n);let d=!1;return{items:l.map(function(f,p){const m=i.exec(f)[0].length,v=RegExp("^ {1,"+m+"}","gm"),g=f.replace(v,"").replace(i,""),h=p===l.length-1,y=g.indexOf(`
|
|
76
76
|
|
|
77
77
|
`)!==-1||h&&d;d=y;const b=u.inline,w=u.list;let C;u.list=!0,y?(u.inline=!1,C=No(g)+`
|
|
78
78
|
|
|
79
|
-
`):(u.inline=!0,C=No(g));const E=s(C,u);return u.inline=b,u.list=w,E}),ordered:r,start:c}},l:(o,s,u)=>e(o.ordered?"ol":"ul",{key:u.key,start:o.type==="20"?o.start:void 0},o.items.map(function(c,l){return e("li",{key:l},s(c,u))}))}}const
|
|
80
|
-
`).map(function(c){return
|
|
79
|
+
`):(u.inline=!0,C=No(g));const E=s(C,u);return u.inline=b,u.list=w,E}),ordered:r,start:c}},l:(o,s,u)=>e(o.ordered?"ol":"ul",{key:u.key,start:o.type==="20"?o.start:void 0},o.items.map(function(c,l){return e("li",{key:l},s(c,u))}))}}const kK=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),MK=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function M1(e){return typeof e=="string"}function No(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Qu(e,t){return e.startsWith(t)}function FK(e,t,r){if(Array.isArray(r)){for(let a=0;a<r.length;a++)if(Qu(e,r[a]))return!0;return!1}return r(e,t)}function ko(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 jK(e){return bK.test(e)?"right":vK.test(e)?"center":yK.test(e)?"left":null}function F1(e,t,r,a){const n=r.inTable;r.inTable=!0;let i=[[]],o="";function s(){if(!o)return;const u=i[i.length-1];u.push.apply(u,t(o,r)),o=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,c,l)=>{u.trim()==="|"&&(s(),a)?c!==0&&c!==l.length-1&&i.push([]):o+=u}),s(),r.inTable=n,i}function BK(e,t,r){r.inline=!0;const a=e[2]?e[2].replace(gK,"").split("|").map(jK):[],n=e[3]?function(o,s,u){return o.trim().split(`
|
|
80
|
+
`).map(function(c){return F1(c,s,u,!0)})}(e[3],t,r):[],i=F1(e[1],t,r,!!n.length);return r.inline=!1,n.length?{align:a,cells:n,header:i,type:"25"}:{children:i,type:"21"}}function j1(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function gi(e){return e.inline=1,e}function fa(e){return gi(function(t,r){return r.inline?e.exec(t):null})}function Nn(e){return gi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function mn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function ec(e){return gi(function(t){return e.exec(t)})}const LK=/(javascript|vbscript|data(?!:image)):/i;function GK(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(LK.test(t))return null}catch{return null}return e}function Ur(e){return e&&e.replace(_K,"$1")}function tc(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!0,r.simple=!0;const i=e(t,r);return r.inline=a,r.simple=n,i}function VK(e,t,r){const a=r.inline||!1,n=r.simple||!1;r.inline=!1,r.simple=!0;const i=e(t,r);return r.inline=a,r.simple=n,i}function WK(e,t,r){const a=r.inline||!1;r.inline=!1;const n=e(t,r);return r.inline=a,n}const zf=(e,t,r)=>({children:tc(t,e[2],r)});function Zf(){return{}}function Jf(){return null}function YK(...e){return e.filter(Boolean).join(" ")}function qf(e,t,r){let a=e;const n=t.split(".");for(;n.length&&(a=a[n[0]],a!==void 0);)n.shift();return a||r}function UK(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?da({},y1,t.namedCodesToUnicode):y1;const r=t.slugify||ko,a=t.sanitizer||GK,n=t.createElement||ne.createElement,i=[b1,w1,C1,t.enforceAtxHeadings?$1:S1,I1,_1,R1,N1],o=[...i,lK,Yf,E1,Uf];function s(h,y){for(let b=0;b<h.length;b++)if(h[b].test(y))return!0;return!1}function u(h,y,...b){const w=qf(t.overrides,h+".props",{});return n(function(C,E){const _=qf(E,C);return _?typeof _=="function"||typeof _=="object"&&"render"in _?_:qf(E,C+".component",C):C}(h,t.overrides),da({},y,w,{className:YK(y==null?void 0:y.className,w.className)||void 0}),...b)}function c(h){h=h.replace(rK,"");let y=!1;t.forceInline?y=!0:t.forceBlock||(y=hK.test(h)===!1);const b=v(m(y?h:No(h).replace(OK,"")+`
|
|
81
81
|
|
|
82
|
-
`,{inline:y}));for(;
|
|
83
|
-
`);return y>0&&y<h.length-1&&(h[y+1]==="="||h[y+1]==="-")},o:mn(
|
|
84
|
-
`],o:mn(
|
|
82
|
+
`,{inline:y}));for(;M1(b[b.length-1])&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;const w=t.wrapper||(y?"span":"div");let C;if(b.length>1||t.forceWrapper)C=b;else{if(b.length===1)return C=b[0],typeof C=="string"?u("span",{key:"outer"},C):C;C=null}return n(w,{key:"outer"},C)}function l(h,y){if(!y||!y.trim())return null;const b=y.match(Yq);return b?b.reduce(function(w,C){const E=C.indexOf("=");if(E!==-1){const _=function(F){return F.indexOf("-")!==-1&&F.match(iK)===null&&(F=F.replace(cK,function(W,B){return B.toUpperCase()})),F}(C.slice(0,E)).trim(),N=function(F){const W=F[0];return(W==='"'||W==="'")&&F.length>=2&&F[F.length-1]===W?F.slice(1,-1):F}(C.slice(E+1).trim()),R=v1[_]||_;if(R==="ref")return w;const k=w[R]=function(F,W,B,U){return W==="style"?function(Y){const L=[];let Z="",J=!1,se=!1,V="";if(!Y)return L;for(let M=0;M<Y.length;M++){const P=Y[M];if(P!=='"'&&P!=="'"||J||(se?P===V&&(se=!1,V=""):(se=!0,V=P)),P==="("&&Z.endsWith("url")?J=!0:P===")"&&J&&(J=!1),P!==";"||se||J)Z+=P;else{const S=Z.trim();if(S){const T=S.indexOf(":");if(T>0){const j=S.slice(0,T).trim(),z=S.slice(T+1).trim();L.push([j,z])}}Z=""}}const D=Z.trim();if(D){const M=D.indexOf(":");if(M>0){const P=D.slice(0,M).trim(),S=D.slice(M+1).trim();L.push([P,S])}}return L}(B).reduce(function(Y,[L,Z]){return Y[L.replace(/(-[a-z])/g,J=>J[1].toUpperCase())]=U(Z,F,L),Y},{}):Wq.indexOf(W)!==-1?U(Ur(B),F,W):(B.match(oK)&&(B=Ur(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)}(h,_,N,a);typeof k=="string"&&(Yf.test(k)||Uf.test(k))&&(w[R]=c(k.trim()))}else C!=="style"&&(w[v1[C]||C]=!0);return w},{}):null}const d=[],f={},p={0:{t:[">"],o:mn(b1),i:1,u(h,y,b){const[,w,C]=h[0].replace(Hq,"").match(Xq);return{alert:w,children:y(C,b)}},l(h,y,b){const w={key:b.key};return h.alert&&(w.className="markdown-alert-"+r(h.alert.toLowerCase(),ko),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",w,y(h.children,b))}},1:{t:[" "],o:ec(zq),i:1,u:Zf,l:(h,y,b)=>u("br",{key:b.key})},2:{t:["--","__","**","- ","* ","_ "],o:mn(Zq),i:1,u:Zf,l:(h,y,b)=>u("hr",{key:b.key})},3:{t:[" "],o:mn(C1),i:0,u:h=>({lang:void 0,text:Ur(No(h[0].replace(/^ {4}/gm,"")))}),l:(h,y,b)=>u("pre",{key:b.key},u("code",da({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:mn(w1),i:0,u:h=>({attrs:l("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:Nn(Jq),i:3,u:h=>({text:Ur(h[2])}),l:(h,y,b)=>u("code",{key:b.key},h.text)},6:{t:["[^"],o:mn(Qq),i:0,u:h=>(d.push({footnote:h[2],identifier:h[1]}),{}),l:Jf},7:{t:["[^"],o:fa(eK),i:1,u:h=>({target:"#"+r(h[1],ko),text:h[1]}),l:(h,y,b)=>u("a",{key:b.key,href:a(h.target,"a","href")},u("sup",{key:b.key},h.text))},8:{t:["[ ]","[x]"],o:fa(nK),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,y,b)=>u("input",{checked:h.completed,key:b.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:mn(t.enforceAtxHeadings?$1:S1),i:1,u:(h,y,b)=>({children:tc(y,h[2],b),id:r(h[2],ko),level:h[1].length}),l:(h,y,b)=>u("h"+h.level,{id:h.id,key:b.key},y(h.children,b))},10:{t:h=>{const y=h.indexOf(`
|
|
83
|
+
`);return y>0&&y<h.length-1&&(h[y+1]==="="||h[y+1]==="-")},o:mn(I1),i:1,u:(h,y,b)=>({children:tc(y,h[1],b),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ec(Yf),i:1,u(h,y,b){const[,w]=h[3].match(TK),C=RegExp("^"+w,"gm"),E=h[3].replace(C,""),_=s(o,E)?WK:tc,N=h[1].toLowerCase(),R=Vq.indexOf(N)!==-1,k=(R?N:h[1]).trim(),F={attrs:l(k,h[2]),noInnerParse:R,tag:k};if(b.inAnchor=b.inAnchor||N==="a",R)F.text=h[3];else{const W=b.inHTML;b.inHTML=!0,F.children=_(y,E,b),b.inHTML=W}return b.inAnchor=!1,F},l:(h,y,b)=>u(h.tag,da({key:b.key},h.attrs),h.text||(h.children?y(h.children,b):""))},13:{t:["<"],o:ec(Uf),i:1,u(h){const y=h[1].trim();return{attrs:l(y,h[2]||""),tag:y}},l:(h,y,b)=>u(h.tag,da({},h.attrs,{key:b.key}))},12:{t:["<!--"],o:ec(E1),i:1,u:()=>({}),l:Jf},14:{t:["!["],o:Nn(MK),i:1,u:h=>({alt:Ur(h[1]),target:Ur(h[2]),title:Ur(h[3])}),l:(h,y,b)=>u("img",{key:b.key,alt:h.alt||void 0,title:h.title||void 0,src:a(h.target,"img","src")})},15:{t:["["],o:fa(kK),i:3,u:(h,y,b)=>({children:VK(y,h[1],b),target:Ur(h[2]),title:Ur(h[3])}),l:(h,y,b)=>u("a",{key:b.key,href:a(h.target,"a","href"),title:h.title},y(h.children,b))},16:{t:["<"],o:fa(uK),i:0,u(h){let y=h[1],b=!1;return y.indexOf("@")!==-1&&y.indexOf("//")===-1&&(b=!0,y=y.replace("mailto:","")),{children:[{text:y,type:"27"}],target:b?"mailto:"+y:y,type:"15"}}},17:{t:(h,y)=>!y.inAnchor&&!t.disableAutoLink&&(Qu(h,"http://")||Qu(h,"https://")),o:fa(sK),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:k1(u,1),33:k1(u,2),19:{t:[`
|
|
84
|
+
`],o:mn(qq),i:3,u:Zf,l:()=>`
|
|
85
85
|
`},21:{o:gi(function(h,y){if(y.inline||y.simple||y.inHTML&&h.indexOf(`
|
|
86
86
|
|
|
87
87
|
`)===-1&&y.prevCapture.indexOf(`
|
|
88
88
|
|
|
89
89
|
`)===-1)return null;let b="",w=0;for(;;){const E=h.indexOf(`
|
|
90
|
-
`,w),_=h.slice(w,E===-1?void 0:E+1);if(s(i,_)||(b+=_,E===-1||!_.trim()))break;w=E+1}const C=No(b);return C===""?null:[b,,C]}),i:3,u:zf,l:(h,y,b)=>u("p",{key:b.key},y(h.children,b))},22:{t:["["],o:fa(
|
|
91
|
-
`).replace(eK,"").replace(hK," ")}(w),C)}}(p),v=function(h,y){return function b(w,C={}){if(Array.isArray(w)){const E=C.key,_=[];let N=!1;for(let R=0;R<w.length;R++){C.key=R;const k=b(w[R],C),F=k1(k);F&&N?_[_.length-1]+=k:k!==null&&_.push(k),N=F}return C.key=E,_}return function(E,_,N){const R=h[E.type].l;return y?y(()=>R(E,_,N),E,_,N):R(E,_,N)}(w,b,C)}}(p,t.renderRule),g=c(e);return d.length?u("div",null,g,u("footer",{key:"footer"},d.map(function(h){return u("div",{id:r(h.identifier,ko),key:h.identifier},h.identifier,v(m(h.footnote,{inline:!0})))}))):g}const tc=e=>{let{children:t,options:r}=e,a=function(n,i){if(n==null)return{};var o,s,u={},c=Object.keys(n);for(s=0;s<c.length;s++)i.indexOf(o=c[s])>=0||(u[o]=n[o]);return u}(e,Lq);return ne.cloneElement(YK(t??"",r),a)};function UK(e,t){return e==null?!0:Pm(e,t)}class HK extends I.Component{constructor(){super(...arguments);we(this,"state",{wasPropertyKeyModified:!1,additionalProperties:{}});we(this,"onPropertyChange",(r,a=!1)=>(n,i,o)=>{const{formData:s,onChange:u,errorSchema:c}=this.props;n===void 0&&a&&(n="");const l={...s,[r]:n};u(l,c&&c&&{...c,[r]:i},o)});we(this,"onDropPropertyClick",r=>a=>{a.preventDefault();const{onChange:n,formData:i}=this.props,o={...i};UK(o,r),n(o)});we(this,"getAvailableKey",(r,a)=>{const{uiSchema:n,registry:i}=this.props,{duplicateKeySuffixSeparator:o="-"}=fe(n,i.globalUiOptions);let s=0,u=r;for(;Nt(a,u);)u=`${r}${o}${++s}`;return u});we(this,"onKeyChange",r=>(a,n)=>{if(r===a)return;const{formData:i,onChange:o,errorSchema:s}=this.props;a=this.getAvailableKey(a,i);const u={...i},c={[r]:a},l=Object.keys(u).map(f=>({[c[f]||f]:u[f]})),d=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(d,s&&s&&{...s,[a]:n})});we(this,"handleAddClick",r=>()=>{if(!r.additionalProperties)return;const{formData:a,onChange:n,registry:i}=this.props,o={...a};let s,u,c;if(qe(r.additionalProperties)){s=r.additionalProperties.type,u=r.additionalProperties.const,c=r.additionalProperties.default;let f=r.additionalProperties;if(ct in f){const{schemaUtils:p}=i;f=p.retrieveSchema({$ref:f[ct]},a),s=f.type,u=f.const,c=f.default}!s&&(fr in f||Zt in f)&&(s="object")}const l=this.getAvailableKey("newKey",o),d=u??c??this.getDefaultValue(s);Et(o,l,d),n(o)})}isRequired(r){const{schema:a}=this.props;return Array.isArray(a.required)&&a.required.indexOf(r)!==-1}getDefaultValue(r){const{registry:{translateString:a}}=this.props;switch(r){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return a(He.NewStringDefault)}}render(){const{schema:r,uiSchema:a={},formData:n,errorSchema:i,idSchema:o,name:s,required:u=!1,disabled:c,readonly:l,hideError:d,idPrefix:f,idSeparator:p,onBlur:m,onFocus:v,registry:g,title:h}=this.props,{fields:y,formContext:b,schemaUtils:w,translateString:C,globalUiOptions:E}=g,{SchemaField:_}=y,N=w.retrieveSchema(r,n),R=fe(a,E),{properties:k={}}=N,F=R.title??N.title??h??s,W=R.description??N.description;let B;try{const L=Object.keys(k);B=nb(L,R.order)}catch(L){return $.jsxs("div",{children:[$.jsx("p",{className:"config-error",style:{color:"red"},children:$.jsx(tc,{options:{disableParsingRawHTML:!0},children:C(He.InvalidObjectField,[s||"root",L.message])})}),$.jsx("pre",{children:JSON.stringify(N)})]})}const U=pe("ObjectFieldTemplate",g,R),Y={title:R.label===!1?"":F,description:R.label===!1?void 0:W,properties:B.map(L=>{const Z=Nt(N,[at,L,Gn]),J=Z?a.additionalProperties:a[L],se=fe(J).widget==="hidden",V=ue(o,[L],{});return{content:$.jsx(_,{name:L,required:this.isRequired(L),schema:ue(N,[at,L],{}),uiSchema:J,errorSchema:ue(i,L),idSchema:V,idPrefix:f,idSeparator:p,formData:ue(n,L),formContext:b,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(L),onChange:this.onPropertyChange(L,Z),onBlur:m,onFocus:v,registry:g,disabled:c,readonly:l,hideError:d,onDropPropertyClick:this.onDropPropertyClick},L),name:L,readonly:l,disabled:c,required:u,hidden:se}}),readonly:l,disabled:c,required:u,idSchema:o,uiSchema:a,errorSchema:i,schema:N,formData:n,formContext:b,registry:g};return $.jsx(U,{...Y,onAddClick:this.handleAddClick})}}const XK={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function zK(e,t,r,a){const n=t.field,{fields:i,translateString:o}=a;if(typeof n=="function")return n;if(typeof n=="string"&&n in i)return i[n];const s=Tr(e),u=Array.isArray(s)?s[0]:s||"",c=e.$id;let l=XK[u];return c&&c in i&&(l=c),!l&&(e.anyOf||e.oneOf)?()=>null:l in i?i[l]:()=>{const d=pe("UnsupportedFieldTemplate",a,t);return $.jsx(d,{schema:e,idSchema:r,reason:o(He.UnknownFieldType,[String(e.type)]),registry:a})}}function ZK(e){const{schema:t,idSchema:r,uiSchema:a,formData:n,errorSchema:i,idPrefix:o,idSeparator:s,name:u,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,registry:p,wasPropertyKeyModified:m=!1}=e,{formContext:v,schemaUtils:g,globalUiOptions:h}=p,y=fe(a,h),b=pe("FieldTemplate",p,y),w=pe("DescriptionFieldTemplate",p,y),C=pe("FieldHelpTemplate",p,y),E=pe("FieldErrorTemplate",p,y),_=g.retrieveSchema(t,n),N=r[rn],R=Dr(g.toIdSchema(_,N,n,o,s),r),k=I.useCallback((Ve,wt,Ut)=>c(Ve,wt,Ut||N),[N,c]),F=zK(_,y,R,p),W=!!(y.disabled??e.disabled),B=!!(y.readonly??(e.readonly||e.schema.readOnly||_.readOnly)),U=y.hideError,Y=U===void 0?e.hideError:!!U,L=!!(y.autofocus??e.autofocus);if(Object.keys(_).length===0)return null;const Z=g.getDisplayLabel(_,a,h),{__errors:J,...se}=i||{},V=Ss(a,["ui:classNames","classNames","ui:style"]);ki in V&&(V[ki]=Ss(V[ki],["classNames","style"]));const D=$.jsx(F,{...e,onChange:k,idSchema:R,schema:_,uiSchema:V,disabled:W,readonly:B,hideError:Y,autofocus:L,errorSchema:se,formContext:v,rawErrors:J}),M=R[rn];let P;m?P=u:P=Gn in _?u:y.title||e.schema.title||_.title||e.title||u;const S=y.description||e.schema.description||_.description||"",T=y.enableMarkdownInDescription?$.jsx(tc,{options:{disableParsingRawHTML:!0},children:S}):S,j=y.help,z=y.widget==="hidden",H=["form-group","field",`field-${Tr(_)}`];!Y&&J&&J.length>0&&H.push("field-error has-error has-danger"),a!=null&&a.classNames&&(process.env.NODE_ENV!=="production"&&console.warn("'uiSchema.classNames' is deprecated and may be removed in a major release; Use 'ui:classNames' instead."),H.push(a.classNames)),y.classNames&&H.push(y.classNames);const Q=$.jsx(C,{help:j,idSchema:R,schema:_,uiSchema:a,hasErrors:!Y&&J&&J.length>0,registry:p}),ce=Y||(_.anyOf||_.oneOf)&&!g.isSelect(_)?void 0:$.jsx(E,{errors:J,errorSchema:i,idSchema:R,schema:_,uiSchema:a,registry:p}),Ee={description:$.jsx(w,{id:oo(M),description:T,schema:_,uiSchema:a,registry:p}),rawDescription:S,help:Q,rawHelp:typeof j=="string"?j:void 0,errors:ce,rawErrors:Y?void 0:J,id:M,label:P,hidden:z,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,disabled:W,readonly:B,hideError:Y,displayLabel:Z,classNames:H.join(" ").trim(),style:y.style,formContext:v,formData:n,schema:_,uiSchema:a,registry:p},ee=p.fields.AnyOfField,pt=p.fields.OneOfField,te=(a==null?void 0:a["ui:field"])&&(a==null?void 0:a["ui:fieldReplacesAnyOrOneOf"])===!0;return $.jsx(b,{...Ee,children:$.jsxs($.Fragment,{children:[D,_.anyOf&&!te&&!g.isSelect(_)&&$.jsx(ee,{name:u,disabled:W,readonly:B,hideError:Y,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:R,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:_.anyOf.map(Ve=>g.retrieveSchema(qe(Ve)?Ve:{},n)),registry:p,required:f,schema:_,uiSchema:a}),_.oneOf&&!te&&!g.isSelect(_)&&$.jsx(pt,{name:u,disabled:W,readonly:B,hideError:Y,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:R,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:_.oneOf.map(Ve=>g.retrieveSchema(qe(Ve)?Ve:{},n)),registry:p,required:f,schema:_,uiSchema:a})]})})}class JK extends I.Component{shouldComponentUpdate(t){return!Ue(this.props,t)}render(){return $.jsx(ZK,{...this.props})}}function qK(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,required:o,disabled:s=!1,readonly:u=!1,autofocus:c=!1,onChange:l,onBlur:d,onFocus:f,registry:p,rawErrors:m,hideError:v}=e,{title:g,format:h}=t,{widgets:y,formContext:b,schemaUtils:w,globalUiOptions:C}=p,E=w.isSelect(t)?un(t,a):void 0;let _=E?"select":"text";h&&qy(t,h,y)&&(_=h);const{widget:N=_,placeholder:R="",title:k,...F}=fe(a),W=w.getDisplayLabel(t,a,C),B=k??g??r,U=kt(t,N,y);return $.jsx(U,{options:{...F,enumOptions:E},schema:t,uiSchema:a,id:n.$id,name:r,label:B,hideLabel:!W,hideError:v,value:i,onChange:l,onBlur:d,onFocus:f,required:o,disabled:s,readonly:u,formContext:b,autofocus:c,registry:p,placeholder:R,rawErrors:m})}function KK(e){const{formData:t,onChange:r}=e;return I.useEffect(()=>{t===void 0&&r(null)},[t,r]),null}function QK(){return{AnyOfField:m1,ArrayField:kq,BooleanField:Mq,NumberField:Bq,ObjectField:HK,OneOfField:m1,SchemaField:JK,StringField:qK,NullField:KK}}function e7(e){const{idSchema:t,description:r,registry:a,schema:n,uiSchema:i}=e,o=fe(i,a.globalUiOptions),{label:s=!0}=o;if(!r||!s)return null;const u=pe("DescriptionFieldTemplate",a,o);return $.jsx(u,{id:oo(t),description:r,schema:n,uiSchema:i,registry:a})}function t7(e){const{children:t,className:r,disabled:a,hasToolbar:n,hasMoveDown:i,hasMoveUp:o,hasRemove:s,hasCopy:u,index:c,onCopyIndexClick:l,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:m,uiSchema:v}=e,{CopyButton:g,MoveDownButton:h,MoveUpButton:y,RemoveButton:b}=m.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return $.jsxs("div",{className:r,children:[$.jsx("div",{className:n?"col-xs-9":"col-xs-12",children:t}),n&&$.jsx("div",{className:"col-xs-3 array-item-toolbox",children:$.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||i)&&$.jsx(y,{style:w,disabled:a||p||!o,onClick:f(c,c-1),uiSchema:v,registry:m}),(o||i)&&$.jsx(h,{style:w,disabled:a||p||!i,onClick:f(c,c+1),uiSchema:v,registry:m}),u&&$.jsx(g,{style:w,disabled:a||p,onClick:l(c),uiSchema:v,registry:m}),s&&$.jsx(b,{style:w,disabled:a||p,onClick:d(c),uiSchema:v,registry:m})]})})]})}function r7(e){const{canAdd:t,className:r,disabled:a,idSchema:n,uiSchema:i,items:o,onAddClick:s,readonly:u,registry:c,required:l,schema:d,title:f}=e,p=fe(i),m=pe("ArrayFieldDescriptionTemplate",c,p),v=pe("ArrayFieldItemTemplate",c,p),g=pe("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:h}}=c.templates;return $.jsxs("fieldset",{className:r,id:n.$id,children:[$.jsx(g,{idSchema:n,title:p.title||f,required:l,schema:d,uiSchema:i,registry:c}),$.jsx(m,{idSchema:n,description:p.description||d.description,schema:d,uiSchema:i,registry:c}),$.jsx("div",{className:"row array-item-list",children:o&&o.map(({key:y,...b})=>$.jsx(v,{...b},y))}),t&&$.jsx(h,{className:"array-item-add",onClick:s,disabled:a||u,uiSchema:i,registry:c})]})}function n7(e){const{idSchema:t,title:r,schema:a,uiSchema:n,required:i,registry:o}=e,s=fe(n,o.globalUiOptions),{label:u=!0}=s;if(!r||!u)return null;const c=pe("TitleFieldTemplate",o,s);return $.jsx(c,{id:eb(t),title:r,required:i,schema:a,uiSchema:n,registry:o})}function a7(e){const{id:t,name:r,value:a,readonly:n,disabled:i,autofocus:o,onBlur:s,onFocus:u,onChange:c,onChangeOverride:l,options:d,schema:f,uiSchema:p,formContext:m,registry:v,rawErrors:g,type:h,hideLabel:y,hideError:b,...w}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const C={...w,...Uy(f,h,d)};let E;C.type==="number"||C.type==="integer"?E=a||a===0?a:"":E=a??"";const _=I.useCallback(({target:{value:k}})=>c(k===""?d.emptyValue:k),[c,d]),N=I.useCallback(({target:k})=>s(t,k&&k.value),[s,t]),R=I.useCallback(({target:k})=>u(t,k&&k.value),[u,t]);return $.jsxs($.Fragment,{children:[$.jsx("input",{id:t,name:t,className:"form-control",readOnly:n,disabled:i,autoFocus:o,value:E,...C,list:f.examples?Id(t):void 0,onChange:l||_,onBlur:N,onFocus:R,"aria-describedby":ta(t,!!f.examples)}),Array.isArray(f.examples)&&$.jsx("datalist",{id:Id(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map(k=>$.jsx("option",{value:k},k))},`datalist_${t}`)]})}function i7({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Xy(e);return r?null:$.jsx("div",{children:$.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function Mo(e){const{iconType:t="default",icon:r,className:a,uiSchema:n,registry:i,...o}=e;return $.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...o,children:$.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function o7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function s7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function u7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function c7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function l7({className:e,onClick:t,disabled:r,registry:a}){const{translateString:n}=a;return $.jsx("div",{className:"row",children:$.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:$.jsx(Mo,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(He.AddButton),onClick:t,disabled:r,registry:a})})})}function d7(){return{SubmitButton:i7,AddButton:l7,CopyButton:o7,MoveDownButton:s7,MoveUpButton:u7,RemoveButton:c7}}function f7(e){const{id:t,description:r}=e;return r?typeof r=="string"?$.jsx("p",{id:t,className:"field-description",children:r}):$.jsx("div",{id:t,className:"field-description",children:r}):null}function p7({errors:e,registry:t}){const{translateString:r}=t;return $.jsxs("div",{className:"panel panel-danger errors",children:[$.jsx("div",{className:"panel-heading",children:$.jsx("h3",{className:"panel-title",children:r(He.ErrorsLabel)})}),$.jsx("ul",{className:"list-group",children:e.map((a,n)=>$.jsx("li",{className:"list-group-item text-danger",children:a.stack},n))})]})}const h7="*";function j1(e){const{label:t,required:r,id:a}=e;return t?$.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&$.jsx("span",{className:"required",children:h7})]}):null}function m7(e){const{id:t,label:r,children:a,errors:n,help:i,description:o,hidden:s,required:u,displayLabel:c,registry:l,uiSchema:d}=e,f=fe(d),p=pe("WrapIfAdditionalTemplate",l,f);return s?$.jsx("div",{className:"hidden",children:a}):$.jsxs(p,{...e,children:[c&&$.jsx(j1,{label:r,required:u,id:t}),c&&o?o:null,a,n,i]})}function g7(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const a=Ky(r);return $.jsx("div",{children:$.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(n=>!!n).map((n,i)=>$.jsx("li",{className:"text-danger",children:n},i))})})}function v7(e){const{idSchema:t,help:r}=e;if(!r)return null;const a=Qy(t);return typeof r=="string"?$.jsx("p",{id:a,className:"help-block",children:r}):$.jsx("div",{id:a,className:"help-block",children:r})}function y7(e){const{description:t,disabled:r,formData:a,idSchema:n,onAddClick:i,properties:o,readonly:s,registry:u,required:c,schema:l,title:d,uiSchema:f}=e,p=fe(f),m=pe("TitleFieldTemplate",u,p),v=pe("DescriptionFieldTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return $.jsxs("fieldset",{id:n.$id,children:[d&&$.jsx(m,{id:eb(n),title:d,required:c,schema:l,uiSchema:f,registry:u}),t&&$.jsx(v,{id:oo(n),description:t,schema:l,uiSchema:f,registry:u}),o.map(h=>h.content),Ph(l,f,a)&&$.jsx(g,{className:"object-property-expand",onClick:i(l),disabled:r||s,uiSchema:f,registry:u})]})}const b7="*";function w7(e){const{id:t,title:r,required:a}=e;return $.jsxs("legend",{id:t,children:[r,a&&$.jsx("span",{className:"required",children:b7})]})}function C7(e){const{schema:t,idSchema:r,reason:a,registry:n}=e,{translateString:i}=n;let o=He.UnsupportedField;const s=[];return r&&r.$id&&(o=He.UnsupportedFieldWithId,s.push(r.$id)),a&&(o=o===He.UnsupportedField?He.UnsupportedFieldWithReason:He.UnsupportedFieldWithIdAndReason,s.push(a)),$.jsxs("div",{className:"unsupported-field",children:[$.jsx("p",{children:$.jsx(tc,{options:{disableParsingRawHTML:!0},children:i(o,s)})}),t&&$.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function S7(e){const{id:t,classNames:r,style:a,disabled:n,label:i,onKeyChange:o,onDropPropertyClick:s,readonly:u,required:c,schema:l,children:d,uiSchema:f,registry:p}=e,{templates:m,translateString:v}=p,{RemoveButton:g}=m.ButtonTemplates,h=v(He.KeyLabel,[i]);return Gn in l?$.jsx("div",{className:r,style:a,children:$.jsxs("div",{className:"row",children:[$.jsx("div",{className:"col-xs-5 form-additional",children:$.jsxs("div",{className:"form-group",children:[$.jsx(j1,{label:h,required:c,id:`${t}-key`}),$.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:({target:b})=>o(b&&b.value),defaultValue:i})]})}),$.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),$.jsx("div",{className:"col-xs-2",children:$.jsx(g,{className:"array-item-remove btn-block",style:{border:"0"},disabled:n||u,onClick:s(i),uiSchema:f,registry:p})})]})}):$.jsx("div",{className:r,style:a,children:d})}function $7(){return{ArrayFieldDescriptionTemplate:e7,ArrayFieldItemTemplate:t7,ArrayFieldTemplate:r7,ArrayFieldTitleTemplate:n7,ButtonTemplates:d7(),BaseInputTemplate:a7,DescriptionFieldTemplate:f7,ErrorListTemplate:p7,FieldTemplate:m7,FieldErrorTemplate:g7,FieldHelpTemplate:v7,ObjectFieldTemplate:y7,TitleFieldTemplate:w7,UnsupportedFieldTemplate:C7,WrapIfAdditionalTemplate:S7}}function I7(e){return Object.values(e).every(t=>t!==-1)}function E7({type:e,range:t,value:r,select:a,rootId:n,name:i,disabled:o,readonly:s,autofocus:u,registry:c,onBlur:l,onFocus:d}){const f=n+"_"+e,{SelectWidget:p}=c.widgets;return $.jsx(p,{schema:{type:"integer"},id:f,name:i,className:"form-control",options:{enumOptions:Wy(t[0],t[1])},placeholder:e,value:r,disabled:o,readonly:s,autofocus:u,onChange:m=>a(e,m),onBlur:l,onFocus:d,registry:c,label:"","aria-describedby":ta(n)})}function _7({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:n,id:i,name:o,registry:s,onBlur:u,onFocus:c,onChange:l,value:d}){const{translateString:f}=s,[p,m]=I.useState(d),[v,g]=I.useReducer((w,C)=>({...w,...C}),ra(d,e));I.useEffect(()=>{const w=eu(v,e);I7(v)&&w!==d?l(w):p!==d&&(m(d),g(ra(d,e)))},[e,d,l,v,p]);const h=I.useCallback((w,C)=>{g({[w]:C})},[]),y=I.useCallback(w=>{if(w.preventDefault(),t||r)return;const C=ra(new Date().toJSON(),e);l(eu(C,e))},[t,r,e]),b=I.useCallback(w=>{w.preventDefault(),!(t||r)&&l(void 0)},[t,r,l]);return $.jsxs("ul",{className:"list-inline",children:[OW(v,e,n.yearsRange,n.format).map((w,C)=>$.jsx("li",{className:"list-inline-item",children:$.jsx(E7,{rootId:i,name:o,select:h,...w,disabled:t,readonly:r,registry:s,onBlur:u,onFocus:c,autofocus:a&&C===0})},C)),(n.hideNowButton!=="undefined"?!n.hideNowButton:!0)&&$.jsx("li",{className:"list-inline-item",children:$.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:y,children:f(He.NowLabel)})}),(n.hideClearButton!=="undefined"?!n.hideClearButton:!0)&&$.jsx("li",{className:"list-inline-item",children:$.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(He.ClearLabel)})})]})}function A7({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return $.jsx(r,{time:e,...t})}function O7({schema:e,uiSchema:t,options:r,id:a,value:n,disabled:i,readonly:o,label:s,hideLabel:u,autofocus:c=!1,onBlur:l,onFocus:d,onChange:f,registry:p}){const m=pe("DescriptionFieldTemplate",p,r),v=so(e),g=I.useCallback(w=>f(w.target.checked),[f]),h=I.useCallback(w=>l(a,w.target.checked),[l,a]),y=I.useCallback(w=>d(a,w.target.checked),[d,a]),b=r.description??e.description;return $.jsxs("div",{className:`checkbox ${i||o?"disabled":""}`,children:[!u&&!!b&&$.jsx(m,{id:oo(a),description:b,schema:e,uiSchema:t,registry:p}),$.jsxs("label",{children:[$.jsx("input",{type:"checkbox",id:a,name:a,checked:typeof n>"u"?!1:n,required:v,disabled:i||o,autoFocus:c,onChange:g,onBlur:h,onFocus:y,"aria-describedby":ta(a)}),MW($.jsx("span",{children:s}),u)]})]})}function T7({id:e,disabled:t,options:{inline:r=!1,enumOptions:a,enumDisabled:n,emptyValue:i},value:o,autofocus:s=!1,readonly:u,onChange:c,onBlur:l,onFocus:d}){const f=Array.isArray(o)?o:[o],p=I.useCallback(({target:v})=>l(e,Pr(v&&v.value,a,i)),[l,e]),m=I.useCallback(({target:v})=>d(e,Pr(v&&v.value,a,i)),[d,e]);return $.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(a)&&a.map((v,g)=>{const h=Cd(v.value,f),y=Array.isArray(n)&&n.indexOf(v.value)!==-1,b=t||y||u?"disabled":"",w=E=>{E.target.checked?c($W(g,f,a)):c(CW(g,f,a))},C=$.jsxs("span",{children:[$.jsx("input",{type:"checkbox",id:tb(e,g),name:e,checked:h,value:String(g),disabled:t||y||u,autoFocus:s&&g===0,onChange:w,onBlur:p,onFocus:m,"aria-describedby":ta(e)}),$.jsx("span",{children:v.label})]});return r?$.jsx("label",{className:`checkbox-inline ${b}`,children:C},g):$.jsx("div",{className:`checkbox ${b}`,children:$.jsx("label",{children:C})},g)})})}function x7(e){const{disabled:t,readonly:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"color",...e,disabled:t||r})}function D7(e){const{onChange:t,options:r,registry:a}=e,n=pe("BaseInputTemplate",a,r),i=I.useCallback(o=>t(o||void 0),[t]);return $.jsx(n,{type:"date",...e,onChange:i})}function P7(e){const{onChange:t,value:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"datetime-local",...e,value:ib(r),onChange:o=>t(rb(o))})}function R7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"email",...e})}function N7(e,t){return e===null?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function k7(e){const{name:t,size:r,type:a}=e;return new Promise((n,i)=>{const o=new window.FileReader;o.onerror=i,o.onload=s=>{var u;typeof((u=s.target)==null?void 0:u.result)=="string"?n({dataURL:N7(s.target.result,t),name:t,size:r,type:a}):n({dataURL:null,name:t,size:r,type:a})},o.readAsDataURL(e)})}function M7(e){return Promise.all(Array.from(e).map(k7))}function F7({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:n,name:i}=e;return a?["image/jpeg","image/png"].includes(n)?$.jsx("img",{src:a,style:{maxWidth:"100%"},className:"file-preview"}):$.jsxs($.Fragment,{children:[" ",$.jsx("a",{download:`preview-${i}`,href:a,className:"file-download",children:r(He.PreviewLabel)})]}):null}function j7({filesInfo:e,registry:t,preview:r,onRemove:a,options:n}){if(e.length===0)return null;const{translateString:i}=t,{RemoveButton:o}=pe("ButtonTemplates",t,n);return $.jsx("ul",{className:"file-info",children:e.map((s,u)=>{const{name:c,size:l,type:d}=s,f=()=>a(u);return $.jsxs("li",{children:[$.jsx(tc,{children:i(He.FilesInfo,[c,d,String(l)])}),r&&$.jsx(F7,{fileInfo:s,registry:t}),$.jsx(o,{onClick:f,registry:t})]},u)})})}function B7(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:n}=Vy(r);return[...t,{dataURL:r,name:n,size:a.size,type:a.type}]}catch{return t}},[])}function L7(e){const{disabled:t,readonly:r,required:a,multiple:n,onChange:i,value:o,options:s,registry:u}=e,c=pe("BaseInputTemplate",u,s),l=I.useCallback(p=>{p.target.files&&M7(p.target.files).then(m=>{const v=m.map(g=>g.dataURL);i(n?o.concat(v):v[0])})},[n,o,i]),d=I.useMemo(()=>B7(Array.isArray(o)?o:[o]),[o]),f=I.useCallback(p=>{if(n){const m=o.filter((v,g)=>g!==p);i(m)}else i(void 0)},[n,o,i]);return $.jsxs("div",{children:[$.jsx(c,{...e,disabled:t||r,type:"file",required:o?!1:a,onChangeOverride:l,value:"",accept:s.accept?String(s.accept):void 0}),$.jsx(j7,{filesInfo:d,onRemove:f,registry:u,preview:s.filePreview,options:s})]})}function G7({id:e,value:t}){return $.jsx("input",{type:"hidden",id:e,name:e,value:typeof t>"u"?"":t})}function V7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"password",...e})}function W7({options:e,value:t,required:r,disabled:a,readonly:n,autofocus:i=!1,onBlur:o,onFocus:s,onChange:u,id:c}){const{enumOptions:l,enumDisabled:d,inline:f,emptyValue:p}=e,m=I.useCallback(({target:g})=>o(c,Pr(g&&g.value,l,p)),[o,c]),v=I.useCallback(({target:g})=>s(c,Pr(g&&g.value,l,p)),[s,c]);return $.jsx("div",{className:"field-radio-group",id:c,children:Array.isArray(l)&&l.map((g,h)=>{const y=Cd(g.value,t),b=Array.isArray(d)&&d.indexOf(g.value)!==-1,w=a||b||n?"disabled":"",C=()=>u(g.value),E=$.jsxs("span",{children:[$.jsx("input",{type:"radio",id:tb(c,h),checked:y,name:c,required:r,value:String(h),disabled:a||b||n,autoFocus:i&&h===0,onChange:C,onBlur:m,onFocus:v,"aria-describedby":ta(c)}),$.jsx("span",{children:g.label})]});return f?$.jsx("label",{className:`radio-inline ${w}`,children:E},h):$.jsx("div",{className:`radio ${w}`,children:$.jsx("label",{children:E})},h)})})}function Y7(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return $.jsxs("div",{className:"field-range-wrapper",children:[$.jsx(r,{type:"range",...e}),$.jsx("span",{className:"range-view",children:t})]})}function Kf(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function U7({schema:e,id:t,options:r,value:a,required:n,disabled:i,readonly:o,multiple:s=!1,autofocus:u=!1,onChange:c,onBlur:l,onFocus:d,placeholder:f}){const{enumOptions:p,enumDisabled:m,emptyValue:v}=r,g=s?[]:"",h=I.useCallback(E=>{const _=Kf(E,s);return d(t,Pr(_,p,v))},[d,t,e,s,p,v]),y=I.useCallback(E=>{const _=Kf(E,s);return l(t,Pr(_,p,v))},[l,t,e,s,p,v]),b=I.useCallback(E=>{const _=Kf(E,s);return c(Pr(_,p,v))},[c,e,s,p,v]),w=SW(a,p,s),C=!s&&e.default===void 0;return $.jsxs("select",{id:t,name:t,multiple:s,className:"form-control",value:typeof w>"u"?g:w,required:n,disabled:i||o,autoFocus:u,onBlur:y,onFocus:h,onChange:b,"aria-describedby":ta(t),children:[C&&$.jsx("option",{value:"",children:f}),Array.isArray(p)&&p.map(({value:E,label:_},N)=>{const R=m&&m.indexOf(E)!==-1;return $.jsx("option",{value:String(N),disabled:R,children:_},N)})]})}function B1({id:e,options:t={},placeholder:r,value:a,required:n,disabled:i,readonly:o,autofocus:s=!1,onChange:u,onBlur:c,onFocus:l}){const d=I.useCallback(({target:{value:m}})=>u(m===""?t.emptyValue:m),[u,t.emptyValue]),f=I.useCallback(({target:m})=>c(e,m&&m.value),[c,e]),p=I.useCallback(({target:m})=>l(e,m&&m.value),[e,l]);return $.jsx("textarea",{id:e,name:e,className:"form-control",value:a||"",placeholder:r,required:n,disabled:i,readOnly:o,autoFocus:s,rows:t.rows,onBlur:f,onFocus:p,onChange:d,"aria-describedby":ta(e)})}B1.defaultProps={autofocus:!1,options:{}};function H7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{...e})}function X7(e){const{onChange:t,options:r,registry:a}=e,n=pe("BaseInputTemplate",a,r),i=I.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return $.jsx(n,{type:"time",...e,onChange:i})}function z7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"url",...e})}function Z7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"number",...e})}function J7(){return{AltDateWidget:_7,AltDateTimeWidget:A7,CheckboxWidget:O7,CheckboxesWidget:T7,ColorWidget:x7,DateWidget:D7,DateTimeWidget:P7,EmailWidget:R7,FileWidget:L7,HiddenWidget:G7,PasswordWidget:V7,RadioWidget:W7,RangeWidget:Y7,SelectWidget:U7,TextWidget:H7,TextareaWidget:B1,TimeWidget:X7,UpDownWidget:Z7,URLWidget:z7}}function q7(){return{fields:QK(),templates:$7(),widgets:J7(),rootSchema:{},formContext:{},translateString:wW}}class K7 extends I.Component{constructor(r){super(r);we(this,"formElement");we(this,"getUsedFormData",(r,a)=>{if(a.length===0&&typeof r!="object")return r;const n=p1(r,a);return Array.isArray(r)?Object.keys(n).map(i=>n[i]):n});we(this,"getFieldNames",(r,a)=>{const n=(i,o=[],s=[[]])=>(Object.keys(i).forEach(u=>{if(typeof i[u]=="object"){const c=s.map(l=>[...l,u]);i[u][Gc]&&i[u][is]!==""?o.push(i[u][is]):n(i[u],o,c)}else u===is&&i[u]!==""&&s.forEach(c=>{const l=ue(a,c);(typeof l!="object"||Da(l)||Array.isArray(l)&&l.every(d=>typeof d!="object"))&&o.push(c)})}),o);return n(r)});we(this,"omitExtraData",r=>{const{schema:a,schemaUtils:n}=this.state,i=n.retrieveSchema(a,r),o=n.toPathSchema(i,"",r),s=this.getFieldNames(o,r);return this.getUsedFormData(r,s)});we(this,"onChange",(r,a,n)=>{const{extraErrors:i,omitExtraData:o,liveOmit:s,noValidate:u,liveValidate:c,onChange:l}=this.props,{schemaUtils:d,schema:f}=this.state;let p=this.state.retrievedSchema;if(Pe(r)||Array.isArray(r)){const h=this.getStateFromProps(this.props,r);r=h.formData,p=h.retrievedSchema}const m=!u&&c;let v={formData:r,schema:f},g=r;if(o===!0&&s===!0&&(g=this.omitExtraData(r),v={formData:g}),m){const h=this.validate(g,f,d,p);let y=h.errors,b=h.errorSchema;const w=y,C=b;if(i){const E=tu(h,i);b=E.errorSchema,y=E.errors}if(a){const E=this.filterErrorsBasedOnSchema(a,p,g);b=Dr(b,E,"preventDuplicates")}v={formData:g,errors:y,errorSchema:b,schemaValidationErrors:w,schemaValidationErrorSchema:C}}else if(!u&&a){const h=i?Dr(a,i,"preventDuplicates"):a;v={formData:g,errorSchema:h,errors:uo(h)}}this.setState(v,()=>l&&l({...this.state,...v},n))});we(this,"reset",()=>{const{onChange:r}=this.props,i={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(i,()=>r&&r({...this.state,...i}))});we(this,"onBlur",(r,a)=>{const{onBlur:n}=this.props;n&&n(r,a)});we(this,"onFocus",(r,a)=>{const{onFocus:n}=this.props;n&&n(r,a)});we(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:a,extraErrors:n,noValidate:i,onSubmit:o}=this.props;let{formData:s}=this.state;if(a===!0&&(s=this.omitExtraData(s)),i||this.validateFormWithFormData(s)){const u=n||{},c=n?uo(n):[];this.setState({formData:s,errors:c,errorSchema:u,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{o&&o({...this.state,formData:s,status:"submitted"},r)})}});we(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});we(this,"validateFormWithFormData",r=>{const{extraErrors:a,extraErrorsBlockSubmit:n,focusOnFirstError:i,onError:o}=this.props,{errors:s}=this.state,u=this.validate(r);let c=u.errors,l=u.errorSchema;const d=c,f=l,p=c.length>0||a&&n;if(p){if(a){const m=tu(u,a);l=m.errorSchema,c=m.errors}i&&(typeof i=="function"?i(c[0]):this.focusOnError(c[0])),this.setState({errors:c,errorSchema:l,schemaValidationErrors:d,schemaValidationErrorSchema:f},()=>{o?o(c):console.error("Form validation failed",c)})}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!p});if(!r.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(r,r.formData),this.props.onChange&&!Ue(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=I.createRef()}getSnapshotBeforeUpdate(r,a){if(!Ue(this.props,r)){const n=UW(this.props.formData,r.formData),i=!Ue(r.schema,this.props.schema),o=n.length>0||!Ue(r.formData,this.props.formData),s=this.getStateFromProps(this.props,this.props.formData,i||o?void 0:this.state.retrievedSchema,i,n),u=!Ue(s,a);return{nextState:s,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,n){if(n.shouldUpdate){const{nextState:i}=n;!Ue(i.formData,this.props.formData)&&!Ue(i.formData,a.formData)&&this.props.onChange&&this.props.onChange(i),this.setState(i)}}getStateFromProps(r,a,n,i=!1,o=[]){var k;const s=this.state||{},u="schema"in r?r.schema:this.props.schema,c=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},l=typeof a<"u",d="liveValidate"in r?r.liveValidate:this.props.liveValidate,f=l&&!r.noValidate&&d,p=u,m="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,v="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let g=s.schemaUtils;(!g||g.doesSchemaUtilsDiffer(r.validator,p,m,v))&&(g=yW(r.validator,p,m,v));const h=g.getDefaultFormState(u,a),y=this.updateRetrievedSchema(n??g.retrieveSchema(u,h)),b=()=>r.noValidate||i?{errors:[],errorSchema:{}}:r.liveValidate?{errors:s.errors||[],errorSchema:s.errorSchema||{}}:{errors:s.schemaValidationErrors||[],errorSchema:s.schemaValidationErrorSchema||{}};let w,C,E=s.schemaValidationErrors,_=s.schemaValidationErrorSchema;if(f){const F=this.validate(h,u,g,y);w=F.errors,n===void 0?C=F.errorSchema:C=Dr((k=this.state)==null?void 0:k.errorSchema,F.errorSchema,"preventDuplicates"),E=w,_=C}else{const F=b();if(w=F.errors,C=F.errorSchema,o.length>0){const W=o.reduce((B,U)=>(B[U]=void 0,B),{});C=_=Dr(F.errorSchema,W,"preventDuplicates")}}if(r.extraErrors){const F=tu({errorSchema:C,errors:w},r.extraErrors);C=F.errorSchema,w=F.errors}const N=g.toIdSchema(y,c["ui:rootFieldId"],h,r.idPrefix,r.idSeparator);return{schemaUtils:g,schema:u,uiSchema:c,idSchema:N,formData:h,edit:l,errors:w,errorSchema:C,schemaValidationErrors:E,schemaValidationErrorSchema:_,retrievedSchema:y}}shouldComponentUpdate(r,a){return FW(this,r,a)}getPreviousCustomValidateErrors(){const{customValidate:r,uiSchema:a}=this.props,n=this.state.formData;let i={};if(typeof r=="function"){const o=r(n,us(n),a);i=Ed(o)}return i}validate(r,a=this.props.schema,n,i){const o=n||this.state.schemaUtils,{customValidate:s,transformErrors:u,uiSchema:c}=this.props,l=i??o.retrieveSchema(a,r);return o.getValidator().validateFormData(r,l,s,u,c)}renderErrors(r){const{errors:a,errorSchema:n,schema:i,uiSchema:o}=this.state,{formContext:s}=this.props,u=fe(o),c=pe("ErrorListTemplate",r,u);return a&&a.length?$.jsx(c,{errors:a,errorSchema:n||{},schema:i,uiSchema:o,formContext:s,registry:r}):null}filterErrorsBasedOnSchema(r,a,n){const{retrievedSchema:i,schemaUtils:o}=this.state,s=a??i,u=o.toPathSchema(s,"",n),c=this.getFieldNames(u,n),l=p1(r,c);(a==null?void 0:a.type)!=="object"&&(a==null?void 0:a.type)!=="array"&&(l.__errors=r.__errors);const d=this.getPreviousCustomValidateErrors(),f=(m=[],v)=>m.length===0?m:m.filter(g=>!v.includes(g)),p=(m,v={})=>(HW(m,(g,h)=>{const y=v[h];no(g)||Array.isArray(g)&&g.length===0?delete m[h]:Pe(g)&&Pe(y)&&Array.isArray(y==null?void 0:y.__errors)?m[h]=f(g.__errors,y.__errors):typeof g=="object"&&!Array.isArray(g.__errors)&&p(g,v[h])}),m);return p(l,d)}updateRetrievedSchema(r){var n;return Ue(r,(n=this.state)==null?void 0:n.retrievedSchema)?this.state.retrievedSchema:r}getRegistry(){var l;const{translateString:r,uiSchema:a={}}=this.props,{schemaUtils:n}=this.state,{fields:i,templates:o,widgets:s,formContext:u,translateString:c}=q7();return{fields:{...i,...this.props.fields},templates:{...o,...this.props.templates,ButtonTemplates:{...o.ButtonTemplates,...(l=this.props.templates)==null?void 0:l.ButtonTemplates}},widgets:{...s,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||u,schemaUtils:n,translateString:r||c,globalUiOptions:a[T$]}}focusOnError(r){const{idPrefix:a="root",idSeparator:n="_"}=this.props,{property:i}=r,o=ab(i);o[0]===""?o[0]=a:o.unshift(a);const s=o.join(n);let u=this.formElement.current.elements[s];u||(u=this.formElement.current.querySelector(`input[id^="${s}"`)),u&&u.length&&(u=u[0]),u&&u.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:a}=this.state;return r===!0&&(a=this.omitExtraData(a)),this.validateFormWithFormData(a)}render(){const{children:r,id:a,idPrefix:n,idSeparator:i,className:o="",tagName:s,name:u,method:c,target:l,action:d,autoComplete:f,enctype:p,acceptcharset:m,acceptCharset:v,noHtml5Validate:g=!1,disabled:h,readonly:y,formContext:b,showErrorList:w="top",_internalFormWrapper:C}=this.props,{schema:E,uiSchema:_,formData:N,errorSchema:R,idSchema:k}=this.state,F=this.getRegistry(),{SchemaField:W}=F.fields,{SubmitButton:B}=F.templates.ButtonTemplates,U=C?s:void 0,Y=C||s||"form";let{[os]:L={}}=fe(_);h&&(L={...L,props:{...L.props,disabled:!0}});const Z={[ki]:{[os]:L}};return $.jsxs(Y,{className:o||"rjsf",id:a,name:u,method:c,target:l,action:d,autoComplete:f,encType:p,acceptCharset:v||m,noValidate:g,onSubmit:this.onSubmit,as:U,ref:this.formElement,children:[w==="top"&&this.renderErrors(F),$.jsx(W,{name:"",schema:E,uiSchema:_,errorSchema:R,idSchema:k,idPrefix:n,idSeparator:i,formContext:b,formData:N,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:F,disabled:h,readonly:y}),r||$.jsx(B,{uiSchema:Z,registry:F}),w==="bottom"&&this.renderErrors(F)]})}}function Q7(e){return I.forwardRef(({fields:t,widgets:r,templates:a,...n},i)=>{var o;return t={...e==null?void 0:e.fields,...t},r={...e==null?void 0:e.widgets,...r},a={...e==null?void 0:e.templates,...a,ButtonTemplates:{...(o=e==null?void 0:e.templates)==null?void 0:o.ButtonTemplates,...a==null?void 0:a.ButtonTemplates}},$.jsx(K7,{...e,...n,fields:t,widgets:r,templates:a,ref:i})})}var Qf={exports:{}},L1={},yr={},vi={},Fo={},Ce={},jo={};(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(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class a extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((b,w)=>`${b}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((b,w)=>(w instanceof r&&(b[w.str]=(b[w.str]||0)+1),b),{})}}e._Code=a,e.nil=new a("");function n(h,...y){const b=[h[0]];let w=0;for(;w<y.length;)s(b,y[w]),b.push(h[++w]);return new a(b)}e._=n;const i=new a("+");function o(h,...y){const b=[p(h[0])];let w=0;for(;w<y.length;)b.push(i),s(b,y[w]),b.push(i,p(h[++w]));return u(b),new a(b)}e.str=o;function s(h,y){y instanceof a?h.push(...y._items):y instanceof r?h.push(y):h.push(d(y))}e.addCodeArg=s;function u(h){let y=1;for(;y<h.length-1;){if(h[y]===i){const b=c(h[y-1],h[y+1]);if(b!==void 0){h.splice(y-1,3,b);continue}h[y++]="+"}y++}}function c(h,y){if(y==='""')return h;if(h==='""')return y;if(typeof h=="string")return y instanceof r||h[h.length-1]!=='"'?void 0:typeof y!="string"?`${h.slice(0,-1)}${y}"`:y[0]==='"'?h.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(h instanceof r))return`"${h}${y.slice(1)}`}function l(h,y){return y.emptyStr()?h:h.emptyStr()?y:o`${h}${y}`}e.strConcat=l;function d(h){return typeof h=="number"||typeof h=="boolean"||h===null?h:p(Array.isArray(h)?h.join(","):h)}function f(h){return new a(p(h))}e.stringify=f;function p(h){return JSON.stringify(h).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=p;function m(h){return typeof h=="string"&&e.IDENTIFIER.test(h)?new a(`.${h}`):n`[${h}]`}e.getProperty=m;function v(h){if(typeof h=="string"&&e.IDENTIFIER.test(h))return new a(`${h}`);throw new Error(`CodeGen: invalid export name: ${h}, use explicit $id name mapping`)}e.getEsmExportName=v;function g(h){return new a(h.toString())}e.regexpCode=g})(jo);var ep={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=jo;class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var a;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class n{constructor({prefixes:c,parent:l}={}){this._names={},this._prefixes=c,this._parent=l}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const l=this._names[c]||this._nameGroup(c);return`${c}${l.index++}`}_nameGroup(c){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=n;class i extends t.Name{constructor(c,l){super(l),this.prefix=c}setValue(c,{property:l,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=i;const o=(0,t._)`\n`;class s extends n{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new i(c,this._newName(c))}value(c,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:p}=f,m=(d=l.key)!==null&&d!==void 0?d:l.ref;let v=this._values[p];if(v){const y=v.get(m);if(y)return y}else v=this._values[p]=new Map;v.set(m,f);const g=this._scope[p]||(this._scope[p]=[]),h=g.length;return g[h]=l.ref,f.setValue(l,{property:p,itemIndex:h}),f}getValue(c,l){const d=this._values[c];if(d)return d.get(l)}scopeRefs(c,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,l,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},l,d)}_reduceValues(c,l,d={},f){let p=t.nil;for(const m in c){const v=c[m];if(!v)continue;const g=d[m]=d[m]||new Map;v.forEach(h=>{if(g.has(h))return;g.set(h,a.Started);let y=l(h);if(y){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${b} ${h} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(h))p=(0,t._)`${p}${y}${this.opts._n}`;else throw new r(h);g.set(h,a.Completed)})}return p}}e.ValueScope=s})(ep),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=jo,r=ep;var a=jo;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var n=ep;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.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 i{optimizeNodes(){return this}optimizeNames(S,T){return this}}class o extends i{constructor(S,T,j){super(),this.varKind=S,this.name=T,this.rhs=j}render({es5:S,_n:T}){const j=S?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${j} ${this.name}${z};`+T}optimizeNames(S,T){if(S[this.name.str])return this.rhs&&(this.rhs=U(this.rhs,S,T)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends i{constructor(S,T,j){super(),this.lhs=S,this.rhs=T,this.sideEffects=j}render({_n:S}){return`${this.lhs} = ${this.rhs};`+S}optimizeNames(S,T){if(!(this.lhs instanceof t.Name&&!S[this.lhs.str]&&!this.sideEffects))return this.rhs=U(this.rhs,S,T),this}get names(){const S=this.lhs instanceof t.Name?{}:{...this.lhs.names};return B(S,this.rhs)}}class u extends s{constructor(S,T,j,z){super(S,j,z),this.op=T}render({_n:S}){return`${this.lhs} ${this.op}= ${this.rhs};`+S}}class c extends i{constructor(S){super(),this.label=S,this.names={}}render({_n:S}){return`${this.label}:`+S}}class l extends i{constructor(S){super(),this.label=S,this.names={}}render({_n:S}){return`break${this.label?` ${this.label}`:""};`+S}}class d extends i{constructor(S){super(),this.error=S}render({_n:S}){return`throw ${this.error};`+S}get names(){return this.error.names}}class f extends i{constructor(S){super(),this.code=S}render({_n:S}){return`${this.code};`+S}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(S,T){return this.code=U(this.code,S,T),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends i{constructor(S=[]){super(),this.nodes=S}render(S){return this.nodes.reduce((T,j)=>T+j.render(S),"")}optimizeNodes(){const{nodes:S}=this;let T=S.length;for(;T--;){const j=S[T].optimizeNodes();Array.isArray(j)?S.splice(T,1,...j):j?S[T]=j:S.splice(T,1)}return S.length>0?this:void 0}optimizeNames(S,T){const{nodes:j}=this;let z=j.length;for(;z--;){const H=j[z];H.optimizeNames(S,T)||(Y(S,H.names),j.splice(z,1))}return j.length>0?this:void 0}get names(){return this.nodes.reduce((S,T)=>W(S,T.names),{})}}class m extends p{render(S){return"{"+S._n+super.render(S)+"}"+S._n}}class v extends p{}class g extends m{}g.kind="else";class h extends m{constructor(S,T){super(T),this.condition=S}render(S){let T=`if(${this.condition})`+super.render(S);return this.else&&(T+="else "+this.else.render(S)),T}optimizeNodes(){super.optimizeNodes();const S=this.condition;if(S===!0)return this.nodes;let T=this.else;if(T){const j=T.optimizeNodes();T=this.else=Array.isArray(j)?new g(j):j}if(T)return S===!1?T instanceof h?T:T.nodes:this.nodes.length?this:new h(L(S),T instanceof h?[T]:T.nodes);if(!(S===!1||!this.nodes.length))return this}optimizeNames(S,T){var j;if(this.else=(j=this.else)===null||j===void 0?void 0:j.optimizeNames(S,T),!!(super.optimizeNames(S,T)||this.else))return this.condition=U(this.condition,S,T),this}get names(){const S=super.names;return B(S,this.condition),this.else&&W(S,this.else.names),S}}h.kind="if";class y extends m{}y.kind="for";class b extends y{constructor(S){super(),this.iteration=S}render(S){return`for(${this.iteration})`+super.render(S)}optimizeNames(S,T){if(super.optimizeNames(S,T))return this.iteration=U(this.iteration,S,T),this}get names(){return W(super.names,this.iteration.names)}}class w extends y{constructor(S,T,j,z){super(),this.varKind=S,this.name=T,this.from=j,this.to=z}render(S){const T=S.es5?r.varKinds.var:this.varKind,{name:j,from:z,to:H}=this;return`for(${T} ${j}=${z}; ${j}<${H}; ${j}++)`+super.render(S)}get names(){const S=B(super.names,this.from);return B(S,this.to)}}class C extends y{constructor(S,T,j,z){super(),this.loop=S,this.varKind=T,this.name=j,this.iterable=z}render(S){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(S)}optimizeNames(S,T){if(super.optimizeNames(S,T))return this.iterable=U(this.iterable,S,T),this}get names(){return W(super.names,this.iterable.names)}}class E extends m{constructor(S,T,j){super(),this.name=S,this.args=T,this.async=j}render(S){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(S)}}E.kind="func";class _ extends p{render(S){return"return "+super.render(S)}}_.kind="return";class N extends m{render(S){let T="try"+super.render(S);return this.catch&&(T+=this.catch.render(S)),this.finally&&(T+=this.finally.render(S)),T}optimizeNodes(){var S,T;return super.optimizeNodes(),(S=this.catch)===null||S===void 0||S.optimizeNodes(),(T=this.finally)===null||T===void 0||T.optimizeNodes(),this}optimizeNames(S,T){var j,z;return super.optimizeNames(S,T),(j=this.catch)===null||j===void 0||j.optimizeNames(S,T),(z=this.finally)===null||z===void 0||z.optimizeNames(S,T),this}get names(){const S=super.names;return this.catch&&W(S,this.catch.names),this.finally&&W(S,this.finally.names),S}}class R extends m{constructor(S){super(),this.error=S}render(S){return`catch(${this.error})`+super.render(S)}}R.kind="catch";class k extends m{render(S){return"finally"+super.render(S)}}k.kind="finally";class F{constructor(S,T={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...T,_n:T.lines?`
|
|
92
|
-
`:""},this._extScope=S,this._scope=new r.Scope({parent:S}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(S){return this._scope.name(S)}scopeName(S){return this._extScope.name(S)}scopeValue(S,T){const j=this._extScope.value(S,T);return(this._values[j.prefix]||(this._values[j.prefix]=new Set)).add(j),j}getScopeValue(S,T){return this._extScope.getValue(S,T)}scopeRefs(S){return this._extScope.scopeRefs(S,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(S,T,j,z){const H=this._scope.toName(T);return j!==void 0&&z&&(this._constants[H.str]=j),this._leafNode(new o(S,H,j)),H}const(S,T,j){return this._def(r.varKinds.const,S,T,j)}let(S,T,j){return this._def(r.varKinds.let,S,T,j)}var(S,T,j){return this._def(r.varKinds.var,S,T,j)}assign(S,T,j){return this._leafNode(new s(S,T,j))}add(S,T){return this._leafNode(new u(S,e.operators.ADD,T))}code(S){return typeof S=="function"?S():S!==t.nil&&this._leafNode(new f(S)),this}object(...S){const T=["{"];for(const[j,z]of S)T.length>1&&T.push(","),T.push(j),(j!==z||this.opts.es5)&&(T.push(":"),(0,t.addCodeArg)(T,z));return T.push("}"),new t._Code(T)}if(S,T,j){if(this._blockNode(new h(S)),T&&j)this.code(T).else().code(j).endIf();else if(T)this.code(T).endIf();else if(j)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(S){return this._elseNode(new h(S))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(h,g)}_for(S,T){return this._blockNode(S),T&&this.code(T).endFor(),this}for(S,T){return this._for(new b(S),T)}forRange(S,T,j,z,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const Q=this._scope.toName(S);return this._for(new w(H,Q,T,j),()=>z(Q))}forOf(S,T,j,z=r.varKinds.const){const H=this._scope.toName(S);if(this.opts.es5){const Q=T instanceof t.Name?T:this.var("_arr",T);return this.forRange("_i",0,(0,t._)`${Q}.length`,ce=>{this.var(H,(0,t._)`${Q}[${ce}]`),j(H)})}return this._for(new C("of",z,H,T),()=>j(H))}forIn(S,T,j,z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(S,(0,t._)`Object.keys(${T})`,j);const H=this._scope.toName(S);return this._for(new C("in",z,H,T),()=>j(H))}endFor(){return this._endBlockNode(y)}label(S){return this._leafNode(new c(S))}break(S){return this._leafNode(new l(S))}return(S){const T=new _;if(this._blockNode(T),this.code(S),T.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(S,T,j){if(!T&&!j)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new N;if(this._blockNode(z),this.code(S),T){const H=this.name("e");this._currNode=z.catch=new R(H),T(H)}return j&&(this._currNode=z.finally=new k,this.code(j)),this._endBlockNode(R,k)}throw(S){return this._leafNode(new d(S))}block(S,T){return this._blockStarts.push(this._nodes.length),S&&this.code(S).endBlock(T),this}endBlock(S){const T=this._blockStarts.pop();if(T===void 0)throw new Error("CodeGen: not in self-balancing block");const j=this._nodes.length-T;if(j<0||S!==void 0&&j!==S)throw new Error(`CodeGen: wrong number of nodes: ${j} vs ${S} expected`);return this._nodes.length=T,this}func(S,T=t.nil,j,z){return this._blockNode(new E(S,T,j)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(S=1){for(;S-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(S){return this._currNode.nodes.push(S),this}_blockNode(S){this._currNode.nodes.push(S),this._nodes.push(S)}_endBlockNode(S,T){const j=this._currNode;if(j instanceof S||T&&j instanceof T)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${T?`${S.kind}/${T.kind}`:S.kind}"`)}_elseNode(S){const T=this._currNode;if(!(T instanceof h))throw new Error('CodeGen: "else" without "if"');return this._currNode=T.else=S,this}get _root(){return this._nodes[0]}get _currNode(){const S=this._nodes;return S[S.length-1]}set _currNode(S){const T=this._nodes;T[T.length-1]=S}}e.CodeGen=F;function W(P,S){for(const T in S)P[T]=(P[T]||0)+(S[T]||0);return P}function B(P,S){return S instanceof t._CodeOrName?W(P,S.names):P}function U(P,S,T){if(P instanceof t.Name)return j(P);if(!z(P))return P;return new t._Code(P._items.reduce((H,Q)=>(Q instanceof t.Name&&(Q=j(Q)),Q instanceof t._Code?H.push(...Q._items):H.push(Q),H),[]));function j(H){const Q=T[H.str];return Q===void 0||S[H.str]!==1?H:(delete S[H.str],Q)}function z(H){return H instanceof t._Code&&H._items.some(Q=>Q instanceof t.Name&&S[Q.str]===1&&T[Q.str]!==void 0)}}function Y(P,S){for(const T in S)P[T]=(P[T]||0)-(S[T]||0)}function L(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)`!${M(P)}`}e.not=L;const Z=D(e.operators.AND);function J(...P){return P.reduce(Z)}e.and=J;const se=D(e.operators.OR);function V(...P){return P.reduce(se)}e.or=V;function D(P){return(S,T)=>S===t.nil?T:T===t.nil?S:(0,t._)`${M(S)} ${P} ${M(T)}`}function M(P){return P instanceof t.Name?P:(0,t._)`(${P})`}}(Ce);var re={};Object.defineProperty(re,"__esModule",{value:!0}),re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const ze=Ce,e8=jo;function t8(e){const t={};for(const r of e)t[r]=!0;return t}re.toHash=t8;function r8(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(G1(e,t),!V1(t,e.self.RULES.all))}re.alwaysValidSchema=r8;function G1(e,t=e.schema){const{opts:r,self:a}=e;if(!r.strictSchema||typeof t=="boolean")return;const n=a.RULES.keywords;for(const i in t)n[i]||X1(e,`unknown keyword: "${i}"`)}re.checkUnknownRules=G1;function V1(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return!0;return!1}re.schemaHasRules=V1;function n8(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}re.schemaHasRulesButRef=n8;function a8({topSchemaRef:e,schemaPath:t},r,a,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ze._)`${r}`}return(0,ze._)`${e}${t}${(0,ze.getProperty)(a)}`}re.schemaRefOrVal=a8;function i8(e){return W1(decodeURIComponent(e))}re.unescapeFragment=i8;function o8(e){return encodeURIComponent(tp(e))}re.escapeFragment=o8;function tp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=tp;function W1(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=W1;function s8(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)}re.eachItem=s8;function Y1({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:a}){return(n,i,o,s)=>{const u=o===void 0?i:o instanceof ze.Name?(i instanceof ze.Name?e(n,i,o):t(n,i,o),o):i instanceof ze.Name?(t(n,o,i),i):r(i,o);return s===ze.Name&&!(u instanceof ze.Name)?a(n,u):u}}re.mergeEvaluated={props:Y1({mergeNames:(e,t,r)=>e.if((0,ze._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ze._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ze._)`${r} || {}`).code((0,ze._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ze._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ze._)`${r} || {}`),rp(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:U1}),items:Y1({mergeNames:(e,t,r)=>e.if((0,ze._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ze._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ze._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ze._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function U1(e,t){if(t===!0)return e.var("props",!0);const r=e.var("props",(0,ze._)`{}`);return t!==void 0&&rp(e,r,t),r}re.evaluatedPropsToName=U1;function rp(e,t,r){Object.keys(r).forEach(a=>e.assign((0,ze._)`${t}${(0,ze.getProperty)(a)}`,!0))}re.setEvaluated=rp;const H1={};function u8(e,t){return e.scopeValue("func",{ref:t,code:H1[t.code]||(H1[t.code]=new e8._Code(t.code))})}re.useFunc=u8;var np;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(np||(re.Type=np={}));function c8(e,t,r){if(e instanceof ze.Name){const a=t===np.Num;return r?a?(0,ze._)`"[" + ${e} + "]"`:(0,ze._)`"['" + ${e} + "']"`:a?(0,ze._)`"/" + ${e}`:(0,ze._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ze.getProperty)(e).toString():"/"+tp(e)}re.getErrorPath=c8;function X1(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}re.checkStrictMode=X1;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});const Pt=Ce,l8={data:new Pt.Name("data"),valCxt:new Pt.Name("valCxt"),instancePath:new Pt.Name("instancePath"),parentData:new Pt.Name("parentData"),parentDataProperty:new Pt.Name("parentDataProperty"),rootData:new Pt.Name("rootData"),dynamicAnchors:new Pt.Name("dynamicAnchors"),vErrors:new Pt.Name("vErrors"),errors:new Pt.Name("errors"),this:new Pt.Name("this"),self:new Pt.Name("self"),scope:new Pt.Name("scope"),json:new Pt.Name("json"),jsonPos:new Pt.Name("jsonPos"),jsonLen:new Pt.Name("jsonLen"),jsonPart:new Pt.Name("jsonPart")};Hr.default=l8,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=Ce,r=re,a=Hr;e.keywordError={message:({keyword:g})=>(0,t.str)`must pass "${g}" keyword validation`},e.keyword$DataError={message:({keyword:g,schemaType:h})=>h?(0,t.str)`"${g}" keyword must be ${h} ($data)`:(0,t.str)`"${g}" keyword is invalid ($data)`};function n(g,h=e.keywordError,y,b){const{it:w}=g,{gen:C,compositeRule:E,allErrors:_}=w,N=d(g,h,y);b??(E||_)?u(C,N):c(w,(0,t._)`[${N}]`)}e.reportError=n;function i(g,h=e.keywordError,y){const{it:b}=g,{gen:w,compositeRule:C,allErrors:E}=b,_=d(g,h,y);u(w,_),C||E||c(b,a.default.vErrors)}e.reportExtraError=i;function o(g,h){g.assign(a.default.errors,h),g.if((0,t._)`${a.default.vErrors} !== null`,()=>g.if(h,()=>g.assign((0,t._)`${a.default.vErrors}.length`,h),()=>g.assign(a.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:g,keyword:h,schemaValue:y,data:b,errsCount:w,it:C}){if(w===void 0)throw new Error("ajv implementation error");const E=g.name("err");g.forRange("i",w,a.default.errors,_=>{g.const(E,(0,t._)`${a.default.vErrors}[${_}]`),g.if((0,t._)`${E}.instancePath === undefined`,()=>g.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(a.default.instancePath,C.errorPath))),g.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${C.errSchemaPath}/${h}`),C.opts.verbose&&(g.assign((0,t._)`${E}.schema`,y),g.assign((0,t._)`${E}.data`,b))})}e.extendErrors=s;function u(g,h){const y=g.const("err",h);g.if((0,t._)`${a.default.vErrors} === null`,()=>g.assign(a.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${a.default.vErrors}.push(${y})`),g.code((0,t._)`${a.default.errors}++`)}function c(g,h){const{gen:y,validateName:b,schemaEnv:w}=g;w.$async?y.throw((0,t._)`new ${g.ValidationError}(${h})`):(y.assign((0,t._)`${b}.errors`,h),y.return(!1))}const l={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 d(g,h,y){const{createErrors:b}=g.it;return b===!1?(0,t._)`{}`:f(g,h,y)}function f(g,h,y={}){const{gen:b,it:w}=g,C=[p(w,y),m(g,y)];return v(g,h,C),b.object(...C)}function p({errorPath:g},{instancePath:h}){const y=h?(0,t.str)`${g}${(0,r.getErrorPath)(h,r.Type.Str)}`:g;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,y)]}function m({keyword:g,it:{errSchemaPath:h}},{schemaPath:y,parentSchema:b}){let w=b?h:(0,t.str)`${h}/${g}`;return y&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(y,r.Type.Str)}`),[l.schemaPath,w]}function v(g,{params:h,message:y},b){const{keyword:w,data:C,schemaValue:E,it:_}=g,{opts:N,propertyName:R,topSchemaRef:k,schemaPath:F}=_;b.push([l.keyword,w],[l.params,typeof h=="function"?h(g):h||(0,t._)`{}`]),N.messages&&b.push([l.message,typeof y=="function"?y(g):y]),N.verbose&&b.push([l.schema,E],[l.parentSchema,(0,t._)`${k}${F}`],[a.default.data,C]),R&&b.push([l.propertyName,R])}}(Fo),Object.defineProperty(vi,"__esModule",{value:!0}),vi.boolOrEmptySchema=vi.topBoolOrEmptySchema=void 0;const d8=Fo,f8=Ce,p8=Hr,h8={message:"boolean schema is false"};function m8(e){const{gen:t,schema:r,validateName:a}=e;r===!1?z1(e,!1):typeof r=="object"&&r.$async===!0?t.return(p8.default.data):(t.assign((0,f8._)`${a}.errors`,null),t.return(!0))}vi.topBoolOrEmptySchema=m8;function g8(e,t){const{gen:r,schema:a}=e;a===!1?(r.var(t,!1),z1(e)):r.var(t,!0)}vi.boolOrEmptySchema=g8;function z1(e,t){const{gen:r,data:a}=e,n={gen:r,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,d8.reportError)(n,h8,void 0,t)}var bt={},pa={};Object.defineProperty(pa,"__esModule",{value:!0}),pa.getRules=pa.isJSONType=void 0;const v8=["string","number","integer","boolean","null","object","array"],y8=new Set(v8);function b8(e){return typeof e=="string"&&y8.has(e)}pa.isJSONType=b8;function w8(){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:{}}}pa.getRules=w8;var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.shouldUseRule=gn.shouldUseGroup=gn.schemaHasRulesForType=void 0;function C8({schema:e,self:t},r){const a=t.RULES.types[r];return a&&a!==!0&&Z1(e,a)}gn.schemaHasRulesForType=C8;function Z1(e,t){return t.rules.some(r=>J1(e,r))}gn.shouldUseGroup=Z1;function J1(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(a=>e[a]!==void 0))}gn.shouldUseRule=J1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.reportTypeError=bt.checkDataTypes=bt.checkDataType=bt.coerceAndCheckDataType=bt.getJSONTypes=bt.getSchemaTypes=bt.DataType=void 0;const S8=pa,$8=gn,I8=Fo,be=Ce,q1=re;var yi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(yi||(bt.DataType=yi={}));function E8(e){const t=K1(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}bt.getSchemaTypes=E8;function K1(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(S8.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}bt.getJSONTypes=K1;function _8(e,t){const{gen:r,data:a,opts:n}=e,i=A8(t,n.coerceTypes),o=t.length>0&&!(i.length===0&&t.length===1&&(0,$8.schemaHasRulesForType)(e,t[0]));if(o){const s=ip(t,a,n.strictNumbers,yi.Wrong);r.if(s,()=>{i.length?O8(e,t,i):op(e)})}return o}bt.coerceAndCheckDataType=_8;const Q1=new Set(["string","number","integer","boolean","null"]);function A8(e,t){return t?e.filter(r=>Q1.has(r)||t==="array"&&r==="array"):[]}function O8(e,t,r){const{gen:a,data:n,opts:i}=e,o=a.let("dataType",(0,be._)`typeof ${n}`),s=a.let("coerced",(0,be._)`undefined`);i.coerceTypes==="array"&&a.if((0,be._)`${o} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>a.assign(n,(0,be._)`${n}[0]`).assign(o,(0,be._)`typeof ${n}`).if(ip(t,n,i.strictNumbers),()=>a.assign(s,n))),a.if((0,be._)`${s} !== undefined`);for(const c of r)(Q1.has(c)||c==="array"&&i.coerceTypes==="array")&&u(c);a.else(),op(e),a.endIf(),a.if((0,be._)`${s} !== undefined`,()=>{a.assign(n,s),T8(e,s)});function u(c){switch(c){case"string":a.elseIf((0,be._)`${o} == "number" || ${o} == "boolean"`).assign(s,(0,be._)`"" + ${n}`).elseIf((0,be._)`${n} === null`).assign(s,(0,be._)`""`);return;case"number":a.elseIf((0,be._)`${o} == "boolean" || ${n} === null
|
|
90
|
+
`,w),_=h.slice(w,E===-1?void 0:E+1);if(s(i,_)||(b+=_,E===-1||!_.trim()))break;w=E+1}const C=No(b);return C===""?null:[b,,C]}),i:3,u:zf,l:(h,y,b)=>u("p",{key:b.key},y(h.children,b))},22:{t:["["],o:fa(dK),i:0,u:h=>(f[h[1]]={target:h[2],title:h[4]},{}),l:Jf},23:{t:["!["],o:Nn(fK),i:0,u:h=>({alt:h[1]?Ur(h[1]):void 0,ref:h[2]}),l:(h,y,b)=>f[h.ref]?u("img",{key:b.key,alt:h.alt,src:a(f[h.ref].target,"img","src"),title:f[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:fa(pK),i:0,u:(h,y,b)=>({children:y(h[1],b),fallbackChildren:h[0],ref:h[2]}),l:(h,y,b)=>f[h.ref]?u("a",{key:b.key,href:a(f[h.ref].target,"a","href"),title:f[h.ref].title},y(h.children,b)):u("span",{key:b.key},h.fallbackChildren)},25:{t:["|"],o:mn(_1),i:1,u:BK,l(h,y,b){const w=h;return u("table",{key:b.key},u("thead",null,u("tr",null,w.header.map(function(C,E){return u("th",{key:E,style:j1(w,E)},y(C,b))}))),u("tbody",null,w.cells.map(function(C,E){return u("tr",{key:E},C.map(function(_,N){return u("td",{key:N,style:j1(w,N)},y(_,b))}))})))}},27:{o:gi(function(h,y){let b;return Qu(h,":")&&(b=IK.exec(h)),b||AK.exec(h)}),i:4,u(h){const y=h[0];return{text:y.indexOf("&")===-1?y:y.replace(aK,(b,w)=>t.namedCodesToUnicode[w]||b)}},l:h=>h.text},28:{t:["**","__"],o:Nn(wK),i:2,u:(h,y,b)=>({children:y(h[2],b)}),l:(h,y,b)=>u("strong",{key:b.key},y(h.children,b))},29:{t:h=>{const y=h[0];return(y==="*"||y==="_")&&h[1]!==y},o:Nn(CK),i:3,u:(h,y,b)=>({children:y(h[2],b)}),l:(h,y,b)=>u("em",{key:b.key},y(h.children,b))},30:{t:["\\"],o:Nn(EK),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:Nn(SK),i:3,u:zf,l:(h,y,b)=>u("mark",{key:b.key},y(h.children,b))},32:{t:["~~"],o:Nn($K),i:3,u:zf,l:(h,y,b)=>u("del",{key:b.key},y(h.children,b))}};t.disableParsingRawHTML===!0&&(delete p[11],delete p[13]);const m=function(h){var y=Object.keys(h);function b(w,C){var E=[];if(C.prevCapture=C.prevCapture||"",w.trim())for(;w;)for(var _=0;_<y.length;){var N=y[_],R=h[N];if(!R.t||FK(w,C,R.t)){var k=R.o(w,C);if(k&&k[0]){w=w.substring(k[0].length);var F=R.u(k,b,C);C.prevCapture+=k[0],F.type||(F.type=N),E.push(F);break}_++}else _++}return C.prevCapture="",E}return y.sort(function(w,C){return h[w].i-h[C].i||(w<C?-1:1)}),function(w,C){return b(function(E){return E.replace(Kq,`
|
|
91
|
+
`).replace(tK,"").replace(mK," ")}(w),C)}}(p),v=function(h,y){return function b(w,C={}){if(Array.isArray(w)){const E=C.key,_=[];let N=!1;for(let R=0;R<w.length;R++){C.key=R;const k=b(w[R],C),F=M1(k);F&&N?_[_.length-1]+=k:k!==null&&_.push(k),N=F}return C.key=E,_}return function(E,_,N){const R=h[E.type].l;return y?y(()=>R(E,_,N),E,_,N):R(E,_,N)}(w,b,C)}}(p,t.renderRule),g=c(e);return d.length?u("div",null,g,u("footer",{key:"footer"},d.map(function(h){return u("div",{id:r(h.identifier,ko),key:h.identifier},h.identifier,v(m(h.footnote,{inline:!0})))}))):g}const rc=e=>{let{children:t,options:r}=e,a=function(n,i){if(n==null)return{};var o,s,u={},c=Object.keys(n);for(s=0;s<c.length;s++)i.indexOf(o=c[s])>=0||(u[o]=n[o]);return u}(e,Gq);return ne.cloneElement(UK(t??"",r),a)};function HK(e,t){return e==null?!0:Pm(e,t)}class XK extends I.Component{constructor(){super(...arguments);we(this,"state",{wasPropertyKeyModified:!1,additionalProperties:{}});we(this,"onPropertyChange",(r,a=!1)=>(n,i,o)=>{const{formData:s,onChange:u,errorSchema:c}=this.props;n===void 0&&a&&(n="");const l={...s,[r]:n};u(l,c&&c&&{...c,[r]:i},o)});we(this,"onDropPropertyClick",r=>a=>{a.preventDefault();const{onChange:n,formData:i}=this.props,o={...i};HK(o,r),n(o)});we(this,"getAvailableKey",(r,a)=>{const{uiSchema:n,registry:i}=this.props,{duplicateKeySuffixSeparator:o="-"}=fe(n,i.globalUiOptions);let s=0,u=r;for(;Nt(a,u);)u=`${r}${o}${++s}`;return u});we(this,"onKeyChange",r=>(a,n)=>{if(r===a)return;const{formData:i,onChange:o,errorSchema:s}=this.props;a=this.getAvailableKey(a,i);const u={...i},c={[r]:a},l=Object.keys(u).map(f=>({[c[f]||f]:u[f]})),d=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(d,s&&s&&{...s,[a]:n})});we(this,"handleAddClick",r=>()=>{if(!r.additionalProperties)return;const{formData:a,onChange:n,registry:i}=this.props,o={...a};let s,u,c;if(qe(r.additionalProperties)){s=r.additionalProperties.type,u=r.additionalProperties.const,c=r.additionalProperties.default;let f=r.additionalProperties;if(ct in f){const{schemaUtils:p}=i;f=p.retrieveSchema({$ref:f[ct]},a),s=f.type,u=f.const,c=f.default}!s&&(fr in f||Zt in f)&&(s="object")}const l=this.getAvailableKey("newKey",o),d=u??c??this.getDefaultValue(s);Et(o,l,d),n(o)})}isRequired(r){const{schema:a}=this.props;return Array.isArray(a.required)&&a.required.indexOf(r)!==-1}getDefaultValue(r){const{registry:{translateString:a}}=this.props;switch(r){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return a(He.NewStringDefault)}}render(){const{schema:r,uiSchema:a={},formData:n,errorSchema:i,idSchema:o,name:s,required:u=!1,disabled:c,readonly:l,hideError:d,idPrefix:f,idSeparator:p,onBlur:m,onFocus:v,registry:g,title:h}=this.props,{fields:y,formContext:b,schemaUtils:w,translateString:C,globalUiOptions:E}=g,{SchemaField:_}=y,N=w.retrieveSchema(r,n),R=fe(a,E),{properties:k={}}=N,F=R.title??N.title??h??s,W=R.description??N.description;let B;try{const L=Object.keys(k);B=nb(L,R.order)}catch(L){return $.jsxs("div",{children:[$.jsx("p",{className:"config-error",style:{color:"red"},children:$.jsx(rc,{options:{disableParsingRawHTML:!0},children:C(He.InvalidObjectField,[s||"root",L.message])})}),$.jsx("pre",{children:JSON.stringify(N)})]})}const U=pe("ObjectFieldTemplate",g,R),Y={title:R.label===!1?"":F,description:R.label===!1?void 0:W,properties:B.map(L=>{const Z=Nt(N,[at,L,Gn]),J=Z?a.additionalProperties:a[L],se=fe(J).widget==="hidden",V=ue(o,[L],{});return{content:$.jsx(_,{name:L,required:this.isRequired(L),schema:ue(N,[at,L],{}),uiSchema:J,errorSchema:ue(i,L),idSchema:V,idPrefix:f,idSeparator:p,formData:ue(n,L),formContext:b,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(L),onChange:this.onPropertyChange(L,Z),onBlur:m,onFocus:v,registry:g,disabled:c,readonly:l,hideError:d,onDropPropertyClick:this.onDropPropertyClick},L),name:L,readonly:l,disabled:c,required:u,hidden:se}}),readonly:l,disabled:c,required:u,idSchema:o,uiSchema:a,errorSchema:i,schema:N,formData:n,formContext:b,registry:g};return $.jsx(U,{...Y,onAddClick:this.handleAddClick})}}const zK={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function ZK(e,t,r,a){const n=t.field,{fields:i,translateString:o}=a;if(typeof n=="function")return n;if(typeof n=="string"&&n in i)return i[n];const s=Tr(e),u=Array.isArray(s)?s[0]:s||"",c=e.$id;let l=zK[u];return c&&c in i&&(l=c),!l&&(e.anyOf||e.oneOf)?()=>null:l in i?i[l]:()=>{const d=pe("UnsupportedFieldTemplate",a,t);return $.jsx(d,{schema:e,idSchema:r,reason:o(He.UnknownFieldType,[String(e.type)]),registry:a})}}function JK(e){const{schema:t,idSchema:r,uiSchema:a,formData:n,errorSchema:i,idPrefix:o,idSeparator:s,name:u,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,registry:p,wasPropertyKeyModified:m=!1}=e,{formContext:v,schemaUtils:g,globalUiOptions:h}=p,y=fe(a,h),b=pe("FieldTemplate",p,y),w=pe("DescriptionFieldTemplate",p,y),C=pe("FieldHelpTemplate",p,y),E=pe("FieldErrorTemplate",p,y),_=g.retrieveSchema(t,n),N=r[rn],R=Dr(g.toIdSchema(_,N,n,o,s),r),k=I.useCallback((Ve,wt,Ut)=>c(Ve,wt,Ut||N),[N,c]),F=ZK(_,y,R,p),W=!!(y.disabled??e.disabled),B=!!(y.readonly??(e.readonly||e.schema.readOnly||_.readOnly)),U=y.hideError,Y=U===void 0?e.hideError:!!U,L=!!(y.autofocus??e.autofocus);if(Object.keys(_).length===0)return null;const Z=g.getDisplayLabel(_,a,h),{__errors:J,...se}=i||{},V=Ss(a,["ui:classNames","classNames","ui:style"]);ki in V&&(V[ki]=Ss(V[ki],["classNames","style"]));const D=$.jsx(F,{...e,onChange:k,idSchema:R,schema:_,uiSchema:V,disabled:W,readonly:B,hideError:Y,autofocus:L,errorSchema:se,formContext:v,rawErrors:J}),M=R[rn];let P;m?P=u:P=Gn in _?u:y.title||e.schema.title||_.title||e.title||u;const S=y.description||e.schema.description||_.description||"",T=y.enableMarkdownInDescription?$.jsx(rc,{options:{disableParsingRawHTML:!0},children:S}):S,j=y.help,z=y.widget==="hidden",H=["form-group","field",`field-${Tr(_)}`];!Y&&J&&J.length>0&&H.push("field-error has-error has-danger"),a!=null&&a.classNames&&(process.env.NODE_ENV!=="production"&&console.warn("'uiSchema.classNames' is deprecated and may be removed in a major release; Use 'ui:classNames' instead."),H.push(a.classNames)),y.classNames&&H.push(y.classNames);const Q=$.jsx(C,{help:j,idSchema:R,schema:_,uiSchema:a,hasErrors:!Y&&J&&J.length>0,registry:p}),ce=Y||(_.anyOf||_.oneOf)&&!g.isSelect(_)?void 0:$.jsx(E,{errors:J,errorSchema:i,idSchema:R,schema:_,uiSchema:a,registry:p}),Ee={description:$.jsx(w,{id:oo(M),description:T,schema:_,uiSchema:a,registry:p}),rawDescription:S,help:Q,rawHelp:typeof j=="string"?j:void 0,errors:ce,rawErrors:Y?void 0:J,id:M,label:P,hidden:z,onChange:c,onKeyChange:l,onDropPropertyClick:d,required:f,disabled:W,readonly:B,hideError:Y,displayLabel:Z,classNames:H.join(" ").trim(),style:y.style,formContext:v,formData:n,schema:_,uiSchema:a,registry:p},ee=p.fields.AnyOfField,pt=p.fields.OneOfField,te=(a==null?void 0:a["ui:field"])&&(a==null?void 0:a["ui:fieldReplacesAnyOrOneOf"])===!0;return $.jsx(b,{...Ee,children:$.jsxs($.Fragment,{children:[D,_.anyOf&&!te&&!g.isSelect(_)&&$.jsx(ee,{name:u,disabled:W,readonly:B,hideError:Y,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:R,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:_.anyOf.map(Ve=>g.retrieveSchema(qe(Ve)?Ve:{},n)),registry:p,required:f,schema:_,uiSchema:a}),_.oneOf&&!te&&!g.isSelect(_)&&$.jsx(pt,{name:u,disabled:W,readonly:B,hideError:Y,errorSchema:i,formData:n,formContext:v,idPrefix:o,idSchema:R,idSeparator:s,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:_.oneOf.map(Ve=>g.retrieveSchema(qe(Ve)?Ve:{},n)),registry:p,required:f,schema:_,uiSchema:a})]})})}class qK extends I.Component{shouldComponentUpdate(t){return!Ue(this.props,t)}render(){return $.jsx(JK,{...this.props})}}function KK(e){const{schema:t,name:r,uiSchema:a,idSchema:n,formData:i,required:o,disabled:s=!1,readonly:u=!1,autofocus:c=!1,onChange:l,onBlur:d,onFocus:f,registry:p,rawErrors:m,hideError:v}=e,{title:g,format:h}=t,{widgets:y,formContext:b,schemaUtils:w,globalUiOptions:C}=p,E=w.isSelect(t)?un(t,a):void 0;let _=E?"select":"text";h&&qy(t,h,y)&&(_=h);const{widget:N=_,placeholder:R="",title:k,...F}=fe(a),W=w.getDisplayLabel(t,a,C),B=k??g??r,U=kt(t,N,y);return $.jsx(U,{options:{...F,enumOptions:E},schema:t,uiSchema:a,id:n.$id,name:r,label:B,hideLabel:!W,hideError:v,value:i,onChange:l,onBlur:d,onFocus:f,required:o,disabled:s,readonly:u,formContext:b,autofocus:c,registry:p,placeholder:R,rawErrors:m})}function QK(e){const{formData:t,onChange:r}=e;return I.useEffect(()=>{t===void 0&&r(null)},[t,r]),null}function e7(){return{AnyOfField:g1,ArrayField:Mq,BooleanField:Fq,NumberField:Lq,ObjectField:XK,OneOfField:g1,SchemaField:qK,StringField:KK,NullField:QK}}function t7(e){const{idSchema:t,description:r,registry:a,schema:n,uiSchema:i}=e,o=fe(i,a.globalUiOptions),{label:s=!0}=o;if(!r||!s)return null;const u=pe("DescriptionFieldTemplate",a,o);return $.jsx(u,{id:oo(t),description:r,schema:n,uiSchema:i,registry:a})}function r7(e){const{children:t,className:r,disabled:a,hasToolbar:n,hasMoveDown:i,hasMoveUp:o,hasRemove:s,hasCopy:u,index:c,onCopyIndexClick:l,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:m,uiSchema:v}=e,{CopyButton:g,MoveDownButton:h,MoveUpButton:y,RemoveButton:b}=m.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return $.jsxs("div",{className:r,children:[$.jsx("div",{className:n?"col-xs-9":"col-xs-12",children:t}),n&&$.jsx("div",{className:"col-xs-3 array-item-toolbox",children:$.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||i)&&$.jsx(y,{style:w,disabled:a||p||!o,onClick:f(c,c-1),uiSchema:v,registry:m}),(o||i)&&$.jsx(h,{style:w,disabled:a||p||!i,onClick:f(c,c+1),uiSchema:v,registry:m}),u&&$.jsx(g,{style:w,disabled:a||p,onClick:l(c),uiSchema:v,registry:m}),s&&$.jsx(b,{style:w,disabled:a||p,onClick:d(c),uiSchema:v,registry:m})]})})]})}function n7(e){const{canAdd:t,className:r,disabled:a,idSchema:n,uiSchema:i,items:o,onAddClick:s,readonly:u,registry:c,required:l,schema:d,title:f}=e,p=fe(i),m=pe("ArrayFieldDescriptionTemplate",c,p),v=pe("ArrayFieldItemTemplate",c,p),g=pe("ArrayFieldTitleTemplate",c,p),{ButtonTemplates:{AddButton:h}}=c.templates;return $.jsxs("fieldset",{className:r,id:n.$id,children:[$.jsx(g,{idSchema:n,title:p.title||f,required:l,schema:d,uiSchema:i,registry:c}),$.jsx(m,{idSchema:n,description:p.description||d.description,schema:d,uiSchema:i,registry:c}),$.jsx("div",{className:"row array-item-list",children:o&&o.map(({key:y,...b})=>$.jsx(v,{...b},y))}),t&&$.jsx(h,{className:"array-item-add",onClick:s,disabled:a||u,uiSchema:i,registry:c})]})}function a7(e){const{idSchema:t,title:r,schema:a,uiSchema:n,required:i,registry:o}=e,s=fe(n,o.globalUiOptions),{label:u=!0}=s;if(!r||!u)return null;const c=pe("TitleFieldTemplate",o,s);return $.jsx(c,{id:eb(t),title:r,required:i,schema:a,uiSchema:n,registry:o})}function i7(e){const{id:t,name:r,value:a,readonly:n,disabled:i,autofocus:o,onBlur:s,onFocus:u,onChange:c,onChangeOverride:l,options:d,schema:f,uiSchema:p,formContext:m,registry:v,rawErrors:g,type:h,hideLabel:y,hideError:b,...w}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const C={...w,...Uy(f,h,d)};let E;C.type==="number"||C.type==="integer"?E=a||a===0?a:"":E=a??"";const _=I.useCallback(({target:{value:k}})=>c(k===""?d.emptyValue:k),[c,d]),N=I.useCallback(({target:k})=>s(t,k&&k.value),[s,t]),R=I.useCallback(({target:k})=>u(t,k&&k.value),[u,t]);return $.jsxs($.Fragment,{children:[$.jsx("input",{id:t,name:t,className:"form-control",readOnly:n,disabled:i,autoFocus:o,value:E,...C,list:f.examples?Ed(t):void 0,onChange:l||_,onBlur:N,onFocus:R,"aria-describedby":ta(t,!!f.examples)}),Array.isArray(f.examples)&&$.jsx("datalist",{id:Ed(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map(k=>$.jsx("option",{value:k},k))},`datalist_${t}`)]})}function o7({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Xy(e);return r?null:$.jsx("div",{children:$.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function Mo(e){const{iconType:t="default",icon:r,className:a,uiSchema:n,registry:i,...o}=e;return $.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...o,children:$.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function s7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function u7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function c7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function l7(e){const{registry:{translateString:t}}=e;return $.jsx(Mo,{title:t(He.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function d7({className:e,onClick:t,disabled:r,registry:a}){const{translateString:n}=a;return $.jsx("div",{className:"row",children:$.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:$.jsx(Mo,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(He.AddButton),onClick:t,disabled:r,registry:a})})})}function f7(){return{SubmitButton:o7,AddButton:d7,CopyButton:s7,MoveDownButton:u7,MoveUpButton:c7,RemoveButton:l7}}function p7(e){const{id:t,description:r}=e;return r?typeof r=="string"?$.jsx("p",{id:t,className:"field-description",children:r}):$.jsx("div",{id:t,className:"field-description",children:r}):null}function h7({errors:e,registry:t}){const{translateString:r}=t;return $.jsxs("div",{className:"panel panel-danger errors",children:[$.jsx("div",{className:"panel-heading",children:$.jsx("h3",{className:"panel-title",children:r(He.ErrorsLabel)})}),$.jsx("ul",{className:"list-group",children:e.map((a,n)=>$.jsx("li",{className:"list-group-item text-danger",children:a.stack},n))})]})}const m7="*";function B1(e){const{label:t,required:r,id:a}=e;return t?$.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&$.jsx("span",{className:"required",children:m7})]}):null}function g7(e){const{id:t,label:r,children:a,errors:n,help:i,description:o,hidden:s,required:u,displayLabel:c,registry:l,uiSchema:d}=e,f=fe(d),p=pe("WrapIfAdditionalTemplate",l,f);return s?$.jsx("div",{className:"hidden",children:a}):$.jsxs(p,{...e,children:[c&&$.jsx(B1,{label:r,required:u,id:t}),c&&o?o:null,a,n,i]})}function v7(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const a=Ky(r);return $.jsx("div",{children:$.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(n=>!!n).map((n,i)=>$.jsx("li",{className:"text-danger",children:n},i))})})}function y7(e){const{idSchema:t,help:r}=e;if(!r)return null;const a=Qy(t);return typeof r=="string"?$.jsx("p",{id:a,className:"help-block",children:r}):$.jsx("div",{id:a,className:"help-block",children:r})}function b7(e){const{description:t,disabled:r,formData:a,idSchema:n,onAddClick:i,properties:o,readonly:s,registry:u,required:c,schema:l,title:d,uiSchema:f}=e,p=fe(f),m=pe("TitleFieldTemplate",u,p),v=pe("DescriptionFieldTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return $.jsxs("fieldset",{id:n.$id,children:[d&&$.jsx(m,{id:eb(n),title:d,required:c,schema:l,uiSchema:f,registry:u}),t&&$.jsx(v,{id:oo(n),description:t,schema:l,uiSchema:f,registry:u}),o.map(h=>h.content),Ph(l,f,a)&&$.jsx(g,{className:"object-property-expand",onClick:i(l),disabled:r||s,uiSchema:f,registry:u})]})}const w7="*";function C7(e){const{id:t,title:r,required:a}=e;return $.jsxs("legend",{id:t,children:[r,a&&$.jsx("span",{className:"required",children:w7})]})}function S7(e){const{schema:t,idSchema:r,reason:a,registry:n}=e,{translateString:i}=n;let o=He.UnsupportedField;const s=[];return r&&r.$id&&(o=He.UnsupportedFieldWithId,s.push(r.$id)),a&&(o=o===He.UnsupportedField?He.UnsupportedFieldWithReason:He.UnsupportedFieldWithIdAndReason,s.push(a)),$.jsxs("div",{className:"unsupported-field",children:[$.jsx("p",{children:$.jsx(rc,{options:{disableParsingRawHTML:!0},children:i(o,s)})}),t&&$.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function $7(e){const{id:t,classNames:r,style:a,disabled:n,label:i,onKeyChange:o,onDropPropertyClick:s,readonly:u,required:c,schema:l,children:d,uiSchema:f,registry:p}=e,{templates:m,translateString:v}=p,{RemoveButton:g}=m.ButtonTemplates,h=v(He.KeyLabel,[i]);return Gn in l?$.jsx("div",{className:r,style:a,children:$.jsxs("div",{className:"row",children:[$.jsx("div",{className:"col-xs-5 form-additional",children:$.jsxs("div",{className:"form-group",children:[$.jsx(B1,{label:h,required:c,id:`${t}-key`}),$.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:({target:b})=>o(b&&b.value),defaultValue:i})]})}),$.jsx("div",{className:"form-additional form-group col-xs-5",children:d}),$.jsx("div",{className:"col-xs-2",children:$.jsx(g,{className:"array-item-remove btn-block",style:{border:"0"},disabled:n||u,onClick:s(i),uiSchema:f,registry:p})})]})}):$.jsx("div",{className:r,style:a,children:d})}function I7(){return{ArrayFieldDescriptionTemplate:t7,ArrayFieldItemTemplate:r7,ArrayFieldTemplate:n7,ArrayFieldTitleTemplate:a7,ButtonTemplates:f7(),BaseInputTemplate:i7,DescriptionFieldTemplate:p7,ErrorListTemplate:h7,FieldTemplate:g7,FieldErrorTemplate:v7,FieldHelpTemplate:y7,ObjectFieldTemplate:b7,TitleFieldTemplate:C7,UnsupportedFieldTemplate:S7,WrapIfAdditionalTemplate:$7}}function E7(e){return Object.values(e).every(t=>t!==-1)}function _7({type:e,range:t,value:r,select:a,rootId:n,name:i,disabled:o,readonly:s,autofocus:u,registry:c,onBlur:l,onFocus:d}){const f=n+"_"+e,{SelectWidget:p}=c.widgets;return $.jsx(p,{schema:{type:"integer"},id:f,name:i,className:"form-control",options:{enumOptions:Wy(t[0],t[1])},placeholder:e,value:r,disabled:o,readonly:s,autofocus:u,onChange:m=>a(e,m),onBlur:l,onFocus:d,registry:c,label:"","aria-describedby":ta(n)})}function A7({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:n,id:i,name:o,registry:s,onBlur:u,onFocus:c,onChange:l,value:d}){const{translateString:f}=s,[p,m]=I.useState(d),[v,g]=I.useReducer((w,C)=>({...w,...C}),ra(d,e));I.useEffect(()=>{const w=eu(v,e);E7(v)&&w!==d?l(w):p!==d&&(m(d),g(ra(d,e)))},[e,d,l,v,p]);const h=I.useCallback((w,C)=>{g({[w]:C})},[]),y=I.useCallback(w=>{if(w.preventDefault(),t||r)return;const C=ra(new Date().toJSON(),e);l(eu(C,e))},[t,r,e]),b=I.useCallback(w=>{w.preventDefault(),!(t||r)&&l(void 0)},[t,r,l]);return $.jsxs("ul",{className:"list-inline",children:[TW(v,e,n.yearsRange,n.format).map((w,C)=>$.jsx("li",{className:"list-inline-item",children:$.jsx(_7,{rootId:i,name:o,select:h,...w,disabled:t,readonly:r,registry:s,onBlur:u,onFocus:c,autofocus:a&&C===0})},C)),(n.hideNowButton!=="undefined"?!n.hideNowButton:!0)&&$.jsx("li",{className:"list-inline-item",children:$.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:y,children:f(He.NowLabel)})}),(n.hideClearButton!=="undefined"?!n.hideClearButton:!0)&&$.jsx("li",{className:"list-inline-item",children:$.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(He.ClearLabel)})})]})}function O7({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return $.jsx(r,{time:e,...t})}function T7({schema:e,uiSchema:t,options:r,id:a,value:n,disabled:i,readonly:o,label:s,hideLabel:u,autofocus:c=!1,onBlur:l,onFocus:d,onChange:f,registry:p}){const m=pe("DescriptionFieldTemplate",p,r),v=so(e),g=I.useCallback(w=>f(w.target.checked),[f]),h=I.useCallback(w=>l(a,w.target.checked),[l,a]),y=I.useCallback(w=>d(a,w.target.checked),[d,a]),b=r.description??e.description;return $.jsxs("div",{className:`checkbox ${i||o?"disabled":""}`,children:[!u&&!!b&&$.jsx(m,{id:oo(a),description:b,schema:e,uiSchema:t,registry:p}),$.jsxs("label",{children:[$.jsx("input",{type:"checkbox",id:a,name:a,checked:typeof n>"u"?!1:n,required:v,disabled:i||o,autoFocus:c,onChange:g,onBlur:h,onFocus:y,"aria-describedby":ta(a)}),FW($.jsx("span",{children:s}),u)]})]})}function x7({id:e,disabled:t,options:{inline:r=!1,enumOptions:a,enumDisabled:n,emptyValue:i},value:o,autofocus:s=!1,readonly:u,onChange:c,onBlur:l,onFocus:d}){const f=Array.isArray(o)?o:[o],p=I.useCallback(({target:v})=>l(e,Pr(v&&v.value,a,i)),[l,e]),m=I.useCallback(({target:v})=>d(e,Pr(v&&v.value,a,i)),[d,e]);return $.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(a)&&a.map((v,g)=>{const h=Sd(v.value,f),y=Array.isArray(n)&&n.indexOf(v.value)!==-1,b=t||y||u?"disabled":"",w=E=>{E.target.checked?c(IW(g,f,a)):c(SW(g,f,a))},C=$.jsxs("span",{children:[$.jsx("input",{type:"checkbox",id:tb(e,g),name:e,checked:h,value:String(g),disabled:t||y||u,autoFocus:s&&g===0,onChange:w,onBlur:p,onFocus:m,"aria-describedby":ta(e)}),$.jsx("span",{children:v.label})]});return r?$.jsx("label",{className:`checkbox-inline ${b}`,children:C},g):$.jsx("div",{className:`checkbox ${b}`,children:$.jsx("label",{children:C})},g)})})}function D7(e){const{disabled:t,readonly:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"color",...e,disabled:t||r})}function P7(e){const{onChange:t,options:r,registry:a}=e,n=pe("BaseInputTemplate",a,r),i=I.useCallback(o=>t(o||void 0),[t]);return $.jsx(n,{type:"date",...e,onChange:i})}function R7(e){const{onChange:t,value:r,options:a,registry:n}=e,i=pe("BaseInputTemplate",n,a);return $.jsx(i,{type:"datetime-local",...e,value:ib(r),onChange:o=>t(rb(o))})}function N7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"email",...e})}function k7(e,t){return e===null?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function M7(e){const{name:t,size:r,type:a}=e;return new Promise((n,i)=>{const o=new window.FileReader;o.onerror=i,o.onload=s=>{var u;typeof((u=s.target)==null?void 0:u.result)=="string"?n({dataURL:k7(s.target.result,t),name:t,size:r,type:a}):n({dataURL:null,name:t,size:r,type:a})},o.readAsDataURL(e)})}function F7(e){return Promise.all(Array.from(e).map(M7))}function j7({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:n,name:i}=e;return a?["image/jpeg","image/png"].includes(n)?$.jsx("img",{src:a,style:{maxWidth:"100%"},className:"file-preview"}):$.jsxs($.Fragment,{children:[" ",$.jsx("a",{download:`preview-${i}`,href:a,className:"file-download",children:r(He.PreviewLabel)})]}):null}function B7({filesInfo:e,registry:t,preview:r,onRemove:a,options:n}){if(e.length===0)return null;const{translateString:i}=t,{RemoveButton:o}=pe("ButtonTemplates",t,n);return $.jsx("ul",{className:"file-info",children:e.map((s,u)=>{const{name:c,size:l,type:d}=s,f=()=>a(u);return $.jsxs("li",{children:[$.jsx(rc,{children:i(He.FilesInfo,[c,d,String(l)])}),r&&$.jsx(j7,{fileInfo:s,registry:t}),$.jsx(o,{onClick:f,registry:t})]},u)})})}function L7(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:n}=Vy(r);return[...t,{dataURL:r,name:n,size:a.size,type:a.type}]}catch{return t}},[])}function G7(e){const{disabled:t,readonly:r,required:a,multiple:n,onChange:i,value:o,options:s,registry:u}=e,c=pe("BaseInputTemplate",u,s),l=I.useCallback(p=>{p.target.files&&F7(p.target.files).then(m=>{const v=m.map(g=>g.dataURL);i(n?o.concat(v):v[0])})},[n,o,i]),d=I.useMemo(()=>L7(Array.isArray(o)?o:[o]),[o]),f=I.useCallback(p=>{if(n){const m=o.filter((v,g)=>g!==p);i(m)}else i(void 0)},[n,o,i]);return $.jsxs("div",{children:[$.jsx(c,{...e,disabled:t||r,type:"file",required:o?!1:a,onChangeOverride:l,value:"",accept:s.accept?String(s.accept):void 0}),$.jsx(B7,{filesInfo:d,onRemove:f,registry:u,preview:s.filePreview,options:s})]})}function V7({id:e,value:t}){return $.jsx("input",{type:"hidden",id:e,name:e,value:typeof t>"u"?"":t})}function W7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"password",...e})}function Y7({options:e,value:t,required:r,disabled:a,readonly:n,autofocus:i=!1,onBlur:o,onFocus:s,onChange:u,id:c}){const{enumOptions:l,enumDisabled:d,inline:f,emptyValue:p}=e,m=I.useCallback(({target:g})=>o(c,Pr(g&&g.value,l,p)),[o,c]),v=I.useCallback(({target:g})=>s(c,Pr(g&&g.value,l,p)),[s,c]);return $.jsx("div",{className:"field-radio-group",id:c,children:Array.isArray(l)&&l.map((g,h)=>{const y=Sd(g.value,t),b=Array.isArray(d)&&d.indexOf(g.value)!==-1,w=a||b||n?"disabled":"",C=()=>u(g.value),E=$.jsxs("span",{children:[$.jsx("input",{type:"radio",id:tb(c,h),checked:y,name:c,required:r,value:String(h),disabled:a||b||n,autoFocus:i&&h===0,onChange:C,onBlur:m,onFocus:v,"aria-describedby":ta(c)}),$.jsx("span",{children:g.label})]});return f?$.jsx("label",{className:`radio-inline ${w}`,children:E},h):$.jsx("div",{className:`radio ${w}`,children:$.jsx("label",{children:E})},h)})})}function U7(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return $.jsxs("div",{className:"field-range-wrapper",children:[$.jsx(r,{type:"range",...e}),$.jsx("span",{className:"range-view",children:t})]})}function Kf(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function H7({schema:e,id:t,options:r,value:a,required:n,disabled:i,readonly:o,multiple:s=!1,autofocus:u=!1,onChange:c,onBlur:l,onFocus:d,placeholder:f}){const{enumOptions:p,enumDisabled:m,emptyValue:v}=r,g=s?[]:"",h=I.useCallback(E=>{const _=Kf(E,s);return d(t,Pr(_,p,v))},[d,t,e,s,p,v]),y=I.useCallback(E=>{const _=Kf(E,s);return l(t,Pr(_,p,v))},[l,t,e,s,p,v]),b=I.useCallback(E=>{const _=Kf(E,s);return c(Pr(_,p,v))},[c,e,s,p,v]),w=$W(a,p,s),C=!s&&e.default===void 0;return $.jsxs("select",{id:t,name:t,multiple:s,className:"form-control",value:typeof w>"u"?g:w,required:n,disabled:i||o,autoFocus:u,onBlur:y,onFocus:h,onChange:b,"aria-describedby":ta(t),children:[C&&$.jsx("option",{value:"",children:f}),Array.isArray(p)&&p.map(({value:E,label:_},N)=>{const R=m&&m.indexOf(E)!==-1;return $.jsx("option",{value:String(N),disabled:R,children:_},N)})]})}function L1({id:e,options:t={},placeholder:r,value:a,required:n,disabled:i,readonly:o,autofocus:s=!1,onChange:u,onBlur:c,onFocus:l}){const d=I.useCallback(({target:{value:m}})=>u(m===""?t.emptyValue:m),[u,t.emptyValue]),f=I.useCallback(({target:m})=>c(e,m&&m.value),[c,e]),p=I.useCallback(({target:m})=>l(e,m&&m.value),[e,l]);return $.jsx("textarea",{id:e,name:e,className:"form-control",value:a||"",placeholder:r,required:n,disabled:i,readOnly:o,autoFocus:s,rows:t.rows,onBlur:f,onFocus:p,onChange:d,"aria-describedby":ta(e)})}L1.defaultProps={autofocus:!1,options:{}};function X7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{...e})}function z7(e){const{onChange:t,options:r,registry:a}=e,n=pe("BaseInputTemplate",a,r),i=I.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return $.jsx(n,{type:"time",...e,onChange:i})}function Z7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"url",...e})}function J7(e){const{options:t,registry:r}=e,a=pe("BaseInputTemplate",r,t);return $.jsx(a,{type:"number",...e})}function q7(){return{AltDateWidget:A7,AltDateTimeWidget:O7,CheckboxWidget:T7,CheckboxesWidget:x7,ColorWidget:D7,DateWidget:P7,DateTimeWidget:R7,EmailWidget:N7,FileWidget:G7,HiddenWidget:V7,PasswordWidget:W7,RadioWidget:Y7,RangeWidget:U7,SelectWidget:H7,TextWidget:X7,TextareaWidget:L1,TimeWidget:z7,UpDownWidget:J7,URLWidget:Z7}}function K7(){return{fields:e7(),templates:I7(),widgets:q7(),rootSchema:{},formContext:{},translateString:CW}}class Q7 extends I.Component{constructor(r){super(r);we(this,"formElement");we(this,"getUsedFormData",(r,a)=>{if(a.length===0&&typeof r!="object")return r;const n=h1(r,a);return Array.isArray(r)?Object.keys(n).map(i=>n[i]):n});we(this,"getFieldNames",(r,a)=>{const n=(i,o=[],s=[[]])=>(Object.keys(i).forEach(u=>{if(typeof i[u]=="object"){const c=s.map(l=>[...l,u]);i[u][Vc]&&i[u][is]!==""?o.push(i[u][is]):n(i[u],o,c)}else u===is&&i[u]!==""&&s.forEach(c=>{const l=ue(a,c);(typeof l!="object"||Da(l)||Array.isArray(l)&&l.every(d=>typeof d!="object"))&&o.push(c)})}),o);return n(r)});we(this,"omitExtraData",r=>{const{schema:a,schemaUtils:n}=this.state,i=n.retrieveSchema(a,r),o=n.toPathSchema(i,"",r),s=this.getFieldNames(o,r);return this.getUsedFormData(r,s)});we(this,"onChange",(r,a,n)=>{const{extraErrors:i,omitExtraData:o,liveOmit:s,noValidate:u,liveValidate:c,onChange:l}=this.props,{schemaUtils:d,schema:f}=this.state;let p=this.state.retrievedSchema;if(Pe(r)||Array.isArray(r)){const h=this.getStateFromProps(this.props,r);r=h.formData,p=h.retrievedSchema}const m=!u&&c;let v={formData:r,schema:f},g=r;if(o===!0&&s===!0&&(g=this.omitExtraData(r),v={formData:g}),m){const h=this.validate(g,f,d,p);let y=h.errors,b=h.errorSchema;const w=y,C=b;if(i){const E=tu(h,i);b=E.errorSchema,y=E.errors}if(a){const E=this.filterErrorsBasedOnSchema(a,p,g);b=Dr(b,E,"preventDuplicates")}v={formData:g,errors:y,errorSchema:b,schemaValidationErrors:w,schemaValidationErrorSchema:C}}else if(!u&&a){const h=i?Dr(a,i,"preventDuplicates"):a;v={formData:g,errorSchema:h,errors:uo(h)}}this.setState(v,()=>l&&l({...this.state,...v},n))});we(this,"reset",()=>{const{onChange:r}=this.props,i={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(i,()=>r&&r({...this.state,...i}))});we(this,"onBlur",(r,a)=>{const{onBlur:n}=this.props;n&&n(r,a)});we(this,"onFocus",(r,a)=>{const{onFocus:n}=this.props;n&&n(r,a)});we(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:a,extraErrors:n,noValidate:i,onSubmit:o}=this.props;let{formData:s}=this.state;if(a===!0&&(s=this.omitExtraData(s)),i||this.validateFormWithFormData(s)){const u=n||{},c=n?uo(n):[];this.setState({formData:s,errors:c,errorSchema:u,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{o&&o({...this.state,formData:s,status:"submitted"},r)})}});we(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});we(this,"validateFormWithFormData",r=>{const{extraErrors:a,extraErrorsBlockSubmit:n,focusOnFirstError:i,onError:o}=this.props,{errors:s}=this.state,u=this.validate(r);let c=u.errors,l=u.errorSchema;const d=c,f=l,p=c.length>0||a&&n;if(p){if(a){const m=tu(u,a);l=m.errorSchema,c=m.errors}i&&(typeof i=="function"?i(c[0]):this.focusOnError(c[0])),this.setState({errors:c,errorSchema:l,schemaValidationErrors:d,schemaValidationErrorSchema:f},()=>{o?o(c):console.error("Form validation failed",c)})}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!p});if(!r.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(r,r.formData),this.props.onChange&&!Ue(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=I.createRef()}getSnapshotBeforeUpdate(r,a){if(!Ue(this.props,r)){const n=HW(this.props.formData,r.formData),i=!Ue(r.schema,this.props.schema),o=n.length>0||!Ue(r.formData,this.props.formData),s=this.getStateFromProps(this.props,this.props.formData,i||o?void 0:this.state.retrievedSchema,i,n),u=!Ue(s,a);return{nextState:s,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,n){if(n.shouldUpdate){const{nextState:i}=n;!Ue(i.formData,this.props.formData)&&!Ue(i.formData,a.formData)&&this.props.onChange&&this.props.onChange(i),this.setState(i)}}getStateFromProps(r,a,n,i=!1,o=[]){var k;const s=this.state||{},u="schema"in r?r.schema:this.props.schema,c=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},l=typeof a<"u",d="liveValidate"in r?r.liveValidate:this.props.liveValidate,f=l&&!r.noValidate&&d,p=u,m="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,v="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let g=s.schemaUtils;(!g||g.doesSchemaUtilsDiffer(r.validator,p,m,v))&&(g=bW(r.validator,p,m,v));const h=g.getDefaultFormState(u,a),y=this.updateRetrievedSchema(n??g.retrieveSchema(u,h)),b=()=>r.noValidate||i?{errors:[],errorSchema:{}}:r.liveValidate?{errors:s.errors||[],errorSchema:s.errorSchema||{}}:{errors:s.schemaValidationErrors||[],errorSchema:s.schemaValidationErrorSchema||{}};let w,C,E=s.schemaValidationErrors,_=s.schemaValidationErrorSchema;if(f){const F=this.validate(h,u,g,y);w=F.errors,n===void 0?C=F.errorSchema:C=Dr((k=this.state)==null?void 0:k.errorSchema,F.errorSchema,"preventDuplicates"),E=w,_=C}else{const F=b();if(w=F.errors,C=F.errorSchema,o.length>0){const W=o.reduce((B,U)=>(B[U]=void 0,B),{});C=_=Dr(F.errorSchema,W,"preventDuplicates")}}if(r.extraErrors){const F=tu({errorSchema:C,errors:w},r.extraErrors);C=F.errorSchema,w=F.errors}const N=g.toIdSchema(y,c["ui:rootFieldId"],h,r.idPrefix,r.idSeparator);return{schemaUtils:g,schema:u,uiSchema:c,idSchema:N,formData:h,edit:l,errors:w,errorSchema:C,schemaValidationErrors:E,schemaValidationErrorSchema:_,retrievedSchema:y}}shouldComponentUpdate(r,a){return jW(this,r,a)}getPreviousCustomValidateErrors(){const{customValidate:r,uiSchema:a}=this.props,n=this.state.formData;let i={};if(typeof r=="function"){const o=r(n,us(n),a);i=_d(o)}return i}validate(r,a=this.props.schema,n,i){const o=n||this.state.schemaUtils,{customValidate:s,transformErrors:u,uiSchema:c}=this.props,l=i??o.retrieveSchema(a,r);return o.getValidator().validateFormData(r,l,s,u,c)}renderErrors(r){const{errors:a,errorSchema:n,schema:i,uiSchema:o}=this.state,{formContext:s}=this.props,u=fe(o),c=pe("ErrorListTemplate",r,u);return a&&a.length?$.jsx(c,{errors:a,errorSchema:n||{},schema:i,uiSchema:o,formContext:s,registry:r}):null}filterErrorsBasedOnSchema(r,a,n){const{retrievedSchema:i,schemaUtils:o}=this.state,s=a??i,u=o.toPathSchema(s,"",n),c=this.getFieldNames(u,n),l=h1(r,c);(a==null?void 0:a.type)!=="object"&&(a==null?void 0:a.type)!=="array"&&(l.__errors=r.__errors);const d=this.getPreviousCustomValidateErrors(),f=(m=[],v)=>m.length===0?m:m.filter(g=>!v.includes(g)),p=(m,v={})=>(XW(m,(g,h)=>{const y=v[h];no(g)||Array.isArray(g)&&g.length===0?delete m[h]:Pe(g)&&Pe(y)&&Array.isArray(y==null?void 0:y.__errors)?m[h]=f(g.__errors,y.__errors):typeof g=="object"&&!Array.isArray(g.__errors)&&p(g,v[h])}),m);return p(l,d)}updateRetrievedSchema(r){var n;return Ue(r,(n=this.state)==null?void 0:n.retrievedSchema)?this.state.retrievedSchema:r}getRegistry(){var l;const{translateString:r,uiSchema:a={}}=this.props,{schemaUtils:n}=this.state,{fields:i,templates:o,widgets:s,formContext:u,translateString:c}=K7();return{fields:{...i,...this.props.fields},templates:{...o,...this.props.templates,ButtonTemplates:{...o.ButtonTemplates,...(l=this.props.templates)==null?void 0:l.ButtonTemplates}},widgets:{...s,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||u,schemaUtils:n,translateString:r||c,globalUiOptions:a[x$]}}focusOnError(r){const{idPrefix:a="root",idSeparator:n="_"}=this.props,{property:i}=r,o=ab(i);o[0]===""?o[0]=a:o.unshift(a);const s=o.join(n);let u=this.formElement.current.elements[s];u||(u=this.formElement.current.querySelector(`input[id^="${s}"`)),u&&u.length&&(u=u[0]),u&&u.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:a}=this.state;return r===!0&&(a=this.omitExtraData(a)),this.validateFormWithFormData(a)}render(){const{children:r,id:a,idPrefix:n,idSeparator:i,className:o="",tagName:s,name:u,method:c,target:l,action:d,autoComplete:f,enctype:p,acceptcharset:m,acceptCharset:v,noHtml5Validate:g=!1,disabled:h,readonly:y,formContext:b,showErrorList:w="top",_internalFormWrapper:C}=this.props,{schema:E,uiSchema:_,formData:N,errorSchema:R,idSchema:k}=this.state,F=this.getRegistry(),{SchemaField:W}=F.fields,{SubmitButton:B}=F.templates.ButtonTemplates,U=C?s:void 0,Y=C||s||"form";let{[os]:L={}}=fe(_);h&&(L={...L,props:{...L.props,disabled:!0}});const Z={[ki]:{[os]:L}};return $.jsxs(Y,{className:o||"rjsf",id:a,name:u,method:c,target:l,action:d,autoComplete:f,encType:p,acceptCharset:v||m,noValidate:g,onSubmit:this.onSubmit,as:U,ref:this.formElement,children:[w==="top"&&this.renderErrors(F),$.jsx(W,{name:"",schema:E,uiSchema:_,errorSchema:R,idSchema:k,idPrefix:n,idSeparator:i,formContext:b,formData:N,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:F,disabled:h,readonly:y}),r||$.jsx(B,{uiSchema:Z,registry:F}),w==="bottom"&&this.renderErrors(F)]})}}function e8(e){return I.forwardRef(({fields:t,widgets:r,templates:a,...n},i)=>{var o;return t={...e==null?void 0:e.fields,...t},r={...e==null?void 0:e.widgets,...r},a={...e==null?void 0:e.templates,...a,ButtonTemplates:{...(o=e==null?void 0:e.templates)==null?void 0:o.ButtonTemplates,...a==null?void 0:a.ButtonTemplates}},$.jsx(Q7,{...e,...n,fields:t,widgets:r,templates:a,ref:i})})}var Qf={exports:{}},G1={},yr={},vi={},Fo={},Ce={},jo={};(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(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class a extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((b,w)=>`${b}${w}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((b,w)=>(w instanceof r&&(b[w.str]=(b[w.str]||0)+1),b),{})}}e._Code=a,e.nil=new a("");function n(h,...y){const b=[h[0]];let w=0;for(;w<y.length;)s(b,y[w]),b.push(h[++w]);return new a(b)}e._=n;const i=new a("+");function o(h,...y){const b=[p(h[0])];let w=0;for(;w<y.length;)b.push(i),s(b,y[w]),b.push(i,p(h[++w]));return u(b),new a(b)}e.str=o;function s(h,y){y instanceof a?h.push(...y._items):y instanceof r?h.push(y):h.push(d(y))}e.addCodeArg=s;function u(h){let y=1;for(;y<h.length-1;){if(h[y]===i){const b=c(h[y-1],h[y+1]);if(b!==void 0){h.splice(y-1,3,b);continue}h[y++]="+"}y++}}function c(h,y){if(y==='""')return h;if(h==='""')return y;if(typeof h=="string")return y instanceof r||h[h.length-1]!=='"'?void 0:typeof y!="string"?`${h.slice(0,-1)}${y}"`:y[0]==='"'?h.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(h instanceof r))return`"${h}${y.slice(1)}`}function l(h,y){return y.emptyStr()?h:h.emptyStr()?y:o`${h}${y}`}e.strConcat=l;function d(h){return typeof h=="number"||typeof h=="boolean"||h===null?h:p(Array.isArray(h)?h.join(","):h)}function f(h){return new a(p(h))}e.stringify=f;function p(h){return JSON.stringify(h).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=p;function m(h){return typeof h=="string"&&e.IDENTIFIER.test(h)?new a(`.${h}`):n`[${h}]`}e.getProperty=m;function v(h){if(typeof h=="string"&&e.IDENTIFIER.test(h))return new a(`${h}`);throw new Error(`CodeGen: invalid export name: ${h}, use explicit $id name mapping`)}e.getEsmExportName=v;function g(h){return new a(h.toString())}e.regexpCode=g})(jo);var ep={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=jo;class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var a;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class n{constructor({prefixes:c,parent:l}={}){this._names={},this._prefixes=c,this._parent=l}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const l=this._names[c]||this._nameGroup(c);return`${c}${l.index++}`}_nameGroup(c){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=n;class i extends t.Name{constructor(c,l){super(l),this.prefix=c}setValue(c,{property:l,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=i;const o=(0,t._)`\n`;class s extends n{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new i(c,this._newName(c))}value(c,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:p}=f,m=(d=l.key)!==null&&d!==void 0?d:l.ref;let v=this._values[p];if(v){const y=v.get(m);if(y)return y}else v=this._values[p]=new Map;v.set(m,f);const g=this._scope[p]||(this._scope[p]=[]),h=g.length;return g[h]=l.ref,f.setValue(l,{property:p,itemIndex:h}),f}getValue(c,l){const d=this._values[c];if(d)return d.get(l)}scopeRefs(c,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,l,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},l,d)}_reduceValues(c,l,d={},f){let p=t.nil;for(const m in c){const v=c[m];if(!v)continue;const g=d[m]=d[m]||new Map;v.forEach(h=>{if(g.has(h))return;g.set(h,a.Started);let y=l(h);if(y){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${b} ${h} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(h))p=(0,t._)`${p}${y}${this.opts._n}`;else throw new r(h);g.set(h,a.Completed)})}return p}}e.ValueScope=s})(ep),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=jo,r=ep;var a=jo;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var n=ep;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.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 i{optimizeNodes(){return this}optimizeNames(S,T){return this}}class o extends i{constructor(S,T,j){super(),this.varKind=S,this.name=T,this.rhs=j}render({es5:S,_n:T}){const j=S?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${j} ${this.name}${z};`+T}optimizeNames(S,T){if(S[this.name.str])return this.rhs&&(this.rhs=U(this.rhs,S,T)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends i{constructor(S,T,j){super(),this.lhs=S,this.rhs=T,this.sideEffects=j}render({_n:S}){return`${this.lhs} = ${this.rhs};`+S}optimizeNames(S,T){if(!(this.lhs instanceof t.Name&&!S[this.lhs.str]&&!this.sideEffects))return this.rhs=U(this.rhs,S,T),this}get names(){const S=this.lhs instanceof t.Name?{}:{...this.lhs.names};return B(S,this.rhs)}}class u extends s{constructor(S,T,j,z){super(S,j,z),this.op=T}render({_n:S}){return`${this.lhs} ${this.op}= ${this.rhs};`+S}}class c extends i{constructor(S){super(),this.label=S,this.names={}}render({_n:S}){return`${this.label}:`+S}}class l extends i{constructor(S){super(),this.label=S,this.names={}}render({_n:S}){return`break${this.label?` ${this.label}`:""};`+S}}class d extends i{constructor(S){super(),this.error=S}render({_n:S}){return`throw ${this.error};`+S}get names(){return this.error.names}}class f extends i{constructor(S){super(),this.code=S}render({_n:S}){return`${this.code};`+S}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(S,T){return this.code=U(this.code,S,T),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends i{constructor(S=[]){super(),this.nodes=S}render(S){return this.nodes.reduce((T,j)=>T+j.render(S),"")}optimizeNodes(){const{nodes:S}=this;let T=S.length;for(;T--;){const j=S[T].optimizeNodes();Array.isArray(j)?S.splice(T,1,...j):j?S[T]=j:S.splice(T,1)}return S.length>0?this:void 0}optimizeNames(S,T){const{nodes:j}=this;let z=j.length;for(;z--;){const H=j[z];H.optimizeNames(S,T)||(Y(S,H.names),j.splice(z,1))}return j.length>0?this:void 0}get names(){return this.nodes.reduce((S,T)=>W(S,T.names),{})}}class m extends p{render(S){return"{"+S._n+super.render(S)+"}"+S._n}}class v extends p{}class g extends m{}g.kind="else";class h extends m{constructor(S,T){super(T),this.condition=S}render(S){let T=`if(${this.condition})`+super.render(S);return this.else&&(T+="else "+this.else.render(S)),T}optimizeNodes(){super.optimizeNodes();const S=this.condition;if(S===!0)return this.nodes;let T=this.else;if(T){const j=T.optimizeNodes();T=this.else=Array.isArray(j)?new g(j):j}if(T)return S===!1?T instanceof h?T:T.nodes:this.nodes.length?this:new h(L(S),T instanceof h?[T]:T.nodes);if(!(S===!1||!this.nodes.length))return this}optimizeNames(S,T){var j;if(this.else=(j=this.else)===null||j===void 0?void 0:j.optimizeNames(S,T),!!(super.optimizeNames(S,T)||this.else))return this.condition=U(this.condition,S,T),this}get names(){const S=super.names;return B(S,this.condition),this.else&&W(S,this.else.names),S}}h.kind="if";class y extends m{}y.kind="for";class b extends y{constructor(S){super(),this.iteration=S}render(S){return`for(${this.iteration})`+super.render(S)}optimizeNames(S,T){if(super.optimizeNames(S,T))return this.iteration=U(this.iteration,S,T),this}get names(){return W(super.names,this.iteration.names)}}class w extends y{constructor(S,T,j,z){super(),this.varKind=S,this.name=T,this.from=j,this.to=z}render(S){const T=S.es5?r.varKinds.var:this.varKind,{name:j,from:z,to:H}=this;return`for(${T} ${j}=${z}; ${j}<${H}; ${j}++)`+super.render(S)}get names(){const S=B(super.names,this.from);return B(S,this.to)}}class C extends y{constructor(S,T,j,z){super(),this.loop=S,this.varKind=T,this.name=j,this.iterable=z}render(S){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(S)}optimizeNames(S,T){if(super.optimizeNames(S,T))return this.iterable=U(this.iterable,S,T),this}get names(){return W(super.names,this.iterable.names)}}class E extends m{constructor(S,T,j){super(),this.name=S,this.args=T,this.async=j}render(S){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(S)}}E.kind="func";class _ extends p{render(S){return"return "+super.render(S)}}_.kind="return";class N extends m{render(S){let T="try"+super.render(S);return this.catch&&(T+=this.catch.render(S)),this.finally&&(T+=this.finally.render(S)),T}optimizeNodes(){var S,T;return super.optimizeNodes(),(S=this.catch)===null||S===void 0||S.optimizeNodes(),(T=this.finally)===null||T===void 0||T.optimizeNodes(),this}optimizeNames(S,T){var j,z;return super.optimizeNames(S,T),(j=this.catch)===null||j===void 0||j.optimizeNames(S,T),(z=this.finally)===null||z===void 0||z.optimizeNames(S,T),this}get names(){const S=super.names;return this.catch&&W(S,this.catch.names),this.finally&&W(S,this.finally.names),S}}class R extends m{constructor(S){super(),this.error=S}render(S){return`catch(${this.error})`+super.render(S)}}R.kind="catch";class k extends m{render(S){return"finally"+super.render(S)}}k.kind="finally";class F{constructor(S,T={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...T,_n:T.lines?`
|
|
92
|
+
`:""},this._extScope=S,this._scope=new r.Scope({parent:S}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(S){return this._scope.name(S)}scopeName(S){return this._extScope.name(S)}scopeValue(S,T){const j=this._extScope.value(S,T);return(this._values[j.prefix]||(this._values[j.prefix]=new Set)).add(j),j}getScopeValue(S,T){return this._extScope.getValue(S,T)}scopeRefs(S){return this._extScope.scopeRefs(S,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(S,T,j,z){const H=this._scope.toName(T);return j!==void 0&&z&&(this._constants[H.str]=j),this._leafNode(new o(S,H,j)),H}const(S,T,j){return this._def(r.varKinds.const,S,T,j)}let(S,T,j){return this._def(r.varKinds.let,S,T,j)}var(S,T,j){return this._def(r.varKinds.var,S,T,j)}assign(S,T,j){return this._leafNode(new s(S,T,j))}add(S,T){return this._leafNode(new u(S,e.operators.ADD,T))}code(S){return typeof S=="function"?S():S!==t.nil&&this._leafNode(new f(S)),this}object(...S){const T=["{"];for(const[j,z]of S)T.length>1&&T.push(","),T.push(j),(j!==z||this.opts.es5)&&(T.push(":"),(0,t.addCodeArg)(T,z));return T.push("}"),new t._Code(T)}if(S,T,j){if(this._blockNode(new h(S)),T&&j)this.code(T).else().code(j).endIf();else if(T)this.code(T).endIf();else if(j)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(S){return this._elseNode(new h(S))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(h,g)}_for(S,T){return this._blockNode(S),T&&this.code(T).endFor(),this}for(S,T){return this._for(new b(S),T)}forRange(S,T,j,z,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const Q=this._scope.toName(S);return this._for(new w(H,Q,T,j),()=>z(Q))}forOf(S,T,j,z=r.varKinds.const){const H=this._scope.toName(S);if(this.opts.es5){const Q=T instanceof t.Name?T:this.var("_arr",T);return this.forRange("_i",0,(0,t._)`${Q}.length`,ce=>{this.var(H,(0,t._)`${Q}[${ce}]`),j(H)})}return this._for(new C("of",z,H,T),()=>j(H))}forIn(S,T,j,z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(S,(0,t._)`Object.keys(${T})`,j);const H=this._scope.toName(S);return this._for(new C("in",z,H,T),()=>j(H))}endFor(){return this._endBlockNode(y)}label(S){return this._leafNode(new c(S))}break(S){return this._leafNode(new l(S))}return(S){const T=new _;if(this._blockNode(T),this.code(S),T.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(S,T,j){if(!T&&!j)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new N;if(this._blockNode(z),this.code(S),T){const H=this.name("e");this._currNode=z.catch=new R(H),T(H)}return j&&(this._currNode=z.finally=new k,this.code(j)),this._endBlockNode(R,k)}throw(S){return this._leafNode(new d(S))}block(S,T){return this._blockStarts.push(this._nodes.length),S&&this.code(S).endBlock(T),this}endBlock(S){const T=this._blockStarts.pop();if(T===void 0)throw new Error("CodeGen: not in self-balancing block");const j=this._nodes.length-T;if(j<0||S!==void 0&&j!==S)throw new Error(`CodeGen: wrong number of nodes: ${j} vs ${S} expected`);return this._nodes.length=T,this}func(S,T=t.nil,j,z){return this._blockNode(new E(S,T,j)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(S=1){for(;S-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(S){return this._currNode.nodes.push(S),this}_blockNode(S){this._currNode.nodes.push(S),this._nodes.push(S)}_endBlockNode(S,T){const j=this._currNode;if(j instanceof S||T&&j instanceof T)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${T?`${S.kind}/${T.kind}`:S.kind}"`)}_elseNode(S){const T=this._currNode;if(!(T instanceof h))throw new Error('CodeGen: "else" without "if"');return this._currNode=T.else=S,this}get _root(){return this._nodes[0]}get _currNode(){const S=this._nodes;return S[S.length-1]}set _currNode(S){const T=this._nodes;T[T.length-1]=S}}e.CodeGen=F;function W(P,S){for(const T in S)P[T]=(P[T]||0)+(S[T]||0);return P}function B(P,S){return S instanceof t._CodeOrName?W(P,S.names):P}function U(P,S,T){if(P instanceof t.Name)return j(P);if(!z(P))return P;return new t._Code(P._items.reduce((H,Q)=>(Q instanceof t.Name&&(Q=j(Q)),Q instanceof t._Code?H.push(...Q._items):H.push(Q),H),[]));function j(H){const Q=T[H.str];return Q===void 0||S[H.str]!==1?H:(delete S[H.str],Q)}function z(H){return H instanceof t._Code&&H._items.some(Q=>Q instanceof t.Name&&S[Q.str]===1&&T[Q.str]!==void 0)}}function Y(P,S){for(const T in S)P[T]=(P[T]||0)-(S[T]||0)}function L(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)`!${M(P)}`}e.not=L;const Z=D(e.operators.AND);function J(...P){return P.reduce(Z)}e.and=J;const se=D(e.operators.OR);function V(...P){return P.reduce(se)}e.or=V;function D(P){return(S,T)=>S===t.nil?T:T===t.nil?S:(0,t._)`${M(S)} ${P} ${M(T)}`}function M(P){return P instanceof t.Name?P:(0,t._)`(${P})`}}(Ce);var re={};Object.defineProperty(re,"__esModule",{value:!0}),re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const ze=Ce,t8=jo;function r8(e){const t={};for(const r of e)t[r]=!0;return t}re.toHash=r8;function n8(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(V1(e,t),!W1(t,e.self.RULES.all))}re.alwaysValidSchema=n8;function V1(e,t=e.schema){const{opts:r,self:a}=e;if(!r.strictSchema||typeof t=="boolean")return;const n=a.RULES.keywords;for(const i in t)n[i]||z1(e,`unknown keyword: "${i}"`)}re.checkUnknownRules=V1;function W1(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return!0;return!1}re.schemaHasRules=W1;function a8(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}re.schemaHasRulesButRef=a8;function i8({topSchemaRef:e,schemaPath:t},r,a,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ze._)`${r}`}return(0,ze._)`${e}${t}${(0,ze.getProperty)(a)}`}re.schemaRefOrVal=i8;function o8(e){return Y1(decodeURIComponent(e))}re.unescapeFragment=o8;function s8(e){return encodeURIComponent(tp(e))}re.escapeFragment=s8;function tp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=tp;function Y1(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=Y1;function u8(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)}re.eachItem=u8;function U1({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:a}){return(n,i,o,s)=>{const u=o===void 0?i:o instanceof ze.Name?(i instanceof ze.Name?e(n,i,o):t(n,i,o),o):i instanceof ze.Name?(t(n,o,i),i):r(i,o);return s===ze.Name&&!(u instanceof ze.Name)?a(n,u):u}}re.mergeEvaluated={props:U1({mergeNames:(e,t,r)=>e.if((0,ze._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ze._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ze._)`${r} || {}`).code((0,ze._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ze._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ze._)`${r} || {}`),rp(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:H1}),items:U1({mergeNames:(e,t,r)=>e.if((0,ze._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ze._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ze._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ze._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function H1(e,t){if(t===!0)return e.var("props",!0);const r=e.var("props",(0,ze._)`{}`);return t!==void 0&&rp(e,r,t),r}re.evaluatedPropsToName=H1;function rp(e,t,r){Object.keys(r).forEach(a=>e.assign((0,ze._)`${t}${(0,ze.getProperty)(a)}`,!0))}re.setEvaluated=rp;const X1={};function c8(e,t){return e.scopeValue("func",{ref:t,code:X1[t.code]||(X1[t.code]=new t8._Code(t.code))})}re.useFunc=c8;var np;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(np||(re.Type=np={}));function l8(e,t,r){if(e instanceof ze.Name){const a=t===np.Num;return r?a?(0,ze._)`"[" + ${e} + "]"`:(0,ze._)`"['" + ${e} + "']"`:a?(0,ze._)`"/" + ${e}`:(0,ze._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ze.getProperty)(e).toString():"/"+tp(e)}re.getErrorPath=l8;function z1(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}re.checkStrictMode=z1;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});const Pt=Ce,d8={data:new Pt.Name("data"),valCxt:new Pt.Name("valCxt"),instancePath:new Pt.Name("instancePath"),parentData:new Pt.Name("parentData"),parentDataProperty:new Pt.Name("parentDataProperty"),rootData:new Pt.Name("rootData"),dynamicAnchors:new Pt.Name("dynamicAnchors"),vErrors:new Pt.Name("vErrors"),errors:new Pt.Name("errors"),this:new Pt.Name("this"),self:new Pt.Name("self"),scope:new Pt.Name("scope"),json:new Pt.Name("json"),jsonPos:new Pt.Name("jsonPos"),jsonLen:new Pt.Name("jsonLen"),jsonPart:new Pt.Name("jsonPart")};Hr.default=d8,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=Ce,r=re,a=Hr;e.keywordError={message:({keyword:g})=>(0,t.str)`must pass "${g}" keyword validation`},e.keyword$DataError={message:({keyword:g,schemaType:h})=>h?(0,t.str)`"${g}" keyword must be ${h} ($data)`:(0,t.str)`"${g}" keyword is invalid ($data)`};function n(g,h=e.keywordError,y,b){const{it:w}=g,{gen:C,compositeRule:E,allErrors:_}=w,N=d(g,h,y);b??(E||_)?u(C,N):c(w,(0,t._)`[${N}]`)}e.reportError=n;function i(g,h=e.keywordError,y){const{it:b}=g,{gen:w,compositeRule:C,allErrors:E}=b,_=d(g,h,y);u(w,_),C||E||c(b,a.default.vErrors)}e.reportExtraError=i;function o(g,h){g.assign(a.default.errors,h),g.if((0,t._)`${a.default.vErrors} !== null`,()=>g.if(h,()=>g.assign((0,t._)`${a.default.vErrors}.length`,h),()=>g.assign(a.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:g,keyword:h,schemaValue:y,data:b,errsCount:w,it:C}){if(w===void 0)throw new Error("ajv implementation error");const E=g.name("err");g.forRange("i",w,a.default.errors,_=>{g.const(E,(0,t._)`${a.default.vErrors}[${_}]`),g.if((0,t._)`${E}.instancePath === undefined`,()=>g.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(a.default.instancePath,C.errorPath))),g.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${C.errSchemaPath}/${h}`),C.opts.verbose&&(g.assign((0,t._)`${E}.schema`,y),g.assign((0,t._)`${E}.data`,b))})}e.extendErrors=s;function u(g,h){const y=g.const("err",h);g.if((0,t._)`${a.default.vErrors} === null`,()=>g.assign(a.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${a.default.vErrors}.push(${y})`),g.code((0,t._)`${a.default.errors}++`)}function c(g,h){const{gen:y,validateName:b,schemaEnv:w}=g;w.$async?y.throw((0,t._)`new ${g.ValidationError}(${h})`):(y.assign((0,t._)`${b}.errors`,h),y.return(!1))}const l={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 d(g,h,y){const{createErrors:b}=g.it;return b===!1?(0,t._)`{}`:f(g,h,y)}function f(g,h,y={}){const{gen:b,it:w}=g,C=[p(w,y),m(g,y)];return v(g,h,C),b.object(...C)}function p({errorPath:g},{instancePath:h}){const y=h?(0,t.str)`${g}${(0,r.getErrorPath)(h,r.Type.Str)}`:g;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,y)]}function m({keyword:g,it:{errSchemaPath:h}},{schemaPath:y,parentSchema:b}){let w=b?h:(0,t.str)`${h}/${g}`;return y&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(y,r.Type.Str)}`),[l.schemaPath,w]}function v(g,{params:h,message:y},b){const{keyword:w,data:C,schemaValue:E,it:_}=g,{opts:N,propertyName:R,topSchemaRef:k,schemaPath:F}=_;b.push([l.keyword,w],[l.params,typeof h=="function"?h(g):h||(0,t._)`{}`]),N.messages&&b.push([l.message,typeof y=="function"?y(g):y]),N.verbose&&b.push([l.schema,E],[l.parentSchema,(0,t._)`${k}${F}`],[a.default.data,C]),R&&b.push([l.propertyName,R])}}(Fo),Object.defineProperty(vi,"__esModule",{value:!0}),vi.boolOrEmptySchema=vi.topBoolOrEmptySchema=void 0;const f8=Fo,p8=Ce,h8=Hr,m8={message:"boolean schema is false"};function g8(e){const{gen:t,schema:r,validateName:a}=e;r===!1?Z1(e,!1):typeof r=="object"&&r.$async===!0?t.return(h8.default.data):(t.assign((0,p8._)`${a}.errors`,null),t.return(!0))}vi.topBoolOrEmptySchema=g8;function v8(e,t){const{gen:r,schema:a}=e;a===!1?(r.var(t,!1),Z1(e)):r.var(t,!0)}vi.boolOrEmptySchema=v8;function Z1(e,t){const{gen:r,data:a}=e,n={gen:r,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,f8.reportError)(n,m8,void 0,t)}var bt={},pa={};Object.defineProperty(pa,"__esModule",{value:!0}),pa.getRules=pa.isJSONType=void 0;const y8=["string","number","integer","boolean","null","object","array"],b8=new Set(y8);function w8(e){return typeof e=="string"&&b8.has(e)}pa.isJSONType=w8;function C8(){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:{}}}pa.getRules=C8;var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.shouldUseRule=gn.shouldUseGroup=gn.schemaHasRulesForType=void 0;function S8({schema:e,self:t},r){const a=t.RULES.types[r];return a&&a!==!0&&J1(e,a)}gn.schemaHasRulesForType=S8;function J1(e,t){return t.rules.some(r=>q1(e,r))}gn.shouldUseGroup=J1;function q1(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(a=>e[a]!==void 0))}gn.shouldUseRule=q1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.reportTypeError=bt.checkDataTypes=bt.checkDataType=bt.coerceAndCheckDataType=bt.getJSONTypes=bt.getSchemaTypes=bt.DataType=void 0;const $8=pa,I8=gn,E8=Fo,be=Ce,K1=re;var yi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(yi||(bt.DataType=yi={}));function _8(e){const t=Q1(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}bt.getSchemaTypes=_8;function Q1(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every($8.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}bt.getJSONTypes=Q1;function A8(e,t){const{gen:r,data:a,opts:n}=e,i=O8(t,n.coerceTypes),o=t.length>0&&!(i.length===0&&t.length===1&&(0,I8.schemaHasRulesForType)(e,t[0]));if(o){const s=ip(t,a,n.strictNumbers,yi.Wrong);r.if(s,()=>{i.length?T8(e,t,i):op(e)})}return o}bt.coerceAndCheckDataType=A8;const eC=new Set(["string","number","integer","boolean","null"]);function O8(e,t){return t?e.filter(r=>eC.has(r)||t==="array"&&r==="array"):[]}function T8(e,t,r){const{gen:a,data:n,opts:i}=e,o=a.let("dataType",(0,be._)`typeof ${n}`),s=a.let("coerced",(0,be._)`undefined`);i.coerceTypes==="array"&&a.if((0,be._)`${o} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>a.assign(n,(0,be._)`${n}[0]`).assign(o,(0,be._)`typeof ${n}`).if(ip(t,n,i.strictNumbers),()=>a.assign(s,n))),a.if((0,be._)`${s} !== undefined`);for(const c of r)(eC.has(c)||c==="array"&&i.coerceTypes==="array")&&u(c);a.else(),op(e),a.endIf(),a.if((0,be._)`${s} !== undefined`,()=>{a.assign(n,s),x8(e,s)});function u(c){switch(c){case"string":a.elseIf((0,be._)`${o} == "number" || ${o} == "boolean"`).assign(s,(0,be._)`"" + ${n}`).elseIf((0,be._)`${n} === null`).assign(s,(0,be._)`""`);return;case"number":a.elseIf((0,be._)`${o} == "boolean" || ${n} === null
|
|
93
93
|
|| (${o} == "string" && ${n} && ${n} == +${n})`).assign(s,(0,be._)`+${n}`);return;case"integer":a.elseIf((0,be._)`${o} === "boolean" || ${n} === null
|
|
94
94
|
|| (${o} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(s,(0,be._)`+${n}`);return;case"boolean":a.elseIf((0,be._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(s,!1).elseIf((0,be._)`${n} === "true" || ${n} === 1`).assign(s,!0);return;case"null":a.elseIf((0,be._)`${n} === "" || ${n} === 0 || ${n} === false`),a.assign(s,null);return;case"array":a.elseIf((0,be._)`${o} === "string" || ${o} === "number"
|
|
95
|
-
|| ${o} === "boolean" || ${n} === null`).assign(s,(0,be._)`[${n}]`)}}}function T8({gen:e,parentData:t,parentDataProperty:r},a){e.if((0,be._)`${t} !== undefined`,()=>e.assign((0,be._)`${t}[${r}]`,a))}function ap(e,t,r,a=yi.Correct){const n=a===yi.Correct?be.operators.EQ:be.operators.NEQ;let i;switch(e){case"null":return(0,be._)`${t} ${n} null`;case"array":i=(0,be._)`Array.isArray(${t})`;break;case"object":i=(0,be._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=o((0,be._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=o();break;default:return(0,be._)`typeof ${t} ${n} ${e}`}return a===yi.Correct?i:(0,be.not)(i);function o(s=be.nil){return(0,be.and)((0,be._)`typeof ${t} == "number"`,s,r?(0,be._)`isFinite(${t})`:be.nil)}}bt.checkDataType=ap;function ip(e,t,r,a){if(e.length===1)return ap(e[0],t,r,a);let n;const i=(0,q1.toHash)(e);if(i.array&&i.object){const o=(0,be._)`typeof ${t} != "object"`;n=i.null?o:(0,be._)`!${t} || ${o}`,delete i.null,delete i.array,delete i.object}else n=be.nil;i.number&&delete i.integer;for(const o in i)n=(0,be.and)(n,ap(o,t,r,a));return n}bt.checkDataTypes=ip;const x8={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,be._)`{type: ${e}}`:(0,be._)`{type: ${t}}`};function op(e){const t=D8(e);(0,I8.reportError)(t,x8)}bt.reportTypeError=op;function D8(e){const{gen:t,data:r,schema:a}=e,n=(0,q1.schemaRefOrVal)(e,a,"type");return{gen:t,keyword:"type",data:r,schema:a.type,schemaCode:n,schemaValue:n,parentSchema:a,params:{},it:e}}var rc={};Object.defineProperty(rc,"__esModule",{value:!0}),rc.assignDefaults=void 0;const bi=Ce,P8=re;function R8(e,t){const{properties:r,items:a}=e.schema;if(t==="object"&&r)for(const n in r)eC(e,n,r[n].default);else t==="array"&&Array.isArray(a)&&a.forEach((n,i)=>eC(e,i,n.default))}rc.assignDefaults=R8;function eC(e,t,r){const{gen:a,compositeRule:n,data:i,opts:o}=e;if(r===void 0)return;const s=(0,bi._)`${i}${(0,bi.getProperty)(t)}`;if(n){(0,P8.checkStrictMode)(e,`default is ignored for: ${s}`);return}let u=(0,bi._)`${s} === undefined`;o.useDefaults==="empty"&&(u=(0,bi._)`${u} || ${s} === null || ${s} === ""`),a.if(u,(0,bi._)`${s} = ${(0,bi.stringify)(r)}`)}var Xr={},Ie={};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.validateUnion=Ie.validateArray=Ie.usePattern=Ie.callValidateCode=Ie.schemaProperties=Ie.allSchemaProperties=Ie.noPropertyInData=Ie.propertyInData=Ie.isOwnProperty=Ie.hasPropFunc=Ie.reportMissingProp=Ie.checkMissingProp=Ie.checkReportMissingProp=void 0;const nt=Ce,sp=re,kn=Hr,N8=re;function k8(e,t){const{gen:r,data:a,it:n}=e;r.if(cp(r,a,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,nt._)`${t}`},!0),e.error()})}Ie.checkReportMissingProp=k8;function M8({gen:e,data:t,it:{opts:r}},a,n){return(0,nt.or)(...a.map(i=>(0,nt.and)(cp(e,t,i,r.ownProperties),(0,nt._)`${n} = ${i}`)))}Ie.checkMissingProp=M8;function F8(e,t){e.setParams({missingProperty:t},!0),e.error()}Ie.reportMissingProp=F8;function tC(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,nt._)`Object.prototype.hasOwnProperty`})}Ie.hasPropFunc=tC;function up(e,t,r){return(0,nt._)`${tC(e)}.call(${t}, ${r})`}Ie.isOwnProperty=up;function j8(e,t,r,a){const n=(0,nt._)`${t}${(0,nt.getProperty)(r)} !== undefined`;return a?(0,nt._)`${n} && ${up(e,t,r)}`:n}Ie.propertyInData=j8;function cp(e,t,r,a){const n=(0,nt._)`${t}${(0,nt.getProperty)(r)} === undefined`;return a?(0,nt.or)(n,(0,nt.not)(up(e,t,r))):n}Ie.noPropertyInData=cp;function rC(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ie.allSchemaProperties=rC;function B8(e,t){return rC(t).filter(r=>!(0,sp.alwaysValidSchema)(e,t[r]))}Ie.schemaProperties=B8;function L8({schemaCode:e,data:t,it:{gen:r,topSchemaRef:a,schemaPath:n,errorPath:i},it:o},s,u,c){const l=c?(0,nt._)`${e}, ${t}, ${a}${n}`:t,d=[[kn.default.instancePath,(0,nt.strConcat)(kn.default.instancePath,i)],[kn.default.parentData,o.parentData],[kn.default.parentDataProperty,o.parentDataProperty],[kn.default.rootData,kn.default.rootData]];o.opts.dynamicRef&&d.push([kn.default.dynamicAnchors,kn.default.dynamicAnchors]);const f=(0,nt._)`${l}, ${r.object(...d)}`;return u!==nt.nil?(0,nt._)`${s}.call(${u}, ${f})`:(0,nt._)`${s}(${f})`}Ie.callValidateCode=L8;const G8=(0,nt._)`new RegExp`;function V8({gen:e,it:{opts:t}},r){const a=t.unicodeRegExp?"u":"",{regExp:n}=t.code,i=n(r,a);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,nt._)`${n.code==="new RegExp"?G8:(0,N8.useFunc)(e,n)}(${r}, ${a})`})}Ie.usePattern=V8;function W8(e){const{gen:t,data:r,keyword:a,it:n}=e,i=t.name("valid");if(n.allErrors){const s=t.let("valid",!0);return o(()=>t.assign(s,!1)),s}return t.var(i,!0),o(()=>t.break()),i;function o(s){const u=t.const("len",(0,nt._)`${r}.length`);t.forRange("i",0,u,c=>{e.subschema({keyword:a,dataProp:c,dataPropType:sp.Type.Num},i),t.if((0,nt.not)(i),s)})}}Ie.validateArray=W8;function Y8(e){const{gen:t,schema:r,keyword:a,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,sp.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((u,c)=>{const l=e.subschema({keyword:a,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,nt._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,nt.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}Ie.validateUnion=Y8,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.validateKeywordUsage=Xr.validSchemaType=Xr.funcKeywordCode=Xr.macroKeywordCode=void 0;const Ft=Ce,ha=Hr,U8=Ie,H8=Fo;function X8(e,t){const{gen:r,keyword:a,schema:n,parentSchema:i,it:o}=e,s=t.macro.call(o.self,n,i,o),u=aC(r,a,s);o.opts.validateSchema!==!1&&o.self.validateSchema(s,!0);const c=r.name("valid");e.subschema({schema:s,schemaPath:Ft.nil,errSchemaPath:`${o.errSchemaPath}/${a}`,topSchemaRef:u,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}Xr.macroKeywordCode=X8;function z8(e,t){var r;const{gen:a,keyword:n,schema:i,parentSchema:o,$data:s,it:u}=e;J8(u,t);const c=!s&&t.compile?t.compile.call(u.self,i,o,u):t.validate,l=aC(a,n,c),d=a.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)v(),t.modifying&&nC(e),g(()=>e.error());else{const h=t.async?p():m();t.modifying&&nC(e),g(()=>Z8(e,h))}}function p(){const h=a.let("ruleErrs",null);return a.try(()=>v((0,Ft._)`await `),y=>a.assign(d,!1).if((0,Ft._)`${y} instanceof ${u.ValidationError}`,()=>a.assign(h,(0,Ft._)`${y}.errors`),()=>a.throw(y))),h}function m(){const h=(0,Ft._)`${l}.errors`;return a.assign(h,null),v(Ft.nil),h}function v(h=t.async?(0,Ft._)`await `:Ft.nil){const y=u.opts.passContext?ha.default.this:ha.default.self,b=!("compile"in t&&!s||t.schema===!1);a.assign(d,(0,Ft._)`${h}${(0,U8.callValidateCode)(e,l,y,b)}`,t.modifying)}function g(h){var y;a.if((0,Ft.not)((y=t.valid)!==null&&y!==void 0?y:d),h)}}Xr.funcKeywordCode=z8;function nC(e){const{gen:t,data:r,it:a}=e;t.if(a.parentData,()=>t.assign(r,(0,Ft._)`${a.parentData}[${a.parentDataProperty}]`))}function Z8(e,t){const{gen:r}=e;r.if((0,Ft._)`Array.isArray(${t})`,()=>{r.assign(ha.default.vErrors,(0,Ft._)`${ha.default.vErrors} === null ? ${t} : ${ha.default.vErrors}.concat(${t})`).assign(ha.default.errors,(0,Ft._)`${ha.default.vErrors}.length`),(0,H8.extendErrors)(e)},()=>e.error())}function J8({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function aC(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ft.stringify)(r)})}function q8(e,t,r=!1){return!t.length||t.some(a=>a==="array"?Array.isArray(e):a==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==a||r&&typeof e>"u")}Xr.validSchemaType=q8;function K8({schema:e,opts:t,self:r,errSchemaPath:a},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw new Error("ajv implementation error");const o=n.dependencies;if(o!=null&&o.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[i])){const u=`keyword "${i}" value is invalid at path "${a}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}Xr.validateKeywordUsage=K8;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.extendSubschemaMode=Mn.extendSubschemaData=Mn.getSubschema=void 0;const zr=Ce,iC=re;function Q8(e,{keyword:t,schemaProp:r,schema:a,schemaPath:n,errSchemaPath:i,topSchemaRef:o}){if(t!==void 0&&a!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}${(0,zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,iC.escapeFragment)(r)}`}}if(a!==void 0){if(n===void 0||i===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:n,topSchemaRef:o,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Mn.getSubschema=Q8;function eQ(e,t,{dataProp:r,dataPropType:a,data:n,dataTypes:i,propertyName:o}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:c,dataPathArr:l,opts:d}=t,f=s.let("data",(0,zr._)`${t.data}${(0,zr.getProperty)(r)}`,!0);u(f),e.errorPath=(0,zr.str)`${c}${(0,iC.getErrorPath)(r,a,d.jsPropertySyntax)}`,e.parentDataProperty=(0,zr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(n!==void 0){const c=n instanceof zr.Name?n:s.let("data",n,!0);u(c),o!==void 0&&(e.propertyName=o)}i&&(e.dataTypes=i);function u(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Mn.extendSubschemaData=eQ;function tQ(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:a,createErrors:n,allErrors:i}){a!==void 0&&(e.compositeRule=a),n!==void 0&&(e.createErrors=n),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Mn.extendSubschemaMode=tQ;var Ot={},oC=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,n,i;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(n=a;n--!==0;)if(!e(t[n],r[n]))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(i=Object.keys(t),a=i.length,a!==Object.keys(r).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=a;n--!==0;){var o=i[n];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},sC={exports:{}},Fn=sC.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var a=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};nc(t,a,n,e,"",e)};Fn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},Fn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Fn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Fn.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};function nc(e,t,r,a,n,i,o,s,u,c){if(a&&typeof a=="object"&&!Array.isArray(a)){t(a,n,i,o,s,u,c);for(var l in a){var d=a[l];if(Array.isArray(d)){if(l in Fn.arrayKeywords)for(var f=0;f<d.length;f++)nc(e,t,r,d[f],n+"/"+l+"/"+f,i,n,l,a,f)}else if(l in Fn.propsKeywords){if(d&&typeof d=="object")for(var p in d)nc(e,t,r,d[p],n+"/"+l+"/"+rQ(p),i,n,l,a,p)}else(l in Fn.keywords||e.allKeys&&!(l in Fn.skipKeywords))&&nc(e,t,r,d,n+"/"+l,i,n,l,a)}r(a,n,i,o,s,u,c)}}function rQ(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var nQ=sC.exports;Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.getSchemaRefs=Ot.resolveUrl=Ot.normalizeId=Ot._getFullPath=Ot.getFullPath=Ot.inlineRef=void 0;const aQ=re,iQ=oC,oQ=nQ,sQ=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function uQ(e,t=!0){return typeof e=="boolean"?!0:t===!0?!lp(e):t?uC(e)<=t:!1}Ot.inlineRef=uQ;const cQ=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function lp(e){for(const t in e){if(cQ.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(lp)||typeof r=="object"&&lp(r))return!0}return!1}function uC(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!sQ.has(r)&&(typeof e[r]=="object"&&(0,aQ.eachItem)(e[r],a=>t+=uC(a)),t===1/0))return 1/0}return t}function cC(e,t="",r){r!==!1&&(t=wi(t));const a=e.parse(t);return lC(e,a)}Ot.getFullPath=cC;function lC(e,t){return e.serialize(t).split("#")[0]+"#"}Ot._getFullPath=lC;const lQ=/#\/?$/;function wi(e){return e?e.replace(lQ,""):""}Ot.normalizeId=wi;function dQ(e,t,r){return r=wi(r),e.resolve(t,r)}Ot.resolveUrl=dQ;const fQ=/^[a-z_][-a-z0-9._]*$/i;function pQ(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:a}=this.opts,n=wi(e[r]||t),i={"":n},o=cC(a,n,!1),s={},u=new Set;return oQ(e,{allKeys:!0},(d,f,p,m)=>{if(m===void 0)return;const v=o+f;let g=i[m];typeof d[r]=="string"&&(g=h.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),i[f]=g;function h(b){const w=this.opts.uriResolver.resolve;if(b=wi(g?w(g,b):b),u.has(b))throw l(b);u.add(b);let C=this.refs[b];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?c(d,C.schema,b):b!==wi(v)&&(b[0]==="#"?(c(d,s[b],b),s[b]=d):this.refs[b]=v),b}function y(b){if(typeof b=="string"){if(!fQ.test(b))throw new Error(`invalid anchor "${b}"`);h.call(this,`#${b}`)}}}),s;function c(d,f,p){if(f!==void 0&&!iQ(d,f))throw l(p)}function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}}Ot.getSchemaRefs=pQ,Object.defineProperty(yr,"__esModule",{value:!0}),yr.getData=yr.KeywordCxt=yr.validateFunctionCode=void 0;const dC=vi,fC=bt,dp=gn,ac=bt,hQ=rc,Bo=Xr,fp=Mn,le=Ce,ge=Hr,mQ=Ot,vn=re,Lo=Fo;function gQ(e){if(gC(e)&&(vC(e),mC(e))){bQ(e);return}pC(e,()=>(0,dC.topBoolOrEmptySchema)(e))}yr.validateFunctionCode=gQ;function pC({gen:e,validateName:t,schema:r,schemaEnv:a,opts:n},i){n.code.es5?e.func(t,(0,le._)`${ge.default.data}, ${ge.default.valCxt}`,a.$async,()=>{e.code((0,le._)`"use strict"; ${hC(r,n)}`),yQ(e,n),e.code(i)}):e.func(t,(0,le._)`${ge.default.data}, ${vQ(n)}`,a.$async,()=>e.code(hC(r,n)).code(i))}function vQ(e){return(0,le._)`{${ge.default.instancePath}="", ${ge.default.parentData}, ${ge.default.parentDataProperty}, ${ge.default.rootData}=${ge.default.data}${e.dynamicRef?(0,le._)`, ${ge.default.dynamicAnchors}={}`:le.nil}}={}`}function yQ(e,t){e.if(ge.default.valCxt,()=>{e.var(ge.default.instancePath,(0,le._)`${ge.default.valCxt}.${ge.default.instancePath}`),e.var(ge.default.parentData,(0,le._)`${ge.default.valCxt}.${ge.default.parentData}`),e.var(ge.default.parentDataProperty,(0,le._)`${ge.default.valCxt}.${ge.default.parentDataProperty}`),e.var(ge.default.rootData,(0,le._)`${ge.default.valCxt}.${ge.default.rootData}`),t.dynamicRef&&e.var(ge.default.dynamicAnchors,(0,le._)`${ge.default.valCxt}.${ge.default.dynamicAnchors}`)},()=>{e.var(ge.default.instancePath,(0,le._)`""`),e.var(ge.default.parentData,(0,le._)`undefined`),e.var(ge.default.parentDataProperty,(0,le._)`undefined`),e.var(ge.default.rootData,ge.default.data),t.dynamicRef&&e.var(ge.default.dynamicAnchors,(0,le._)`{}`)})}function bQ(e){const{schema:t,opts:r,gen:a}=e;pC(e,()=>{r.$comment&&t.$comment&&bC(e),IQ(e),a.let(ge.default.vErrors,null),a.let(ge.default.errors,0),r.unevaluated&&wQ(e),yC(e),AQ(e)})}function wQ(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,le._)`${r}.evaluated`),t.if((0,le._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,le._)`${e.evaluated}.props`,(0,le._)`undefined`)),t.if((0,le._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,le._)`${e.evaluated}.items`,(0,le._)`undefined`))}function hC(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,le._)`/*# sourceURL=${r} */`:le.nil}function CQ(e,t){if(gC(e)&&(vC(e),mC(e))){SQ(e,t);return}(0,dC.boolOrEmptySchema)(e,t)}function mC({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function gC(e){return typeof e.schema!="boolean"}function SQ(e,t){const{schema:r,gen:a,opts:n}=e;n.$comment&&r.$comment&&bC(e),EQ(e),_Q(e);const i=a.const("_errs",ge.default.errors);yC(e,i),a.var(t,(0,le._)`${i} === ${ge.default.errors}`)}function vC(e){(0,vn.checkUnknownRules)(e),$Q(e)}function yC(e,t){if(e.opts.jtd)return wC(e,[],!1,t);const r=(0,fC.getSchemaTypes)(e.schema),a=(0,fC.coerceAndCheckDataType)(e,r);wC(e,r,!a,t)}function $Q(e){const{schema:t,errSchemaPath:r,opts:a,self:n}=e;t.$ref&&a.ignoreKeywordsWithRef&&(0,vn.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function IQ(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,vn.checkStrictMode)(e,"default is ignored in the schema root")}function EQ(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,mQ.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function _Q(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function bC({gen:e,schemaEnv:t,schema:r,errSchemaPath:a,opts:n}){const i=r.$comment;if(n.$comment===!0)e.code((0,le._)`${ge.default.self}.logger.log(${i})`);else if(typeof n.$comment=="function"){const o=(0,le.str)`${a}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,le._)`${ge.default.self}.opts.$comment(${i}, ${o}, ${s}.schema)`)}}function AQ(e){const{gen:t,schemaEnv:r,validateName:a,ValidationError:n,opts:i}=e;r.$async?t.if((0,le._)`${ge.default.errors} === 0`,()=>t.return(ge.default.data),()=>t.throw((0,le._)`new ${n}(${ge.default.vErrors})`)):(t.assign((0,le._)`${a}.errors`,ge.default.vErrors),i.unevaluated&&OQ(e),t.return((0,le._)`${ge.default.errors} === 0`))}function OQ({gen:e,evaluated:t,props:r,items:a}){r instanceof le.Name&&e.assign((0,le._)`${t}.props`,r),a instanceof le.Name&&e.assign((0,le._)`${t}.items`,a)}function wC(e,t,r,a){const{gen:n,schema:i,data:o,allErrors:s,opts:u,self:c}=e,{RULES:l}=c;if(i.$ref&&(u.ignoreKeywordsWithRef||!(0,vn.schemaHasRulesButRef)(i,l))){n.block(()=>IC(e,"$ref",l.all.$ref.definition));return}u.jtd||TQ(e,t),n.block(()=>{for(const f of l.rules)d(f);d(l.post)});function d(f){(0,dp.shouldUseGroup)(i,f)&&(f.type?(n.if((0,ac.checkDataType)(f.type,o,u.strictNumbers)),CC(e,f),t.length===1&&t[0]===f.type&&r&&(n.else(),(0,ac.reportTypeError)(e)),n.endIf()):CC(e,f),s||n.if((0,le._)`${ge.default.errors} === ${a||0}`))}}function CC(e,t){const{gen:r,schema:a,opts:{useDefaults:n}}=e;n&&(0,hQ.assignDefaults)(e,t.type),r.block(()=>{for(const i of t.rules)(0,dp.shouldUseRule)(a,i)&&IC(e,i.keyword,i.definition,t.type)})}function TQ(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(xQ(e,t),e.opts.allowUnionTypes||DQ(e,t),PQ(e,e.dataTypes))}function xQ(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{SC(e.dataTypes,r)||pp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),NQ(e,t)}}function DQ(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&pp(e,"use allowUnionTypes to allow union type keyword")}function PQ(e,t){const r=e.self.RULES.all;for(const a in r){const n=r[a];if(typeof n=="object"&&(0,dp.shouldUseRule)(e.schema,n)){const{type:i}=n.definition;i.length&&!i.some(o=>RQ(t,o))&&pp(e,`missing type "${i.join(",")}" for keyword "${a}"`)}}}function RQ(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function SC(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function NQ(e,t){const r=[];for(const a of e.dataTypes)SC(t,a)?r.push(a):t.includes("integer")&&a==="number"&&r.push("integer");e.dataTypes=r}function pp(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,vn.checkStrictMode)(e,t,e.opts.strictTypes)}class $C{constructor(t,r,a){if((0,Bo.validateKeywordUsage)(t,r,a),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=a,this.data=t.data,this.schema=t.schema[a],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,vn.schemaRefOrVal)(t,this.schema,a,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",EC(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Bo.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${a} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ge.default.errors))}result(t,r,a){this.failResult((0,le.not)(t),r,a)}failResult(t,r,a){this.gen.if(t),a?a():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,le.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,le._)`${r} !== undefined && (${(0,le.or)(this.invalid$data(),t)})`)}error(t,r,a){if(r){this.setParams(r),this._error(t,a),this.setParams({});return}this._error(t,a)}_error(t,r){(t?Lo.reportExtraError:Lo.reportError)(this,this.def.error,r)}$dataError(){(0,Lo.reportError)(this,this.def.$dataError||Lo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Lo.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,a=le.nil){this.gen.block(()=>{this.check$data(t,a),r()})}check$data(t=le.nil,r=le.nil){if(!this.$data)return;const{gen:a,schemaCode:n,schemaType:i,def:o}=this;a.if((0,le.or)((0,le._)`${n} === undefined`,r)),t!==le.nil&&a.assign(t,!0),(i.length||o.validateSchema)&&(a.elseIf(this.invalid$data()),this.$dataError(),t!==le.nil&&a.assign(t,!1)),a.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:a,def:n,it:i}=this;return(0,le.or)(o(),s());function o(){if(a.length){if(!(r instanceof le.Name))throw new Error("ajv implementation error");const u=Array.isArray(a)?a:[a];return(0,le._)`${(0,ac.checkDataTypes)(u,r,i.opts.strictNumbers,ac.DataType.Wrong)}`}return le.nil}function s(){if(n.validateSchema){const u=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,le._)`!${u}(${r})`}return le.nil}}subschema(t,r){const a=(0,fp.getSubschema)(this.it,t);(0,fp.extendSubschemaData)(a,this.it,t),(0,fp.extendSubschemaMode)(a,t);const n={...this.it,...a,items:void 0,props:void 0};return CQ(n,r),n}mergeEvaluated(t,r){const{it:a,gen:n}=this;a.opts.unevaluated&&(a.props!==!0&&t.props!==void 0&&(a.props=vn.mergeEvaluated.props(n,t.props,a.props,r)),a.items!==!0&&t.items!==void 0&&(a.items=vn.mergeEvaluated.items(n,t.items,a.items,r)))}mergeValidEvaluated(t,r){const{it:a,gen:n}=this;if(a.opts.unevaluated&&(a.props!==!0||a.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,le.Name)),!0}}yr.KeywordCxt=$C;function IC(e,t,r,a){const n=new $C(e,r,t);"code"in r?r.code(n,a):n.$data&&r.validate?(0,Bo.funcKeywordCode)(n,r):"macro"in r?(0,Bo.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,Bo.funcKeywordCode)(n,r)}const kQ=/^\/(?:[^~]|~0|~1)*$/,MQ=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function EC(e,{dataLevel:t,dataNames:r,dataPathArr:a}){let n,i;if(e==="")return ge.default.rootData;if(e[0]==="/"){if(!kQ.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,i=ge.default.rootData}else{const c=MQ.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const l=+c[1];if(n=c[2],n==="#"){if(l>=t)throw new Error(u("property/index",l));return a[t-l]}if(l>t)throw new Error(u("data",l));if(i=r[t-l],!n)return i}let o=i;const s=n.split("/");for(const c of s)c&&(i=(0,le._)`${i}${(0,le.getProperty)((0,vn.unescapeJsonPointer)(c))}`,o=(0,le._)`${o} && ${i}`);return o;function u(c,l){return`Cannot access ${c} ${l} levels up, current level is ${t}`}}yr.getData=EC;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});class FQ extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Go.default=FQ;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});const hp=Ot;class jQ extends Error{constructor(t,r,a,n){super(n||`can't resolve reference ${a} from id ${r}`),this.missingRef=(0,hp.resolveUrl)(t,r,a),this.missingSchema=(0,hp.normalizeId)((0,hp.getFullPath)(t,this.missingRef))}}Ci.default=jQ;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.resolveSchema=Vt.getCompilingSchema=Vt.resolveRef=Vt.compileSchema=Vt.SchemaEnv=void 0;const br=Ce,BQ=Go,ma=Hr,wr=Ot,_C=re,LQ=yr;class ic{constructor(t){var r;this.refs={},this.dynamicAnchors={};let a;typeof t.schema=="object"&&(a=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,wr.normalizeId)(a==null?void 0:a[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=a==null?void 0:a.$async,this.refs={}}}Vt.SchemaEnv=ic;function mp(e){const t=AC.call(this,e);if(t)return t;const r=(0,wr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:n}=this.opts.code,{ownProperties:i}=this.opts,o=new br.CodeGen(this.scope,{es5:a,lines:n,ownProperties:i});let s;e.$async&&(s=o.scopeValue("Error",{ref:BQ.default,code:(0,br._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const c={gen:o,allErrors:this.opts.allErrors,data:ma.default.data,parentData:ma.default.parentData,parentDataProperty:ma.default.parentDataProperty,dataNames:[ma.default.data],dataPathArr:[br.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,br.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:br.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,br._)`""`,opts:this.opts,self:this};let l;try{this._compilations.add(e),(0,LQ.validateFunctionCode)(c),o.optimize(this.opts.code.optimize);const d=o.toString();l=`${o.scopeRefs(ma.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,e));const p=new Function(`${ma.default.self}`,`${ma.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:u,validateCode:d,scopeValues:o._values}),this.opts.unevaluated){const{props:m,items:v}=c;p.evaluated={props:m instanceof br.Name?void 0:m,items:v instanceof br.Name?void 0:v,dynamicProps:m instanceof br.Name,dynamicItems:v instanceof br.Name},p.source&&(p.source.evaluated=(0,br.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(e)}}Vt.compileSchema=mp;function GQ(e,t,r){var a;r=(0,wr.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let i=YQ.call(this,e,r);if(i===void 0){const o=(a=e.localRefs)===null||a===void 0?void 0:a[r],{schemaId:s}=this.opts;o&&(i=new ic({schema:o,schemaId:s,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=VQ.call(this,i)}Vt.resolveRef=GQ;function VQ(e){return(0,wr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:mp.call(this,e)}function AC(e){for(const t of this._compilations)if(WQ(t,e))return t}Vt.getCompilingSchema=AC;function WQ(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function YQ(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||oc.call(this,e,t)}function oc(e,t){const r=this.opts.uriResolver.parse(t),a=(0,wr._getFullPath)(this.opts.uriResolver,r);let n=(0,wr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&a===n)return gp.call(this,r,e);const i=(0,wr.normalizeId)(a),o=this.refs[i]||this.schemas[i];if(typeof o=="string"){const s=oc.call(this,e,o);return typeof(s==null?void 0:s.schema)!="object"?void 0:gp.call(this,r,s)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||mp.call(this,o),i===(0,wr.normalizeId)(t)){const{schema:s}=o,{schemaId:u}=this.opts,c=s[u];return c&&(n=(0,wr.resolveUrl)(this.opts.uriResolver,n,c)),new ic({schema:s,schemaId:u,root:e,baseId:n})}return gp.call(this,r,o)}}Vt.resolveSchema=oc;const UQ=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function gp(e,{baseId:t,schema:r,root:a}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,_C.unescapeFragment)(s)];if(u===void 0)return;r=u;const c=typeof r=="object"&&r[this.opts.schemaId];!UQ.has(s)&&c&&(t=(0,wr.resolveUrl)(this.opts.uriResolver,t,c))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,_C.schemaHasRulesButRef)(r,this.RULES)){const s=(0,wr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=oc.call(this,a,s)}const{schemaId:o}=this.opts;if(i=i||new ic({schema:r,schemaId:o,root:a,baseId:t}),i.schema!==i.root.schema)return i}const HQ={$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};var vp={},sc={exports:{}};const XQ=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),OC=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function TC(e){let t="",r=0,a=0;for(a=0;a<e.length;a++)if(r=e[a].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[a];break}for(a+=1;a<e.length;a++){if(r=e[a].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[a]}return t}const zQ=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function xC(e){return e.length=0,!0}function ZQ(e,t,r){if(e.length){const a=TC(e);if(a!=="")t.push(a);else return r.error=!0,!1;e.length=0}return!0}function JQ(e){let t=0;const r={error:!1,address:"",zone:""},a=[],n=[];let i=!1,o=!1,s=ZQ;for(let u=0;u<e.length;u++){const c=e[u];if(!(c==="["||c==="]"))if(c===":"){if(i===!0&&(o=!0),!s(n,a,r))break;if(++t>7){r.error=!0;break}u>0&&e[u-1]===":"&&(i=!0),a.push(":");continue}else if(c==="%"){if(!s(n,a,r))break;s=xC}else{n.push(c);continue}}return n.length&&(s===xC?r.zone=n.join(""):o?a.push(n.join("")):a.push(TC(n))),r.address=a.join(""),r}function DC(e){if(qQ(e,":")<2)return{host:e,isIPV6:!1};const t=JQ(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,a=t.address;return t.zone&&(r+="%"+t.zone,a+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:a}}}function qQ(e,t){let r=0;for(let a=0;a<e.length;a++)e[a]===t&&r++;return r}function KQ(e){let t=e;const r=[];let a=-1,n=0;for(;n=t.length;){if(n===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(n===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(n===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((a=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,a)),t=t.slice(a)}return r.join("")}function QQ(e,t){const r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function eee(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!OC(r)){const a=DC(r);a.isIPV6===!0?r=`[${a.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}var PC={nonSimpleDomain:zQ,recomposeAuthority:eee,normalizeComponentEncoding:QQ,removeDotSegments:KQ,isIPv4:OC,isUUID:XQ,normalizeIPv6:DC};const{isUUID:tee}=PC,ree=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function RC(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function NC(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function kC(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function nee(e){return e.secure=RC(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function aee(e){if((e.port===(RC(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function iee(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(ree);if(r){const a=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const n=`${a}:${t.nid||e.nid}`,i=yp(n);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function oee(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",a=e.nid.toLowerCase(),n=`${r}:${t.nid||a}`,i=yp(n);i&&(e=i.serialize(e,t));const o=e,s=e.nss;return o.path=`${a||t.nid}:${s}`,t.skipEscape=!0,o}function see(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!tee(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function uee(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const MC={scheme:"http",domainHost:!0,parse:NC,serialize:kC},cee={scheme:"https",domainHost:MC.domainHost,parse:NC,serialize:kC},uc={scheme:"ws",domainHost:!0,parse:nee,serialize:aee},lee={scheme:"wss",domainHost:uc.domainHost,parse:uc.parse,serialize:uc.serialize},cc={http:MC,https:cee,ws:uc,wss:lee,urn:{scheme:"urn",parse:iee,serialize:oee,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:see,serialize:uee,skipNormalize:!0}};Object.setPrototypeOf(cc,null);function yp(e){return e&&(cc[e]||cc[e.toLowerCase()])||void 0}var dee={SCHEMES:cc,getSchemeHandler:yp};const{normalizeIPv6:fee,removeDotSegments:Vo,recomposeAuthority:pee,normalizeComponentEncoding:lc,isIPv4:hee,nonSimpleDomain:mee}=PC,{SCHEMES:gee,getSchemeHandler:FC}=dee;function vee(e,t){return typeof e=="string"?e=Zr(yn(e,t),t):typeof e=="object"&&(e=yn(Zr(e,t),t)),e}function yee(e,t,r){const a=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=jC(yn(e,a),yn(t,a),a,!0);return a.skipEscape=!0,Zr(n,a)}function jC(e,t,r,a){const n={};return a||(e=yn(Zr(e,r),r),t=yn(Zr(t,r),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=Vo(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=Vo(t.path||""),n.query=t.query):(t.path?(t.path[0]==="/"?n.path=Vo(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=Vo(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?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 bee(e,t,r){return typeof e=="string"?(e=unescape(e),e=Zr(lc(yn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Zr(lc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Zr(lc(yn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Zr(lc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Zr(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},a=Object.assign({},t),n=[],i=FC(a.scheme||r.scheme);i&&i.serialize&&i.serialize(r,a),r.path!==void 0&&(a.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),a.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");const o=pee(r);if(o!==void 0&&(a.reference!=="suffix"&&n.push("//"),n.push(o),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let s=r.path;!a.absolutePath&&(!i||!i.absolutePath)&&(s=Vo(s)),o===void 0&&s[0]==="/"&&s[1]==="/"&&(s="/%2F"+s.slice(2)),n.push(s)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}const wee=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function yn(e,t){const r=Object.assign({},t),a={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let n=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);const i=e.match(wee);if(i){if(a.scheme=i[1],a.userinfo=i[3],a.host=i[4],a.port=parseInt(i[5],10),a.path=i[6]||"",a.query=i[7],a.fragment=i[8],isNaN(a.port)&&(a.port=i[5]),a.host)if(hee(a.host)===!1){const u=fee(a.host);a.host=u.host.toLowerCase(),n=u.isIPV6}else n=!0;a.scheme===void 0&&a.userinfo===void 0&&a.host===void 0&&a.port===void 0&&a.query===void 0&&!a.path?a.reference="same-document":a.scheme===void 0?a.reference="relative":a.fragment===void 0?a.reference="absolute":a.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==a.reference&&(a.error=a.error||"URI is not a "+r.reference+" reference.");const o=FC(r.scheme||a.scheme);if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&a.host&&(r.domainHost||o&&o.domainHost)&&n===!1&&mee(a.host))try{a.host=URL.domainToASCII(a.host.toLowerCase())}catch(s){a.error=a.error||"Host's domain name can not be converted to ASCII: "+s}(!o||o&&!o.skipNormalize)&&(e.indexOf("%")!==-1&&(a.scheme!==void 0&&(a.scheme=unescape(a.scheme)),a.host!==void 0&&(a.host=unescape(a.host))),a.path&&(a.path=escape(unescape(a.path))),a.fragment&&(a.fragment=encodeURI(decodeURIComponent(a.fragment)))),o&&o.parse&&o.parse(a,r)}else a.error=a.error||"URI can not be parsed.";return a}const bp={SCHEMES:gee,normalize:vee,resolve:yee,resolveComponent:jC,equal:bee,serialize:Zr,parse:yn};sc.exports=bp,sc.exports.default=bp,sc.exports.fastUri=bp;var Cee=sc.exports;Object.defineProperty(vp,"__esModule",{value:!0});const BC=Cee;BC.code='require("ajv/dist/runtime/uri").default',vp.default=BC,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=yr;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ce;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 a=Go,n=Ci,i=pa,o=Vt,s=Ce,u=Ot,c=bt,l=re,d=HQ,f=vp,p=(V,D)=>new RegExp(V,D);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={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."},h={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function b(V){var D,M,P,S,T,j,z,H,Q,ce,Ee,ee,pt,te,Ve,wt,Ut,bn,qr,tr,Kr,Qr,Bn,wn,Cn;const Ir=V.strict,Sn=(D=V.code)===null||D===void 0?void 0:D.optimize,Sa=Sn===!0||Sn===void 0?1:Sn||0,rs=(P=(M=V.code)===null||M===void 0?void 0:M.regExp)!==null&&P!==void 0?P:p,jc=(S=V.uriResolver)!==null&&S!==void 0?S:f.default;return{strictSchema:(j=(T=V.strictSchema)!==null&&T!==void 0?T:Ir)!==null&&j!==void 0?j:!0,strictNumbers:(H=(z=V.strictNumbers)!==null&&z!==void 0?z:Ir)!==null&&H!==void 0?H:!0,strictTypes:(ce=(Q=V.strictTypes)!==null&&Q!==void 0?Q:Ir)!==null&&ce!==void 0?ce:"log",strictTuples:(ee=(Ee=V.strictTuples)!==null&&Ee!==void 0?Ee:Ir)!==null&&ee!==void 0?ee:"log",strictRequired:(te=(pt=V.strictRequired)!==null&&pt!==void 0?pt:Ir)!==null&&te!==void 0?te:!1,code:V.code?{...V.code,optimize:Sa,regExp:rs}:{optimize:Sa,regExp:rs},loopRequired:(Ve=V.loopRequired)!==null&&Ve!==void 0?Ve:y,loopEnum:(wt=V.loopEnum)!==null&&wt!==void 0?wt:y,meta:(Ut=V.meta)!==null&&Ut!==void 0?Ut:!0,messages:(bn=V.messages)!==null&&bn!==void 0?bn:!0,inlineRefs:(qr=V.inlineRefs)!==null&&qr!==void 0?qr:!0,schemaId:(tr=V.schemaId)!==null&&tr!==void 0?tr:"$id",addUsedSchema:(Kr=V.addUsedSchema)!==null&&Kr!==void 0?Kr:!0,validateSchema:(Qr=V.validateSchema)!==null&&Qr!==void 0?Qr:!0,validateFormats:(Bn=V.validateFormats)!==null&&Bn!==void 0?Bn:!0,unicodeRegExp:(wn=V.unicodeRegExp)!==null&&wn!==void 0?wn:!0,int32range:(Cn=V.int32range)!==null&&Cn!==void 0?Cn:!0,uriResolver:jc}}class w{constructor(D={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...b(D)};const{es5:M,lines:P}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:M,lines:P}),this.logger=W(D.logger);const S=D.validateFormats;D.validateFormats=!1,this.RULES=(0,i.getRules)(),C.call(this,g,D,"NOT SUPPORTED"),C.call(this,h,D,"DEPRECATED","warn"),this._metaOpts=k.call(this),D.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&R.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),_.call(this),D.validateFormats=S}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:M,schemaId:P}=this.opts;let S=d;P==="id"&&(S={...d},S.id=S.$id,delete S.$id),M&&D&&this.addMetaSchema(S,S[P],!1)}defaultMeta(){const{meta:D,schemaId:M}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[M]||D:void 0}validate(D,M){let P;if(typeof D=="string"){if(P=this.getSchema(D),!P)throw new Error(`no schema with key or ref "${D}"`)}else P=this.compile(D);const S=P(M);return"$async"in P||(this.errors=P.errors),S}compile(D,M){const P=this._addSchema(D,M);return P.validate||this._compileSchemaEnv(P)}compileAsync(D,M){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:P}=this.opts;return S.call(this,D,M);async function S(ce,Ee){await T.call(this,ce.$schema);const ee=this._addSchema(ce,Ee);return ee.validate||j.call(this,ee)}async function T(ce){ce&&!this.getSchema(ce)&&await S.call(this,{$ref:ce},!0)}async function j(ce){try{return this._compileSchemaEnv(ce)}catch(Ee){if(!(Ee instanceof n.default))throw Ee;return z.call(this,Ee),await H.call(this,Ee.missingSchema),j.call(this,ce)}}function z({missingSchema:ce,missingRef:Ee}){if(this.refs[ce])throw new Error(`AnySchema ${ce} is loaded but ${Ee} cannot be resolved`)}async function H(ce){const Ee=await Q.call(this,ce);this.refs[ce]||await T.call(this,Ee.$schema),this.refs[ce]||this.addSchema(Ee,ce,M)}async function Q(ce){const Ee=this._loading[ce];if(Ee)return Ee;try{return await(this._loading[ce]=P(ce))}finally{delete this._loading[ce]}}}addSchema(D,M,P,S=this.opts.validateSchema){if(Array.isArray(D)){for(const j of D)this.addSchema(j,void 0,P,S);return this}let T;if(typeof D=="object"){const{schemaId:j}=this.opts;if(T=D[j],T!==void 0&&typeof T!="string")throw new Error(`schema ${j} must be string`)}return M=(0,u.normalizeId)(M||T),this._checkUnique(M),this.schemas[M]=this._addSchema(D,P,M,S,!0),this}addMetaSchema(D,M,P=this.opts.validateSchema){return this.addSchema(D,M,!0,P),this}validateSchema(D,M){if(typeof D=="boolean")return!0;let P;if(P=D.$schema,P!==void 0&&typeof P!="string")throw new Error("$schema must be a string");if(P=P||this.opts.defaultMeta||this.defaultMeta(),!P)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const S=this.validate(P,D);if(!S&&M){const T="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(T);else throw new Error(T)}return S}getSchema(D){let M;for(;typeof(M=E.call(this,D))=="string";)D=M;if(M===void 0){const{schemaId:P}=this.opts,S=new o.SchemaEnv({schema:{},schemaId:P});if(M=o.resolveSchema.call(this,S,D),!M)return;this.refs[D]=M}return M.validate||this._compileSchemaEnv(M)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const M=E.call(this,D);return typeof M=="object"&&this._cache.delete(M.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const M=D;this._cache.delete(M);let P=D[this.opts.schemaId];return P&&(P=(0,u.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const M of D)this.addKeyword(M);return this}addKeyword(D,M){let P;if(typeof D=="string")P=D,typeof M=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),M.keyword=P);else if(typeof D=="object"&&M===void 0){if(M=D,P=M.keyword,Array.isArray(P)&&!P.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(U.call(this,P,M),!M)return(0,l.eachItem)(P,T=>Y.call(this,T)),this;Z.call(this,M);const S={...M,type:(0,c.getJSONTypes)(M.type),schemaType:(0,c.getJSONTypes)(M.schemaType)};return(0,l.eachItem)(P,S.type.length===0?T=>Y.call(this,T,S):T=>S.type.forEach(j=>Y.call(this,T,S,j))),this}getKeyword(D){const M=this.RULES.all[D];return typeof M=="object"?M.definition:!!M}removeKeyword(D){const{RULES:M}=this;delete M.keywords[D],delete M.all[D];for(const P of M.rules){const S=P.rules.findIndex(T=>T.keyword===D);S>=0&&P.rules.splice(S,1)}return this}addFormat(D,M){return typeof M=="string"&&(M=new RegExp(M)),this.formats[D]=M,this}errorsText(D=this.errors,{separator:M=", ",dataVar:P="data"}={}){return!D||D.length===0?"No errors":D.map(S=>`${P}${S.instancePath} ${S.message}`).reduce((S,T)=>S+M+T)}$dataMetaSchema(D,M){const P=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const S of M){const T=S.split("/").slice(1);let j=D;for(const z of T)j=j[z];for(const z in P){const H=P[z];if(typeof H!="object")continue;const{$data:Q}=H.definition,ce=j[z];Q&&ce&&(j[z]=se(ce))}}return D}_removeAllSchemas(D,M){for(const P in D){const S=D[P];(!M||M.test(P))&&(typeof S=="string"?delete D[P]:S&&!S.meta&&(this._cache.delete(S.schema),delete D[P]))}}_addSchema(D,M,P,S=this.opts.validateSchema,T=this.opts.addUsedSchema){let j;const{schemaId:z}=this.opts;if(typeof D=="object")j=D[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(D);if(H!==void 0)return H;P=(0,u.normalizeId)(j||P);const Q=u.getSchemaRefs.call(this,D,P);return H=new o.SchemaEnv({schema:D,schemaId:z,meta:M,baseId:P,localRefs:Q}),this._cache.set(H.schema,H),T&&!P.startsWith("#")&&(P&&this._checkUnique(P),this.refs[P]=H),S&&this.validateSchema(D,!0),H}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):o.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const M=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,D)}finally{this.opts=M}}}w.ValidationError=a.default,w.MissingRefError=n.default,e.default=w;function C(V,D,M,P="error"){for(const S in V){const T=S;T in D&&this.logger[P](`${M}: option ${S}. ${V[T]}`)}}function E(V){return V=(0,u.normalizeId)(V),this.schemas[V]||this.refs[V]}function _(){const V=this.opts.schemas;if(V)if(Array.isArray(V))this.addSchema(V);else for(const D in V)this.addSchema(V[D],D)}function N(){for(const V in this.opts.formats){const D=this.opts.formats[V];D&&this.addFormat(V,D)}}function R(V){if(Array.isArray(V)){this.addVocabulary(V);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in V){const M=V[D];M.keyword||(M.keyword=D),this.addKeyword(M)}}function k(){const V={...this.opts};for(const D of m)delete V[D];return V}const F={log(){},warn(){},error(){}};function W(V){if(V===!1)return F;if(V===void 0)return console;if(V.log&&V.warn&&V.error)return V;throw new Error("logger must implement log, warn and error methods")}const B=/^[a-z_$][a-z0-9_$:-]*$/i;function U(V,D){const{RULES:M}=this;if((0,l.eachItem)(V,P=>{if(M.keywords[P])throw new Error(`Keyword ${P} is already defined`);if(!B.test(P))throw new Error(`Keyword ${P} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function Y(V,D,M){var P;const S=D==null?void 0:D.post;if(M&&S)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:T}=this;let j=S?T.post:T.rules.find(({type:H})=>H===M);if(j||(j={type:M,rules:[]},T.rules.push(j)),T.keywords[V]=!0,!D)return;const z={keyword:V,definition:{...D,type:(0,c.getJSONTypes)(D.type),schemaType:(0,c.getJSONTypes)(D.schemaType)}};D.before?L.call(this,j,z,D.before):j.rules.push(z),T.all[V]=z,(P=D.implements)===null||P===void 0||P.forEach(H=>this.addKeyword(H))}function L(V,D,M){const P=V.rules.findIndex(S=>S.keyword===M);P>=0?V.rules.splice(P,0,D):(V.rules.push(D),this.logger.warn(`rule ${M} is not defined`))}function Z(V){let{metaSchema:D}=V;D!==void 0&&(V.$data&&this.opts.$data&&(D=se(D)),V.validateSchema=this.compile(D,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(V){return{anyOf:[V,J]}}}(L1);var wp={},Cp={},Sp={};Object.defineProperty(Sp,"__esModule",{value:!0});const See={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Sp.default=See;var ga={};Object.defineProperty(ga,"__esModule",{value:!0}),ga.callRef=ga.getValidate=void 0;const $ee=Ci,LC=Ie,Wt=Ce,Si=Hr,GC=Vt,dc=re,Iee={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:a}=e,{baseId:n,schemaEnv:i,validateName:o,opts:s,self:u}=a,{root:c}=i;if((r==="#"||r==="#/")&&n===c.baseId)return d();const l=GC.resolveRef.call(u,c,n,r);if(l===void 0)throw new $ee.default(a.opts.uriResolver,n,r);if(l instanceof GC.SchemaEnv)return f(l);return p(l);function d(){if(i===c)return fc(e,o,i,i.$async);const m=t.scopeValue("root",{ref:c});return fc(e,(0,Wt._)`${m}.validate`,c,c.$async)}function f(m){const v=VC(e,m);fc(e,v,m,m.$async)}function p(m){const v=t.scopeValue("schema",s.code.source===!0?{ref:m,code:(0,Wt.stringify)(m)}:{ref:m}),g=t.name("valid"),h=e.subschema({schema:m,dataTypes:[],schemaPath:Wt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated(h),e.ok(g)}}};function VC(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Wt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ga.getValidate=VC;function fc(e,t,r,a){const{gen:n,it:i}=e,{allErrors:o,schemaEnv:s,opts:u}=i,c=u.passContext?Si.default.this:Wt.nil;a?l():d();function l(){if(!s.$async)throw new Error("async schema referenced by sync schema");const m=n.let("valid");n.try(()=>{n.code((0,Wt._)`await ${(0,LC.callValidateCode)(e,t,c)}`),p(t),o||n.assign(m,!0)},v=>{n.if((0,Wt._)`!(${v} instanceof ${i.ValidationError})`,()=>n.throw(v)),f(v),o||n.assign(m,!1)}),e.ok(m)}function d(){e.result((0,LC.callValidateCode)(e,t,c),()=>p(t),()=>f(t))}function f(m){const v=(0,Wt._)`${m}.errors`;n.assign(Si.default.vErrors,(0,Wt._)`${Si.default.vErrors} === null ? ${v} : ${Si.default.vErrors}.concat(${v})`),n.assign(Si.default.errors,(0,Wt._)`${Si.default.vErrors}.length`)}function p(m){var v;if(!i.opts.unevaluated)return;const g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(i.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(i.props=dc.mergeEvaluated.props(n,g.props,i.props));else{const h=n.var("props",(0,Wt._)`${m}.evaluated.props`);i.props=dc.mergeEvaluated.props(n,h,i.props,Wt.Name)}if(i.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(i.items=dc.mergeEvaluated.items(n,g.items,i.items));else{const h=n.var("items",(0,Wt._)`${m}.evaluated.items`);i.items=dc.mergeEvaluated.items(n,h,i.items,Wt.Name)}}}ga.callRef=fc,ga.default=Iee,Object.defineProperty(Cp,"__esModule",{value:!0});const Eee=Sp,_ee=ga,Aee=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Eee.default,_ee.default];Cp.default=Aee;var $p={},Ip={};Object.defineProperty(Ip,"__esModule",{value:!0});const pc=Ce,jn=pc.operators,hc={maximum:{okStr:"<=",ok:jn.LTE,fail:jn.GT},minimum:{okStr:">=",ok:jn.GTE,fail:jn.LT},exclusiveMaximum:{okStr:"<",ok:jn.LT,fail:jn.GTE},exclusiveMinimum:{okStr:">",ok:jn.GT,fail:jn.LTE}},Oee={message:({keyword:e,schemaCode:t})=>(0,pc.str)`must be ${hc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,pc._)`{comparison: ${hc[e].okStr}, limit: ${t}}`},Tee={keyword:Object.keys(hc),type:"number",schemaType:"number",$data:!0,error:Oee,code(e){const{keyword:t,data:r,schemaCode:a}=e;e.fail$data((0,pc._)`${r} ${hc[t].fail} ${a} || isNaN(${r})`)}};Ip.default=Tee;var Ep={};Object.defineProperty(Ep,"__esModule",{value:!0});const Wo=Ce,xee={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,Wo.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Wo._)`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:a,it:n}=e,i=n.opts.multipleOfPrecision,o=t.let("res"),s=i?(0,Wo._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${i}`:(0,Wo._)`${o} !== parseInt(${o})`;e.fail$data((0,Wo._)`(${a} === 0 || (${o} = ${r}/${a}, ${s}))`)}};Ep.default=xee;var _p={},Ap={};Object.defineProperty(Ap,"__esModule",{value:!0});function WC(e){const t=e.length;let r=0,a=0,n;for(;a<t;)r++,n=e.charCodeAt(a++),n>=55296&&n<=56319&&a<t&&(n=e.charCodeAt(a),(n&64512)===56320&&a++);return r}Ap.default=WC,WC.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(_p,"__esModule",{value:!0});const va=Ce,Dee=re,Pee=Ap,Ree={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,va.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,va._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a,it:n}=e,i=t==="maxLength"?va.operators.GT:va.operators.LT,o=n.opts.unicode===!1?(0,va._)`${r}.length`:(0,va._)`${(0,Dee.useFunc)(e.gen,Pee.default)}(${r})`;e.fail$data((0,va._)`${o} ${i} ${a}`)}};_p.default=Ree;var Op={};Object.defineProperty(Op,"__esModule",{value:!0});const Nee=Ie,mc=Ce,kee={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,mc.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,mc._)`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:a,schemaCode:n,it:i}=e,o=i.opts.unicodeRegExp?"u":"",s=r?(0,mc._)`(new RegExp(${n}, ${o}))`:(0,Nee.usePattern)(e,a);e.fail$data((0,mc._)`!${s}.test(${t})`)}};Op.default=kee;var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});const Yo=Ce,Mee={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Yo.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Yo._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a}=e,n=t==="maxProperties"?Yo.operators.GT:Yo.operators.LT;e.fail$data((0,Yo._)`Object.keys(${r}).length ${n} ${a}`)}};Tp.default=Mee;var xp={};Object.defineProperty(xp,"__esModule",{value:!0});const Uo=Ie,Ho=Ce,Fee=re,jee={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,Ho.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ho._)`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:a,data:n,$data:i,it:o}=e,{opts:s}=o;if(!i&&r.length===0)return;const u=r.length>=s.loopRequired;if(o.allErrors?c():l(),s.strictRequired){const p=e.parentSchema.properties,{definedProperties:m}=e.it;for(const v of r)if((p==null?void 0:p[v])===void 0&&!m.has(v)){const g=o.schemaEnv.baseId+o.errSchemaPath,h=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,Fee.checkStrictMode)(o,h,o.opts.strictRequired)}}function c(){if(u||i)e.block$data(Ho.nil,d);else for(const p of r)(0,Uo.checkReportMissingProp)(e,p)}function l(){const p=t.let("missing");if(u||i){const m=t.let("valid",!0);e.block$data(m,()=>f(p,m)),e.ok(m)}else t.if((0,Uo.checkMissingProp)(e,r,p)),(0,Uo.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",a,p=>{e.setParams({missingProperty:p}),t.if((0,Uo.noPropertyInData)(t,n,p,s.ownProperties),()=>e.error())})}function f(p,m){e.setParams({missingProperty:p}),t.forOf(p,a,()=>{t.assign(m,(0,Uo.propertyInData)(t,n,p,s.ownProperties)),t.if((0,Ho.not)(m),()=>{e.error(),t.break()})},Ho.nil)}}};xp.default=jee;var Dp={};Object.defineProperty(Dp,"__esModule",{value:!0});const Xo=Ce,Bee={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Xo.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Xo._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a}=e,n=t==="maxItems"?Xo.operators.GT:Xo.operators.LT;e.fail$data((0,Xo._)`${r}.length ${n} ${a}`)}};Dp.default=Bee;var Pp={},zo={};Object.defineProperty(zo,"__esModule",{value:!0});const YC=oC;YC.code='require("ajv/dist/runtime/equal").default',zo.default=YC,Object.defineProperty(Pp,"__esModule",{value:!0});const Rp=bt,Tt=Ce,Lee=re,Gee=zo,Vee={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,Tt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Tt._)`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:n,parentSchema:i,schemaCode:o,it:s}=e;if(!a&&!n)return;const u=t.let("valid"),c=i.items?(0,Rp.getSchemaTypes)(i.items):[];e.block$data(u,l,(0,Tt._)`${o} === false`),e.ok(u);function l(){const m=t.let("i",(0,Tt._)`${r}.length`),v=t.let("j");e.setParams({i:m,j:v}),t.assign(u,!0),t.if((0,Tt._)`${m} > 1`,()=>(d()?f:p)(m,v))}function d(){return c.length>0&&!c.some(m=>m==="object"||m==="array")}function f(m,v){const g=t.name("item"),h=(0,Rp.checkDataTypes)(c,g,s.opts.strictNumbers,Rp.DataType.Wrong),y=t.const("indices",(0,Tt._)`{}`);t.for((0,Tt._)`;${m}--;`,()=>{t.let(g,(0,Tt._)`${r}[${m}]`),t.if(h,(0,Tt._)`continue`),c.length>1&&t.if((0,Tt._)`typeof ${g} == "string"`,(0,Tt._)`${g} += "_"`),t.if((0,Tt._)`typeof ${y}[${g}] == "number"`,()=>{t.assign(v,(0,Tt._)`${y}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,Tt._)`${y}[${g}] = ${m}`)})}function p(m,v){const g=(0,Lee.useFunc)(t,Gee.default),h=t.name("outer");t.label(h).for((0,Tt._)`;${m}--;`,()=>t.for((0,Tt._)`${v} = ${m}; ${v}--;`,()=>t.if((0,Tt._)`${g}(${r}[${m}], ${r}[${v}])`,()=>{e.error(),t.assign(u,!1).break(h)})))}}};Pp.default=Vee;var Np={};Object.defineProperty(Np,"__esModule",{value:!0});const kp=Ce,Wee=re,Yee=zo,Uee={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,kp._)`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:a,schemaCode:n,schema:i}=e;a||i&&typeof i=="object"?e.fail$data((0,kp._)`!${(0,Wee.useFunc)(t,Yee.default)}(${r}, ${n})`):e.fail((0,kp._)`${i} !== ${r}`)}};Np.default=Uee;var Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});const Zo=Ce,Hee=re,Xee=zo,zee={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Zo._)`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:a,schema:n,schemaCode:i,it:o}=e;if(!a&&n.length===0)throw new Error("enum must have non-empty array");const s=n.length>=o.opts.loopEnum;let u;const c=()=>u??(u=(0,Hee.useFunc)(t,Xee.default));let l;if(s||a)l=t.let("valid"),e.block$data(l,d);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const p=t.const("vSchema",i);l=(0,Zo.or)(...n.map((m,v)=>f(p,v)))}e.pass(l);function d(){t.assign(l,!1),t.forOf("v",i,p=>t.if((0,Zo._)`${c()}(${r}, ${p})`,()=>t.assign(l,!0).break()))}function f(p,m){const v=n[m];return typeof v=="object"&&v!==null?(0,Zo._)`${c()}(${r}, ${p}[${m}])`:(0,Zo._)`${r} === ${v}`}}};Mp.default=zee,Object.defineProperty($p,"__esModule",{value:!0});const Zee=Ip,Jee=Ep,qee=_p,Kee=Op,Qee=Tp,ete=xp,tte=Dp,rte=Pp,nte=Np,ate=Mp,ite=[Zee.default,Jee.default,qee.default,Kee.default,Qee.default,ete.default,tte.default,rte.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},nte.default,ate.default];$p.default=ite;var Fp={},$i={};Object.defineProperty($i,"__esModule",{value:!0}),$i.validateAdditionalItems=void 0;const ya=Ce,jp=re,ote={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,ya.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ya._)`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:a}=t;if(!Array.isArray(a)){(0,jp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}UC(e,a)}};function UC(e,t){const{gen:r,schema:a,data:n,keyword:i,it:o}=e;o.items=!0;const s=r.const("len",(0,ya._)`${n}.length`);if(a===!1)e.setParams({len:t.length}),e.pass((0,ya._)`${s} <= ${t.length}`);else if(typeof a=="object"&&!(0,jp.alwaysValidSchema)(o,a)){const c=r.var("valid",(0,ya._)`${s} <= ${t.length}`);r.if((0,ya.not)(c),()=>u(c)),e.ok(c)}function u(c){r.forRange("i",t.length,s,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:jp.Type.Num},c),o.allErrors||r.if((0,ya.not)(c),()=>r.break())})}}$i.validateAdditionalItems=UC,$i.default=ote;var Bp={},Ii={};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.validateTuple=void 0;const HC=Ce,gc=re,ste=Ie,ute={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return XC(e,"additionalItems",t);r.items=!0,!(0,gc.alwaysValidSchema)(r,t)&&e.ok((0,ste.validateArray)(e))}};function XC(e,t,r=e.schema){const{gen:a,parentSchema:n,data:i,keyword:o,it:s}=e;l(n),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=gc.mergeEvaluated.items(a,r.length,s.items));const u=a.name("valid"),c=a.const("len",(0,HC._)`${i}.length`);r.forEach((d,f)=>{(0,gc.alwaysValidSchema)(s,d)||(a.if((0,HC._)`${c} > ${f}`,()=>e.subschema({keyword:o,schemaProp:f,dataProp:f},u)),e.ok(u))});function l(d){const{opts:f,errSchemaPath:p}=s,m=r.length,v=m===d.minItems&&(m===d.maxItems||d[t]===!1);if(f.strictTuples&&!v){const g=`"${o}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,gc.checkStrictMode)(s,g,f.strictTuples)}}}Ii.validateTuple=XC,Ii.default=ute,Object.defineProperty(Bp,"__esModule",{value:!0});const cte=Ii,lte={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,cte.validateTuple)(e,"items")};Bp.default=lte;var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});const zC=Ce,dte=re,fte=Ie,pte=$i,hte={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,zC.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,zC._)`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:a}=e,{prefixItems:n}=r;a.items=!0,!(0,dte.alwaysValidSchema)(a,t)&&(n?(0,pte.validateAdditionalItems)(e,n):e.ok((0,fte.validateArray)(e)))}};Lp.default=hte;var Gp={};Object.defineProperty(Gp,"__esModule",{value:!0});const lr=Ce,vc=re,mte={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>t===void 0?(0,lr.str)`must contain at least ${e} valid item(s)`:(0,lr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,lr._)`{minContains: ${e}}`:(0,lr._)`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:n,it:i}=e;let o,s;const{minContains:u,maxContains:c}=a;i.opts.next?(o=u===void 0?1:u,s=c):o=1;const l=t.const("len",(0,lr._)`${n}.length`);if(e.setParams({min:o,max:s}),s===void 0&&o===0){(0,vc.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&o>s){(0,vc.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,vc.alwaysValidSchema)(i,r)){let v=(0,lr._)`${l} >= ${o}`;s!==void 0&&(v=(0,lr._)`${v} && ${l} <= ${s}`),e.pass(v);return}i.items=!0;const d=t.name("valid");s===void 0&&o===1?p(d,()=>t.if(d,()=>t.break())):o===0?(t.let(d,!0),s!==void 0&&t.if((0,lr._)`${n}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const v=t.name("_valid"),g=t.let("count",0);p(v,()=>t.if(v,()=>m(g)))}function p(v,g){t.forRange("i",0,l,h=>{e.subschema({keyword:"contains",dataProp:h,dataPropType:vc.Type.Num,compositeRule:!0},v),g()})}function m(v){t.code((0,lr._)`${v}++`),s===void 0?t.if((0,lr._)`${v} >= ${o}`,()=>t.assign(d,!0).break()):(t.if((0,lr._)`${v} > ${s}`,()=>t.assign(d,!1).break()),o===1?t.assign(d,!0):t.if((0,lr._)`${v} >= ${o}`,()=>t.assign(d,!0)))}}};Gp.default=mte;var ZC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ce,r=re,a=Ie;e.error={message:({params:{property:u,depsCount:c,deps:l}})=>{const d=c===1?"property":"properties";return(0,t.str)`must have ${d} ${l} when property ${u} is present`},params:({params:{property:u,depsCount:c,deps:l,missingProperty:d}})=>(0,t._)`{property: ${u},
|
|
95
|
+
|| ${o} === "boolean" || ${n} === null`).assign(s,(0,be._)`[${n}]`)}}}function x8({gen:e,parentData:t,parentDataProperty:r},a){e.if((0,be._)`${t} !== undefined`,()=>e.assign((0,be._)`${t}[${r}]`,a))}function ap(e,t,r,a=yi.Correct){const n=a===yi.Correct?be.operators.EQ:be.operators.NEQ;let i;switch(e){case"null":return(0,be._)`${t} ${n} null`;case"array":i=(0,be._)`Array.isArray(${t})`;break;case"object":i=(0,be._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=o((0,be._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=o();break;default:return(0,be._)`typeof ${t} ${n} ${e}`}return a===yi.Correct?i:(0,be.not)(i);function o(s=be.nil){return(0,be.and)((0,be._)`typeof ${t} == "number"`,s,r?(0,be._)`isFinite(${t})`:be.nil)}}bt.checkDataType=ap;function ip(e,t,r,a){if(e.length===1)return ap(e[0],t,r,a);let n;const i=(0,K1.toHash)(e);if(i.array&&i.object){const o=(0,be._)`typeof ${t} != "object"`;n=i.null?o:(0,be._)`!${t} || ${o}`,delete i.null,delete i.array,delete i.object}else n=be.nil;i.number&&delete i.integer;for(const o in i)n=(0,be.and)(n,ap(o,t,r,a));return n}bt.checkDataTypes=ip;const D8={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,be._)`{type: ${e}}`:(0,be._)`{type: ${t}}`};function op(e){const t=P8(e);(0,E8.reportError)(t,D8)}bt.reportTypeError=op;function P8(e){const{gen:t,data:r,schema:a}=e,n=(0,K1.schemaRefOrVal)(e,a,"type");return{gen:t,keyword:"type",data:r,schema:a.type,schemaCode:n,schemaValue:n,parentSchema:a,params:{},it:e}}var nc={};Object.defineProperty(nc,"__esModule",{value:!0}),nc.assignDefaults=void 0;const bi=Ce,R8=re;function N8(e,t){const{properties:r,items:a}=e.schema;if(t==="object"&&r)for(const n in r)tC(e,n,r[n].default);else t==="array"&&Array.isArray(a)&&a.forEach((n,i)=>tC(e,i,n.default))}nc.assignDefaults=N8;function tC(e,t,r){const{gen:a,compositeRule:n,data:i,opts:o}=e;if(r===void 0)return;const s=(0,bi._)`${i}${(0,bi.getProperty)(t)}`;if(n){(0,R8.checkStrictMode)(e,`default is ignored for: ${s}`);return}let u=(0,bi._)`${s} === undefined`;o.useDefaults==="empty"&&(u=(0,bi._)`${u} || ${s} === null || ${s} === ""`),a.if(u,(0,bi._)`${s} = ${(0,bi.stringify)(r)}`)}var Xr={},Ie={};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.validateUnion=Ie.validateArray=Ie.usePattern=Ie.callValidateCode=Ie.schemaProperties=Ie.allSchemaProperties=Ie.noPropertyInData=Ie.propertyInData=Ie.isOwnProperty=Ie.hasPropFunc=Ie.reportMissingProp=Ie.checkMissingProp=Ie.checkReportMissingProp=void 0;const nt=Ce,sp=re,kn=Hr,k8=re;function M8(e,t){const{gen:r,data:a,it:n}=e;r.if(cp(r,a,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,nt._)`${t}`},!0),e.error()})}Ie.checkReportMissingProp=M8;function F8({gen:e,data:t,it:{opts:r}},a,n){return(0,nt.or)(...a.map(i=>(0,nt.and)(cp(e,t,i,r.ownProperties),(0,nt._)`${n} = ${i}`)))}Ie.checkMissingProp=F8;function j8(e,t){e.setParams({missingProperty:t},!0),e.error()}Ie.reportMissingProp=j8;function rC(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,nt._)`Object.prototype.hasOwnProperty`})}Ie.hasPropFunc=rC;function up(e,t,r){return(0,nt._)`${rC(e)}.call(${t}, ${r})`}Ie.isOwnProperty=up;function B8(e,t,r,a){const n=(0,nt._)`${t}${(0,nt.getProperty)(r)} !== undefined`;return a?(0,nt._)`${n} && ${up(e,t,r)}`:n}Ie.propertyInData=B8;function cp(e,t,r,a){const n=(0,nt._)`${t}${(0,nt.getProperty)(r)} === undefined`;return a?(0,nt.or)(n,(0,nt.not)(up(e,t,r))):n}Ie.noPropertyInData=cp;function nC(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ie.allSchemaProperties=nC;function L8(e,t){return nC(t).filter(r=>!(0,sp.alwaysValidSchema)(e,t[r]))}Ie.schemaProperties=L8;function G8({schemaCode:e,data:t,it:{gen:r,topSchemaRef:a,schemaPath:n,errorPath:i},it:o},s,u,c){const l=c?(0,nt._)`${e}, ${t}, ${a}${n}`:t,d=[[kn.default.instancePath,(0,nt.strConcat)(kn.default.instancePath,i)],[kn.default.parentData,o.parentData],[kn.default.parentDataProperty,o.parentDataProperty],[kn.default.rootData,kn.default.rootData]];o.opts.dynamicRef&&d.push([kn.default.dynamicAnchors,kn.default.dynamicAnchors]);const f=(0,nt._)`${l}, ${r.object(...d)}`;return u!==nt.nil?(0,nt._)`${s}.call(${u}, ${f})`:(0,nt._)`${s}(${f})`}Ie.callValidateCode=G8;const V8=(0,nt._)`new RegExp`;function W8({gen:e,it:{opts:t}},r){const a=t.unicodeRegExp?"u":"",{regExp:n}=t.code,i=n(r,a);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,nt._)`${n.code==="new RegExp"?V8:(0,k8.useFunc)(e,n)}(${r}, ${a})`})}Ie.usePattern=W8;function Y8(e){const{gen:t,data:r,keyword:a,it:n}=e,i=t.name("valid");if(n.allErrors){const s=t.let("valid",!0);return o(()=>t.assign(s,!1)),s}return t.var(i,!0),o(()=>t.break()),i;function o(s){const u=t.const("len",(0,nt._)`${r}.length`);t.forRange("i",0,u,c=>{e.subschema({keyword:a,dataProp:c,dataPropType:sp.Type.Num},i),t.if((0,nt.not)(i),s)})}}Ie.validateArray=Y8;function U8(e){const{gen:t,schema:r,keyword:a,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,sp.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((u,c)=>{const l=e.subschema({keyword:a,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,nt._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,nt.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}Ie.validateUnion=U8,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.validateKeywordUsage=Xr.validSchemaType=Xr.funcKeywordCode=Xr.macroKeywordCode=void 0;const Ft=Ce,ha=Hr,H8=Ie,X8=Fo;function z8(e,t){const{gen:r,keyword:a,schema:n,parentSchema:i,it:o}=e,s=t.macro.call(o.self,n,i,o),u=iC(r,a,s);o.opts.validateSchema!==!1&&o.self.validateSchema(s,!0);const c=r.name("valid");e.subschema({schema:s,schemaPath:Ft.nil,errSchemaPath:`${o.errSchemaPath}/${a}`,topSchemaRef:u,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}Xr.macroKeywordCode=z8;function Z8(e,t){var r;const{gen:a,keyword:n,schema:i,parentSchema:o,$data:s,it:u}=e;q8(u,t);const c=!s&&t.compile?t.compile.call(u.self,i,o,u):t.validate,l=iC(a,n,c),d=a.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)v(),t.modifying&&aC(e),g(()=>e.error());else{const h=t.async?p():m();t.modifying&&aC(e),g(()=>J8(e,h))}}function p(){const h=a.let("ruleErrs",null);return a.try(()=>v((0,Ft._)`await `),y=>a.assign(d,!1).if((0,Ft._)`${y} instanceof ${u.ValidationError}`,()=>a.assign(h,(0,Ft._)`${y}.errors`),()=>a.throw(y))),h}function m(){const h=(0,Ft._)`${l}.errors`;return a.assign(h,null),v(Ft.nil),h}function v(h=t.async?(0,Ft._)`await `:Ft.nil){const y=u.opts.passContext?ha.default.this:ha.default.self,b=!("compile"in t&&!s||t.schema===!1);a.assign(d,(0,Ft._)`${h}${(0,H8.callValidateCode)(e,l,y,b)}`,t.modifying)}function g(h){var y;a.if((0,Ft.not)((y=t.valid)!==null&&y!==void 0?y:d),h)}}Xr.funcKeywordCode=Z8;function aC(e){const{gen:t,data:r,it:a}=e;t.if(a.parentData,()=>t.assign(r,(0,Ft._)`${a.parentData}[${a.parentDataProperty}]`))}function J8(e,t){const{gen:r}=e;r.if((0,Ft._)`Array.isArray(${t})`,()=>{r.assign(ha.default.vErrors,(0,Ft._)`${ha.default.vErrors} === null ? ${t} : ${ha.default.vErrors}.concat(${t})`).assign(ha.default.errors,(0,Ft._)`${ha.default.vErrors}.length`),(0,X8.extendErrors)(e)},()=>e.error())}function q8({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function iC(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ft.stringify)(r)})}function K8(e,t,r=!1){return!t.length||t.some(a=>a==="array"?Array.isArray(e):a==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==a||r&&typeof e>"u")}Xr.validSchemaType=K8;function Q8({schema:e,opts:t,self:r,errSchemaPath:a},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw new Error("ajv implementation error");const o=n.dependencies;if(o!=null&&o.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[i])){const u=`keyword "${i}" value is invalid at path "${a}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}Xr.validateKeywordUsage=Q8;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.extendSubschemaMode=Mn.extendSubschemaData=Mn.getSubschema=void 0;const zr=Ce,oC=re;function eQ(e,{keyword:t,schemaProp:r,schema:a,schemaPath:n,errSchemaPath:i,topSchemaRef:o}){if(t!==void 0&&a!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}${(0,zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,oC.escapeFragment)(r)}`}}if(a!==void 0){if(n===void 0||i===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:n,topSchemaRef:o,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Mn.getSubschema=eQ;function tQ(e,t,{dataProp:r,dataPropType:a,data:n,dataTypes:i,propertyName:o}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:c,dataPathArr:l,opts:d}=t,f=s.let("data",(0,zr._)`${t.data}${(0,zr.getProperty)(r)}`,!0);u(f),e.errorPath=(0,zr.str)`${c}${(0,oC.getErrorPath)(r,a,d.jsPropertySyntax)}`,e.parentDataProperty=(0,zr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(n!==void 0){const c=n instanceof zr.Name?n:s.let("data",n,!0);u(c),o!==void 0&&(e.propertyName=o)}i&&(e.dataTypes=i);function u(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Mn.extendSubschemaData=tQ;function rQ(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:a,createErrors:n,allErrors:i}){a!==void 0&&(e.compositeRule=a),n!==void 0&&(e.createErrors=n),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Mn.extendSubschemaMode=rQ;var Ot={},sC=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,n,i;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(n=a;n--!==0;)if(!e(t[n],r[n]))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(i=Object.keys(t),a=i.length,a!==Object.keys(r).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=a;n--!==0;){var o=i[n];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},uC={exports:{}},Fn=uC.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var a=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};ac(t,a,n,e,"",e)};Fn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},Fn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Fn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Fn.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};function ac(e,t,r,a,n,i,o,s,u,c){if(a&&typeof a=="object"&&!Array.isArray(a)){t(a,n,i,o,s,u,c);for(var l in a){var d=a[l];if(Array.isArray(d)){if(l in Fn.arrayKeywords)for(var f=0;f<d.length;f++)ac(e,t,r,d[f],n+"/"+l+"/"+f,i,n,l,a,f)}else if(l in Fn.propsKeywords){if(d&&typeof d=="object")for(var p in d)ac(e,t,r,d[p],n+"/"+l+"/"+nQ(p),i,n,l,a,p)}else(l in Fn.keywords||e.allKeys&&!(l in Fn.skipKeywords))&&ac(e,t,r,d,n+"/"+l,i,n,l,a)}r(a,n,i,o,s,u,c)}}function nQ(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var aQ=uC.exports;Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.getSchemaRefs=Ot.resolveUrl=Ot.normalizeId=Ot._getFullPath=Ot.getFullPath=Ot.inlineRef=void 0;const iQ=re,oQ=sC,sQ=aQ,uQ=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function cQ(e,t=!0){return typeof e=="boolean"?!0:t===!0?!lp(e):t?cC(e)<=t:!1}Ot.inlineRef=cQ;const lQ=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function lp(e){for(const t in e){if(lQ.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(lp)||typeof r=="object"&&lp(r))return!0}return!1}function cC(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!uQ.has(r)&&(typeof e[r]=="object"&&(0,iQ.eachItem)(e[r],a=>t+=cC(a)),t===1/0))return 1/0}return t}function lC(e,t="",r){r!==!1&&(t=wi(t));const a=e.parse(t);return dC(e,a)}Ot.getFullPath=lC;function dC(e,t){return e.serialize(t).split("#")[0]+"#"}Ot._getFullPath=dC;const dQ=/#\/?$/;function wi(e){return e?e.replace(dQ,""):""}Ot.normalizeId=wi;function fQ(e,t,r){return r=wi(r),e.resolve(t,r)}Ot.resolveUrl=fQ;const pQ=/^[a-z_][-a-z0-9._]*$/i;function hQ(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:a}=this.opts,n=wi(e[r]||t),i={"":n},o=lC(a,n,!1),s={},u=new Set;return sQ(e,{allKeys:!0},(d,f,p,m)=>{if(m===void 0)return;const v=o+f;let g=i[m];typeof d[r]=="string"&&(g=h.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),i[f]=g;function h(b){const w=this.opts.uriResolver.resolve;if(b=wi(g?w(g,b):b),u.has(b))throw l(b);u.add(b);let C=this.refs[b];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?c(d,C.schema,b):b!==wi(v)&&(b[0]==="#"?(c(d,s[b],b),s[b]=d):this.refs[b]=v),b}function y(b){if(typeof b=="string"){if(!pQ.test(b))throw new Error(`invalid anchor "${b}"`);h.call(this,`#${b}`)}}}),s;function c(d,f,p){if(f!==void 0&&!oQ(d,f))throw l(p)}function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}}Ot.getSchemaRefs=hQ,Object.defineProperty(yr,"__esModule",{value:!0}),yr.getData=yr.KeywordCxt=yr.validateFunctionCode=void 0;const fC=vi,pC=bt,dp=gn,ic=bt,mQ=nc,Bo=Xr,fp=Mn,le=Ce,ge=Hr,gQ=Ot,vn=re,Lo=Fo;function vQ(e){if(vC(e)&&(yC(e),gC(e))){wQ(e);return}hC(e,()=>(0,fC.topBoolOrEmptySchema)(e))}yr.validateFunctionCode=vQ;function hC({gen:e,validateName:t,schema:r,schemaEnv:a,opts:n},i){n.code.es5?e.func(t,(0,le._)`${ge.default.data}, ${ge.default.valCxt}`,a.$async,()=>{e.code((0,le._)`"use strict"; ${mC(r,n)}`),bQ(e,n),e.code(i)}):e.func(t,(0,le._)`${ge.default.data}, ${yQ(n)}`,a.$async,()=>e.code(mC(r,n)).code(i))}function yQ(e){return(0,le._)`{${ge.default.instancePath}="", ${ge.default.parentData}, ${ge.default.parentDataProperty}, ${ge.default.rootData}=${ge.default.data}${e.dynamicRef?(0,le._)`, ${ge.default.dynamicAnchors}={}`:le.nil}}={}`}function bQ(e,t){e.if(ge.default.valCxt,()=>{e.var(ge.default.instancePath,(0,le._)`${ge.default.valCxt}.${ge.default.instancePath}`),e.var(ge.default.parentData,(0,le._)`${ge.default.valCxt}.${ge.default.parentData}`),e.var(ge.default.parentDataProperty,(0,le._)`${ge.default.valCxt}.${ge.default.parentDataProperty}`),e.var(ge.default.rootData,(0,le._)`${ge.default.valCxt}.${ge.default.rootData}`),t.dynamicRef&&e.var(ge.default.dynamicAnchors,(0,le._)`${ge.default.valCxt}.${ge.default.dynamicAnchors}`)},()=>{e.var(ge.default.instancePath,(0,le._)`""`),e.var(ge.default.parentData,(0,le._)`undefined`),e.var(ge.default.parentDataProperty,(0,le._)`undefined`),e.var(ge.default.rootData,ge.default.data),t.dynamicRef&&e.var(ge.default.dynamicAnchors,(0,le._)`{}`)})}function wQ(e){const{schema:t,opts:r,gen:a}=e;hC(e,()=>{r.$comment&&t.$comment&&wC(e),EQ(e),a.let(ge.default.vErrors,null),a.let(ge.default.errors,0),r.unevaluated&&CQ(e),bC(e),OQ(e)})}function CQ(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,le._)`${r}.evaluated`),t.if((0,le._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,le._)`${e.evaluated}.props`,(0,le._)`undefined`)),t.if((0,le._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,le._)`${e.evaluated}.items`,(0,le._)`undefined`))}function mC(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,le._)`/*# sourceURL=${r} */`:le.nil}function SQ(e,t){if(vC(e)&&(yC(e),gC(e))){$Q(e,t);return}(0,fC.boolOrEmptySchema)(e,t)}function gC({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function vC(e){return typeof e.schema!="boolean"}function $Q(e,t){const{schema:r,gen:a,opts:n}=e;n.$comment&&r.$comment&&wC(e),_Q(e),AQ(e);const i=a.const("_errs",ge.default.errors);bC(e,i),a.var(t,(0,le._)`${i} === ${ge.default.errors}`)}function yC(e){(0,vn.checkUnknownRules)(e),IQ(e)}function bC(e,t){if(e.opts.jtd)return CC(e,[],!1,t);const r=(0,pC.getSchemaTypes)(e.schema),a=(0,pC.coerceAndCheckDataType)(e,r);CC(e,r,!a,t)}function IQ(e){const{schema:t,errSchemaPath:r,opts:a,self:n}=e;t.$ref&&a.ignoreKeywordsWithRef&&(0,vn.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function EQ(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,vn.checkStrictMode)(e,"default is ignored in the schema root")}function _Q(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,gQ.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function AQ(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function wC({gen:e,schemaEnv:t,schema:r,errSchemaPath:a,opts:n}){const i=r.$comment;if(n.$comment===!0)e.code((0,le._)`${ge.default.self}.logger.log(${i})`);else if(typeof n.$comment=="function"){const o=(0,le.str)`${a}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,le._)`${ge.default.self}.opts.$comment(${i}, ${o}, ${s}.schema)`)}}function OQ(e){const{gen:t,schemaEnv:r,validateName:a,ValidationError:n,opts:i}=e;r.$async?t.if((0,le._)`${ge.default.errors} === 0`,()=>t.return(ge.default.data),()=>t.throw((0,le._)`new ${n}(${ge.default.vErrors})`)):(t.assign((0,le._)`${a}.errors`,ge.default.vErrors),i.unevaluated&&TQ(e),t.return((0,le._)`${ge.default.errors} === 0`))}function TQ({gen:e,evaluated:t,props:r,items:a}){r instanceof le.Name&&e.assign((0,le._)`${t}.props`,r),a instanceof le.Name&&e.assign((0,le._)`${t}.items`,a)}function CC(e,t,r,a){const{gen:n,schema:i,data:o,allErrors:s,opts:u,self:c}=e,{RULES:l}=c;if(i.$ref&&(u.ignoreKeywordsWithRef||!(0,vn.schemaHasRulesButRef)(i,l))){n.block(()=>EC(e,"$ref",l.all.$ref.definition));return}u.jtd||xQ(e,t),n.block(()=>{for(const f of l.rules)d(f);d(l.post)});function d(f){(0,dp.shouldUseGroup)(i,f)&&(f.type?(n.if((0,ic.checkDataType)(f.type,o,u.strictNumbers)),SC(e,f),t.length===1&&t[0]===f.type&&r&&(n.else(),(0,ic.reportTypeError)(e)),n.endIf()):SC(e,f),s||n.if((0,le._)`${ge.default.errors} === ${a||0}`))}}function SC(e,t){const{gen:r,schema:a,opts:{useDefaults:n}}=e;n&&(0,mQ.assignDefaults)(e,t.type),r.block(()=>{for(const i of t.rules)(0,dp.shouldUseRule)(a,i)&&EC(e,i.keyword,i.definition,t.type)})}function xQ(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(DQ(e,t),e.opts.allowUnionTypes||PQ(e,t),RQ(e,e.dataTypes))}function DQ(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{$C(e.dataTypes,r)||pp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),kQ(e,t)}}function PQ(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&pp(e,"use allowUnionTypes to allow union type keyword")}function RQ(e,t){const r=e.self.RULES.all;for(const a in r){const n=r[a];if(typeof n=="object"&&(0,dp.shouldUseRule)(e.schema,n)){const{type:i}=n.definition;i.length&&!i.some(o=>NQ(t,o))&&pp(e,`missing type "${i.join(",")}" for keyword "${a}"`)}}}function NQ(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function $C(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function kQ(e,t){const r=[];for(const a of e.dataTypes)$C(t,a)?r.push(a):t.includes("integer")&&a==="number"&&r.push("integer");e.dataTypes=r}function pp(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,vn.checkStrictMode)(e,t,e.opts.strictTypes)}class IC{constructor(t,r,a){if((0,Bo.validateKeywordUsage)(t,r,a),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=a,this.data=t.data,this.schema=t.schema[a],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,vn.schemaRefOrVal)(t,this.schema,a,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",_C(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Bo.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${a} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ge.default.errors))}result(t,r,a){this.failResult((0,le.not)(t),r,a)}failResult(t,r,a){this.gen.if(t),a?a():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,le.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,le._)`${r} !== undefined && (${(0,le.or)(this.invalid$data(),t)})`)}error(t,r,a){if(r){this.setParams(r),this._error(t,a),this.setParams({});return}this._error(t,a)}_error(t,r){(t?Lo.reportExtraError:Lo.reportError)(this,this.def.error,r)}$dataError(){(0,Lo.reportError)(this,this.def.$dataError||Lo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Lo.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,a=le.nil){this.gen.block(()=>{this.check$data(t,a),r()})}check$data(t=le.nil,r=le.nil){if(!this.$data)return;const{gen:a,schemaCode:n,schemaType:i,def:o}=this;a.if((0,le.or)((0,le._)`${n} === undefined`,r)),t!==le.nil&&a.assign(t,!0),(i.length||o.validateSchema)&&(a.elseIf(this.invalid$data()),this.$dataError(),t!==le.nil&&a.assign(t,!1)),a.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:a,def:n,it:i}=this;return(0,le.or)(o(),s());function o(){if(a.length){if(!(r instanceof le.Name))throw new Error("ajv implementation error");const u=Array.isArray(a)?a:[a];return(0,le._)`${(0,ic.checkDataTypes)(u,r,i.opts.strictNumbers,ic.DataType.Wrong)}`}return le.nil}function s(){if(n.validateSchema){const u=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,le._)`!${u}(${r})`}return le.nil}}subschema(t,r){const a=(0,fp.getSubschema)(this.it,t);(0,fp.extendSubschemaData)(a,this.it,t),(0,fp.extendSubschemaMode)(a,t);const n={...this.it,...a,items:void 0,props:void 0};return SQ(n,r),n}mergeEvaluated(t,r){const{it:a,gen:n}=this;a.opts.unevaluated&&(a.props!==!0&&t.props!==void 0&&(a.props=vn.mergeEvaluated.props(n,t.props,a.props,r)),a.items!==!0&&t.items!==void 0&&(a.items=vn.mergeEvaluated.items(n,t.items,a.items,r)))}mergeValidEvaluated(t,r){const{it:a,gen:n}=this;if(a.opts.unevaluated&&(a.props!==!0||a.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,le.Name)),!0}}yr.KeywordCxt=IC;function EC(e,t,r,a){const n=new IC(e,r,t);"code"in r?r.code(n,a):n.$data&&r.validate?(0,Bo.funcKeywordCode)(n,r):"macro"in r?(0,Bo.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,Bo.funcKeywordCode)(n,r)}const MQ=/^\/(?:[^~]|~0|~1)*$/,FQ=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function _C(e,{dataLevel:t,dataNames:r,dataPathArr:a}){let n,i;if(e==="")return ge.default.rootData;if(e[0]==="/"){if(!MQ.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,i=ge.default.rootData}else{const c=FQ.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const l=+c[1];if(n=c[2],n==="#"){if(l>=t)throw new Error(u("property/index",l));return a[t-l]}if(l>t)throw new Error(u("data",l));if(i=r[t-l],!n)return i}let o=i;const s=n.split("/");for(const c of s)c&&(i=(0,le._)`${i}${(0,le.getProperty)((0,vn.unescapeJsonPointer)(c))}`,o=(0,le._)`${o} && ${i}`);return o;function u(c,l){return`Cannot access ${c} ${l} levels up, current level is ${t}`}}yr.getData=_C;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});class jQ extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Go.default=jQ;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});const hp=Ot;class BQ extends Error{constructor(t,r,a,n){super(n||`can't resolve reference ${a} from id ${r}`),this.missingRef=(0,hp.resolveUrl)(t,r,a),this.missingSchema=(0,hp.normalizeId)((0,hp.getFullPath)(t,this.missingRef))}}Ci.default=BQ;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.resolveSchema=Vt.getCompilingSchema=Vt.resolveRef=Vt.compileSchema=Vt.SchemaEnv=void 0;const br=Ce,LQ=Go,ma=Hr,wr=Ot,AC=re,GQ=yr;class oc{constructor(t){var r;this.refs={},this.dynamicAnchors={};let a;typeof t.schema=="object"&&(a=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,wr.normalizeId)(a==null?void 0:a[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=a==null?void 0:a.$async,this.refs={}}}Vt.SchemaEnv=oc;function mp(e){const t=OC.call(this,e);if(t)return t;const r=(0,wr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:n}=this.opts.code,{ownProperties:i}=this.opts,o=new br.CodeGen(this.scope,{es5:a,lines:n,ownProperties:i});let s;e.$async&&(s=o.scopeValue("Error",{ref:LQ.default,code:(0,br._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const c={gen:o,allErrors:this.opts.allErrors,data:ma.default.data,parentData:ma.default.parentData,parentDataProperty:ma.default.parentDataProperty,dataNames:[ma.default.data],dataPathArr:[br.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,br.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:br.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,br._)`""`,opts:this.opts,self:this};let l;try{this._compilations.add(e),(0,GQ.validateFunctionCode)(c),o.optimize(this.opts.code.optimize);const d=o.toString();l=`${o.scopeRefs(ma.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,e));const p=new Function(`${ma.default.self}`,`${ma.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:u,validateCode:d,scopeValues:o._values}),this.opts.unevaluated){const{props:m,items:v}=c;p.evaluated={props:m instanceof br.Name?void 0:m,items:v instanceof br.Name?void 0:v,dynamicProps:m instanceof br.Name,dynamicItems:v instanceof br.Name},p.source&&(p.source.evaluated=(0,br.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(e)}}Vt.compileSchema=mp;function VQ(e,t,r){var a;r=(0,wr.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let i=UQ.call(this,e,r);if(i===void 0){const o=(a=e.localRefs)===null||a===void 0?void 0:a[r],{schemaId:s}=this.opts;o&&(i=new oc({schema:o,schemaId:s,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=WQ.call(this,i)}Vt.resolveRef=VQ;function WQ(e){return(0,wr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:mp.call(this,e)}function OC(e){for(const t of this._compilations)if(YQ(t,e))return t}Vt.getCompilingSchema=OC;function YQ(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function UQ(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||sc.call(this,e,t)}function sc(e,t){const r=this.opts.uriResolver.parse(t),a=(0,wr._getFullPath)(this.opts.uriResolver,r);let n=(0,wr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&a===n)return gp.call(this,r,e);const i=(0,wr.normalizeId)(a),o=this.refs[i]||this.schemas[i];if(typeof o=="string"){const s=sc.call(this,e,o);return typeof(s==null?void 0:s.schema)!="object"?void 0:gp.call(this,r,s)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||mp.call(this,o),i===(0,wr.normalizeId)(t)){const{schema:s}=o,{schemaId:u}=this.opts,c=s[u];return c&&(n=(0,wr.resolveUrl)(this.opts.uriResolver,n,c)),new oc({schema:s,schemaId:u,root:e,baseId:n})}return gp.call(this,r,o)}}Vt.resolveSchema=sc;const HQ=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function gp(e,{baseId:t,schema:r,root:a}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,AC.unescapeFragment)(s)];if(u===void 0)return;r=u;const c=typeof r=="object"&&r[this.opts.schemaId];!HQ.has(s)&&c&&(t=(0,wr.resolveUrl)(this.opts.uriResolver,t,c))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,AC.schemaHasRulesButRef)(r,this.RULES)){const s=(0,wr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=sc.call(this,a,s)}const{schemaId:o}=this.opts;if(i=i||new oc({schema:r,schemaId:o,root:a,baseId:t}),i.schema!==i.root.schema)return i}const XQ={$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};var vp={},uc={exports:{}};const zQ=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),TC=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function xC(e){let t="",r=0,a=0;for(a=0;a<e.length;a++)if(r=e[a].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[a];break}for(a+=1;a<e.length;a++){if(r=e[a].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[a]}return t}const ZQ=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function DC(e){return e.length=0,!0}function JQ(e,t,r){if(e.length){const a=xC(e);if(a!=="")t.push(a);else return r.error=!0,!1;e.length=0}return!0}function qQ(e){let t=0;const r={error:!1,address:"",zone:""},a=[],n=[];let i=!1,o=!1,s=JQ;for(let u=0;u<e.length;u++){const c=e[u];if(!(c==="["||c==="]"))if(c===":"){if(i===!0&&(o=!0),!s(n,a,r))break;if(++t>7){r.error=!0;break}u>0&&e[u-1]===":"&&(i=!0),a.push(":");continue}else if(c==="%"){if(!s(n,a,r))break;s=DC}else{n.push(c);continue}}return n.length&&(s===DC?r.zone=n.join(""):o?a.push(n.join("")):a.push(xC(n))),r.address=a.join(""),r}function PC(e){if(KQ(e,":")<2)return{host:e,isIPV6:!1};const t=qQ(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,a=t.address;return t.zone&&(r+="%"+t.zone,a+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:a}}}function KQ(e,t){let r=0;for(let a=0;a<e.length;a++)e[a]===t&&r++;return r}function QQ(e){let t=e;const r=[];let a=-1,n=0;for(;n=t.length;){if(n===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(n===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(n===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((a=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,a)),t=t.slice(a)}return r.join("")}function eee(e,t){const r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function tee(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!TC(r)){const a=PC(r);a.isIPV6===!0?r=`[${a.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}var RC={nonSimpleDomain:ZQ,recomposeAuthority:tee,normalizeComponentEncoding:eee,removeDotSegments:QQ,isIPv4:TC,isUUID:zQ,normalizeIPv6:PC};const{isUUID:ree}=RC,nee=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function NC(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function kC(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function MC(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function aee(e){return e.secure=NC(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function iee(e){if((e.port===(NC(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function oee(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(nee);if(r){const a=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const n=`${a}:${t.nid||e.nid}`,i=yp(n);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function see(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",a=e.nid.toLowerCase(),n=`${r}:${t.nid||a}`,i=yp(n);i&&(e=i.serialize(e,t));const o=e,s=e.nss;return o.path=`${a||t.nid}:${s}`,t.skipEscape=!0,o}function uee(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!ree(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function cee(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const FC={scheme:"http",domainHost:!0,parse:kC,serialize:MC},lee={scheme:"https",domainHost:FC.domainHost,parse:kC,serialize:MC},cc={scheme:"ws",domainHost:!0,parse:aee,serialize:iee},dee={scheme:"wss",domainHost:cc.domainHost,parse:cc.parse,serialize:cc.serialize},lc={http:FC,https:lee,ws:cc,wss:dee,urn:{scheme:"urn",parse:oee,serialize:see,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:uee,serialize:cee,skipNormalize:!0}};Object.setPrototypeOf(lc,null);function yp(e){return e&&(lc[e]||lc[e.toLowerCase()])||void 0}var fee={SCHEMES:lc,getSchemeHandler:yp};const{normalizeIPv6:pee,removeDotSegments:Vo,recomposeAuthority:hee,normalizeComponentEncoding:dc,isIPv4:mee,nonSimpleDomain:gee}=RC,{SCHEMES:vee,getSchemeHandler:jC}=fee;function yee(e,t){return typeof e=="string"?e=Zr(yn(e,t),t):typeof e=="object"&&(e=yn(Zr(e,t),t)),e}function bee(e,t,r){const a=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=BC(yn(e,a),yn(t,a),a,!0);return a.skipEscape=!0,Zr(n,a)}function BC(e,t,r,a){const n={};return a||(e=yn(Zr(e,r),r),t=yn(Zr(t,r),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=Vo(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=Vo(t.path||""),n.query=t.query):(t.path?(t.path[0]==="/"?n.path=Vo(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=Vo(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?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 wee(e,t,r){return typeof e=="string"?(e=unescape(e),e=Zr(dc(yn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Zr(dc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Zr(dc(yn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Zr(dc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Zr(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},a=Object.assign({},t),n=[],i=jC(a.scheme||r.scheme);i&&i.serialize&&i.serialize(r,a),r.path!==void 0&&(a.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),a.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");const o=hee(r);if(o!==void 0&&(a.reference!=="suffix"&&n.push("//"),n.push(o),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let s=r.path;!a.absolutePath&&(!i||!i.absolutePath)&&(s=Vo(s)),o===void 0&&s[0]==="/"&&s[1]==="/"&&(s="/%2F"+s.slice(2)),n.push(s)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}const Cee=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function yn(e,t){const r=Object.assign({},t),a={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let n=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);const i=e.match(Cee);if(i){if(a.scheme=i[1],a.userinfo=i[3],a.host=i[4],a.port=parseInt(i[5],10),a.path=i[6]||"",a.query=i[7],a.fragment=i[8],isNaN(a.port)&&(a.port=i[5]),a.host)if(mee(a.host)===!1){const u=pee(a.host);a.host=u.host.toLowerCase(),n=u.isIPV6}else n=!0;a.scheme===void 0&&a.userinfo===void 0&&a.host===void 0&&a.port===void 0&&a.query===void 0&&!a.path?a.reference="same-document":a.scheme===void 0?a.reference="relative":a.fragment===void 0?a.reference="absolute":a.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==a.reference&&(a.error=a.error||"URI is not a "+r.reference+" reference.");const o=jC(r.scheme||a.scheme);if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&a.host&&(r.domainHost||o&&o.domainHost)&&n===!1&&gee(a.host))try{a.host=URL.domainToASCII(a.host.toLowerCase())}catch(s){a.error=a.error||"Host's domain name can not be converted to ASCII: "+s}(!o||o&&!o.skipNormalize)&&(e.indexOf("%")!==-1&&(a.scheme!==void 0&&(a.scheme=unescape(a.scheme)),a.host!==void 0&&(a.host=unescape(a.host))),a.path&&(a.path=escape(unescape(a.path))),a.fragment&&(a.fragment=encodeURI(decodeURIComponent(a.fragment)))),o&&o.parse&&o.parse(a,r)}else a.error=a.error||"URI can not be parsed.";return a}const bp={SCHEMES:vee,normalize:yee,resolve:bee,resolveComponent:BC,equal:wee,serialize:Zr,parse:yn};uc.exports=bp,uc.exports.default=bp,uc.exports.fastUri=bp;var See=uc.exports;Object.defineProperty(vp,"__esModule",{value:!0});const LC=See;LC.code='require("ajv/dist/runtime/uri").default',vp.default=LC,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=yr;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ce;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 a=Go,n=Ci,i=pa,o=Vt,s=Ce,u=Ot,c=bt,l=re,d=XQ,f=vp,p=(V,D)=>new RegExp(V,D);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={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."},h={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function b(V){var D,M,P,S,T,j,z,H,Q,ce,Ee,ee,pt,te,Ve,wt,Ut,bn,qr,tr,Kr,Qr,Bn,wn,Cn;const Ir=V.strict,Sn=(D=V.code)===null||D===void 0?void 0:D.optimize,Sa=Sn===!0||Sn===void 0?1:Sn||0,rs=(P=(M=V.code)===null||M===void 0?void 0:M.regExp)!==null&&P!==void 0?P:p,Bc=(S=V.uriResolver)!==null&&S!==void 0?S:f.default;return{strictSchema:(j=(T=V.strictSchema)!==null&&T!==void 0?T:Ir)!==null&&j!==void 0?j:!0,strictNumbers:(H=(z=V.strictNumbers)!==null&&z!==void 0?z:Ir)!==null&&H!==void 0?H:!0,strictTypes:(ce=(Q=V.strictTypes)!==null&&Q!==void 0?Q:Ir)!==null&&ce!==void 0?ce:"log",strictTuples:(ee=(Ee=V.strictTuples)!==null&&Ee!==void 0?Ee:Ir)!==null&&ee!==void 0?ee:"log",strictRequired:(te=(pt=V.strictRequired)!==null&&pt!==void 0?pt:Ir)!==null&&te!==void 0?te:!1,code:V.code?{...V.code,optimize:Sa,regExp:rs}:{optimize:Sa,regExp:rs},loopRequired:(Ve=V.loopRequired)!==null&&Ve!==void 0?Ve:y,loopEnum:(wt=V.loopEnum)!==null&&wt!==void 0?wt:y,meta:(Ut=V.meta)!==null&&Ut!==void 0?Ut:!0,messages:(bn=V.messages)!==null&&bn!==void 0?bn:!0,inlineRefs:(qr=V.inlineRefs)!==null&&qr!==void 0?qr:!0,schemaId:(tr=V.schemaId)!==null&&tr!==void 0?tr:"$id",addUsedSchema:(Kr=V.addUsedSchema)!==null&&Kr!==void 0?Kr:!0,validateSchema:(Qr=V.validateSchema)!==null&&Qr!==void 0?Qr:!0,validateFormats:(Bn=V.validateFormats)!==null&&Bn!==void 0?Bn:!0,unicodeRegExp:(wn=V.unicodeRegExp)!==null&&wn!==void 0?wn:!0,int32range:(Cn=V.int32range)!==null&&Cn!==void 0?Cn:!0,uriResolver:Bc}}class w{constructor(D={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...b(D)};const{es5:M,lines:P}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:M,lines:P}),this.logger=W(D.logger);const S=D.validateFormats;D.validateFormats=!1,this.RULES=(0,i.getRules)(),C.call(this,g,D,"NOT SUPPORTED"),C.call(this,h,D,"DEPRECATED","warn"),this._metaOpts=k.call(this),D.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&R.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),_.call(this),D.validateFormats=S}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:M,schemaId:P}=this.opts;let S=d;P==="id"&&(S={...d},S.id=S.$id,delete S.$id),M&&D&&this.addMetaSchema(S,S[P],!1)}defaultMeta(){const{meta:D,schemaId:M}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[M]||D:void 0}validate(D,M){let P;if(typeof D=="string"){if(P=this.getSchema(D),!P)throw new Error(`no schema with key or ref "${D}"`)}else P=this.compile(D);const S=P(M);return"$async"in P||(this.errors=P.errors),S}compile(D,M){const P=this._addSchema(D,M);return P.validate||this._compileSchemaEnv(P)}compileAsync(D,M){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:P}=this.opts;return S.call(this,D,M);async function S(ce,Ee){await T.call(this,ce.$schema);const ee=this._addSchema(ce,Ee);return ee.validate||j.call(this,ee)}async function T(ce){ce&&!this.getSchema(ce)&&await S.call(this,{$ref:ce},!0)}async function j(ce){try{return this._compileSchemaEnv(ce)}catch(Ee){if(!(Ee instanceof n.default))throw Ee;return z.call(this,Ee),await H.call(this,Ee.missingSchema),j.call(this,ce)}}function z({missingSchema:ce,missingRef:Ee}){if(this.refs[ce])throw new Error(`AnySchema ${ce} is loaded but ${Ee} cannot be resolved`)}async function H(ce){const Ee=await Q.call(this,ce);this.refs[ce]||await T.call(this,Ee.$schema),this.refs[ce]||this.addSchema(Ee,ce,M)}async function Q(ce){const Ee=this._loading[ce];if(Ee)return Ee;try{return await(this._loading[ce]=P(ce))}finally{delete this._loading[ce]}}}addSchema(D,M,P,S=this.opts.validateSchema){if(Array.isArray(D)){for(const j of D)this.addSchema(j,void 0,P,S);return this}let T;if(typeof D=="object"){const{schemaId:j}=this.opts;if(T=D[j],T!==void 0&&typeof T!="string")throw new Error(`schema ${j} must be string`)}return M=(0,u.normalizeId)(M||T),this._checkUnique(M),this.schemas[M]=this._addSchema(D,P,M,S,!0),this}addMetaSchema(D,M,P=this.opts.validateSchema){return this.addSchema(D,M,!0,P),this}validateSchema(D,M){if(typeof D=="boolean")return!0;let P;if(P=D.$schema,P!==void 0&&typeof P!="string")throw new Error("$schema must be a string");if(P=P||this.opts.defaultMeta||this.defaultMeta(),!P)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const S=this.validate(P,D);if(!S&&M){const T="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(T);else throw new Error(T)}return S}getSchema(D){let M;for(;typeof(M=E.call(this,D))=="string";)D=M;if(M===void 0){const{schemaId:P}=this.opts,S=new o.SchemaEnv({schema:{},schemaId:P});if(M=o.resolveSchema.call(this,S,D),!M)return;this.refs[D]=M}return M.validate||this._compileSchemaEnv(M)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const M=E.call(this,D);return typeof M=="object"&&this._cache.delete(M.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const M=D;this._cache.delete(M);let P=D[this.opts.schemaId];return P&&(P=(0,u.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const M of D)this.addKeyword(M);return this}addKeyword(D,M){let P;if(typeof D=="string")P=D,typeof M=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),M.keyword=P);else if(typeof D=="object"&&M===void 0){if(M=D,P=M.keyword,Array.isArray(P)&&!P.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(U.call(this,P,M),!M)return(0,l.eachItem)(P,T=>Y.call(this,T)),this;Z.call(this,M);const S={...M,type:(0,c.getJSONTypes)(M.type),schemaType:(0,c.getJSONTypes)(M.schemaType)};return(0,l.eachItem)(P,S.type.length===0?T=>Y.call(this,T,S):T=>S.type.forEach(j=>Y.call(this,T,S,j))),this}getKeyword(D){const M=this.RULES.all[D];return typeof M=="object"?M.definition:!!M}removeKeyword(D){const{RULES:M}=this;delete M.keywords[D],delete M.all[D];for(const P of M.rules){const S=P.rules.findIndex(T=>T.keyword===D);S>=0&&P.rules.splice(S,1)}return this}addFormat(D,M){return typeof M=="string"&&(M=new RegExp(M)),this.formats[D]=M,this}errorsText(D=this.errors,{separator:M=", ",dataVar:P="data"}={}){return!D||D.length===0?"No errors":D.map(S=>`${P}${S.instancePath} ${S.message}`).reduce((S,T)=>S+M+T)}$dataMetaSchema(D,M){const P=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const S of M){const T=S.split("/").slice(1);let j=D;for(const z of T)j=j[z];for(const z in P){const H=P[z];if(typeof H!="object")continue;const{$data:Q}=H.definition,ce=j[z];Q&&ce&&(j[z]=se(ce))}}return D}_removeAllSchemas(D,M){for(const P in D){const S=D[P];(!M||M.test(P))&&(typeof S=="string"?delete D[P]:S&&!S.meta&&(this._cache.delete(S.schema),delete D[P]))}}_addSchema(D,M,P,S=this.opts.validateSchema,T=this.opts.addUsedSchema){let j;const{schemaId:z}=this.opts;if(typeof D=="object")j=D[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(D);if(H!==void 0)return H;P=(0,u.normalizeId)(j||P);const Q=u.getSchemaRefs.call(this,D,P);return H=new o.SchemaEnv({schema:D,schemaId:z,meta:M,baseId:P,localRefs:Q}),this._cache.set(H.schema,H),T&&!P.startsWith("#")&&(P&&this._checkUnique(P),this.refs[P]=H),S&&this.validateSchema(D,!0),H}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):o.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const M=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,D)}finally{this.opts=M}}}w.ValidationError=a.default,w.MissingRefError=n.default,e.default=w;function C(V,D,M,P="error"){for(const S in V){const T=S;T in D&&this.logger[P](`${M}: option ${S}. ${V[T]}`)}}function E(V){return V=(0,u.normalizeId)(V),this.schemas[V]||this.refs[V]}function _(){const V=this.opts.schemas;if(V)if(Array.isArray(V))this.addSchema(V);else for(const D in V)this.addSchema(V[D],D)}function N(){for(const V in this.opts.formats){const D=this.opts.formats[V];D&&this.addFormat(V,D)}}function R(V){if(Array.isArray(V)){this.addVocabulary(V);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in V){const M=V[D];M.keyword||(M.keyword=D),this.addKeyword(M)}}function k(){const V={...this.opts};for(const D of m)delete V[D];return V}const F={log(){},warn(){},error(){}};function W(V){if(V===!1)return F;if(V===void 0)return console;if(V.log&&V.warn&&V.error)return V;throw new Error("logger must implement log, warn and error methods")}const B=/^[a-z_$][a-z0-9_$:-]*$/i;function U(V,D){const{RULES:M}=this;if((0,l.eachItem)(V,P=>{if(M.keywords[P])throw new Error(`Keyword ${P} is already defined`);if(!B.test(P))throw new Error(`Keyword ${P} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function Y(V,D,M){var P;const S=D==null?void 0:D.post;if(M&&S)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:T}=this;let j=S?T.post:T.rules.find(({type:H})=>H===M);if(j||(j={type:M,rules:[]},T.rules.push(j)),T.keywords[V]=!0,!D)return;const z={keyword:V,definition:{...D,type:(0,c.getJSONTypes)(D.type),schemaType:(0,c.getJSONTypes)(D.schemaType)}};D.before?L.call(this,j,z,D.before):j.rules.push(z),T.all[V]=z,(P=D.implements)===null||P===void 0||P.forEach(H=>this.addKeyword(H))}function L(V,D,M){const P=V.rules.findIndex(S=>S.keyword===M);P>=0?V.rules.splice(P,0,D):(V.rules.push(D),this.logger.warn(`rule ${M} is not defined`))}function Z(V){let{metaSchema:D}=V;D!==void 0&&(V.$data&&this.opts.$data&&(D=se(D)),V.validateSchema=this.compile(D,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(V){return{anyOf:[V,J]}}}(G1);var wp={},Cp={},Sp={};Object.defineProperty(Sp,"__esModule",{value:!0});const $ee={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Sp.default=$ee;var ga={};Object.defineProperty(ga,"__esModule",{value:!0}),ga.callRef=ga.getValidate=void 0;const Iee=Ci,GC=Ie,Wt=Ce,Si=Hr,VC=Vt,fc=re,Eee={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:a}=e,{baseId:n,schemaEnv:i,validateName:o,opts:s,self:u}=a,{root:c}=i;if((r==="#"||r==="#/")&&n===c.baseId)return d();const l=VC.resolveRef.call(u,c,n,r);if(l===void 0)throw new Iee.default(a.opts.uriResolver,n,r);if(l instanceof VC.SchemaEnv)return f(l);return p(l);function d(){if(i===c)return pc(e,o,i,i.$async);const m=t.scopeValue("root",{ref:c});return pc(e,(0,Wt._)`${m}.validate`,c,c.$async)}function f(m){const v=WC(e,m);pc(e,v,m,m.$async)}function p(m){const v=t.scopeValue("schema",s.code.source===!0?{ref:m,code:(0,Wt.stringify)(m)}:{ref:m}),g=t.name("valid"),h=e.subschema({schema:m,dataTypes:[],schemaPath:Wt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated(h),e.ok(g)}}};function WC(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Wt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ga.getValidate=WC;function pc(e,t,r,a){const{gen:n,it:i}=e,{allErrors:o,schemaEnv:s,opts:u}=i,c=u.passContext?Si.default.this:Wt.nil;a?l():d();function l(){if(!s.$async)throw new Error("async schema referenced by sync schema");const m=n.let("valid");n.try(()=>{n.code((0,Wt._)`await ${(0,GC.callValidateCode)(e,t,c)}`),p(t),o||n.assign(m,!0)},v=>{n.if((0,Wt._)`!(${v} instanceof ${i.ValidationError})`,()=>n.throw(v)),f(v),o||n.assign(m,!1)}),e.ok(m)}function d(){e.result((0,GC.callValidateCode)(e,t,c),()=>p(t),()=>f(t))}function f(m){const v=(0,Wt._)`${m}.errors`;n.assign(Si.default.vErrors,(0,Wt._)`${Si.default.vErrors} === null ? ${v} : ${Si.default.vErrors}.concat(${v})`),n.assign(Si.default.errors,(0,Wt._)`${Si.default.vErrors}.length`)}function p(m){var v;if(!i.opts.unevaluated)return;const g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(i.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(i.props=fc.mergeEvaluated.props(n,g.props,i.props));else{const h=n.var("props",(0,Wt._)`${m}.evaluated.props`);i.props=fc.mergeEvaluated.props(n,h,i.props,Wt.Name)}if(i.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(i.items=fc.mergeEvaluated.items(n,g.items,i.items));else{const h=n.var("items",(0,Wt._)`${m}.evaluated.items`);i.items=fc.mergeEvaluated.items(n,h,i.items,Wt.Name)}}}ga.callRef=pc,ga.default=Eee,Object.defineProperty(Cp,"__esModule",{value:!0});const _ee=Sp,Aee=ga,Oee=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",_ee.default,Aee.default];Cp.default=Oee;var $p={},Ip={};Object.defineProperty(Ip,"__esModule",{value:!0});const hc=Ce,jn=hc.operators,mc={maximum:{okStr:"<=",ok:jn.LTE,fail:jn.GT},minimum:{okStr:">=",ok:jn.GTE,fail:jn.LT},exclusiveMaximum:{okStr:"<",ok:jn.LT,fail:jn.GTE},exclusiveMinimum:{okStr:">",ok:jn.GT,fail:jn.LTE}},Tee={message:({keyword:e,schemaCode:t})=>(0,hc.str)`must be ${mc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,hc._)`{comparison: ${mc[e].okStr}, limit: ${t}}`},xee={keyword:Object.keys(mc),type:"number",schemaType:"number",$data:!0,error:Tee,code(e){const{keyword:t,data:r,schemaCode:a}=e;e.fail$data((0,hc._)`${r} ${mc[t].fail} ${a} || isNaN(${r})`)}};Ip.default=xee;var Ep={};Object.defineProperty(Ep,"__esModule",{value:!0});const Wo=Ce,Dee={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,Wo.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Wo._)`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:a,it:n}=e,i=n.opts.multipleOfPrecision,o=t.let("res"),s=i?(0,Wo._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${i}`:(0,Wo._)`${o} !== parseInt(${o})`;e.fail$data((0,Wo._)`(${a} === 0 || (${o} = ${r}/${a}, ${s}))`)}};Ep.default=Dee;var _p={},Ap={};Object.defineProperty(Ap,"__esModule",{value:!0});function YC(e){const t=e.length;let r=0,a=0,n;for(;a<t;)r++,n=e.charCodeAt(a++),n>=55296&&n<=56319&&a<t&&(n=e.charCodeAt(a),(n&64512)===56320&&a++);return r}Ap.default=YC,YC.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(_p,"__esModule",{value:!0});const va=Ce,Pee=re,Ree=Ap,Nee={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,va.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,va._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a,it:n}=e,i=t==="maxLength"?va.operators.GT:va.operators.LT,o=n.opts.unicode===!1?(0,va._)`${r}.length`:(0,va._)`${(0,Pee.useFunc)(e.gen,Ree.default)}(${r})`;e.fail$data((0,va._)`${o} ${i} ${a}`)}};_p.default=Nee;var Op={};Object.defineProperty(Op,"__esModule",{value:!0});const kee=Ie,gc=Ce,Mee={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,gc.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,gc._)`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:a,schemaCode:n,it:i}=e,o=i.opts.unicodeRegExp?"u":"",s=r?(0,gc._)`(new RegExp(${n}, ${o}))`:(0,kee.usePattern)(e,a);e.fail$data((0,gc._)`!${s}.test(${t})`)}};Op.default=Mee;var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});const Yo=Ce,Fee={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Yo.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Yo._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a}=e,n=t==="maxProperties"?Yo.operators.GT:Yo.operators.LT;e.fail$data((0,Yo._)`Object.keys(${r}).length ${n} ${a}`)}};Tp.default=Fee;var xp={};Object.defineProperty(xp,"__esModule",{value:!0});const Uo=Ie,Ho=Ce,jee=re,Bee={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,Ho.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ho._)`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:a,data:n,$data:i,it:o}=e,{opts:s}=o;if(!i&&r.length===0)return;const u=r.length>=s.loopRequired;if(o.allErrors?c():l(),s.strictRequired){const p=e.parentSchema.properties,{definedProperties:m}=e.it;for(const v of r)if((p==null?void 0:p[v])===void 0&&!m.has(v)){const g=o.schemaEnv.baseId+o.errSchemaPath,h=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,jee.checkStrictMode)(o,h,o.opts.strictRequired)}}function c(){if(u||i)e.block$data(Ho.nil,d);else for(const p of r)(0,Uo.checkReportMissingProp)(e,p)}function l(){const p=t.let("missing");if(u||i){const m=t.let("valid",!0);e.block$data(m,()=>f(p,m)),e.ok(m)}else t.if((0,Uo.checkMissingProp)(e,r,p)),(0,Uo.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",a,p=>{e.setParams({missingProperty:p}),t.if((0,Uo.noPropertyInData)(t,n,p,s.ownProperties),()=>e.error())})}function f(p,m){e.setParams({missingProperty:p}),t.forOf(p,a,()=>{t.assign(m,(0,Uo.propertyInData)(t,n,p,s.ownProperties)),t.if((0,Ho.not)(m),()=>{e.error(),t.break()})},Ho.nil)}}};xp.default=Bee;var Dp={};Object.defineProperty(Dp,"__esModule",{value:!0});const Xo=Ce,Lee={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Xo.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Xo._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a}=e,n=t==="maxItems"?Xo.operators.GT:Xo.operators.LT;e.fail$data((0,Xo._)`${r}.length ${n} ${a}`)}};Dp.default=Lee;var Pp={},zo={};Object.defineProperty(zo,"__esModule",{value:!0});const UC=sC;UC.code='require("ajv/dist/runtime/equal").default',zo.default=UC,Object.defineProperty(Pp,"__esModule",{value:!0});const Rp=bt,Tt=Ce,Gee=re,Vee=zo,Wee={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,Tt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Tt._)`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:n,parentSchema:i,schemaCode:o,it:s}=e;if(!a&&!n)return;const u=t.let("valid"),c=i.items?(0,Rp.getSchemaTypes)(i.items):[];e.block$data(u,l,(0,Tt._)`${o} === false`),e.ok(u);function l(){const m=t.let("i",(0,Tt._)`${r}.length`),v=t.let("j");e.setParams({i:m,j:v}),t.assign(u,!0),t.if((0,Tt._)`${m} > 1`,()=>(d()?f:p)(m,v))}function d(){return c.length>0&&!c.some(m=>m==="object"||m==="array")}function f(m,v){const g=t.name("item"),h=(0,Rp.checkDataTypes)(c,g,s.opts.strictNumbers,Rp.DataType.Wrong),y=t.const("indices",(0,Tt._)`{}`);t.for((0,Tt._)`;${m}--;`,()=>{t.let(g,(0,Tt._)`${r}[${m}]`),t.if(h,(0,Tt._)`continue`),c.length>1&&t.if((0,Tt._)`typeof ${g} == "string"`,(0,Tt._)`${g} += "_"`),t.if((0,Tt._)`typeof ${y}[${g}] == "number"`,()=>{t.assign(v,(0,Tt._)`${y}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,Tt._)`${y}[${g}] = ${m}`)})}function p(m,v){const g=(0,Gee.useFunc)(t,Vee.default),h=t.name("outer");t.label(h).for((0,Tt._)`;${m}--;`,()=>t.for((0,Tt._)`${v} = ${m}; ${v}--;`,()=>t.if((0,Tt._)`${g}(${r}[${m}], ${r}[${v}])`,()=>{e.error(),t.assign(u,!1).break(h)})))}}};Pp.default=Wee;var Np={};Object.defineProperty(Np,"__esModule",{value:!0});const kp=Ce,Yee=re,Uee=zo,Hee={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,kp._)`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:a,schemaCode:n,schema:i}=e;a||i&&typeof i=="object"?e.fail$data((0,kp._)`!${(0,Yee.useFunc)(t,Uee.default)}(${r}, ${n})`):e.fail((0,kp._)`${i} !== ${r}`)}};Np.default=Hee;var Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});const Zo=Ce,Xee=re,zee=zo,Zee={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Zo._)`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:a,schema:n,schemaCode:i,it:o}=e;if(!a&&n.length===0)throw new Error("enum must have non-empty array");const s=n.length>=o.opts.loopEnum;let u;const c=()=>u??(u=(0,Xee.useFunc)(t,zee.default));let l;if(s||a)l=t.let("valid"),e.block$data(l,d);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const p=t.const("vSchema",i);l=(0,Zo.or)(...n.map((m,v)=>f(p,v)))}e.pass(l);function d(){t.assign(l,!1),t.forOf("v",i,p=>t.if((0,Zo._)`${c()}(${r}, ${p})`,()=>t.assign(l,!0).break()))}function f(p,m){const v=n[m];return typeof v=="object"&&v!==null?(0,Zo._)`${c()}(${r}, ${p}[${m}])`:(0,Zo._)`${r} === ${v}`}}};Mp.default=Zee,Object.defineProperty($p,"__esModule",{value:!0});const Jee=Ip,qee=Ep,Kee=_p,Qee=Op,ete=Tp,tte=xp,rte=Dp,nte=Pp,ate=Np,ite=Mp,ote=[Jee.default,qee.default,Kee.default,Qee.default,ete.default,tte.default,rte.default,nte.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ate.default,ite.default];$p.default=ote;var Fp={},$i={};Object.defineProperty($i,"__esModule",{value:!0}),$i.validateAdditionalItems=void 0;const ya=Ce,jp=re,ste={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,ya.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ya._)`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:a}=t;if(!Array.isArray(a)){(0,jp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}HC(e,a)}};function HC(e,t){const{gen:r,schema:a,data:n,keyword:i,it:o}=e;o.items=!0;const s=r.const("len",(0,ya._)`${n}.length`);if(a===!1)e.setParams({len:t.length}),e.pass((0,ya._)`${s} <= ${t.length}`);else if(typeof a=="object"&&!(0,jp.alwaysValidSchema)(o,a)){const c=r.var("valid",(0,ya._)`${s} <= ${t.length}`);r.if((0,ya.not)(c),()=>u(c)),e.ok(c)}function u(c){r.forRange("i",t.length,s,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:jp.Type.Num},c),o.allErrors||r.if((0,ya.not)(c),()=>r.break())})}}$i.validateAdditionalItems=HC,$i.default=ste;var Bp={},Ii={};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.validateTuple=void 0;const XC=Ce,vc=re,ute=Ie,cte={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return zC(e,"additionalItems",t);r.items=!0,!(0,vc.alwaysValidSchema)(r,t)&&e.ok((0,ute.validateArray)(e))}};function zC(e,t,r=e.schema){const{gen:a,parentSchema:n,data:i,keyword:o,it:s}=e;l(n),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=vc.mergeEvaluated.items(a,r.length,s.items));const u=a.name("valid"),c=a.const("len",(0,XC._)`${i}.length`);r.forEach((d,f)=>{(0,vc.alwaysValidSchema)(s,d)||(a.if((0,XC._)`${c} > ${f}`,()=>e.subschema({keyword:o,schemaProp:f,dataProp:f},u)),e.ok(u))});function l(d){const{opts:f,errSchemaPath:p}=s,m=r.length,v=m===d.minItems&&(m===d.maxItems||d[t]===!1);if(f.strictTuples&&!v){const g=`"${o}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,vc.checkStrictMode)(s,g,f.strictTuples)}}}Ii.validateTuple=zC,Ii.default=cte,Object.defineProperty(Bp,"__esModule",{value:!0});const lte=Ii,dte={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,lte.validateTuple)(e,"items")};Bp.default=dte;var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});const ZC=Ce,fte=re,pte=Ie,hte=$i,mte={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,ZC.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ZC._)`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:a}=e,{prefixItems:n}=r;a.items=!0,!(0,fte.alwaysValidSchema)(a,t)&&(n?(0,hte.validateAdditionalItems)(e,n):e.ok((0,pte.validateArray)(e)))}};Lp.default=mte;var Gp={};Object.defineProperty(Gp,"__esModule",{value:!0});const lr=Ce,yc=re,gte={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>t===void 0?(0,lr.str)`must contain at least ${e} valid item(s)`:(0,lr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,lr._)`{minContains: ${e}}`:(0,lr._)`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:n,it:i}=e;let o,s;const{minContains:u,maxContains:c}=a;i.opts.next?(o=u===void 0?1:u,s=c):o=1;const l=t.const("len",(0,lr._)`${n}.length`);if(e.setParams({min:o,max:s}),s===void 0&&o===0){(0,yc.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&o>s){(0,yc.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,yc.alwaysValidSchema)(i,r)){let v=(0,lr._)`${l} >= ${o}`;s!==void 0&&(v=(0,lr._)`${v} && ${l} <= ${s}`),e.pass(v);return}i.items=!0;const d=t.name("valid");s===void 0&&o===1?p(d,()=>t.if(d,()=>t.break())):o===0?(t.let(d,!0),s!==void 0&&t.if((0,lr._)`${n}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const v=t.name("_valid"),g=t.let("count",0);p(v,()=>t.if(v,()=>m(g)))}function p(v,g){t.forRange("i",0,l,h=>{e.subschema({keyword:"contains",dataProp:h,dataPropType:yc.Type.Num,compositeRule:!0},v),g()})}function m(v){t.code((0,lr._)`${v}++`),s===void 0?t.if((0,lr._)`${v} >= ${o}`,()=>t.assign(d,!0).break()):(t.if((0,lr._)`${v} > ${s}`,()=>t.assign(d,!1).break()),o===1?t.assign(d,!0):t.if((0,lr._)`${v} >= ${o}`,()=>t.assign(d,!0)))}}};Gp.default=gte;var JC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ce,r=re,a=Ie;e.error={message:({params:{property:u,depsCount:c,deps:l}})=>{const d=c===1?"property":"properties";return(0,t.str)`must have ${d} ${l} when property ${u} is present`},params:({params:{property:u,depsCount:c,deps:l,missingProperty:d}})=>(0,t._)`{property: ${u},
|
|
96
96
|
missingProperty: ${d},
|
|
97
97
|
depsCount: ${c},
|
|
98
|
-
deps: ${l}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[c,l]=i(u);o(u,c),s(u,l)}};function i({schema:u}){const c={},l={};for(const d in u){if(d==="__proto__")continue;const f=Array.isArray(u[d])?c:l;f[d]=u[d]}return[c,l]}function o(u,c=u.schema){const{gen:l,data:d,it:f}=u;if(Object.keys(c).length===0)return;const p=l.let("missing");for(const m in c){const v=c[m];if(v.length===0)continue;const g=(0,a.propertyInData)(l,d,m,f.opts.ownProperties);u.setParams({property:m,depsCount:v.length,deps:v.join(", ")}),f.allErrors?l.if(g,()=>{for(const h of v)(0,a.checkReportMissingProp)(u,h)}):(l.if((0,t._)`${g} && (${(0,a.checkMissingProp)(u,v,p)})`),(0,a.reportMissingProp)(u,p),l.else())}}e.validatePropertyDeps=o;function s(u,c=u.schema){const{gen:l,data:d,keyword:f,it:p}=u,m=l.name("valid");for(const v in c)(0,r.alwaysValidSchema)(p,c[v])||(l.if((0,a.propertyInData)(l,d,v,p.opts.ownProperties),()=>{const g=u.subschema({keyword:f,schemaProp:v},m);u.mergeValidEvaluated(g,m)},()=>l.var(m,!0)),u.ok(m))}e.validateSchemaDeps=s,e.default=n})(ZC);var Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});const JC=Ce,gte=re,vte={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,JC._)`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:a,it:n}=e;if((0,gte.alwaysValidSchema)(n,r))return;const i=t.name("valid");t.forIn("key",a,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},i),t.if((0,JC.not)(i),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(i)}};Vp.default=vte;var yc={};Object.defineProperty(yc,"__esModule",{value:!0});const bc=Ie,Cr=Ce,yte=Hr,wc=re,bte={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,Cr._)`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");const{allErrors:s,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,wc.alwaysValidSchema)(o,r))return;const c=(0,bc.allSchemaProperties)(a.properties),l=(0,bc.allSchemaProperties)(a.patternProperties);d(),e.ok((0,Cr._)`${i} === ${yte.default.errors}`);function d(){t.forIn("key",n,g=>{!c.length&&!l.length?m(g):t.if(f(g),()=>m(g))})}function f(g){let h;if(c.length>8){const y=(0,wc.schemaRefOrVal)(o,a.properties,"properties");h=(0,bc.isOwnProperty)(t,y,g)}else c.length?h=(0,Cr.or)(...c.map(y=>(0,Cr._)`${g} === ${y}`)):h=Cr.nil;return l.length&&(h=(0,Cr.or)(h,...l.map(y=>(0,Cr._)`${(0,bc.usePattern)(e,y)}.test(${g})`))),(0,Cr.not)(h)}function p(g){t.code((0,Cr._)`delete ${n}[${g}]`)}function m(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){p(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,wc.alwaysValidSchema)(o,r)){const h=t.name("valid");u.removeAdditional==="failing"?(v(g,h,!1),t.if((0,Cr.not)(h),()=>{e.reset(),p(g)})):(v(g,h),s||t.if((0,Cr.not)(h),()=>t.break()))}}function v(g,h,y){const b={keyword:"additionalProperties",dataProp:g,dataPropType:wc.Type.Str};y===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,h)}}};yc.default=bte;var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});const wte=yr,qC=Ie,Yp=re,KC=yc,Cte={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:n,it:i}=e;i.opts.removeAdditional==="all"&&a.additionalProperties===void 0&&KC.default.code(new wte.KeywordCxt(i,KC.default,"additionalProperties"));const o=(0,qC.allSchemaProperties)(r);for(const d of o)i.definedProperties.add(d);i.opts.unevaluated&&o.length&&i.props!==!0&&(i.props=Yp.mergeEvaluated.props(t,(0,Yp.toHash)(o),i.props));const s=o.filter(d=>!(0,Yp.alwaysValidSchema)(i,r[d]));if(s.length===0)return;const u=t.name("valid");for(const d of s)c(d)?l(d):(t.if((0,qC.propertyInData)(t,n,d,i.opts.ownProperties)),l(d),i.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function c(d){return i.opts.useDefaults&&!i.compositeRule&&r[d].default!==void 0}function l(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}}};Wp.default=Cte;var Up={};Object.defineProperty(Up,"__esModule",{value:!0});const QC=Ie,Cc=Ce,eS=re,tS=re,Ste={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:n,it:i}=e,{opts:o}=i,s=(0,QC.allSchemaProperties)(r),u=s.filter(v=>(0,eS.alwaysValidSchema)(i,r[v]));if(s.length===0||u.length===s.length&&(!i.opts.unevaluated||i.props===!0))return;const c=o.strictSchema&&!o.allowMatchingProperties&&n.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof Cc.Name)&&(i.props=(0,tS.evaluatedPropsToName)(t,i.props));const{props:d}=i;f();function f(){for(const v of s)c&&p(v),i.allErrors?m(v):(t.var(l,!0),m(v),t.if(l))}function p(v){for(const g in c)new RegExp(v).test(g)&&(0,eS.checkStrictMode)(i,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}function m(v){t.forIn("key",a,g=>{t.if((0,Cc._)`${(0,QC.usePattern)(e,v)}.test(${g})`,()=>{const h=u.includes(v);h||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:tS.Type.Str},l),i.opts.unevaluated&&d!==!0?t.assign((0,Cc._)`${d}[${g}]`,!0):!h&&!i.allErrors&&t.if((0,Cc.not)(l),()=>t.break())})})}}};Up.default=Ste;var Hp={};Object.defineProperty(Hp,"__esModule",{value:!0});const $te=re,Ite={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:a}=e;if((0,$te.alwaysValidSchema)(a,r)){e.fail();return}const n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Hp.default=Ite;var Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});const Ete={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ie.validateUnion,error:{message:"must match a schema in anyOf"}};Xp.default=Ete;var zp={};Object.defineProperty(zp,"__esModule",{value:!0});const Sc=Ce,_te=re,Ate={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Sc._)`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:a,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&a.discriminator)return;const i=r,o=t.let("valid",!1),s=t.let("passing",null),u=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(o,()=>e.reset(),()=>e.error(!0));function c(){i.forEach((l,d)=>{let f;(0,_te.alwaysValidSchema)(n,l)?t.var(u,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,Sc._)`${u} && ${o}`).assign(o,!1).assign(s,(0,Sc._)`[${s}, ${d}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(s,d),f&&e.mergeEvaluated(f,Sc.Name)})})}}};zp.default=Ate;var Zp={};Object.defineProperty(Zp,"__esModule",{value:!0});const Ote=re,Tte={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const n=t.name("valid");r.forEach((i,o)=>{if((0,Ote.alwaysValidSchema)(a,i))return;const s=e.subschema({keyword:"allOf",schemaProp:o},n);e.ok(n),e.mergeEvaluated(s)})}};Zp.default=Tte;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});const $c=Ce,rS=re,xte={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,$c.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,$c._)`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:a}=e;r.then===void 0&&r.else===void 0&&(0,rS.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const n=nS(a,"then"),i=nS(a,"else");if(!n&&!i)return;const o=t.let("valid",!0),s=t.name("_valid");if(u(),e.reset(),n&&i){const l=t.let("ifClause");e.setParams({ifClause:l}),t.if(s,c("then",l),c("else",l))}else n?t.if(s,c("then")):t.if((0,$c.not)(s),c("else"));e.pass(o,()=>e.error(!0));function u(){const l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(l)}function c(l,d){return()=>{const f=e.subschema({keyword:l},s);t.assign(o,s),e.mergeValidEvaluated(f,o),d?t.assign(d,(0,$c._)`${l}`):e.setParams({ifClause:l})}}}};function nS(e,t){const r=e.schema[t];return r!==void 0&&!(0,rS.alwaysValidSchema)(e,r)}Jp.default=xte;var qp={};Object.defineProperty(qp,"__esModule",{value:!0});const Dte=re,Pte={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Dte.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};qp.default=Pte,Object.defineProperty(Fp,"__esModule",{value:!0});const Rte=$i,Nte=Bp,kte=Ii,Mte=Lp,Fte=Gp,jte=ZC,Bte=Vp,Lte=yc,Gte=Wp,Vte=Up,Wte=Hp,Yte=Xp,Ute=zp,Hte=Zp,Xte=Jp,zte=qp;function Zte(e=!1){const t=[Wte.default,Yte.default,Ute.default,Hte.default,Xte.default,zte.default,Bte.default,Lte.default,jte.default,Gte.default,Vte.default];return e?t.push(Nte.default,Mte.default):t.push(Rte.default,kte.default),t.push(Fte.default),t}Fp.default=Zte;var Kp={},Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});const ft=Ce,Jte={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,ft.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ft._)`{format: ${e}}`},code(e,t){const{gen:r,data:a,$data:n,schema:i,schemaCode:o,it:s}=e,{opts:u,errSchemaPath:c,schemaEnv:l,self:d}=s;if(!u.validateFormats)return;n?f():p();function f(){const m=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),v=r.const("fDef",(0,ft._)`${m}[${o}]`),g=r.let("fType"),h=r.let("format");r.if((0,ft._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,ft._)`${v}.type || "string"`).assign(h,(0,ft._)`${v}.validate`),()=>r.assign(g,(0,ft._)`"string"`).assign(h,v)),e.fail$data((0,ft.or)(y(),b()));function y(){return u.strictSchema===!1?ft.nil:(0,ft._)`${o} && !${h}`}function b(){const w=l.$async?(0,ft._)`(${v}.async ? await ${h}(${a}) : ${h}(${a}))`:(0,ft._)`${h}(${a})`,C=(0,ft._)`(typeof ${h} == "function" ? ${w} : ${h}.test(${a}))`;return(0,ft._)`${h} && ${h} !== true && ${g} === ${t} && !${C}`}}function p(){const m=d.formats[i];if(!m){y();return}if(m===!0)return;const[v,g,h]=b(m);v===t&&e.pass(w());function y(){if(u.strictSchema===!1){d.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${i}" ignored in schema at path "${c}"`}}function b(C){const E=C instanceof RegExp?(0,ft.regexpCode)(C):u.code.formats?(0,ft._)`${u.code.formats}${(0,ft.getProperty)(i)}`:void 0,_=r.scopeValue("formats",{key:i,ref:C,code:E});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,ft._)`${_}.validate`]:["string",C,_]}function w(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,ft._)`await ${h}(${a})`}return typeof g=="function"?(0,ft._)`${h}(${a})`:(0,ft._)`${h}.test(${a})`}}}};Qp.default=Jte,Object.defineProperty(Kp,"__esModule",{value:!0});const qte=[Qp.default];Kp.default=qte;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.contentVocabulary=Ei.metadataVocabulary=void 0,Ei.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ei.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(wp,"__esModule",{value:!0});const Kte=Cp,Qte=$p,ere=Fp,tre=Kp,aS=Ei,rre=[Kte.default,Qte.default,(0,ere.default)(),tre.default,aS.metadataVocabulary,aS.contentVocabulary];wp.default=rre;var eh={},Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.DiscrError=void 0;var iS;(function(e){e.Tag="tag",e.Mapping="mapping"})(iS||(Ic.DiscrError=iS={})),Object.defineProperty(eh,"__esModule",{value:!0});const _i=Ce,th=Ic,oS=Vt,nre=Ci,are=re,ire={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===th.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,_i._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:a,parentSchema:n,it:i}=e,{oneOf:o}=n;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=a.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),c=t.const("tag",(0,_i._)`${r}${(0,_i.getProperty)(s)}`);t.if((0,_i._)`typeof ${c} == "string"`,()=>l(),()=>e.error(!1,{discrError:th.DiscrError.Tag,tag:c,tagName:s})),e.ok(u);function l(){const p=f();t.if(!1);for(const m in p)t.elseIf((0,_i._)`${c} === ${m}`),t.assign(u,d(p[m]));t.else(),e.error(!1,{discrError:th.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function d(p){const m=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:p},m);return e.mergeEvaluated(v,_i.Name),m}function f(){var p;const m={},v=h(n);let g=!0;for(let w=0;w<o.length;w++){let C=o[w];if(C!=null&&C.$ref&&!(0,are.schemaHasRulesButRef)(C,i.self.RULES)){const _=C.$ref;if(C=oS.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,_),C instanceof oS.SchemaEnv&&(C=C.schema),C===void 0)throw new nre.default(i.opts.uriResolver,i.baseId,_)}const E=(p=C==null?void 0:C.properties)===null||p===void 0?void 0:p[s];if(typeof E!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);g=g&&(v||h(C)),y(E,w)}if(!g)throw new Error(`discriminator: "${s}" must be required`);return m;function h({required:w}){return Array.isArray(w)&&w.includes(s)}function y(w,C){if(w.const)b(w.const,C);else if(w.enum)for(const E of w.enum)b(E,C);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function b(w,C){if(typeof w!="string"||w in m)throw new Error(`discriminator: "${s}" values must be unique strings`);m[w]=C}}}};eh.default=ire;const ore={$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=t.Ajv=void 0;const r=L1,a=wp,n=eh,i=ore,o=["/properties"],s="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(m,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=yr;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Ce;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Go;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=Ci;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Qf,Qf.exports);var sS=Qf.exports;const sre=Xt(sS);var rh={exports:{}},uS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,k){return{validate:R,compare:k}}e.fullFormats={date:t(i,o),time:t(u,c),"date-time":t(d,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"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:N,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:h,int32:{type:"number",validate:w},int64:{type:"number",validate:C},float:{type:"number",validate:E},double:{type:"number",validate:E},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"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,f),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);function r(R){return R%4===0&&(R%100!==0||R%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(R){const k=a.exec(R);if(!k)return!1;const F=+k[1],W=+k[2],B=+k[3];return W>=1&&W<=12&&B>=1&&B<=(W===2&&r(F)?29:n[W])}function o(R,k){if(R&&k)return R>k?1:R<k?-1:0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(R,k){const F=s.exec(R);if(!F)return!1;const W=+F[1],B=+F[2],U=+F[3],Y=F[5];return(W<=23&&B<=59&&U<=59||W===23&&B===59&&U===60)&&(!k||Y!=="")}function c(R,k){if(!(R&&k))return;const F=s.exec(R),W=s.exec(k);if(F&&W)return R=F[1]+F[2]+F[3]+(F[4]||""),k=W[1]+W[2]+W[3]+(W[4]||""),R>k?1:R<k?-1:0}const l=/t|\s/i;function d(R){const k=R.split(l);return k.length===2&&i(k[0])&&u(k[1],!0)}function f(R,k){if(!(R&&k))return;const[F,W]=R.split(l),[B,U]=k.split(l),Y=o(F,B);if(Y!==void 0)return Y||c(W,U)}const p=/\/|:/,m=/^(?:[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;function v(R){return p.test(R)&&m.test(R)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function h(R){return g.lastIndex=0,g.test(R)}const y=-2147483648,b=2**31-1;function w(R){return Number.isInteger(R)&&R<=b&&R>=y}function C(R){return Number.isInteger(R)}function E(){return!0}const _=/[^\\]\\Z/;function N(R){if(_.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(uS);var cS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=sS,r=Ce,a=r.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},i={message:({keyword:s,schemaCode:u})=>r.str`should be ${n[s].okStr} ${u}`,params:({keyword:s,schemaCode:u})=>r._`{comparison: ${n[s].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:i,code(s){const{gen:u,data:c,schemaCode:l,keyword:d,it:f}=s,{opts:p,self:m}=f;if(!p.validateFormats)return;const v=new t.KeywordCxt(f,m.RULES.all.format.definition,"format");v.$data?g():h();function g(){const b=u.scopeValue("formats",{ref:m.formats,code:p.code.formats}),w=u.const("fmt",r._`${b}[${v.schemaCode}]`);s.fail$data(r.or(r._`typeof ${w} != "object"`,r._`${w} instanceof RegExp`,r._`typeof ${w}.compare != "function"`,y(w)))}function h(){const b=v.schema,w=m.formats[b];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${d}": format "${b}" does not define "compare" function`);const C=u.scopeValue("formats",{key:b,ref:w,code:p.code.formats?r._`${p.code.formats}${r.getProperty(b)}`:void 0});s.fail$data(y(C))}function y(b){return r._`${b}.compare(${c}, ${l}) ${n[d].fail} 0`}},dependencies:["format"]};const o=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=o})(cS),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=uS,a=cS,n=Ce,i=new n.Name("fullFormats"),o=new n.Name("fastFormats"),s=(c,l={keywords:!0})=>{if(Array.isArray(l))return u(c,l,r.fullFormats,i),c;const[d,f]=l.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,i],p=l.formats||r.formatNames;return u(c,p,d,f),l.keywords&&a.default(c),c};s.get=(c,l="full")=>{const f=(l==="fast"?r.fastFormats:r.fullFormats)[c];if(!f)throw new Error(`Unknown format "${c}"`);return f};function u(c,l,d,f){var p,m;(p=(m=c.opts.code).formats)!==null&&p!==void 0||(m.formats=n._`require("ajv-formats/dist/formats").${f}`);for(const v of l)c.addFormat(v,d[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(rh,rh.exports);var ure=rh.exports;const lS=Xt(ure),cre={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},lre=/^(#?([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*\)))$/,dre=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function fre(e,t,r={},a,n=sre){const i=new n({...cre,...r});return a?lS(i,a):a!==!1&&lS(i),i.addFormat("data-url",dre),i.addFormat("color",lre),i.addKeyword(Gn),i.addKeyword(Gc),Array.isArray(e)&&i.addMetaSchema(e),qe(t)&&Object.keys(t).forEach(o=>{i.addFormat(o,t[o])}),i}function pre(e=[],t){return e.map(r=>{var a;const{instancePath:n,keyword:i,params:o,schemaPath:s,parentSchema:u,...c}=r;let{message:l=""}=c,d=n.replace(/\//g,"."),f=`${d} ${l}`.trim();const p=[...((a=o.deps)===null||a===void 0?void 0:a.split(", "))||[],o.missingProperty,o.property].filter(m=>m);if(p.length>0)p.forEach(m=>{const v=d?`${d}.${m}`:m;let g=fe(ue(t,`${v.replace(/^\./,"")}`)).title;if(g===void 0){const h=s.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([m]);g=fe(ue(t,h)).title}if(g)l=l.replace(`'${m}'`,`'${g}'`);else{const h=ue(u,[at,m,"title"]);h&&(l=l.replace(`'${m}'`,`'${h}'`))}}),f=l;else{const m=fe(ue(t,`${d.replace(/^\./,"")}`)).title;if(m)f=`'${m}' ${l}`.trim();else{const v=u==null?void 0:u.title;v&&(f=`'${v}' ${l}`.trim())}}return"missingProperty"in o&&(d=d?`${d}.${o.missingProperty}`:o.missingProperty),{name:i,property:d,message:l,params:o,stack:f,schemaPath:s}})}function hre(e,t,r,a,n,i,o){const{validationError:s}=t;let u=pre(t.errors,o);s&&(u=[...u,{stack:s.message}]),typeof i=="function"&&(u=i(u,o));let c=jW(u);if(s&&(c={...c,$schema:{__errors:[s.message]}}),typeof n!="function")return{errors:u,errorSchema:c};const l=Ly(e,a,r,a,!0),d=n(l,us(l),o),f=Ed(d);return tu({errors:u,errorSchema:c},f)}class mre{constructor(t,r){const{additionalMetaSchemas:a,customFormats:n,ajvOptionsOverrides:i,ajvFormatOptions:o,AjvClass:s}=t;this.ajv=fre(a,n,i,o,s),this.localizer=r}reset(){this.ajv.removeSchema()}toErrorList(t,r=[]){return uo(t,r)}rawValidation(t,r){var a,n;let i,o;t[rn]&&(o=this.ajv.getSchema(t[rn]));try{o===void 0&&(o=this.ajv.compile(t)),o(r)}catch(u){i=u}let s;return o&&(typeof this.localizer=="function"&&(((a=o.errors)!==null&&a!==void 0?a:[]).forEach(u=>{var c;["missingProperty","property"].forEach(l=>{var d;!((d=u.params)===null||d===void 0)&&d[l]&&(u.params[l]=`'${u.params[l]}'`)}),!((c=u.params)===null||c===void 0)&&c.deps&&(u.params.deps=u.params.deps.split(", ").map(l=>`'${l}'`).join(", "))}),this.localizer(o.errors),((n=o.errors)!==null&&n!==void 0?n:[]).forEach(u=>{var c;["missingProperty","property"].forEach(l=>{var d;!((d=u.params)===null||d===void 0)&&d[l]&&(u.params[l]=u.params[l].slice(1,-1))}),!((c=u.params)===null||c===void 0)&&c.deps&&(u.params.deps=u.params.deps.split(", ").map(l=>l.slice(1,-1)).join(", "))})),s=o.errors||void 0,o.errors=null),{errors:s,validationError:i}}validateFormData(t,r,a,n,i){const o=this.rawValidation(r,t);return hre(this,o,t,r,a,n,i)}handleSchemaUpdate(t){var r,a;const n=(r=t[rn])!==null&&r!==void 0?r:Dh;this.ajv.getSchema(n)===void 0?this.ajv.addSchema(t,n):Ue(t,(a=this.ajv.getSchema(n))===null||a===void 0?void 0:a.schema)||(this.ajv.removeSchema(n),this.ajv.addSchema(t,n))}isValid(t,r,a){var n;try{this.handleSchemaUpdate(a);const i=_d(t),o=(n=i[rn])!==null&&n!==void 0?n:kW(i);let s;return s=this.ajv.getSchema(o),s===void 0&&(s=this.ajv.addSchema(i,o).getSchema(o)||this.ajv.compile(i)),s(r)}catch(i){return console.warn("Error encountered compiling schema:",i),!1}}}function gre(e={},t){return new mre(e,t)}const vre=gre();var yre=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bre(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nh={exports:{}},ah={exports:{}};/*! Axios v1.13.1 Copyright (c) 2025 Matt Zabriskie and contributors */function dS(e,t){return function(){return e.apply(t,arguments)}}const{toString:wre}=Object.prototype,{getPrototypeOf:ih}=Object,{iterator:Ec,toStringTag:fS}=Symbol,_c=(e=>t=>{const r=wre.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Sr=e=>(e=e.toLowerCase(),t=>_c(t)===e),Ac=e=>t=>typeof t===e,{isArray:Ai}=Array,Oi=Ac("undefined");function Jo(e){return e!==null&&!Oi(e)&&e.constructor!==null&&!Oi(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pS=Sr("ArrayBuffer");function Cre(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pS(e.buffer),t}const Sre=Ac("string"),Yt=Ac("function"),hS=Ac("number"),qo=e=>e!==null&&typeof e=="object",$re=e=>e===!0||e===!1,Oc=e=>{if(_c(e)!=="object")return!1;const t=ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(fS in e)&&!(Ec in e)},Ire=e=>{if(!qo(e)||Jo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ere=Sr("Date"),_re=Sr("File"),Are=Sr("Blob"),Ore=Sr("FileList"),Tre=e=>qo(e)&&Yt(e.pipe),xre=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=_c(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},Dre=Sr("URLSearchParams"),[Pre,Rre,Nre,kre]=["ReadableStream","Request","Response","Headers"].map(Sr),Mre=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ko(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),Ai(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{if(Jo(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(a=0;a<o;a++)s=i[a],t.call(null,e[s],s,e)}}function mS(e,t){if(Jo(e))return null;t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const ba=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:yre,gS=e=>!Oi(e)&&e!==ba;function oh(){const{caseless:e,skipUndefined:t}=gS(this)&&this||{},r={},a=(n,i)=>{const o=e&&mS(r,i)||i;Oc(r[o])&&Oc(n)?r[o]=oh(r[o],n):Oc(n)?r[o]=oh({},n):Ai(n)?r[o]=n.slice():(!t||!Oi(n))&&(r[o]=n)};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ko(arguments[n],a);return r}const Fre=(e,t,r,{allOwnKeys:a}={})=>(Ko(t,(n,i)=>{r&&Yt(n)?e[i]=dS(n,r):e[i]=n},{allOwnKeys:a}),e),jre=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bre=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Lre=(e,t,r,a)=>{let n,i,o;const s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)o=n[i],(!a||a(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&ih(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Gre=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},Vre=e=>{if(!e)return null;if(Ai(e))return e;let t=e.length;if(!hS(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Wre=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ih(Uint8Array)),Yre=(e,t)=>{const r=(e&&e[Ec]).call(e);let a;for(;(a=r.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},Ure=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},Hre=Sr("HTMLFormElement"),Xre=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,a){return r.toUpperCase()+a}),vS=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zre=Sr("RegExp"),yS=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};Ko(r,(n,i)=>{let o;(o=t(n,i,e))!==!1&&(a[i]=o||n)}),Object.defineProperties(e,a)},Zre=e=>{yS(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(Yt(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jre=(e,t)=>{const r={},a=n=>{n.forEach(i=>{r[i]=!0})};return Ai(e)?a(e):a(String(e).split(t)),r},qre=()=>{},Kre=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Qre(e){return!!(e&&Yt(e.append)&&e[fS]==="FormData"&&e[Ec])}const ene=e=>{const t=new Array(10),r=(a,n)=>{if(qo(a)){if(t.indexOf(a)>=0)return;if(Jo(a))return a;if(!("toJSON"in a)){t[n]=a;const i=Ai(a)?[]:{};return Ko(a,(o,s)=>{const u=r(o,n+1);!Oi(u)&&(i[s]=u)}),t[n]=void 0,i}}return a};return r(e,0)},tne=Sr("AsyncFunction"),rne=e=>e&&(qo(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),bS=((e,t)=>e?setImmediate:t?((r,a)=>(ba.addEventListener("message",({source:n,data:i})=>{n===ba&&i===r&&a.length&&a.shift()()},!1),n=>{a.push(n),ba.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(ba.postMessage)),nne=typeof queueMicrotask<"u"?queueMicrotask.bind(ba):typeof process<"u"&&process.nextTick||bS;var G={isArray:Ai,isArrayBuffer:pS,isBuffer:Jo,isFormData:xre,isArrayBufferView:Cre,isString:Sre,isNumber:hS,isBoolean:$re,isObject:qo,isPlainObject:Oc,isEmptyObject:Ire,isReadableStream:Pre,isRequest:Rre,isResponse:Nre,isHeaders:kre,isUndefined:Oi,isDate:Ere,isFile:_re,isBlob:Are,isRegExp:zre,isFunction:Yt,isStream:Tre,isURLSearchParams:Dre,isTypedArray:Wre,isFileList:Ore,forEach:Ko,merge:oh,extend:Fre,trim:Mre,stripBOM:jre,inherits:Bre,toFlatObject:Lre,kindOf:_c,kindOfTest:Sr,endsWith:Gre,toArray:Vre,forEachEntry:Yre,matchAll:Ure,isHTMLForm:Hre,hasOwnProperty:vS,hasOwnProp:vS,reduceDescriptors:yS,freezeMethods:Zre,toObjectSet:Jre,toCamelCase:Xre,noop:qre,toFiniteNumber:Kre,findKey:mS,global:ba,isContextDefined:gS,isSpecCompliantForm:Qre,toJSONObject:ene,isAsyncFn:tne,isThenable:rne,setImmediate:bS,asap:nne,isIterable:e=>e!=null&&Yt(e[Ec])};function ye(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}G.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const wS=ye.prototype,CS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{CS[e]={value:e}}),Object.defineProperties(ye,CS),Object.defineProperty(wS,"isAxiosError",{value:!0}),ye.from=(e,t,r,a,n,i)=>{const o=Object.create(wS);G.toFlatObject(e,o,function(c){return c!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return ye.call(o,s,u,r,a,n),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};var ane=null;function sh(e){return G.isPlainObject(e)||G.isArray(e)}function SS(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function $S(e,t,r){return e?e.concat(t).map(function(a,n){return a=SS(a),!r&&n?"["+a+"]":a}).join(r?".":""):t}function ine(e){return G.isArray(e)&&!e.some(sh)}const one=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function Tc(e,t,r){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!G.isUndefined(m[p])});const a=r.metaTokens,n=r.visitor||c,i=r.dots,o=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(n))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(G.isDate(p))return p.toISOString();if(G.isBoolean(p))return p.toString();if(!s&&G.isBlob(p))throw new ye("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(p)||G.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,v){let g=p;if(p&&!v&&typeof p=="object"){if(G.endsWith(m,"{}"))m=a?m:m.slice(0,-2),p=JSON.stringify(p);else if(G.isArray(p)&&ine(p)||(G.isFileList(p)||G.endsWith(m,"[]"))&&(g=G.toArray(p)))return m=SS(m),g.forEach(function(h,y){!(G.isUndefined(h)||h===null)&&t.append(o===!0?$S([m],y,i):o===null?m:m+"[]",u(h))}),!1}return sh(p)?!0:(t.append($S(v,m,i),u(p)),!1)}const l=[],d=Object.assign(one,{defaultVisitor:c,convertValue:u,isVisitable:sh});function f(p,m){if(!G.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(p),G.forEach(p,function(v,g){(!(G.isUndefined(v)||v===null)&&n.call(t,v,G.isString(g)?g.trim():g,m,d))===!0&&f(v,m?m.concat(g):[g])}),l.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return f(e),t}function IS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uh(e,t){this._pairs=[],e&&Tc(e,this,t)}const ES=uh.prototype;ES.append=function(e,t){this._pairs.push([e,t])},ES.toString=function(e){const t=e?function(r){return e.call(this,r,IS)}:IS;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function sne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _S(e,t,r){if(!t)return e;const a=r&&r.encode||sne;G.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(n?i=n(t,r):i=G.isURLSearchParams(t)?t.toString():new uh(t,r).toString(a),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class une{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}var AS=une,OS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cne=typeof URLSearchParams<"u"?URLSearchParams:uh,lne=typeof FormData<"u"?FormData:null,dne=typeof Blob<"u"?Blob:null,fne={isBrowser:!0,classes:{URLSearchParams:cne,FormData:lne,Blob:dne},protocols:["http","https","file","blob","url","data"]};const ch=typeof window<"u"&&typeof document<"u",lh=typeof navigator=="object"&&navigator||void 0,pne=ch&&(!lh||["ReactNative","NativeScript","NS"].indexOf(lh.product)<0),hne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mne=ch&&window.location.href||"http://localhost";var gne=Object.freeze({__proto__:null,hasBrowserEnv:ch,hasStandardBrowserWebWorkerEnv:hne,hasStandardBrowserEnv:pne,navigator:lh,origin:mne}),Rt={...gne,...fne};function vne(e,t){return Tc(e,new Rt.classes.URLSearchParams,{visitor:function(r,a,n,i){return Rt.isNode&&G.isBuffer(r)?(this.append(a,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function yne(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bne(e){const t={},r=Object.keys(e);let a;const n=r.length;let i;for(a=0;a<n;a++)i=r[a],t[i]=e[i];return t}function TS(e){function t(r,a,n,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),u=i>=r.length;return o=!o&&G.isArray(n)?n.length:o,u?(G.hasOwnProp(n,o)?n[o]=[n[o],a]:n[o]=a,!s):((!n[o]||!G.isObject(n[o]))&&(n[o]=[]),t(r,a,n[o],i)&&G.isArray(n[o])&&(n[o]=bne(n[o])),!s)}if(G.isFormData(e)&&G.isFunction(e.entries)){const r={};return G.forEachEntry(e,(a,n)=>{t(yne(a),n,r,0)}),r}return null}function wne(e,t,r){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const dh={transitional:OS,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",a=r.indexOf("application/json")>-1,n=G.isObject(e);if(n&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return a?JSON.stringify(TS(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vne(e,this.formSerializer).toString();if((i=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Tc(i?{"files[]":e}:e,o&&new o,this.formSerializer)}}return n||a?(t.setContentType("application/json",!1),wne(e)):e}],transformResponse:[function(e){const t=this.transitional||dh.transitional,r=t&&t.forcedJSONParsing,a=this.responseType==="json";if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(i){if(n)throw i.name==="SyntaxError"?ye.from(i,ye.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{dh.headers[e]={}});var fh=dh;const Cne=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Sne=e=>{const t={};let r,a,n;return e&&e.split(`
|
|
99
|
-
`).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&
|
|
100
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const r=(this[xS]=this[xS]={accessors:{}}).accessors,a=this.prototype;function n(i){const o=Qo(i);r[o]||(_ne(a,i),r[o]=!0)}return G.isArray(t)?t.forEach(n):n(t),this}}Dc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Dc.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}}),G.freezeMethods(Dc);var $r=Dc;function hh(e,t){const r=this||fh,a=t||r,n=$r.from(a.headers);let i=a.data;return G.forEach(e,function(o){i=o.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function DS(e){return!!(e&&e.__CANCEL__)}function Ti(e,t,r){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,r),this.name="CanceledError"}G.inherits(Ti,ye,{__CANCEL__:!0});function PS(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ane(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function One(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=a[i];o||(o=u),r[n]=s,a[n]=u;let l=i,d=0;for(;l!==n;)d+=r[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),u-o<t)return;const f=c&&u-c;return f?Math.round(d*1e3/f):void 0}}function Tne(e,t){let r=0,a=1e3/t,n,i;const o=(s,u=Date.now())=>{r=u,n=null,i&&(clearTimeout(i),i=null),e(...s)};return[(...s)=>{const u=Date.now(),c=u-r;c>=a?o(s,u):(n=s,i||(i=setTimeout(()=>{i=null,o(n)},a-c)))},()=>n&&o(n)]}const Pc=(e,t,r=3)=>{let a=0;const n=One(50,250);return Tne(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,u=o-a,c=n(u),l=o<=s;a=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},RS=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},NS=e=>(...t)=>G.asap(()=>e(...t));var xne=Rt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Rt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,Dne=Rt.hasStandardBrowserEnv?{write(e,t,r,a,n,i,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];G.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),G.isString(a)&&s.push(`path=${a}`),G.isString(n)&&s.push(`domain=${n}`),i===!0&&s.push("secure"),G.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Pne(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rne(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kS(e,t,r){let a=!Pne(t);return e&&(a||r==!1)?Rne(e,t):t}const MS=e=>e instanceof $r?{...e}:e;function wa(e,t){t=t||{};const r={};function a(c,l,d,f){return G.isPlainObject(c)&&G.isPlainObject(l)?G.merge.call({caseless:f},c,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function n(c,l,d,f){if(G.isUndefined(l)){if(!G.isUndefined(c))return a(void 0,c,d,f)}else return a(c,l,d,f)}function i(c,l){if(!G.isUndefined(l))return a(void 0,l)}function o(c,l){if(G.isUndefined(l)){if(!G.isUndefined(c))return a(void 0,c)}else return a(void 0,l)}function s(c,l,d){if(d in t)return a(c,l);if(d in e)return a(void 0,c)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,l,d)=>n(MS(c),MS(l),d,!0)};return G.forEach(Object.keys({...e,...t}),function(c){const l=u[c]||n,d=l(e[c],t[c],c);G.isUndefined(d)&&l!==s||(r[c]=d)}),r}var FS=e=>{const t=wa({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:i,headers:o,auth:s}=t;if(t.headers=o=$r.from(o),t.url=_S(kS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),G.isFormData(r)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(G.isFunction(r.getHeaders)){const u=r.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([l,d])=>{c.includes(l.toLowerCase())&&o.set(l,d)})}}if(Rt.hasStandardBrowserEnv&&(a&&G.isFunction(a)&&(a=a(t)),a||a!==!1&&xne(t.url))){const u=n&&i&&Dne.read(i);u&&o.set(n,u)}return t},Nne=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,r){const a=FS(e);let n=a.data;const i=$r.from(a.headers).normalize();let{responseType:o,onUploadProgress:s,onDownloadProgress:u}=a,c,l,d,f,p;function m(){f&&f(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function g(){if(!v)return;const y=$r.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};PS(function(w){t(w),m()},function(w){r(w),m()},b),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(r(new ye("Request aborted",ye.ECONNABORTED,e,v)),v=null)},v.onerror=function(y){const b=y&&y.message?y.message:"Network Error",w=new ye(b,ye.ERR_NETWORK,e,v);w.event=y||null,r(w),v=null},v.ontimeout=function(){let y=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const b=a.transitional||OS;a.timeoutErrorMessage&&(y=a.timeoutErrorMessage),r(new ye(y,b.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,v)),v=null},n===void 0&&i.setContentType(null),"setRequestHeader"in v&&G.forEach(i.toJSON(),function(y,b){v.setRequestHeader(b,y)}),G.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),o&&o!=="json"&&(v.responseType=a.responseType),u&&([d,p]=Pc(u,!0),v.addEventListener("progress",d)),s&&v.upload&&([l,f]=Pc(s),v.upload.addEventListener("progress",l),v.upload.addEventListener("loadend",f)),(a.cancelToken||a.signal)&&(c=y=>{v&&(r(!y||y.type?new Ti(null,e,v):y),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const h=Ane(a.url);if(h&&Rt.protocols.indexOf(h)===-1){r(new ye("Unsupported protocol "+h+":",ye.ERR_BAD_REQUEST,e));return}v.send(n||null)})},kne=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const i=function(c){if(!n){n=!0,s();const l=c instanceof Error?c:this.reason;a.abort(l instanceof ye?l:new Ti(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=a;return u.unsubscribe=()=>G.asap(s),u}};const Mne=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},Fne=async function*(e,t){for await(const r of jne(e))yield*Mne(r,t)},jne=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},jS=(e,t,r,a)=>{const n=Fne(e,t);let i=0,o,s=u=>{o||(o=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await n.next();if(c){s(),u.close();return}let d=l.byteLength;if(r){let f=i+=d;r(f)}u.enqueue(new Uint8Array(l))}catch(c){throw s(c),c}},cancel(u){return s(u),n.return()}},{highWaterMark:2})},BS=64*1024,{isFunction:Rc}=G,Bne=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:LS,TextEncoder:GS}=G.global,VS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Lne=e=>{e=G.merge.call({skipUndefined:!0},Bne,e);const{fetch:t,Request:r,Response:a}=e,n=t?Rc(t):typeof fetch=="function",i=Rc(r),o=Rc(a);if(!n)return!1;const s=n&&Rc(LS),u=n&&(typeof GS=="function"?(m=>v=>m.encode(v))(new GS):async m=>new Uint8Array(await new r(m).arrayBuffer())),c=i&&s&&VS(()=>{let m=!1;const v=new r(Rt.origin,{body:new LS,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!v}),l=o&&s&&VS(()=>G.isReadableStream(new a("").body)),d={stream:l&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!d[m]&&(d[m]=(v,g)=>{let h=v&&v[m];if(h)return h.call(v);throw new ye(`Response type '${m}' is not supported`,ye.ERR_NOT_SUPPORT,g)})});const f=async m=>{if(m==null)return 0;if(G.isBlob(m))return m.size;if(G.isSpecCompliantForm(m))return(await new r(Rt.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(G.isArrayBufferView(m)||G.isArrayBuffer(m))return m.byteLength;if(G.isURLSearchParams(m)&&(m=m+""),G.isString(m))return(await u(m)).byteLength},p=async(m,v)=>G.toFiniteNumber(m.getContentLength())??f(v);return async m=>{let{url:v,method:g,data:h,signal:y,cancelToken:b,timeout:w,onDownloadProgress:C,onUploadProgress:E,responseType:_,headers:N,withCredentials:R="same-origin",fetchOptions:k}=FS(m),F=t||fetch;_=_?(_+"").toLowerCase():"text";let W=kne([y,b&&b.toAbortSignal()],w),B=null;const U=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let Y;try{if(E&&c&&g!=="get"&&g!=="head"&&(Y=await p(N,h))!==0){let D=new r(v,{method:"POST",body:h,duplex:"half"}),M;if(G.isFormData(h)&&(M=D.headers.get("content-type"))&&N.setContentType(M),D.body){const[P,S]=RS(Y,Pc(NS(E)));h=jS(D.body,BS,P,S)}}G.isString(R)||(R=R?"include":"omit");const L=i&&"credentials"in r.prototype,Z={...k,signal:W,method:g.toUpperCase(),headers:N.normalize().toJSON(),body:h,duplex:"half",credentials:L?R:void 0};B=i&&new r(v,Z);let J=await(i?F(B,k):F(v,Z));const se=l&&(_==="stream"||_==="response");if(l&&(C||se&&U)){const D={};["status","statusText","headers"].forEach(T=>{D[T]=J[T]});const M=G.toFiniteNumber(J.headers.get("content-length")),[P,S]=C&&RS(M,Pc(NS(C),!0))||[];J=new a(jS(J.body,BS,P,()=>{S&&S(),U&&U()}),D)}_=_||"text";let V=await d[G.findKey(d,_)||"text"](J,m);return!se&&U&&U(),await new Promise((D,M)=>{PS(D,M,{data:V,headers:$r.from(J.headers),status:J.status,statusText:J.statusText,config:m,request:B})})}catch(L){throw U&&U(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,m,B),{cause:L.cause||L}):ye.from(L,L&&L.code,m,B)}}},Gne=new Map,WS=e=>{let t=e&&e.env||{};const{fetch:r,Request:a,Response:n}=t,i=[a,n,r];let o=i.length,s=o,u,c,l=Gne;for(;s--;)u=i[s],c=l.get(u),c===void 0&&l.set(u,c=s?new Map:Lne(t)),l=c;return c};WS();const mh={http:ane,xhr:Nne,fetch:{get:WS}};G.forEach(mh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const YS=e=>`- ${e}`,Vne=e=>G.isFunction(e)||e===null||e===!1;function Wne(e,t){e=G.isArray(e)?e:[e];const{length:r}=e;let a,n;const i={};for(let o=0;o<r;o++){a=e[o];let s;if(n=a,!Vne(a)&&(n=mh[(s=String(a)).toLowerCase()],n===void 0))throw new ye(`Unknown adapter '${s}'`);if(n&&(G.isFunction(n)||(n=n.get(t))))break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
|
|
101
|
-
`+o.map(
|
|
102
|
-
`):" "+
|
|
103
|
-
`+i):a.stack=i}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=wa(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:i}=r;a!==void 0&&kc.assertOptions(a,{silentJSONParsing:Jr.transitional(Jr.boolean),forcedJSONParsing:Jr.transitional(Jr.boolean),clarifyTimeoutError:Jr.transitional(Jr.boolean)},!1),n!=null&&(G.isFunction(n)?r.paramsSerializer={serialize:n}:kc.assertOptions(n,{encode:Jr.function,serialize:Jr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),kc.assertOptions(r,{baseUrl:Jr.spelling("baseURL"),withXsrfToken:Jr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&G.merge(i.common,i[r.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=$r.concat(o,i);const s=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(u=u&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let l,d=0,f;if(!u){const m=[HS.bind(this),void 0];for(m.unshift(...s),m.push(...c),f=m.length,l=Promise.resolve(r);d<f;)l=l.then(m[d++],m[d++]);return l}f=s.length;let p=r;for(;d<f;){const m=s[d++],v=s[d++];try{p=m(p)}catch(g){v.call(this,g);break}}try{l=HS.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)l=l.then(c[d++],c[d++]);return l}getUri(t){t=wa(this.defaults,t);const r=kS(t.baseURL,t.url,t.allowAbsoluteUrls);return _S(r,t.params,t.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){Mc.prototype[e]=function(t,r){return this.request(wa(r||{},{method:e,url:t,data:(r||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(r){return function(a,n,i){return this.request(wa(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:n}))}}Mc.prototype[e]=t(),Mc.prototype[e+"Form"]=t(!0)});var Fc=Mc;class vh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});const a=this;this.promise.then(n=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](n);a._listeners=null}),this.promise.then=n=>{let i;const o=new Promise(s=>{a.subscribe(s),i=s}).then(n);return o.cancel=function(){a.unsubscribe(i)},o},t(function(n,i,o){a.reason||(a.reason=new Ti(n,i,o),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new vh(function(r){t=r}),cancel:t}}}var Une=vh;function Hne(e){return function(t){return e.apply(null,t)}}function Xne(e){return G.isObject(e)&&e.isAxiosError===!0}const yh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yh).forEach(([e,t])=>{yh[t]=e});var zne=yh;function ZS(e){const t=new Fc(e),r=dS(Fc.prototype.request,t);return G.extend(r,Fc.prototype,t,{allOwnKeys:!0}),G.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return ZS(wa(e,a))},r}const gt=ZS(fh);gt.Axios=Fc,gt.CanceledError=Ti,gt.CancelToken=Une,gt.isCancel=DS,gt.VERSION=XS,gt.toFormData=Tc,gt.AxiosError=ye,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=Hne,gt.isAxiosError=Xne,gt.mergeConfig=wa,gt.AxiosHeaders=$r,gt.formToJSON=e=>TS(G.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=US.getAdapter,gt.HttpStatusCode=zne,gt.default=gt;var Zne=gt;const Jne="8.1.6",qne={version:Jne};var JS=function e(t,r,a){if(typeof t!="object"||t===null)throw new Error("Non object passed to convertKeys: "+t);if(Array.isArray(t))return t;Array.isArray(a)||(a=[]);for(const n in t)if(t.hasOwnProperty(n)){const i=r(n);typeof t[n]=="object"&&t[n]!==null&&!a.includes(n)&&!a.includes(i)&&(t[n]=e(t[n],r,a)),i!==n&&(t[i]=t[n],delete t[n])}return t},Kne=function(e){if(typeof e!="string")throw new Error("String expected for conversion to snake case");return e.trim().replace(/_+|\-+/g," ").replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,function(t,r){return Number(t)===0?"":r===0?t.toLowerCase():t.toUpperCase()})};const Qne=JS,eae=Kne;var qS=function(e,t){return Qne(e,eae,t)},tae=function(e){if(typeof e!="string")throw new Error("String expected for conversion to snake case");return e.trim().replace(/(\s*\-*\b\w|[A-Z])/g,function(t){return t=t.trim().toLowerCase().replace("-",""),(t[0]==="_"?"":"_")+t}).slice(1)};const rae=JS,nae=tae;var KS=function(e,t){return rae(e,nae,t)},QS=function(e){return JSON.parse(JSON.stringify(e))},aae=function(e){if(e.indexOf("<")===-1)return["",e];let[t,r]=e.split("<");return t=t.trim(),r=r.replace(">","").trim(),[t,r]};const iae=aae;var e$=class Eh{constructor(t){t&&this.fromData(t)}fromData(t){if(typeof t=="string"){const[n,i]=iae(t);t={name:n,email:i}}if(typeof t!="object")throw new Error("Expecting object or string for EmailAddress data");const{name:r,email:a}=t;this.setEmail(a),this.setName(r)}setName(t){if(!(typeof t>"u")){if(typeof t!="string")throw new Error("String expected for `name`");this.name=t}}setEmail(t){if(typeof t>"u")throw new Error("Must provide `email`");if(typeof t!="string")throw new Error("String expected for `email`");this.email=t}toJSON(){const{email:t,name:r}=this,a={email:t};return r!==""&&(a.name=r),a}static create(t){return Array.isArray(t)?t.filter(r=>!!r).map(r=>this.create(r)):t instanceof Eh?t:new Eh(t)}},oae=function(e){return sae(e)&&!uae(e)};function sae(e){return!!e&&typeof e=="object"}function uae(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||dae(e)}var cae=typeof Symbol=="function"&&Symbol.for,lae=cae?Symbol.for("react.element"):60103;function dae(e){return e.$$typeof===lae}function fae(e){return Array.isArray(e)?[]:{}}function es(e,t){return t.clone!==!1&&t.isMergeableObject(e)?xi(fae(e),e,t):e}function pae(e,t,r){return e.concat(t).map(function(a){return es(a,r)})}function hae(e,t){if(!t.customMerge)return xi;var r=t.customMerge(e);return typeof r=="function"?r:xi}function mae(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function t$(e){return Object.keys(e).concat(mae(e))}function r$(e,t){try{return t in e}catch{return!1}}function gae(e,t){return r$(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function vae(e,t,r){var a={};return r.isMergeableObject(e)&&t$(e).forEach(function(n){a[n]=es(e[n],r)}),t$(t).forEach(function(n){gae(e,n)||(r$(e,n)&&r.isMergeableObject(t[n])?a[n]=hae(n,r)(e[n],t[n],r):a[n]=es(t[n],r))}),a}function xi(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||pae,r.isMergeableObject=r.isMergeableObject||oae,r.cloneUnlessOtherwiseSpecified=es;var a=Array.isArray(t),n=Array.isArray(e),i=a===n;return i?a?r.arrayMerge(e,t,r):vae(e,t,r):es(t,r)}xi.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,a){return xi(r,a,t)},{})};var yae=xi,bae=yae,wae=function e(t,r="{{",a="}}"){if(Array.isArray(t))return t.map(i=>e(i,r,a));const n={};for(const i in t)t.hasOwnProperty(i)&&(n[r+i+a]=String(t[i]));return n};const Ca=e$,Cae=qS,Sae=KS,$ae=QS,Iae=bae,Eae=wae;var _ae=class{constructor(e){this.to=[],this.cc=[],this.bcc=[],this.headers={},this.customArgs={},this.substitutions={},this.substitutionWrappers=["{{","}}"],this.dynamicTemplateData={},e&&this.fromData(e)}fromData(e){if(typeof e!="object")throw new Error("Expecting object for Mail data");e=$ae(e),e=Cae(e,["substitutions","dynamicTemplateData","customArgs","headers"]);const{to:t,from:r,cc:a,bcc:n,subject:i,headers:o,customArgs:s,sendAt:u,substitutions:c,substitutionWrappers:l,dynamicTemplateData:d}=e;this.setTo(t),this.setFrom(r),this.setCc(a),this.setBcc(n),this.setSubject(i),this.setHeaders(o),this.setSubstitutions(c),this.setSubstitutionWrappers(l),this.setCustomArgs(s),this.setDynamicTemplateData(d),this.setSendAt(u)}setSubject(e){if(!(typeof e>"u")){if(typeof e!="string")throw new Error("String expected for `subject`");this.subject=e}}setSendAt(e){if(!(typeof e>"u")){if(!Number.isInteger(e))throw new Error("Integer expected for `sendAt`");this.sendAt=e}}setTo(e){typeof e>"u"||(Array.isArray(e)||(e=[e]),this.to=Ca.create(e))}setFrom(e){typeof e>"u"||(this.from=Ca.create(e))}addTo(e){typeof e>"u"||this.to.push(Ca.create(e))}setCc(e){typeof e>"u"||(Array.isArray(e)||(e=[e]),this.cc=Ca.create(e))}addCc(e){typeof e>"u"||this.cc.push(Ca.create(e))}setBcc(e){typeof e>"u"||(Array.isArray(e)||(e=[e]),this.bcc=Ca.create(e))}addBcc(e){typeof e>"u"||this.bcc.push(Ca.create(e))}setHeaders(e){if(!(typeof e>"u")){if(typeof e!="object"||e===null)throw new Error("Object expected for `headers`");this.headers=e}}addHeader(e,t){if(typeof e!="string")throw new Error("String expected for header key");if(typeof t!="string")throw new Error("String expected for header value");this.headers[e]=t}setCustomArgs(e){if(!(typeof e>"u")){if(typeof e!="object"||e===null)throw new Error("Object expected for `customArgs`");this.customArgs=e}}addCustomArg(e,t){if(typeof e!="string")throw new Error("String expected for custom arg key");if(typeof t!="string")throw new Error("String expected for custom arg value");this.customArgs[e]=t}setSubstitutions(e){if(!(typeof e>"u")){if(typeof e!="object")throw new Error("Object expected for `substitutions`");this.substitutions=e}}addSubstitution(e,t){if(typeof e!="string")throw new Error("String expected for substitution key");if(typeof t!="string"&&typeof t!="number")throw new Error("String or Number expected for substitution value");this.substitutions[e]=t}reverseMergeSubstitutions(e){if(!(typeof e>"u"||e===null)){if(typeof e!="object")throw new Error("Object expected for `substitutions` in reverseMergeSubstitutions");this.substitutions=Object.assign({},e,this.substitutions)}}setSubstitutionWrappers(e){if(!(typeof e>"u"||e===null)){if(!Array.isArray(e)||e.length!==2)throw new Error("Array expected with two elements for `substitutionWrappers`");this.substitutionWrappers=e}}deepMergeDynamicTemplateData(e){if(!(typeof e>"u"||e===null)){if(typeof e!="object")throw new Error("Object expected for `dynamicTemplateData` in deepMergeDynamicTemplateData");this.dynamicTemplateData=Iae(e,this.dynamicTemplateData)}}setDynamicTemplateData(e){if(!(typeof e>"u")){if(typeof e!="object")throw new Error("Object expected for `dynamicTemplateData`");this.dynamicTemplateData=e}}toJSON(){const{to:e,from:t,cc:r,bcc:a,subject:n,headers:i,customArgs:o,sendAt:s,substitutions:u,substitutionWrappers:c,dynamicTemplateData:l}=this,d={to:e};if(Array.isArray(r)&&r.length>0&&(d.cc=r),Array.isArray(a)&&a.length>0&&(d.bcc=a),Object.keys(i).length>0&&(d.headers=i),u&&Object.keys(u).length>0){const[f,p]=c;d.substitutions=Eae(u,f,p)}return Object.keys(o).length>0&&(d.customArgs=o),l&&Object.keys(l).length>0&&(d.dynamicTemplateData=l),typeof n<"u"&&(d.subject=n),typeof s<"u"&&(d.sendAt=s),typeof t<"u"&&(d.from=t),Sae(d,["substitutions","dynamicTemplateData","customArgs","headers"])}},Aae=function(e){return e.map(t=>typeof t=="object"&&t!==null&&typeof t.toJSON=="function"?t.toJSON():t)},Oae={DYNAMIC_TEMPLATE_CHAR_WARNING:`
|
|
98
|
+
deps: ${l}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[c,l]=i(u);o(u,c),s(u,l)}};function i({schema:u}){const c={},l={};for(const d in u){if(d==="__proto__")continue;const f=Array.isArray(u[d])?c:l;f[d]=u[d]}return[c,l]}function o(u,c=u.schema){const{gen:l,data:d,it:f}=u;if(Object.keys(c).length===0)return;const p=l.let("missing");for(const m in c){const v=c[m];if(v.length===0)continue;const g=(0,a.propertyInData)(l,d,m,f.opts.ownProperties);u.setParams({property:m,depsCount:v.length,deps:v.join(", ")}),f.allErrors?l.if(g,()=>{for(const h of v)(0,a.checkReportMissingProp)(u,h)}):(l.if((0,t._)`${g} && (${(0,a.checkMissingProp)(u,v,p)})`),(0,a.reportMissingProp)(u,p),l.else())}}e.validatePropertyDeps=o;function s(u,c=u.schema){const{gen:l,data:d,keyword:f,it:p}=u,m=l.name("valid");for(const v in c)(0,r.alwaysValidSchema)(p,c[v])||(l.if((0,a.propertyInData)(l,d,v,p.opts.ownProperties),()=>{const g=u.subschema({keyword:f,schemaProp:v},m);u.mergeValidEvaluated(g,m)},()=>l.var(m,!0)),u.ok(m))}e.validateSchemaDeps=s,e.default=n})(JC);var Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});const qC=Ce,vte=re,yte={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,qC._)`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:a,it:n}=e;if((0,vte.alwaysValidSchema)(n,r))return;const i=t.name("valid");t.forIn("key",a,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},i),t.if((0,qC.not)(i),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(i)}};Vp.default=yte;var bc={};Object.defineProperty(bc,"__esModule",{value:!0});const wc=Ie,Cr=Ce,bte=Hr,Cc=re,wte={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,Cr._)`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");const{allErrors:s,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,Cc.alwaysValidSchema)(o,r))return;const c=(0,wc.allSchemaProperties)(a.properties),l=(0,wc.allSchemaProperties)(a.patternProperties);d(),e.ok((0,Cr._)`${i} === ${bte.default.errors}`);function d(){t.forIn("key",n,g=>{!c.length&&!l.length?m(g):t.if(f(g),()=>m(g))})}function f(g){let h;if(c.length>8){const y=(0,Cc.schemaRefOrVal)(o,a.properties,"properties");h=(0,wc.isOwnProperty)(t,y,g)}else c.length?h=(0,Cr.or)(...c.map(y=>(0,Cr._)`${g} === ${y}`)):h=Cr.nil;return l.length&&(h=(0,Cr.or)(h,...l.map(y=>(0,Cr._)`${(0,wc.usePattern)(e,y)}.test(${g})`))),(0,Cr.not)(h)}function p(g){t.code((0,Cr._)`delete ${n}[${g}]`)}function m(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){p(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,Cc.alwaysValidSchema)(o,r)){const h=t.name("valid");u.removeAdditional==="failing"?(v(g,h,!1),t.if((0,Cr.not)(h),()=>{e.reset(),p(g)})):(v(g,h),s||t.if((0,Cr.not)(h),()=>t.break()))}}function v(g,h,y){const b={keyword:"additionalProperties",dataProp:g,dataPropType:Cc.Type.Str};y===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,h)}}};bc.default=wte;var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});const Cte=yr,KC=Ie,Yp=re,QC=bc,Ste={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:n,it:i}=e;i.opts.removeAdditional==="all"&&a.additionalProperties===void 0&&QC.default.code(new Cte.KeywordCxt(i,QC.default,"additionalProperties"));const o=(0,KC.allSchemaProperties)(r);for(const d of o)i.definedProperties.add(d);i.opts.unevaluated&&o.length&&i.props!==!0&&(i.props=Yp.mergeEvaluated.props(t,(0,Yp.toHash)(o),i.props));const s=o.filter(d=>!(0,Yp.alwaysValidSchema)(i,r[d]));if(s.length===0)return;const u=t.name("valid");for(const d of s)c(d)?l(d):(t.if((0,KC.propertyInData)(t,n,d,i.opts.ownProperties)),l(d),i.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function c(d){return i.opts.useDefaults&&!i.compositeRule&&r[d].default!==void 0}function l(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}}};Wp.default=Ste;var Up={};Object.defineProperty(Up,"__esModule",{value:!0});const eS=Ie,Sc=Ce,tS=re,rS=re,$te={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:n,it:i}=e,{opts:o}=i,s=(0,eS.allSchemaProperties)(r),u=s.filter(v=>(0,tS.alwaysValidSchema)(i,r[v]));if(s.length===0||u.length===s.length&&(!i.opts.unevaluated||i.props===!0))return;const c=o.strictSchema&&!o.allowMatchingProperties&&n.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof Sc.Name)&&(i.props=(0,rS.evaluatedPropsToName)(t,i.props));const{props:d}=i;f();function f(){for(const v of s)c&&p(v),i.allErrors?m(v):(t.var(l,!0),m(v),t.if(l))}function p(v){for(const g in c)new RegExp(v).test(g)&&(0,tS.checkStrictMode)(i,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}function m(v){t.forIn("key",a,g=>{t.if((0,Sc._)`${(0,eS.usePattern)(e,v)}.test(${g})`,()=>{const h=u.includes(v);h||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:rS.Type.Str},l),i.opts.unevaluated&&d!==!0?t.assign((0,Sc._)`${d}[${g}]`,!0):!h&&!i.allErrors&&t.if((0,Sc.not)(l),()=>t.break())})})}}};Up.default=$te;var Hp={};Object.defineProperty(Hp,"__esModule",{value:!0});const Ite=re,Ete={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:a}=e;if((0,Ite.alwaysValidSchema)(a,r)){e.fail();return}const n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Hp.default=Ete;var Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});const _te={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ie.validateUnion,error:{message:"must match a schema in anyOf"}};Xp.default=_te;var zp={};Object.defineProperty(zp,"__esModule",{value:!0});const $c=Ce,Ate=re,Ote={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,$c._)`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:a,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&a.discriminator)return;const i=r,o=t.let("valid",!1),s=t.let("passing",null),u=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(o,()=>e.reset(),()=>e.error(!0));function c(){i.forEach((l,d)=>{let f;(0,Ate.alwaysValidSchema)(n,l)?t.var(u,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,$c._)`${u} && ${o}`).assign(o,!1).assign(s,(0,$c._)`[${s}, ${d}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(s,d),f&&e.mergeEvaluated(f,$c.Name)})})}}};zp.default=Ote;var Zp={};Object.defineProperty(Zp,"__esModule",{value:!0});const Tte=re,xte={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const n=t.name("valid");r.forEach((i,o)=>{if((0,Tte.alwaysValidSchema)(a,i))return;const s=e.subschema({keyword:"allOf",schemaProp:o},n);e.ok(n),e.mergeEvaluated(s)})}};Zp.default=xte;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});const Ic=Ce,nS=re,Dte={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,Ic.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Ic._)`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:a}=e;r.then===void 0&&r.else===void 0&&(0,nS.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const n=aS(a,"then"),i=aS(a,"else");if(!n&&!i)return;const o=t.let("valid",!0),s=t.name("_valid");if(u(),e.reset(),n&&i){const l=t.let("ifClause");e.setParams({ifClause:l}),t.if(s,c("then",l),c("else",l))}else n?t.if(s,c("then")):t.if((0,Ic.not)(s),c("else"));e.pass(o,()=>e.error(!0));function u(){const l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(l)}function c(l,d){return()=>{const f=e.subschema({keyword:l},s);t.assign(o,s),e.mergeValidEvaluated(f,o),d?t.assign(d,(0,Ic._)`${l}`):e.setParams({ifClause:l})}}}};function aS(e,t){const r=e.schema[t];return r!==void 0&&!(0,nS.alwaysValidSchema)(e,r)}Jp.default=Dte;var qp={};Object.defineProperty(qp,"__esModule",{value:!0});const Pte=re,Rte={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Pte.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};qp.default=Rte,Object.defineProperty(Fp,"__esModule",{value:!0});const Nte=$i,kte=Bp,Mte=Ii,Fte=Lp,jte=Gp,Bte=JC,Lte=Vp,Gte=bc,Vte=Wp,Wte=Up,Yte=Hp,Ute=Xp,Hte=zp,Xte=Zp,zte=Jp,Zte=qp;function Jte(e=!1){const t=[Yte.default,Ute.default,Hte.default,Xte.default,zte.default,Zte.default,Lte.default,Gte.default,Bte.default,Vte.default,Wte.default];return e?t.push(kte.default,Fte.default):t.push(Nte.default,Mte.default),t.push(jte.default),t}Fp.default=Jte;var Kp={},Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});const ft=Ce,qte={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,ft.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ft._)`{format: ${e}}`},code(e,t){const{gen:r,data:a,$data:n,schema:i,schemaCode:o,it:s}=e,{opts:u,errSchemaPath:c,schemaEnv:l,self:d}=s;if(!u.validateFormats)return;n?f():p();function f(){const m=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),v=r.const("fDef",(0,ft._)`${m}[${o}]`),g=r.let("fType"),h=r.let("format");r.if((0,ft._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,ft._)`${v}.type || "string"`).assign(h,(0,ft._)`${v}.validate`),()=>r.assign(g,(0,ft._)`"string"`).assign(h,v)),e.fail$data((0,ft.or)(y(),b()));function y(){return u.strictSchema===!1?ft.nil:(0,ft._)`${o} && !${h}`}function b(){const w=l.$async?(0,ft._)`(${v}.async ? await ${h}(${a}) : ${h}(${a}))`:(0,ft._)`${h}(${a})`,C=(0,ft._)`(typeof ${h} == "function" ? ${w} : ${h}.test(${a}))`;return(0,ft._)`${h} && ${h} !== true && ${g} === ${t} && !${C}`}}function p(){const m=d.formats[i];if(!m){y();return}if(m===!0)return;const[v,g,h]=b(m);v===t&&e.pass(w());function y(){if(u.strictSchema===!1){d.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${i}" ignored in schema at path "${c}"`}}function b(C){const E=C instanceof RegExp?(0,ft.regexpCode)(C):u.code.formats?(0,ft._)`${u.code.formats}${(0,ft.getProperty)(i)}`:void 0,_=r.scopeValue("formats",{key:i,ref:C,code:E});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,ft._)`${_}.validate`]:["string",C,_]}function w(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,ft._)`await ${h}(${a})`}return typeof g=="function"?(0,ft._)`${h}(${a})`:(0,ft._)`${h}.test(${a})`}}}};Qp.default=qte,Object.defineProperty(Kp,"__esModule",{value:!0});const Kte=[Qp.default];Kp.default=Kte;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.contentVocabulary=Ei.metadataVocabulary=void 0,Ei.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ei.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(wp,"__esModule",{value:!0});const Qte=Cp,ere=$p,tre=Fp,rre=Kp,iS=Ei,nre=[Qte.default,ere.default,(0,tre.default)(),rre.default,iS.metadataVocabulary,iS.contentVocabulary];wp.default=nre;var eh={},Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.DiscrError=void 0;var oS;(function(e){e.Tag="tag",e.Mapping="mapping"})(oS||(Ec.DiscrError=oS={})),Object.defineProperty(eh,"__esModule",{value:!0});const _i=Ce,th=Ec,sS=Vt,are=Ci,ire=re,ore={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===th.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,_i._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:a,parentSchema:n,it:i}=e,{oneOf:o}=n;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=a.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),c=t.const("tag",(0,_i._)`${r}${(0,_i.getProperty)(s)}`);t.if((0,_i._)`typeof ${c} == "string"`,()=>l(),()=>e.error(!1,{discrError:th.DiscrError.Tag,tag:c,tagName:s})),e.ok(u);function l(){const p=f();t.if(!1);for(const m in p)t.elseIf((0,_i._)`${c} === ${m}`),t.assign(u,d(p[m]));t.else(),e.error(!1,{discrError:th.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function d(p){const m=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:p},m);return e.mergeEvaluated(v,_i.Name),m}function f(){var p;const m={},v=h(n);let g=!0;for(let w=0;w<o.length;w++){let C=o[w];if(C!=null&&C.$ref&&!(0,ire.schemaHasRulesButRef)(C,i.self.RULES)){const _=C.$ref;if(C=sS.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,_),C instanceof sS.SchemaEnv&&(C=C.schema),C===void 0)throw new are.default(i.opts.uriResolver,i.baseId,_)}const E=(p=C==null?void 0:C.properties)===null||p===void 0?void 0:p[s];if(typeof E!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);g=g&&(v||h(C)),y(E,w)}if(!g)throw new Error(`discriminator: "${s}" must be required`);return m;function h({required:w}){return Array.isArray(w)&&w.includes(s)}function y(w,C){if(w.const)b(w.const,C);else if(w.enum)for(const E of w.enum)b(E,C);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function b(w,C){if(typeof w!="string"||w in m)throw new Error(`discriminator: "${s}" values must be unique strings`);m[w]=C}}}};eh.default=ore;const sre={$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=t.Ajv=void 0;const r=G1,a=wp,n=eh,i=sre,o=["/properties"],s="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(m,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=yr;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Ce;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Go;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=Ci;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Qf,Qf.exports);var uS=Qf.exports;const ure=Xt(uS);var rh={exports:{}},cS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,k){return{validate:R,compare:k}}e.fullFormats={date:t(i,o),time:t(u,c),"date-time":t(d,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"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:N,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:h,int32:{type:"number",validate:w},int64:{type:"number",validate:C},float:{type:"number",validate:E},double:{type:"number",validate:E},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"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,f),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);function r(R){return R%4===0&&(R%100!==0||R%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(R){const k=a.exec(R);if(!k)return!1;const F=+k[1],W=+k[2],B=+k[3];return W>=1&&W<=12&&B>=1&&B<=(W===2&&r(F)?29:n[W])}function o(R,k){if(R&&k)return R>k?1:R<k?-1:0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(R,k){const F=s.exec(R);if(!F)return!1;const W=+F[1],B=+F[2],U=+F[3],Y=F[5];return(W<=23&&B<=59&&U<=59||W===23&&B===59&&U===60)&&(!k||Y!=="")}function c(R,k){if(!(R&&k))return;const F=s.exec(R),W=s.exec(k);if(F&&W)return R=F[1]+F[2]+F[3]+(F[4]||""),k=W[1]+W[2]+W[3]+(W[4]||""),R>k?1:R<k?-1:0}const l=/t|\s/i;function d(R){const k=R.split(l);return k.length===2&&i(k[0])&&u(k[1],!0)}function f(R,k){if(!(R&&k))return;const[F,W]=R.split(l),[B,U]=k.split(l),Y=o(F,B);if(Y!==void 0)return Y||c(W,U)}const p=/\/|:/,m=/^(?:[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;function v(R){return p.test(R)&&m.test(R)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function h(R){return g.lastIndex=0,g.test(R)}const y=-2147483648,b=2**31-1;function w(R){return Number.isInteger(R)&&R<=b&&R>=y}function C(R){return Number.isInteger(R)}function E(){return!0}const _=/[^\\]\\Z/;function N(R){if(_.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(cS);var lS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=uS,r=Ce,a=r.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},i={message:({keyword:s,schemaCode:u})=>r.str`should be ${n[s].okStr} ${u}`,params:({keyword:s,schemaCode:u})=>r._`{comparison: ${n[s].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:i,code(s){const{gen:u,data:c,schemaCode:l,keyword:d,it:f}=s,{opts:p,self:m}=f;if(!p.validateFormats)return;const v=new t.KeywordCxt(f,m.RULES.all.format.definition,"format");v.$data?g():h();function g(){const b=u.scopeValue("formats",{ref:m.formats,code:p.code.formats}),w=u.const("fmt",r._`${b}[${v.schemaCode}]`);s.fail$data(r.or(r._`typeof ${w} != "object"`,r._`${w} instanceof RegExp`,r._`typeof ${w}.compare != "function"`,y(w)))}function h(){const b=v.schema,w=m.formats[b];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${d}": format "${b}" does not define "compare" function`);const C=u.scopeValue("formats",{key:b,ref:w,code:p.code.formats?r._`${p.code.formats}${r.getProperty(b)}`:void 0});s.fail$data(y(C))}function y(b){return r._`${b}.compare(${c}, ${l}) ${n[d].fail} 0`}},dependencies:["format"]};const o=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=o})(lS),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=cS,a=lS,n=Ce,i=new n.Name("fullFormats"),o=new n.Name("fastFormats"),s=(c,l={keywords:!0})=>{if(Array.isArray(l))return u(c,l,r.fullFormats,i),c;const[d,f]=l.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,i],p=l.formats||r.formatNames;return u(c,p,d,f),l.keywords&&a.default(c),c};s.get=(c,l="full")=>{const f=(l==="fast"?r.fastFormats:r.fullFormats)[c];if(!f)throw new Error(`Unknown format "${c}"`);return f};function u(c,l,d,f){var p,m;(p=(m=c.opts.code).formats)!==null&&p!==void 0||(m.formats=n._`require("ajv-formats/dist/formats").${f}`);for(const v of l)c.addFormat(v,d[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(rh,rh.exports);var cre=rh.exports;const dS=Xt(cre),lre={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},dre=/^(#?([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*\)))$/,fre=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function pre(e,t,r={},a,n=ure){const i=new n({...lre,...r});return a?dS(i,a):a!==!1&&dS(i),i.addFormat("data-url",fre),i.addFormat("color",dre),i.addKeyword(Gn),i.addKeyword(Vc),Array.isArray(e)&&i.addMetaSchema(e),qe(t)&&Object.keys(t).forEach(o=>{i.addFormat(o,t[o])}),i}function hre(e=[],t){return e.map(r=>{var a;const{instancePath:n,keyword:i,params:o,schemaPath:s,parentSchema:u,...c}=r;let{message:l=""}=c,d=n.replace(/\//g,"."),f=`${d} ${l}`.trim();const p=[...((a=o.deps)===null||a===void 0?void 0:a.split(", "))||[],o.missingProperty,o.property].filter(m=>m);if(p.length>0)p.forEach(m=>{const v=d?`${d}.${m}`:m;let g=fe(ue(t,`${v.replace(/^\./,"")}`)).title;if(g===void 0){const h=s.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([m]);g=fe(ue(t,h)).title}if(g)l=l.replace(`'${m}'`,`'${g}'`);else{const h=ue(u,[at,m,"title"]);h&&(l=l.replace(`'${m}'`,`'${h}'`))}}),f=l;else{const m=fe(ue(t,`${d.replace(/^\./,"")}`)).title;if(m)f=`'${m}' ${l}`.trim();else{const v=u==null?void 0:u.title;v&&(f=`'${v}' ${l}`.trim())}}return"missingProperty"in o&&(d=d?`${d}.${o.missingProperty}`:o.missingProperty),{name:i,property:d,message:l,params:o,stack:f,schemaPath:s}})}function mre(e,t,r,a,n,i,o){const{validationError:s}=t;let u=hre(t.errors,o);s&&(u=[...u,{stack:s.message}]),typeof i=="function"&&(u=i(u,o));let c=BW(u);if(s&&(c={...c,$schema:{__errors:[s.message]}}),typeof n!="function")return{errors:u,errorSchema:c};const l=Ly(e,a,r,a,!0),d=n(l,us(l),o),f=_d(d);return tu({errors:u,errorSchema:c},f)}class gre{constructor(t,r){const{additionalMetaSchemas:a,customFormats:n,ajvOptionsOverrides:i,ajvFormatOptions:o,AjvClass:s}=t;this.ajv=pre(a,n,i,o,s),this.localizer=r}reset(){this.ajv.removeSchema()}toErrorList(t,r=[]){return uo(t,r)}rawValidation(t,r){var a,n;let i,o;t[rn]&&(o=this.ajv.getSchema(t[rn]));try{o===void 0&&(o=this.ajv.compile(t)),o(r)}catch(u){i=u}let s;return o&&(typeof this.localizer=="function"&&(((a=o.errors)!==null&&a!==void 0?a:[]).forEach(u=>{var c;["missingProperty","property"].forEach(l=>{var d;!((d=u.params)===null||d===void 0)&&d[l]&&(u.params[l]=`'${u.params[l]}'`)}),!((c=u.params)===null||c===void 0)&&c.deps&&(u.params.deps=u.params.deps.split(", ").map(l=>`'${l}'`).join(", "))}),this.localizer(o.errors),((n=o.errors)!==null&&n!==void 0?n:[]).forEach(u=>{var c;["missingProperty","property"].forEach(l=>{var d;!((d=u.params)===null||d===void 0)&&d[l]&&(u.params[l]=u.params[l].slice(1,-1))}),!((c=u.params)===null||c===void 0)&&c.deps&&(u.params.deps=u.params.deps.split(", ").map(l=>l.slice(1,-1)).join(", "))})),s=o.errors||void 0,o.errors=null),{errors:s,validationError:i}}validateFormData(t,r,a,n,i){const o=this.rawValidation(r,t);return mre(this,o,t,r,a,n,i)}handleSchemaUpdate(t){var r,a;const n=(r=t[rn])!==null&&r!==void 0?r:Dh;this.ajv.getSchema(n)===void 0?this.ajv.addSchema(t,n):Ue(t,(a=this.ajv.getSchema(n))===null||a===void 0?void 0:a.schema)||(this.ajv.removeSchema(n),this.ajv.addSchema(t,n))}isValid(t,r,a){var n;try{this.handleSchemaUpdate(a);const i=Ad(t),o=(n=i[rn])!==null&&n!==void 0?n:MW(i);let s;return s=this.ajv.getSchema(o),s===void 0&&(s=this.ajv.addSchema(i,o).getSchema(o)||this.ajv.compile(i)),s(r)}catch(i){return console.warn("Error encountered compiling schema:",i),!1}}}function vre(e={},t){return new gre(e,t)}const yre=vre();var bre=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wre(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nh={exports:{}},ah={exports:{}};/*! Axios v1.13.1 Copyright (c) 2025 Matt Zabriskie and contributors */function fS(e,t){return function(){return e.apply(t,arguments)}}const{toString:Cre}=Object.prototype,{getPrototypeOf:ih}=Object,{iterator:_c,toStringTag:pS}=Symbol,Ac=(e=>t=>{const r=Cre.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Sr=e=>(e=e.toLowerCase(),t=>Ac(t)===e),Oc=e=>t=>typeof t===e,{isArray:Ai}=Array,Oi=Oc("undefined");function Jo(e){return e!==null&&!Oi(e)&&e.constructor!==null&&!Oi(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hS=Sr("ArrayBuffer");function Sre(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hS(e.buffer),t}const $re=Oc("string"),Yt=Oc("function"),mS=Oc("number"),qo=e=>e!==null&&typeof e=="object",Ire=e=>e===!0||e===!1,Tc=e=>{if(Ac(e)!=="object")return!1;const t=ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pS in e)&&!(_c in e)},Ere=e=>{if(!qo(e)||Jo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_re=Sr("Date"),Are=Sr("File"),Ore=Sr("Blob"),Tre=Sr("FileList"),xre=e=>qo(e)&&Yt(e.pipe),Dre=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=Ac(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},Pre=Sr("URLSearchParams"),[Rre,Nre,kre,Mre]=["ReadableStream","Request","Response","Headers"].map(Sr),Fre=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ko(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),Ai(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{if(Jo(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(a=0;a<o;a++)s=i[a],t.call(null,e[s],s,e)}}function gS(e,t){if(Jo(e))return null;t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const ba=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:bre,vS=e=>!Oi(e)&&e!==ba;function oh(){const{caseless:e,skipUndefined:t}=vS(this)&&this||{},r={},a=(n,i)=>{const o=e&&gS(r,i)||i;Tc(r[o])&&Tc(n)?r[o]=oh(r[o],n):Tc(n)?r[o]=oh({},n):Ai(n)?r[o]=n.slice():(!t||!Oi(n))&&(r[o]=n)};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ko(arguments[n],a);return r}const jre=(e,t,r,{allOwnKeys:a}={})=>(Ko(t,(n,i)=>{r&&Yt(n)?e[i]=fS(n,r):e[i]=n},{allOwnKeys:a}),e),Bre=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Lre=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Gre=(e,t,r,a)=>{let n,i,o;const s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)o=n[i],(!a||a(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&ih(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Vre=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},Wre=e=>{if(!e)return null;if(Ai(e))return e;let t=e.length;if(!mS(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Yre=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ih(Uint8Array)),Ure=(e,t)=>{const r=(e&&e[_c]).call(e);let a;for(;(a=r.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},Hre=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},Xre=Sr("HTMLFormElement"),zre=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,a){return r.toUpperCase()+a}),yS=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Zre=Sr("RegExp"),bS=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};Ko(r,(n,i)=>{let o;(o=t(n,i,e))!==!1&&(a[i]=o||n)}),Object.defineProperties(e,a)},Jre=e=>{bS(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(Yt(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},qre=(e,t)=>{const r={},a=n=>{n.forEach(i=>{r[i]=!0})};return Ai(e)?a(e):a(String(e).split(t)),r},Kre=()=>{},Qre=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ene(e){return!!(e&&Yt(e.append)&&e[pS]==="FormData"&&e[_c])}const tne=e=>{const t=new Array(10),r=(a,n)=>{if(qo(a)){if(t.indexOf(a)>=0)return;if(Jo(a))return a;if(!("toJSON"in a)){t[n]=a;const i=Ai(a)?[]:{};return Ko(a,(o,s)=>{const u=r(o,n+1);!Oi(u)&&(i[s]=u)}),t[n]=void 0,i}}return a};return r(e,0)},rne=Sr("AsyncFunction"),nne=e=>e&&(qo(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),wS=((e,t)=>e?setImmediate:t?((r,a)=>(ba.addEventListener("message",({source:n,data:i})=>{n===ba&&i===r&&a.length&&a.shift()()},!1),n=>{a.push(n),ba.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(ba.postMessage)),ane=typeof queueMicrotask<"u"?queueMicrotask.bind(ba):typeof process<"u"&&process.nextTick||wS;var G={isArray:Ai,isArrayBuffer:hS,isBuffer:Jo,isFormData:Dre,isArrayBufferView:Sre,isString:$re,isNumber:mS,isBoolean:Ire,isObject:qo,isPlainObject:Tc,isEmptyObject:Ere,isReadableStream:Rre,isRequest:Nre,isResponse:kre,isHeaders:Mre,isUndefined:Oi,isDate:_re,isFile:Are,isBlob:Ore,isRegExp:Zre,isFunction:Yt,isStream:xre,isURLSearchParams:Pre,isTypedArray:Yre,isFileList:Tre,forEach:Ko,merge:oh,extend:jre,trim:Fre,stripBOM:Bre,inherits:Lre,toFlatObject:Gre,kindOf:Ac,kindOfTest:Sr,endsWith:Vre,toArray:Wre,forEachEntry:Ure,matchAll:Hre,isHTMLForm:Xre,hasOwnProperty:yS,hasOwnProp:yS,reduceDescriptors:bS,freezeMethods:Jre,toObjectSet:qre,toCamelCase:zre,noop:Kre,toFiniteNumber:Qre,findKey:gS,global:ba,isContextDefined:vS,isSpecCompliantForm:ene,toJSONObject:tne,isAsyncFn:rne,isThenable:nne,setImmediate:wS,asap:ane,isIterable:e=>e!=null&&Yt(e[_c])};function ye(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}G.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const CS=ye.prototype,SS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{SS[e]={value:e}}),Object.defineProperties(ye,SS),Object.defineProperty(CS,"isAxiosError",{value:!0}),ye.from=(e,t,r,a,n,i)=>{const o=Object.create(CS);G.toFlatObject(e,o,function(c){return c!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return ye.call(o,s,u,r,a,n),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};var ine=null;function sh(e){return G.isPlainObject(e)||G.isArray(e)}function $S(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function IS(e,t,r){return e?e.concat(t).map(function(a,n){return a=$S(a),!r&&n?"["+a+"]":a}).join(r?".":""):t}function one(e){return G.isArray(e)&&!e.some(sh)}const sne=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function xc(e,t,r){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!G.isUndefined(m[p])});const a=r.metaTokens,n=r.visitor||c,i=r.dots,o=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(n))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(G.isDate(p))return p.toISOString();if(G.isBoolean(p))return p.toString();if(!s&&G.isBlob(p))throw new ye("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(p)||G.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,v){let g=p;if(p&&!v&&typeof p=="object"){if(G.endsWith(m,"{}"))m=a?m:m.slice(0,-2),p=JSON.stringify(p);else if(G.isArray(p)&&one(p)||(G.isFileList(p)||G.endsWith(m,"[]"))&&(g=G.toArray(p)))return m=$S(m),g.forEach(function(h,y){!(G.isUndefined(h)||h===null)&&t.append(o===!0?IS([m],y,i):o===null?m:m+"[]",u(h))}),!1}return sh(p)?!0:(t.append(IS(v,m,i),u(p)),!1)}const l=[],d=Object.assign(sne,{defaultVisitor:c,convertValue:u,isVisitable:sh});function f(p,m){if(!G.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(p),G.forEach(p,function(v,g){(!(G.isUndefined(v)||v===null)&&n.call(t,v,G.isString(g)?g.trim():g,m,d))===!0&&f(v,m?m.concat(g):[g])}),l.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return f(e),t}function ES(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uh(e,t){this._pairs=[],e&&xc(e,this,t)}const _S=uh.prototype;_S.append=function(e,t){this._pairs.push([e,t])},_S.toString=function(e){const t=e?function(r){return e.call(this,r,ES)}:ES;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function une(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function AS(e,t,r){if(!t)return e;const a=r&&r.encode||une;G.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(n?i=n(t,r):i=G.isURLSearchParams(t)?t.toString():new uh(t,r).toString(a),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cne{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}var OS=cne,TS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lne=typeof URLSearchParams<"u"?URLSearchParams:uh,dne=typeof FormData<"u"?FormData:null,fne=typeof Blob<"u"?Blob:null,pne={isBrowser:!0,classes:{URLSearchParams:lne,FormData:dne,Blob:fne},protocols:["http","https","file","blob","url","data"]};const ch=typeof window<"u"&&typeof document<"u",lh=typeof navigator=="object"&&navigator||void 0,hne=ch&&(!lh||["ReactNative","NativeScript","NS"].indexOf(lh.product)<0),mne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gne=ch&&window.location.href||"http://localhost";var vne=Object.freeze({__proto__:null,hasBrowserEnv:ch,hasStandardBrowserWebWorkerEnv:mne,hasStandardBrowserEnv:hne,navigator:lh,origin:gne}),Rt={...vne,...pne};function yne(e,t){return xc(e,new Rt.classes.URLSearchParams,{visitor:function(r,a,n,i){return Rt.isNode&&G.isBuffer(r)?(this.append(a,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function bne(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wne(e){const t={},r=Object.keys(e);let a;const n=r.length;let i;for(a=0;a<n;a++)i=r[a],t[i]=e[i];return t}function xS(e){function t(r,a,n,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),u=i>=r.length;return o=!o&&G.isArray(n)?n.length:o,u?(G.hasOwnProp(n,o)?n[o]=[n[o],a]:n[o]=a,!s):((!n[o]||!G.isObject(n[o]))&&(n[o]=[]),t(r,a,n[o],i)&&G.isArray(n[o])&&(n[o]=wne(n[o])),!s)}if(G.isFormData(e)&&G.isFunction(e.entries)){const r={};return G.forEachEntry(e,(a,n)=>{t(bne(a),n,r,0)}),r}return null}function Cne(e,t,r){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const dh={transitional:TS,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",a=r.indexOf("application/json")>-1,n=G.isObject(e);if(n&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return a?JSON.stringify(xS(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return yne(e,this.formSerializer).toString();if((i=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return xc(i?{"files[]":e}:e,o&&new o,this.formSerializer)}}return n||a?(t.setContentType("application/json",!1),Cne(e)):e}],transformResponse:[function(e){const t=this.transitional||dh.transitional,r=t&&t.forcedJSONParsing,a=this.responseType==="json";if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(i){if(n)throw i.name==="SyntaxError"?ye.from(i,ye.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{dh.headers[e]={}});var fh=dh;const Sne=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var $ne=e=>{const t={};let r,a,n;return e&&e.split(`
|
|
99
|
+
`).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&Sne[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t};const DS=Symbol("internals");function Qo(e){return e&&String(e).trim().toLowerCase()}function Dc(e){return e===!1||e==null?e:G.isArray(e)?e.map(Dc):String(e)}function Ine(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const Ene=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ph(e,t,r,a,n){if(G.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!G.isString(t)){if(G.isString(a))return t.indexOf(a)!==-1;if(G.isRegExp(a))return a.test(t)}}function _ne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function Ane(e,t){const r=G.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,i,o){return this[a].call(this,t,n,i,o)},configurable:!0})})}class Pc{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function i(s,u,c){const l=Qo(u);if(!l)throw new Error("header name must be a non-empty string");const d=G.findKey(n,l);(!d||n[d]===void 0||c===!0||c===void 0&&n[d]!==!1)&&(n[d||u]=Dc(s))}const o=(s,u)=>G.forEach(s,(c,l)=>i(c,l,u));if(G.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(G.isString(t)&&(t=t.trim())&&!Ene(t))o($ne(t),r);else if(G.isObject(t)&&G.isIterable(t)){let s={},u,c;for(const l of t){if(!G.isArray(l))throw TypeError("Object iterator must return a key-value pair");s[c=l[0]]=(u=s[c])?G.isArray(u)?[...u,l[1]]:[u,l[1]]:l[1]}o(s,r)}else t!=null&&i(r,t,a);return this}get(t,r){if(t=Qo(t),t){const a=G.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return Ine(n);if(G.isFunction(r))return r.call(this,n,a);if(G.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Qo(t),t){const a=G.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||ph(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function i(o){if(o=Qo(o),o){const s=G.findKey(a,o);s&&(!r||ph(a,a[s],s,r))&&(delete a[s],n=!0)}}return G.isArray(t)?t.forEach(i):i(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const i=r[a];(!t||ph(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){const r=this,a={};return G.forEach(this,(n,i)=>{const o=G.findKey(a,i);if(o){r[o]=Dc(n),delete r[i];return}const s=t?_ne(i):String(i).trim();s!==i&&delete r[i],r[s]=Dc(n),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return G.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&G.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
100
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const r=(this[DS]=this[DS]={accessors:{}}).accessors,a=this.prototype;function n(i){const o=Qo(i);r[o]||(Ane(a,i),r[o]=!0)}return G.isArray(t)?t.forEach(n):n(t),this}}Pc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Pc.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}}),G.freezeMethods(Pc);var $r=Pc;function hh(e,t){const r=this||fh,a=t||r,n=$r.from(a.headers);let i=a.data;return G.forEach(e,function(o){i=o.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function PS(e){return!!(e&&e.__CANCEL__)}function Ti(e,t,r){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,r),this.name="CanceledError"}G.inherits(Ti,ye,{__CANCEL__:!0});function RS(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function One(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Tne(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=a[i];o||(o=u),r[n]=s,a[n]=u;let l=i,d=0;for(;l!==n;)d+=r[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),u-o<t)return;const f=c&&u-c;return f?Math.round(d*1e3/f):void 0}}function xne(e,t){let r=0,a=1e3/t,n,i;const o=(s,u=Date.now())=>{r=u,n=null,i&&(clearTimeout(i),i=null),e(...s)};return[(...s)=>{const u=Date.now(),c=u-r;c>=a?o(s,u):(n=s,i||(i=setTimeout(()=>{i=null,o(n)},a-c)))},()=>n&&o(n)]}const Rc=(e,t,r=3)=>{let a=0;const n=Tne(50,250);return xne(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,u=o-a,c=n(u),l=o<=s;a=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},NS=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},kS=e=>(...t)=>G.asap(()=>e(...t));var Dne=Rt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Rt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,Pne=Rt.hasStandardBrowserEnv?{write(e,t,r,a,n,i,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];G.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),G.isString(a)&&s.push(`path=${a}`),G.isString(n)&&s.push(`domain=${n}`),i===!0&&s.push("secure"),G.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Rne(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nne(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function MS(e,t,r){let a=!Rne(t);return e&&(a||r==!1)?Nne(e,t):t}const FS=e=>e instanceof $r?{...e}:e;function wa(e,t){t=t||{};const r={};function a(c,l,d,f){return G.isPlainObject(c)&&G.isPlainObject(l)?G.merge.call({caseless:f},c,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function n(c,l,d,f){if(G.isUndefined(l)){if(!G.isUndefined(c))return a(void 0,c,d,f)}else return a(c,l,d,f)}function i(c,l){if(!G.isUndefined(l))return a(void 0,l)}function o(c,l){if(G.isUndefined(l)){if(!G.isUndefined(c))return a(void 0,c)}else return a(void 0,l)}function s(c,l,d){if(d in t)return a(c,l);if(d in e)return a(void 0,c)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,l,d)=>n(FS(c),FS(l),d,!0)};return G.forEach(Object.keys({...e,...t}),function(c){const l=u[c]||n,d=l(e[c],t[c],c);G.isUndefined(d)&&l!==s||(r[c]=d)}),r}var jS=e=>{const t=wa({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:i,headers:o,auth:s}=t;if(t.headers=o=$r.from(o),t.url=AS(MS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),G.isFormData(r)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(G.isFunction(r.getHeaders)){const u=r.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([l,d])=>{c.includes(l.toLowerCase())&&o.set(l,d)})}}if(Rt.hasStandardBrowserEnv&&(a&&G.isFunction(a)&&(a=a(t)),a||a!==!1&&Dne(t.url))){const u=n&&i&&Pne.read(i);u&&o.set(n,u)}return t},kne=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,r){const a=jS(e);let n=a.data;const i=$r.from(a.headers).normalize();let{responseType:o,onUploadProgress:s,onDownloadProgress:u}=a,c,l,d,f,p;function m(){f&&f(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function g(){if(!v)return;const y=$r.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};RS(function(w){t(w),m()},function(w){r(w),m()},b),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(r(new ye("Request aborted",ye.ECONNABORTED,e,v)),v=null)},v.onerror=function(y){const b=y&&y.message?y.message:"Network Error",w=new ye(b,ye.ERR_NETWORK,e,v);w.event=y||null,r(w),v=null},v.ontimeout=function(){let y=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const b=a.transitional||TS;a.timeoutErrorMessage&&(y=a.timeoutErrorMessage),r(new ye(y,b.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,v)),v=null},n===void 0&&i.setContentType(null),"setRequestHeader"in v&&G.forEach(i.toJSON(),function(y,b){v.setRequestHeader(b,y)}),G.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),o&&o!=="json"&&(v.responseType=a.responseType),u&&([d,p]=Rc(u,!0),v.addEventListener("progress",d)),s&&v.upload&&([l,f]=Rc(s),v.upload.addEventListener("progress",l),v.upload.addEventListener("loadend",f)),(a.cancelToken||a.signal)&&(c=y=>{v&&(r(!y||y.type?new Ti(null,e,v):y),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const h=One(a.url);if(h&&Rt.protocols.indexOf(h)===-1){r(new ye("Unsupported protocol "+h+":",ye.ERR_BAD_REQUEST,e));return}v.send(n||null)})},Mne=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const i=function(c){if(!n){n=!0,s();const l=c instanceof Error?c:this.reason;a.abort(l instanceof ye?l:new Ti(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=a;return u.unsubscribe=()=>G.asap(s),u}};const Fne=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},jne=async function*(e,t){for await(const r of Bne(e))yield*Fne(r,t)},Bne=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},BS=(e,t,r,a)=>{const n=jne(e,t);let i=0,o,s=u=>{o||(o=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await n.next();if(c){s(),u.close();return}let d=l.byteLength;if(r){let f=i+=d;r(f)}u.enqueue(new Uint8Array(l))}catch(c){throw s(c),c}},cancel(u){return s(u),n.return()}},{highWaterMark:2})},LS=64*1024,{isFunction:Nc}=G,Lne=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:GS,TextEncoder:VS}=G.global,WS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gne=e=>{e=G.merge.call({skipUndefined:!0},Lne,e);const{fetch:t,Request:r,Response:a}=e,n=t?Nc(t):typeof fetch=="function",i=Nc(r),o=Nc(a);if(!n)return!1;const s=n&&Nc(GS),u=n&&(typeof VS=="function"?(m=>v=>m.encode(v))(new VS):async m=>new Uint8Array(await new r(m).arrayBuffer())),c=i&&s&&WS(()=>{let m=!1;const v=new r(Rt.origin,{body:new GS,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!v}),l=o&&s&&WS(()=>G.isReadableStream(new a("").body)),d={stream:l&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!d[m]&&(d[m]=(v,g)=>{let h=v&&v[m];if(h)return h.call(v);throw new ye(`Response type '${m}' is not supported`,ye.ERR_NOT_SUPPORT,g)})});const f=async m=>{if(m==null)return 0;if(G.isBlob(m))return m.size;if(G.isSpecCompliantForm(m))return(await new r(Rt.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(G.isArrayBufferView(m)||G.isArrayBuffer(m))return m.byteLength;if(G.isURLSearchParams(m)&&(m=m+""),G.isString(m))return(await u(m)).byteLength},p=async(m,v)=>G.toFiniteNumber(m.getContentLength())??f(v);return async m=>{let{url:v,method:g,data:h,signal:y,cancelToken:b,timeout:w,onDownloadProgress:C,onUploadProgress:E,responseType:_,headers:N,withCredentials:R="same-origin",fetchOptions:k}=jS(m),F=t||fetch;_=_?(_+"").toLowerCase():"text";let W=Mne([y,b&&b.toAbortSignal()],w),B=null;const U=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let Y;try{if(E&&c&&g!=="get"&&g!=="head"&&(Y=await p(N,h))!==0){let D=new r(v,{method:"POST",body:h,duplex:"half"}),M;if(G.isFormData(h)&&(M=D.headers.get("content-type"))&&N.setContentType(M),D.body){const[P,S]=NS(Y,Rc(kS(E)));h=BS(D.body,LS,P,S)}}G.isString(R)||(R=R?"include":"omit");const L=i&&"credentials"in r.prototype,Z={...k,signal:W,method:g.toUpperCase(),headers:N.normalize().toJSON(),body:h,duplex:"half",credentials:L?R:void 0};B=i&&new r(v,Z);let J=await(i?F(B,k):F(v,Z));const se=l&&(_==="stream"||_==="response");if(l&&(C||se&&U)){const D={};["status","statusText","headers"].forEach(T=>{D[T]=J[T]});const M=G.toFiniteNumber(J.headers.get("content-length")),[P,S]=C&&NS(M,Rc(kS(C),!0))||[];J=new a(BS(J.body,LS,P,()=>{S&&S(),U&&U()}),D)}_=_||"text";let V=await d[G.findKey(d,_)||"text"](J,m);return!se&&U&&U(),await new Promise((D,M)=>{RS(D,M,{data:V,headers:$r.from(J.headers),status:J.status,statusText:J.statusText,config:m,request:B})})}catch(L){throw U&&U(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,m,B),{cause:L.cause||L}):ye.from(L,L&&L.code,m,B)}}},Vne=new Map,YS=e=>{let t=e&&e.env||{};const{fetch:r,Request:a,Response:n}=t,i=[a,n,r];let o=i.length,s=o,u,c,l=Vne;for(;s--;)u=i[s],c=l.get(u),c===void 0&&l.set(u,c=s?new Map:Gne(t)),l=c;return c};YS();const mh={http:ine,xhr:kne,fetch:{get:YS}};G.forEach(mh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const US=e=>`- ${e}`,Wne=e=>G.isFunction(e)||e===null||e===!1;function Yne(e,t){e=G.isArray(e)?e:[e];const{length:r}=e;let a,n;const i={};for(let o=0;o<r;o++){a=e[o];let s;if(n=a,!Wne(a)&&(n=mh[(s=String(a)).toLowerCase()],n===void 0))throw new ye(`Unknown adapter '${s}'`);if(n&&(G.isFunction(n)||(n=n.get(t))))break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
|
|
101
|
+
`+o.map(US).join(`
|
|
102
|
+
`):" "+US(o[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n}var HS={getAdapter:Yne,adapters:mh};function gh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ti(null,e)}function XS(e){return gh(e),e.headers=$r.from(e.headers),e.data=hh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),HS.getAdapter(e.adapter||fh.adapter,e)(e).then(function(t){return gh(e),t.data=hh.call(e,e.transformResponse,t),t.headers=$r.from(t.headers),t},function(t){return PS(t)||(gh(e),t&&t.response&&(t.response.data=hh.call(e,e.transformResponse,t.response),t.response.headers=$r.from(t.response.headers))),Promise.reject(t)})}const zS="1.13.1",kc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ZS={};kc.transitional=function(e,t,r){function a(n,i){return"[Axios v"+zS+"] Transitional option '"+n+"'"+i+(r?". "+r:"")}return(n,i,o)=>{if(e===!1)throw new ye(a(i," has been removed"+(t?" in "+t:"")),ye.ERR_DEPRECATED);return t&&!ZS[i]&&(ZS[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(n,i,o):!0}},kc.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Une(e,t,r){if(typeof e!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const i=a[n],o=t[i];if(o){const s=e[i],u=s===void 0||o(s,i,e);if(u!==!0)throw new ye("option "+i+" must be "+u,ye.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}}var Mc={assertOptions:Une,validators:kc};const Jr=Mc.validators;class Fc{constructor(t){this.defaults=t||{},this.interceptors={request:new OS,response:new OS}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
103
|
+
`+i):a.stack=i}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=wa(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:i}=r;a!==void 0&&Mc.assertOptions(a,{silentJSONParsing:Jr.transitional(Jr.boolean),forcedJSONParsing:Jr.transitional(Jr.boolean),clarifyTimeoutError:Jr.transitional(Jr.boolean)},!1),n!=null&&(G.isFunction(n)?r.paramsSerializer={serialize:n}:Mc.assertOptions(n,{encode:Jr.function,serialize:Jr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Mc.assertOptions(r,{baseUrl:Jr.spelling("baseURL"),withXsrfToken:Jr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&G.merge(i.common,i[r.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=$r.concat(o,i);const s=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(u=u&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let l,d=0,f;if(!u){const m=[XS.bind(this),void 0];for(m.unshift(...s),m.push(...c),f=m.length,l=Promise.resolve(r);d<f;)l=l.then(m[d++],m[d++]);return l}f=s.length;let p=r;for(;d<f;){const m=s[d++],v=s[d++];try{p=m(p)}catch(g){v.call(this,g);break}}try{l=XS.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,f=c.length;d<f;)l=l.then(c[d++],c[d++]);return l}getUri(t){t=wa(this.defaults,t);const r=MS(t.baseURL,t.url,t.allowAbsoluteUrls);return AS(r,t.params,t.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){Fc.prototype[e]=function(t,r){return this.request(wa(r||{},{method:e,url:t,data:(r||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(r){return function(a,n,i){return this.request(wa(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:n}))}}Fc.prototype[e]=t(),Fc.prototype[e+"Form"]=t(!0)});var jc=Fc;class vh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});const a=this;this.promise.then(n=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](n);a._listeners=null}),this.promise.then=n=>{let i;const o=new Promise(s=>{a.subscribe(s),i=s}).then(n);return o.cancel=function(){a.unsubscribe(i)},o},t(function(n,i,o){a.reason||(a.reason=new Ti(n,i,o),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new vh(function(r){t=r}),cancel:t}}}var Hne=vh;function Xne(e){return function(t){return e.apply(null,t)}}function zne(e){return G.isObject(e)&&e.isAxiosError===!0}const yh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yh).forEach(([e,t])=>{yh[t]=e});var Zne=yh;function JS(e){const t=new jc(e),r=fS(jc.prototype.request,t);return G.extend(r,jc.prototype,t,{allOwnKeys:!0}),G.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return JS(wa(e,a))},r}const gt=JS(fh);gt.Axios=jc,gt.CanceledError=Ti,gt.CancelToken=Hne,gt.isCancel=PS,gt.VERSION=zS,gt.toFormData=xc,gt.AxiosError=ye,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=Xne,gt.isAxiosError=zne,gt.mergeConfig=wa,gt.AxiosHeaders=$r,gt.formToJSON=e=>xS(G.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=HS.getAdapter,gt.HttpStatusCode=Zne,gt.default=gt;var Jne=gt;const qne="8.1.6",Kne={version:qne};var qS=function e(t,r,a){if(typeof t!="object"||t===null)throw new Error("Non object passed to convertKeys: "+t);if(Array.isArray(t))return t;Array.isArray(a)||(a=[]);for(const n in t)if(t.hasOwnProperty(n)){const i=r(n);typeof t[n]=="object"&&t[n]!==null&&!a.includes(n)&&!a.includes(i)&&(t[n]=e(t[n],r,a)),i!==n&&(t[i]=t[n],delete t[n])}return t},Qne=function(e){if(typeof e!="string")throw new Error("String expected for conversion to snake case");return e.trim().replace(/_+|\-+/g," ").replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,function(t,r){return Number(t)===0?"":r===0?t.toLowerCase():t.toUpperCase()})};const eae=qS,tae=Qne;var KS=function(e,t){return eae(e,tae,t)},rae=function(e){if(typeof e!="string")throw new Error("String expected for conversion to snake case");return e.trim().replace(/(\s*\-*\b\w|[A-Z])/g,function(t){return t=t.trim().toLowerCase().replace("-",""),(t[0]==="_"?"":"_")+t}).slice(1)};const nae=qS,aae=rae;var QS=function(e,t){return nae(e,aae,t)},e$=function(e){return JSON.parse(JSON.stringify(e))},iae=function(e){if(e.indexOf("<")===-1)return["",e];let[t,r]=e.split("<");return t=t.trim(),r=r.replace(">","").trim(),[t,r]};const oae=iae;var t$=class Eh{constructor(t){t&&this.fromData(t)}fromData(t){if(typeof t=="string"){const[n,i]=oae(t);t={name:n,email:i}}if(typeof t!="object")throw new Error("Expecting object or string for EmailAddress data");const{name:r,email:a}=t;this.setEmail(a),this.setName(r)}setName(t){if(!(typeof t>"u")){if(typeof t!="string")throw new Error("String expected for `name`");this.name=t}}setEmail(t){if(typeof t>"u")throw new Error("Must provide `email`");if(typeof t!="string")throw new Error("String expected for `email`");this.email=t}toJSON(){const{email:t,name:r}=this,a={email:t};return r!==""&&(a.name=r),a}static create(t){return Array.isArray(t)?t.filter(r=>!!r).map(r=>this.create(r)):t instanceof Eh?t:new Eh(t)}},sae=function(e){return uae(e)&&!cae(e)};function uae(e){return!!e&&typeof e=="object"}function cae(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||fae(e)}var lae=typeof Symbol=="function"&&Symbol.for,dae=lae?Symbol.for("react.element"):60103;function fae(e){return e.$$typeof===dae}function pae(e){return Array.isArray(e)?[]:{}}function es(e,t){return t.clone!==!1&&t.isMergeableObject(e)?xi(pae(e),e,t):e}function hae(e,t,r){return e.concat(t).map(function(a){return es(a,r)})}function mae(e,t){if(!t.customMerge)return xi;var r=t.customMerge(e);return typeof r=="function"?r:xi}function gae(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function r$(e){return Object.keys(e).concat(gae(e))}function n$(e,t){try{return t in e}catch{return!1}}function vae(e,t){return n$(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function yae(e,t,r){var a={};return r.isMergeableObject(e)&&r$(e).forEach(function(n){a[n]=es(e[n],r)}),r$(t).forEach(function(n){vae(e,n)||(n$(e,n)&&r.isMergeableObject(t[n])?a[n]=mae(n,r)(e[n],t[n],r):a[n]=es(t[n],r))}),a}function xi(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||hae,r.isMergeableObject=r.isMergeableObject||sae,r.cloneUnlessOtherwiseSpecified=es;var a=Array.isArray(t),n=Array.isArray(e),i=a===n;return i?a?r.arrayMerge(e,t,r):yae(e,t,r):es(t,r)}xi.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,a){return xi(r,a,t)},{})};var bae=xi,wae=bae,Cae=function e(t,r="{{",a="}}"){if(Array.isArray(t))return t.map(i=>e(i,r,a));const n={};for(const i in t)t.hasOwnProperty(i)&&(n[r+i+a]=String(t[i]));return n};const Ca=t$,Sae=KS,$ae=QS,Iae=e$,Eae=wae,_ae=Cae;var Aae=class{constructor(e){this.to=[],this.cc=[],this.bcc=[],this.headers={},this.customArgs={},this.substitutions={},this.substitutionWrappers=["{{","}}"],this.dynamicTemplateData={},e&&this.fromData(e)}fromData(e){if(typeof e!="object")throw new Error("Expecting object for Mail data");e=Iae(e),e=Sae(e,["substitutions","dynamicTemplateData","customArgs","headers"]);const{to:t,from:r,cc:a,bcc:n,subject:i,headers:o,customArgs:s,sendAt:u,substitutions:c,substitutionWrappers:l,dynamicTemplateData:d}=e;this.setTo(t),this.setFrom(r),this.setCc(a),this.setBcc(n),this.setSubject(i),this.setHeaders(o),this.setSubstitutions(c),this.setSubstitutionWrappers(l),this.setCustomArgs(s),this.setDynamicTemplateData(d),this.setSendAt(u)}setSubject(e){if(!(typeof e>"u")){if(typeof e!="string")throw new Error("String expected for `subject`");this.subject=e}}setSendAt(e){if(!(typeof e>"u")){if(!Number.isInteger(e))throw new Error("Integer expected for `sendAt`");this.sendAt=e}}setTo(e){typeof e>"u"||(Array.isArray(e)||(e=[e]),this.to=Ca.create(e))}setFrom(e){typeof e>"u"||(this.from=Ca.create(e))}addTo(e){typeof e>"u"||this.to.push(Ca.create(e))}setCc(e){typeof e>"u"||(Array.isArray(e)||(e=[e]),this.cc=Ca.create(e))}addCc(e){typeof e>"u"||this.cc.push(Ca.create(e))}setBcc(e){typeof e>"u"||(Array.isArray(e)||(e=[e]),this.bcc=Ca.create(e))}addBcc(e){typeof e>"u"||this.bcc.push(Ca.create(e))}setHeaders(e){if(!(typeof e>"u")){if(typeof e!="object"||e===null)throw new Error("Object expected for `headers`");this.headers=e}}addHeader(e,t){if(typeof e!="string")throw new Error("String expected for header key");if(typeof t!="string")throw new Error("String expected for header value");this.headers[e]=t}setCustomArgs(e){if(!(typeof e>"u")){if(typeof e!="object"||e===null)throw new Error("Object expected for `customArgs`");this.customArgs=e}}addCustomArg(e,t){if(typeof e!="string")throw new Error("String expected for custom arg key");if(typeof t!="string")throw new Error("String expected for custom arg value");this.customArgs[e]=t}setSubstitutions(e){if(!(typeof e>"u")){if(typeof e!="object")throw new Error("Object expected for `substitutions`");this.substitutions=e}}addSubstitution(e,t){if(typeof e!="string")throw new Error("String expected for substitution key");if(typeof t!="string"&&typeof t!="number")throw new Error("String or Number expected for substitution value");this.substitutions[e]=t}reverseMergeSubstitutions(e){if(!(typeof e>"u"||e===null)){if(typeof e!="object")throw new Error("Object expected for `substitutions` in reverseMergeSubstitutions");this.substitutions=Object.assign({},e,this.substitutions)}}setSubstitutionWrappers(e){if(!(typeof e>"u"||e===null)){if(!Array.isArray(e)||e.length!==2)throw new Error("Array expected with two elements for `substitutionWrappers`");this.substitutionWrappers=e}}deepMergeDynamicTemplateData(e){if(!(typeof e>"u"||e===null)){if(typeof e!="object")throw new Error("Object expected for `dynamicTemplateData` in deepMergeDynamicTemplateData");this.dynamicTemplateData=Eae(e,this.dynamicTemplateData)}}setDynamicTemplateData(e){if(!(typeof e>"u")){if(typeof e!="object")throw new Error("Object expected for `dynamicTemplateData`");this.dynamicTemplateData=e}}toJSON(){const{to:e,from:t,cc:r,bcc:a,subject:n,headers:i,customArgs:o,sendAt:s,substitutions:u,substitutionWrappers:c,dynamicTemplateData:l}=this,d={to:e};if(Array.isArray(r)&&r.length>0&&(d.cc=r),Array.isArray(a)&&a.length>0&&(d.bcc=a),Object.keys(i).length>0&&(d.headers=i),u&&Object.keys(u).length>0){const[f,p]=c;d.substitutions=_ae(u,f,p)}return Object.keys(o).length>0&&(d.customArgs=o),l&&Object.keys(l).length>0&&(d.dynamicTemplateData=l),typeof n<"u"&&(d.subject=n),typeof s<"u"&&(d.sendAt=s),typeof t<"u"&&(d.from=t),$ae(d,["substitutions","dynamicTemplateData","customArgs","headers"])}},Oae=function(e){return e.map(t=>typeof t=="object"&&t!==null&&typeof t.toJSON=="function"?t.toJSON():t)},Tae={DYNAMIC_TEMPLATE_CHAR_WARNING:`
|
|
104
104
|
Content with characters ', " or & may need to be escaped with three brackets
|
|
105
105
|
{{{ content }}}
|
|
106
|
-
See https://sendgrid.com/docs/for-developers/sending-email/using-handlebars/ for more information.`};const Ze=(e,t,r,a)=>{if(!(typeof e>"u"||typeof e[r]>"u")&&typeof e[r]!==a)throw new Error(`${a} expected for \`${t}.${r}\``)};var Tae={validateMailSettings(e){if(typeof e!="object")throw new Error("Object expected for `mailSettings`");const{bcc:t,bypassListManagement:r,bypassSpamManagement:a,bypassBounceManagement:n,bypassUnsubscribeManagement:i,footer:o,sandboxMode:s,spamCheck:u}=e;Ze(t,"bcc","enable","boolean"),Ze(t,"bcc","email","string"),Ze(r,"bypassListManagement","enable","boolean"),Ze(a,"bypassSpamManagement","enable","boolean"),Ze(n,"bypassBounceManagement","enable","boolean"),Ze(i,"bypassUnsubscribeManagement","enable","boolean"),Ze(o,"footer","enable","boolean"),Ze(o,"footer","text","string"),Ze(o,"footer","html","string"),Ze(s,"sandboxMode","enable","boolean"),Ze(u,"spamCheck","enable","boolean"),Ze(u,"spamCheck","threshold","number"),Ze(u,"spamCheck","postToUrl","string")},validateTrackingSettings(e){if(typeof e!="object")throw new Error("Object expected for `trackingSettings`");const{clickTracking:t,openTracking:r,subscriptionTracking:a,ganalytics:n}=e;Ze(t,"clickTracking","enable","boolean"),Ze(t,"clickTracking","enableText","boolean"),Ze(r,"openTracking","enable","boolean"),Ze(r,"openTracking","substitutionTag","string"),Ze(a,"subscriptionTracking","enable","boolean"),Ze(a,"subscriptionTracking","text","string"),Ze(a,"subscriptionTracking","html","string"),Ze(a,"subscriptionTracking","substitutionTag","string"),Ze(n,"ganalytics","enable","boolean"),Ze(n,"ganalytics","utm_source","string"),Ze(n,"ganalytics","utm_medium","string"),Ze(n,"ganalytics","utm_term","string"),Ze(n,"ganalytics","utm_content","string"),Ze(n,"ganalytics","utm_campaign","string")}};const n$=e$,ts=_ae,xae=qS,Dae=KS,Pae=QS,bh=Aae,{DYNAMIC_TEMPLATE_CHAR_WARNING:Rae}=Oae,{validateMailSettings:Nae,validateTrackingSettings:kae}=Tae;var Mae=class _h{constructor(t){this.isDynamic=!1,this.hideWarnings=!1,this.personalizations=[],this.attachments=[],this.content=[],this.categories=[],this.headers={},this.sections={},this.customArgs={},this.trackingSettings={},this.mailSettings={},this.asm={},this.substitutions=null,this.substitutionWrappers=null,this.dynamicTemplateData=null,t&&this.fromData(t)}fromData(t){if(typeof t!="object")throw new Error("Expecting object for Mail data");t=Pae(t),t=xae(t,["substitutions","dynamicTemplateData","customArgs","headers","sections"]);const{to:r,from:a,replyTo:n,cc:i,bcc:o,sendAt:s,subject:u,text:c,html:l,content:d,templateId:f,personalizations:p,attachments:m,ipPoolName:v,batchId:g,sections:h,headers:y,categories:b,category:w,customArgs:C,asm:E,mailSettings:_,trackingSettings:N,substitutions:R,substitutionWrappers:k,dynamicTemplateData:F,isMultiple:W,hideWarnings:B,replyToList:U}=t;this.setFrom(a),this.setReplyTo(n),this.setSubject(u),this.setSendAt(s),this.setTemplateId(f),this.setBatchId(g),this.setIpPoolName(v),this.setAttachments(m),this.setContent(d),this.setSections(h),this.setHeaders(y),this.setCategories(w),this.setCategories(b),this.setCustomArgs(C),this.setAsm(E),this.setMailSettings(_),this.setTrackingSettings(N),this.setHideWarnings(B),this.setReplyToList(U),this.isDynamic?this.setDynamicTemplateData(F):(this.setSubstitutions(R),this.setSubstitutionWrappers(k)),this.addTextContent(c),this.addHtmlContent(l),p?this.setPersonalizations(p):W&&Array.isArray(r)?r.forEach(Y=>this.addTo(Y,i,o)):this.addTo(r,i,o)}setFrom(t){if(this._checkProperty("from",t,[this._checkUndefined])){if(typeof t!="string"&&typeof t.email!="string")throw new Error("String or address object expected for `from`");this.from=n$.create(t)}}setReplyTo(t){if(this._checkProperty("replyTo",t,[this._checkUndefined])){if(typeof t!="string"&&typeof t.email!="string")throw new Error("String or address object expected for `replyTo`");this.replyTo=n$.create(t)}}setSubject(t){this._setProperty("subject",t,"string")}setSendAt(t){this._checkProperty("sendAt",t,[this._checkUndefined,this._createCheckThatThrows(Number.isInteger,"Integer expected for `sendAt`")])&&(this.sendAt=t)}setTemplateId(t){this._setProperty("templateId",t,"string")&&t.indexOf("d-")===0&&(this.isDynamic=!0)}setBatchId(t){this._setProperty("batchId",t,"string")}setIpPoolName(t){this._setProperty("ipPoolName",t,"string")}setAsm(t){if(this._checkProperty("asm",t,[this._checkUndefined,this._createTypeCheck("object")])){if(typeof t.groupId!="number")throw new Error("Expected `asm` to include an integer in its `groupId` field");if(t.groupsToDisplay&&(!Array.isArray(t.groupsToDisplay)||!t.groupsToDisplay.every(r=>typeof r=="number")))throw new Error("Array of integers expected for `asm.groupsToDisplay`");this.asm=t}}setPersonalizations(t){if(this._doArrayCheck("personalizations",t)){if(!t.every(r=>typeof r=="object"))throw new Error("Array of objects expected for `personalizations`");this.personalizations=[],t.forEach(r=>this.addPersonalization(r))}}addPersonalization(t){this.isDynamic&&t.substitutions?delete t.substitutions:!this.isDynamic&&t.dynamicTemplateData&&delete t.dynamicTemplateData,t instanceof ts||(t=new ts(t)),this.isDynamic?this.applyDynamicTemplateData(t):this.applySubstitutions(t),this.personalizations.push(t)}addTo(t,r,a){if(typeof t>"u"&&typeof r>"u"&&typeof a>"u")throw new Error("Provide at least one of to, cc or bcc");this.addPersonalization(new ts({to:t,cc:r,bcc:a}))}setSubstitutions(t){this._setProperty("substitutions",t,"object")}setSubstitutionWrappers(t){let r=(a,n)=>{if(!Array.isArray(n)||n.length!==2)throw new Error("Array expected with two elements for `"+a+"`")};this._checkProperty("substitutionWrappers",t,[this._checkUndefined,r])&&(this.substitutionWrappers=t)}applySubstitutions(t){t instanceof ts&&(t.reverseMergeSubstitutions(this.substitutions),t.setSubstitutionWrappers(this.substitutionWrappers))}applyDynamicTemplateData(t){t instanceof ts&&t.deepMergeDynamicTemplateData(this.dynamicTemplateData)}setDynamicTemplateData(t){if(!(typeof t>"u")){if(typeof t!="object")throw new Error("Object expected for `dynamicTemplateData`");this.hideWarnings||Object.values(t).forEach(r=>{/['"&]/.test(r)&&console.warn(Rae)}),this.dynamicTemplateData=t}}setContent(t){if(this._doArrayCheck("content",t)){if(!t.every(r=>typeof r=="object"))throw new Error("Expected each entry in `content` to be an object");if(!t.every(r=>typeof r.type=="string"))throw new Error("Expected each `content` entry to contain a `type` string");if(!t.every(r=>typeof r.value=="string"))throw new Error("Expected each `content` entry to contain a `value` string");this.content=t}}addContent(t){this._checkProperty("content",t,[this._createTypeCheck("object")])&&this.content.push(t)}addTextContent(t){this._checkProperty("text",t,[this._checkUndefined,this._createTypeCheck("string")])&&this.addContent({value:t,type:"text/plain"})}addHtmlContent(t){this._checkProperty("html",t,[this._checkUndefined,this._createTypeCheck("string")])&&this.addContent({value:t,type:"text/html"})}setAttachments(t){if(this._doArrayCheck("attachments",t)){if(!t.every(r=>typeof r.content=="string"))throw new Error("Expected each attachment to contain a `content` string");if(!t.every(r=>typeof r.filename=="string"))throw new Error("Expected each attachment to contain a `filename` string");if(!t.every(r=>!r.type||typeof r.type=="string"))throw new Error("Expected the attachment's `type` field to be a string");if(!t.every(r=>!r.disposition||typeof r.disposition=="string"))throw new Error("Expected the attachment's `disposition` field to be a string");this.attachments=t}}addAttachment(t){this._checkProperty("attachment",t,[this._checkUndefined,this._createTypeCheck("object")])&&this.attachments.push(t)}setCategories(t){let r=(a,n)=>{if(!Array.isArray(n)||!n.every(i=>typeof i=="string"))throw new Error("Array of strings expected for `"+a+"`")};typeof t=="string"&&(t=[t]),this._checkProperty("categories",t,[this._checkUndefined,r])&&(this.categories=t)}addCategory(t){this._checkProperty("category",t,[this._createTypeCheck("string")])&&this.categories.push(t)}setHeaders(t){this._setProperty("headers",t,"object")}addHeader(t,r){this._checkProperty("key",t,[this._createTypeCheck("string")])&&this._checkProperty("value",r,[this._createTypeCheck("string")])&&(this.headers[t]=r)}setSections(t){this._setProperty("sections",t,"object")}setCustomArgs(t){this._setProperty("customArgs",t,"object")}setTrackingSettings(t){typeof t>"u"||(kae(t),this.trackingSettings=t)}setMailSettings(t){typeof t>"u"||(Nae(t),this.mailSettings=t)}setHideWarnings(t){if(!(typeof t>"u")){if(typeof t!="boolean")throw new Error("Boolean expected for `hideWarnings`");this.hideWarnings=t}}toJSON(){const{from:t,replyTo:r,sendAt:a,subject:n,content:i,templateId:o,personalizations:s,attachments:u,ipPoolName:c,batchId:l,asm:d,sections:f,headers:p,categories:m,customArgs:v,mailSettings:g,trackingSettings:h,replyToList:y}=this,b={from:t,subject:n,personalizations:bh(s)};return Array.isArray(u)&&u.length>0&&(b.attachments=bh(u)),Array.isArray(m)&&m.length>0&&(b.categories=m.filter(w=>w!=="")),Array.isArray(i)&&i.length>0&&(b.content=bh(i)),Object.keys(p).length>0&&(b.headers=p),Object.keys(g).length>0&&(b.mailSettings=g),Object.keys(h).length>0&&(b.trackingSettings=h),Object.keys(v).length>0&&(b.customArgs=v),Object.keys(f).length>0&&(b.sections=f),Object.keys(d).length>0&&(b.asm=d),typeof r<"u"&&(b.replyTo=r),typeof a<"u"&&(b.sendAt=a),typeof l<"u"&&(b.batchId=l),typeof o<"u"&&(b.templateId=o),typeof c<"u"&&(b.ipPoolName=c),typeof y<"u"&&(b.replyToList=y),Dae(b,["substitutions","dynamicTemplateData","customArgs","headers","sections"])}static create(t){return Array.isArray(t)?t.filter(r=>!!r).map(r=>this.create(r)):t instanceof _h?t:new _h(t)}_checkProperty(t,r,a){return!a.some(n=>n(t,r))}_setProperty(t,r,a){let n=this._checkProperty(t,r,[this._checkUndefined,this._createTypeCheck(a)]);return n&&(this[t]=r),n}_checkUndefined(t,r){return typeof r>"u"}_createTypeCheck(t){return(r,a)=>{if(typeof a!==t)throw new Error(t+" expected for `"+r+"`")}}_createCheckThatThrows(t,r){return(a,n)=>{if(!t(n))throw new Error(r)}}_setArrayProperty(t,r){this._doArrayCheck(t,r)&&(this[t]=r)}_doArrayCheck(t,r){return this._checkProperty(t,r,[this._checkUndefined,this._createCheckThatThrows(Array.isArray,"Array expected for`"+t+"`")])}setReplyToList(t){if(this._doArrayCheck("replyToList",t)&&t.length){if(!t.every(r=>r&&typeof r.email=="string"))throw new Error("Expected each replyTo to contain an `email` string");this.replyToList=t}}},Fae=class{constructor(e,t,r){this.statusCode=e,this.body=t,this.headers=r}toString(){return"HTTP "+this.statusCode+" "+this.body}},jae=class extends Error{constructor(e){super();const{headers:t,status:r,statusText:a,data:n}=e;this.code=r,this.message=a,this.response={headers:t,body:n},this.stack||Error.captureStackTrace(this,this.constructor);const i=new RegExp(process.cwd()+"/","gi");this.stack=this.stack.replace(i,"")}toString(){const{body:e}=this.response;let t=`${this.message} (${this.code})`;return e&&Array.isArray(e.errors)&&e.errors.forEach(r=>{const a=r.message,n=r.field,i=r.help;t+=`
|
|
106
|
+
See https://sendgrid.com/docs/for-developers/sending-email/using-handlebars/ for more information.`};const Ze=(e,t,r,a)=>{if(!(typeof e>"u"||typeof e[r]>"u")&&typeof e[r]!==a)throw new Error(`${a} expected for \`${t}.${r}\``)};var xae={validateMailSettings(e){if(typeof e!="object")throw new Error("Object expected for `mailSettings`");const{bcc:t,bypassListManagement:r,bypassSpamManagement:a,bypassBounceManagement:n,bypassUnsubscribeManagement:i,footer:o,sandboxMode:s,spamCheck:u}=e;Ze(t,"bcc","enable","boolean"),Ze(t,"bcc","email","string"),Ze(r,"bypassListManagement","enable","boolean"),Ze(a,"bypassSpamManagement","enable","boolean"),Ze(n,"bypassBounceManagement","enable","boolean"),Ze(i,"bypassUnsubscribeManagement","enable","boolean"),Ze(o,"footer","enable","boolean"),Ze(o,"footer","text","string"),Ze(o,"footer","html","string"),Ze(s,"sandboxMode","enable","boolean"),Ze(u,"spamCheck","enable","boolean"),Ze(u,"spamCheck","threshold","number"),Ze(u,"spamCheck","postToUrl","string")},validateTrackingSettings(e){if(typeof e!="object")throw new Error("Object expected for `trackingSettings`");const{clickTracking:t,openTracking:r,subscriptionTracking:a,ganalytics:n}=e;Ze(t,"clickTracking","enable","boolean"),Ze(t,"clickTracking","enableText","boolean"),Ze(r,"openTracking","enable","boolean"),Ze(r,"openTracking","substitutionTag","string"),Ze(a,"subscriptionTracking","enable","boolean"),Ze(a,"subscriptionTracking","text","string"),Ze(a,"subscriptionTracking","html","string"),Ze(a,"subscriptionTracking","substitutionTag","string"),Ze(n,"ganalytics","enable","boolean"),Ze(n,"ganalytics","utm_source","string"),Ze(n,"ganalytics","utm_medium","string"),Ze(n,"ganalytics","utm_term","string"),Ze(n,"ganalytics","utm_content","string"),Ze(n,"ganalytics","utm_campaign","string")}};const a$=t$,ts=Aae,Dae=KS,Pae=QS,Rae=e$,bh=Oae,{DYNAMIC_TEMPLATE_CHAR_WARNING:Nae}=Tae,{validateMailSettings:kae,validateTrackingSettings:Mae}=xae;var Fae=class _h{constructor(t){this.isDynamic=!1,this.hideWarnings=!1,this.personalizations=[],this.attachments=[],this.content=[],this.categories=[],this.headers={},this.sections={},this.customArgs={},this.trackingSettings={},this.mailSettings={},this.asm={},this.substitutions=null,this.substitutionWrappers=null,this.dynamicTemplateData=null,t&&this.fromData(t)}fromData(t){if(typeof t!="object")throw new Error("Expecting object for Mail data");t=Rae(t),t=Dae(t,["substitutions","dynamicTemplateData","customArgs","headers","sections"]);const{to:r,from:a,replyTo:n,cc:i,bcc:o,sendAt:s,subject:u,text:c,html:l,content:d,templateId:f,personalizations:p,attachments:m,ipPoolName:v,batchId:g,sections:h,headers:y,categories:b,category:w,customArgs:C,asm:E,mailSettings:_,trackingSettings:N,substitutions:R,substitutionWrappers:k,dynamicTemplateData:F,isMultiple:W,hideWarnings:B,replyToList:U}=t;this.setFrom(a),this.setReplyTo(n),this.setSubject(u),this.setSendAt(s),this.setTemplateId(f),this.setBatchId(g),this.setIpPoolName(v),this.setAttachments(m),this.setContent(d),this.setSections(h),this.setHeaders(y),this.setCategories(w),this.setCategories(b),this.setCustomArgs(C),this.setAsm(E),this.setMailSettings(_),this.setTrackingSettings(N),this.setHideWarnings(B),this.setReplyToList(U),this.isDynamic?this.setDynamicTemplateData(F):(this.setSubstitutions(R),this.setSubstitutionWrappers(k)),this.addTextContent(c),this.addHtmlContent(l),p?this.setPersonalizations(p):W&&Array.isArray(r)?r.forEach(Y=>this.addTo(Y,i,o)):this.addTo(r,i,o)}setFrom(t){if(this._checkProperty("from",t,[this._checkUndefined])){if(typeof t!="string"&&typeof t.email!="string")throw new Error("String or address object expected for `from`");this.from=a$.create(t)}}setReplyTo(t){if(this._checkProperty("replyTo",t,[this._checkUndefined])){if(typeof t!="string"&&typeof t.email!="string")throw new Error("String or address object expected for `replyTo`");this.replyTo=a$.create(t)}}setSubject(t){this._setProperty("subject",t,"string")}setSendAt(t){this._checkProperty("sendAt",t,[this._checkUndefined,this._createCheckThatThrows(Number.isInteger,"Integer expected for `sendAt`")])&&(this.sendAt=t)}setTemplateId(t){this._setProperty("templateId",t,"string")&&t.indexOf("d-")===0&&(this.isDynamic=!0)}setBatchId(t){this._setProperty("batchId",t,"string")}setIpPoolName(t){this._setProperty("ipPoolName",t,"string")}setAsm(t){if(this._checkProperty("asm",t,[this._checkUndefined,this._createTypeCheck("object")])){if(typeof t.groupId!="number")throw new Error("Expected `asm` to include an integer in its `groupId` field");if(t.groupsToDisplay&&(!Array.isArray(t.groupsToDisplay)||!t.groupsToDisplay.every(r=>typeof r=="number")))throw new Error("Array of integers expected for `asm.groupsToDisplay`");this.asm=t}}setPersonalizations(t){if(this._doArrayCheck("personalizations",t)){if(!t.every(r=>typeof r=="object"))throw new Error("Array of objects expected for `personalizations`");this.personalizations=[],t.forEach(r=>this.addPersonalization(r))}}addPersonalization(t){this.isDynamic&&t.substitutions?delete t.substitutions:!this.isDynamic&&t.dynamicTemplateData&&delete t.dynamicTemplateData,t instanceof ts||(t=new ts(t)),this.isDynamic?this.applyDynamicTemplateData(t):this.applySubstitutions(t),this.personalizations.push(t)}addTo(t,r,a){if(typeof t>"u"&&typeof r>"u"&&typeof a>"u")throw new Error("Provide at least one of to, cc or bcc");this.addPersonalization(new ts({to:t,cc:r,bcc:a}))}setSubstitutions(t){this._setProperty("substitutions",t,"object")}setSubstitutionWrappers(t){let r=(a,n)=>{if(!Array.isArray(n)||n.length!==2)throw new Error("Array expected with two elements for `"+a+"`")};this._checkProperty("substitutionWrappers",t,[this._checkUndefined,r])&&(this.substitutionWrappers=t)}applySubstitutions(t){t instanceof ts&&(t.reverseMergeSubstitutions(this.substitutions),t.setSubstitutionWrappers(this.substitutionWrappers))}applyDynamicTemplateData(t){t instanceof ts&&t.deepMergeDynamicTemplateData(this.dynamicTemplateData)}setDynamicTemplateData(t){if(!(typeof t>"u")){if(typeof t!="object")throw new Error("Object expected for `dynamicTemplateData`");this.hideWarnings||Object.values(t).forEach(r=>{/['"&]/.test(r)&&console.warn(Nae)}),this.dynamicTemplateData=t}}setContent(t){if(this._doArrayCheck("content",t)){if(!t.every(r=>typeof r=="object"))throw new Error("Expected each entry in `content` to be an object");if(!t.every(r=>typeof r.type=="string"))throw new Error("Expected each `content` entry to contain a `type` string");if(!t.every(r=>typeof r.value=="string"))throw new Error("Expected each `content` entry to contain a `value` string");this.content=t}}addContent(t){this._checkProperty("content",t,[this._createTypeCheck("object")])&&this.content.push(t)}addTextContent(t){this._checkProperty("text",t,[this._checkUndefined,this._createTypeCheck("string")])&&this.addContent({value:t,type:"text/plain"})}addHtmlContent(t){this._checkProperty("html",t,[this._checkUndefined,this._createTypeCheck("string")])&&this.addContent({value:t,type:"text/html"})}setAttachments(t){if(this._doArrayCheck("attachments",t)){if(!t.every(r=>typeof r.content=="string"))throw new Error("Expected each attachment to contain a `content` string");if(!t.every(r=>typeof r.filename=="string"))throw new Error("Expected each attachment to contain a `filename` string");if(!t.every(r=>!r.type||typeof r.type=="string"))throw new Error("Expected the attachment's `type` field to be a string");if(!t.every(r=>!r.disposition||typeof r.disposition=="string"))throw new Error("Expected the attachment's `disposition` field to be a string");this.attachments=t}}addAttachment(t){this._checkProperty("attachment",t,[this._checkUndefined,this._createTypeCheck("object")])&&this.attachments.push(t)}setCategories(t){let r=(a,n)=>{if(!Array.isArray(n)||!n.every(i=>typeof i=="string"))throw new Error("Array of strings expected for `"+a+"`")};typeof t=="string"&&(t=[t]),this._checkProperty("categories",t,[this._checkUndefined,r])&&(this.categories=t)}addCategory(t){this._checkProperty("category",t,[this._createTypeCheck("string")])&&this.categories.push(t)}setHeaders(t){this._setProperty("headers",t,"object")}addHeader(t,r){this._checkProperty("key",t,[this._createTypeCheck("string")])&&this._checkProperty("value",r,[this._createTypeCheck("string")])&&(this.headers[t]=r)}setSections(t){this._setProperty("sections",t,"object")}setCustomArgs(t){this._setProperty("customArgs",t,"object")}setTrackingSettings(t){typeof t>"u"||(Mae(t),this.trackingSettings=t)}setMailSettings(t){typeof t>"u"||(kae(t),this.mailSettings=t)}setHideWarnings(t){if(!(typeof t>"u")){if(typeof t!="boolean")throw new Error("Boolean expected for `hideWarnings`");this.hideWarnings=t}}toJSON(){const{from:t,replyTo:r,sendAt:a,subject:n,content:i,templateId:o,personalizations:s,attachments:u,ipPoolName:c,batchId:l,asm:d,sections:f,headers:p,categories:m,customArgs:v,mailSettings:g,trackingSettings:h,replyToList:y}=this,b={from:t,subject:n,personalizations:bh(s)};return Array.isArray(u)&&u.length>0&&(b.attachments=bh(u)),Array.isArray(m)&&m.length>0&&(b.categories=m.filter(w=>w!=="")),Array.isArray(i)&&i.length>0&&(b.content=bh(i)),Object.keys(p).length>0&&(b.headers=p),Object.keys(g).length>0&&(b.mailSettings=g),Object.keys(h).length>0&&(b.trackingSettings=h),Object.keys(v).length>0&&(b.customArgs=v),Object.keys(f).length>0&&(b.sections=f),Object.keys(d).length>0&&(b.asm=d),typeof r<"u"&&(b.replyTo=r),typeof a<"u"&&(b.sendAt=a),typeof l<"u"&&(b.batchId=l),typeof o<"u"&&(b.templateId=o),typeof c<"u"&&(b.ipPoolName=c),typeof y<"u"&&(b.replyToList=y),Pae(b,["substitutions","dynamicTemplateData","customArgs","headers","sections"])}static create(t){return Array.isArray(t)?t.filter(r=>!!r).map(r=>this.create(r)):t instanceof _h?t:new _h(t)}_checkProperty(t,r,a){return!a.some(n=>n(t,r))}_setProperty(t,r,a){let n=this._checkProperty(t,r,[this._checkUndefined,this._createTypeCheck(a)]);return n&&(this[t]=r),n}_checkUndefined(t,r){return typeof r>"u"}_createTypeCheck(t){return(r,a)=>{if(typeof a!==t)throw new Error(t+" expected for `"+r+"`")}}_createCheckThatThrows(t,r){return(a,n)=>{if(!t(n))throw new Error(r)}}_setArrayProperty(t,r){this._doArrayCheck(t,r)&&(this[t]=r)}_doArrayCheck(t,r){return this._checkProperty(t,r,[this._checkUndefined,this._createCheckThatThrows(Array.isArray,"Array expected for`"+t+"`")])}setReplyToList(t){if(this._doArrayCheck("replyToList",t)&&t.length){if(!t.every(r=>r&&typeof r.email=="string"))throw new Error("Expected each replyTo to contain an `email` string");this.replyToList=t}}},jae=class{constructor(e,t,r){this.statusCode=e,this.body=t,this.headers=r}toString(){return"HTTP "+this.statusCode+" "+this.body}},Bae=class extends Error{constructor(e){super();const{headers:t,status:r,statusText:a,data:n}=e;this.code=r,this.message=a,this.response={headers:t,body:n},this.stack||Error.captureStackTrace(this,this.constructor);const i=new RegExp(process.cwd()+"/","gi");this.stack=this.stack.replace(i,"")}toString(){const{body:e}=this.response;let t=`${this.message} (${this.code})`;return e&&Array.isArray(e.errors)&&e.errors.forEach(r=>{const a=r.message,n=r.field,i=r.help;t+=`
|
|
107
107
|
${a}
|
|
108
108
|
${n}
|
|
109
|
-
${i}`}),t}toJSON(){const{message:e,code:t,response:r}=this;return{message:e,code:t,response:r}}},
|
|
109
|
+
${i}`}),t}toJSON(){const{message:e,code:t,response:r}=this;return{message:e,code:t,response:r}}},Lae={Mail:Fae,Response:jae,ResponseError:Bae},Gae=function(e,t){if(typeof e!="object"||e===null)throw new Error("Not an object provided for base");if(typeof t!="object"||t===null)throw new Error("Not an object provided for data");const r=Object.assign({},e);for(const a in t)t.hasOwnProperty(a)&&(t[a]&&Array.isArray(t[a])?r[a]=t[a]:t[a]&&typeof t[a]=="object"?r[a]=Object.assign({},t[a]):t[a]&&(r[a]=t[a]));return r},Vae={mergeData:Gae},i$={classes:Lae,helpers:Vae};const Wae=Jne,Yae=Kne,{helpers:{mergeData:o$},classes:{Response:Uae,ResponseError:Hae}}=i$,s$="SG.",Xae="https://api.sendgrid.com/",zae="https://email.twilio.com/",Zae="global",wh={eu:"https://api.eu.sendgrid.com/",global:"https://api.sendgrid.com/"};var u$=class{constructor(){this.auth="",this.impersonateSubuser="",this.sendgrid_region=Zae,this.defaultHeaders={Accept:"application/json","Content-Type":"application/json","User-Agent":"sendgrid/"+Yae.version+";nodejs"},this.defaultRequest={baseUrl:Xae,url:"",method:"GET",headers:{},maxContentLength:1/0,maxBodyLength:1/0}}setApiKey(e){this.auth="Bearer "+e,this.setDefaultRequest("baseUrl",wh[this.sendgrid_region]),this.isValidApiKey(e)||console.warn(`API key does not start with "${s$}".`)}setTwilioEmailAuth(e,t){const r=Buffer.from(e+":"+t).toString("base64");this.auth="Basic "+r,this.setDefaultRequest("baseUrl",zae),this.isValidTwilioAuth(e,t)||console.warn("Twilio Email credentials must be non-empty strings.")}isValidApiKey(e){return this.isString(e)&&e.trim().startsWith(s$)}isValidTwilioAuth(e,t){return this.isString(e)&&e&&this.isString(t)&&t}isString(e){return typeof e=="string"||e instanceof String}setImpersonateSubuser(e){this.impersonateSubuser=e}setDefaultHeader(e,t){return e!==null&&typeof e=="object"?(Object.assign(this.defaultHeaders,e),this):(this.defaultHeaders[e]=t,this)}setDefaultRequest(e,t){return e!==null&&typeof e=="object"?(Object.assign(this.defaultRequest,e),this):(this.defaultRequest[e]=t,this)}setDataResidency(e){return wh.hasOwnProperty(e)?(this.sendgrid_region=e,this.setDefaultRequest("baseUrl",wh[e])):console.warn('Region can only be "global" or "eu".'),this}createHeaders(e){const t=o$(this.defaultHeaders,e);return typeof t.Authorization>"u"&&this.auth&&(t.Authorization=this.auth),this.impersonateSubuser&&(t["On-Behalf-Of"]=this.impersonateSubuser),t}createRequest(e){let t={url:e.uri||e.url,baseUrl:e.baseUrl,method:e.method,data:e.body,params:e.qs,headers:e.headers};return t=o$(this.defaultRequest,t),t.headers=this.createHeaders(t.headers),t.baseURL=t.baseUrl,delete t.baseUrl,t}request(e,t){e=this.createRequest(e);const r=new Promise((a,n)=>{Wae(e).then(i=>a([new Uae(i.status,i.data,i.headers),i.data])).catch(i=>i.response&&i.response.status>=400?n(new Hae(i.response)):n(i))});if(t&&typeof t!="function")throw new Error("Callback passed is not a function.");return t?r.then(a=>t(null,a)).catch(a=>t(a,null)):r}};const Jae=u$;var qae=new Jae;const Kae=qae,Qae=u$;ah.exports=Kae,ah.exports.Client=Qae;var eie=ah.exports;const{Client:tie}=eie,{classes:{Mail:rie}}=i$;var c$=class{constructor(){this.setClient(new tie),this.setSubstitutionWrappers("{{","}}"),this.secretRules=[]}setClient(e){return this.client=e,this}setApiKey(e){return this.client.setApiKey(e),this}setTwilioEmailAuth(e,t){this.client.setTwilioEmailAuth(e,t)}setTimeout(e){typeof e>"u"||this.client.setDefaultRequest("timeout",e)}setSubstitutionWrappers(e,t){if(typeof e>"u"||typeof t>"u")throw new Error("Must provide both left and right side wrappers");return Array.isArray(this.substitutionWrappers)||(this.substitutionWrappers=[]),this.substitutionWrappers[0]=e,this.substitutionWrappers[1]=t,this}setSecretRules(e){e instanceof Array||(e=[e]);const t=e.map(function(r){const a=typeof r;if(a==="string")return{pattern:new RegExp(r)};if(a==="object"){r instanceof RegExp?r={pattern:r}:r.hasOwnProperty("pattern")&&typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern));try{return r.pattern.test(""),r}catch{}}});this.secretRules=t.filter(function(r){return r})}filterSecrets(e){if(typeof e=="object"&&!e.hasOwnProperty("content"))return;const t=this;e.content.forEach(function(r){t.secretRules.forEach(function(a){if(a.hasOwnProperty("pattern")&&!a.pattern.test(r.value))return;let n=`The pattern '${a.pattern}'`;throw a.name&&(n+=`identified by '${a.name}'`),n+=" was found in the Mail content!",new Error(n)})})}send(e,t=!1,r){if(typeof t=="function"&&(r=t,t=!1),Array.isArray(e)){const a=Promise.all(e.map(n=>this.send(n,t)));return r&&a.then(n=>r(null,n)).catch(n=>r(n,null)),a}try{typeof e.isMultiple>"u"&&(e.isMultiple=t),typeof e.substitutionWrappers>"u"&&(e.substitutionWrappers=this.substitutionWrappers);const a=rie.create(e),n=a.toJSON();this.filterSecrets(n);const i={method:"POST",url:"/v3/mail/send",headers:a.headers,body:n};return this.client.request(i,r)}catch(a){return r&&r(a,null),Promise.reject(a)}}sendMultiple(e,t){return this.send(e,!0,t)}};const nie=c$;var aie=new nie;const iie=aie,oie=c$;nh.exports=iie,nh.exports.MailService=oie;var sie=nh.exports;const l$=wre(sie);async function d$(e,t,r,a,n=[],i=[],o=[],s="noreply@springmicrohost.com"){console.log("Sending email"),l$.setApiKey(e);const u={to:n,cc:i,bcc:o,from:s,subject:t,text:r,html:a};return l$.send(u).then(c=>(console.log("SendGrid success message:",c),new Response(JSON.stringify(c),{status:200}))).catch(c=>(console.error(c),new Response(JSON.stringify(c),{status:502})))}async function uie(e,t,r,a=[],n=[],i=[],o="noreply@springmicrohost.com"){const s=JSON.stringify(r,null,2),u=`<pre>${s}</pre>`;return await d$(e,t,s,u,a,n,i,o)}const f$={fields:Pq,templates:y6,widgets:qJ},cie=e8(f$);Re.BaseForm=cie,Re.emailOnlySG=d$,Re.emailOnlySGJSON=uie,Re.rjsfDaisyUiTheme=f$,Re.validator=yre,Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"})});
|