@akad/strapi-blocks 0.0.1-beta.1 → 0.0.1-beta.2

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/ts-lib.umd.cjs CHANGED
@@ -5,27 +5,27 @@
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var ya;function Tl(){if(ya)return pe;ya=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,n=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,o=r?Symbol.for("react.concurrent_mode"):60111,l=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function b(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case c:case o:case s:case a:case n:case f:return E;default:switch(E=E&&E.$$typeof,E){case u:case l:case p:case _:case i:return E;default:return T}}case t:return T}}}function w(E){return b(E)===o}return pe.AsyncMode=c,pe.ConcurrentMode=o,pe.ContextConsumer=u,pe.ContextProvider=i,pe.Element=e,pe.ForwardRef=l,pe.Fragment=s,pe.Lazy=p,pe.Memo=_,pe.Portal=t,pe.Profiler=a,pe.StrictMode=n,pe.Suspense=f,pe.isAsyncMode=function(E){return w(E)||b(E)===c},pe.isConcurrentMode=w,pe.isContextConsumer=function(E){return b(E)===u},pe.isContextProvider=function(E){return b(E)===i},pe.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},pe.isForwardRef=function(E){return b(E)===l},pe.isFragment=function(E){return b(E)===s},pe.isLazy=function(E){return b(E)===p},pe.isMemo=function(E){return b(E)===_},pe.isPortal=function(E){return b(E)===t},pe.isProfiler=function(E){return b(E)===a},pe.isStrictMode=function(E){return b(E)===n},pe.isSuspense=function(E){return b(E)===f},pe.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===s||E===o||E===a||E===n||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===p||E.$$typeof===_||E.$$typeof===i||E.$$typeof===u||E.$$typeof===l||E.$$typeof===m||E.$$typeof===y||E.$$typeof===g||E.$$typeof===v)},pe.typeOf=b,pe}var ge={};/** @license React v16.13.1
8
+ */var ya;function Tl(){if(ya)return pe;ya=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,n=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,o=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,i=r?Symbol.for("react.concurrent_mode"):60111,l=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function b(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case c:case i:case s:case a:case n:case f:return E;default:switch(E=E&&E.$$typeof,E){case u:case l:case p:case _:case o:return E;default:return T}}case t:return T}}}function w(E){return b(E)===i}return pe.AsyncMode=c,pe.ConcurrentMode=i,pe.ContextConsumer=u,pe.ContextProvider=o,pe.Element=e,pe.ForwardRef=l,pe.Fragment=s,pe.Lazy=p,pe.Memo=_,pe.Portal=t,pe.Profiler=a,pe.StrictMode=n,pe.Suspense=f,pe.isAsyncMode=function(E){return w(E)||b(E)===c},pe.isConcurrentMode=w,pe.isContextConsumer=function(E){return b(E)===u},pe.isContextProvider=function(E){return b(E)===o},pe.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},pe.isForwardRef=function(E){return b(E)===l},pe.isFragment=function(E){return b(E)===s},pe.isLazy=function(E){return b(E)===p},pe.isMemo=function(E){return b(E)===_},pe.isPortal=function(E){return b(E)===t},pe.isProfiler=function(E){return b(E)===a},pe.isStrictMode=function(E){return b(E)===n},pe.isSuspense=function(E){return b(E)===f},pe.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===s||E===i||E===a||E===n||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===p||E.$$typeof===_||E.$$typeof===o||E.$$typeof===u||E.$$typeof===l||E.$$typeof===m||E.$$typeof===y||E.$$typeof===g||E.$$typeof===v)},pe.typeOf=b,pe}var ge={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var va;function Pl(){return va||(va=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,n=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,o=r?Symbol.for("react.concurrent_mode"):60111,l=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function b(q){return typeof q=="string"||typeof q=="function"||q===s||q===o||q===a||q===n||q===f||q===h||typeof q=="object"&&q!==null&&(q.$$typeof===p||q.$$typeof===_||q.$$typeof===i||q.$$typeof===u||q.$$typeof===l||q.$$typeof===m||q.$$typeof===y||q.$$typeof===g||q.$$typeof===v)}function w(q){if(typeof q=="object"&&q!==null){var ye=q.$$typeof;switch(ye){case e:var me=q.type;switch(me){case c:case o:case s:case a:case n:case f:return me;default:var Ge=me&&me.$$typeof;switch(Ge){case u:case l:case p:case _:case i:return Ge;default:return ye}}case t:return ye}}}var E=c,T=o,D=u,R=i,L=e,I=l,A=s,M=p,F=_,V=t,G=a,X=n,re=f,te=!1;function oe(q){return te||(te=!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.")),P(q)||w(q)===c}function P(q){return w(q)===o}function k(q){return w(q)===u}function C(q){return w(q)===i}function S(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function d(q){return w(q)===l}function $(q){return w(q)===s}function N(q){return w(q)===p}function z(q){return w(q)===_}function j(q){return w(q)===t}function H(q){return w(q)===a}function K(q){return w(q)===n}function ne(q){return w(q)===f}ge.AsyncMode=E,ge.ConcurrentMode=T,ge.ContextConsumer=D,ge.ContextProvider=R,ge.Element=L,ge.ForwardRef=I,ge.Fragment=A,ge.Lazy=M,ge.Memo=F,ge.Portal=V,ge.Profiler=G,ge.StrictMode=X,ge.Suspense=re,ge.isAsyncMode=oe,ge.isConcurrentMode=P,ge.isContextConsumer=k,ge.isContextProvider=C,ge.isElement=S,ge.isForwardRef=d,ge.isFragment=$,ge.isLazy=N,ge.isMemo=z,ge.isPortal=j,ge.isProfiler=H,ge.isStrictMode=K,ge.isSuspense=ne,ge.isValidElementType=b,ge.typeOf=w}()),ge}var _a;function ba(){return _a||(_a=1,process.env.NODE_ENV==="production"?Rs.exports=Tl():Rs.exports=Pl()),Rs.exports}/*
15
+ */var va;function Pl(){return va||(va=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,n=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,o=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,i=r?Symbol.for("react.concurrent_mode"):60111,l=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function b(q){return typeof q=="string"||typeof q=="function"||q===s||q===i||q===a||q===n||q===f||q===h||typeof q=="object"&&q!==null&&(q.$$typeof===p||q.$$typeof===_||q.$$typeof===o||q.$$typeof===u||q.$$typeof===l||q.$$typeof===m||q.$$typeof===y||q.$$typeof===g||q.$$typeof===v)}function w(q){if(typeof q=="object"&&q!==null){var ye=q.$$typeof;switch(ye){case e:var me=q.type;switch(me){case c:case i:case s:case a:case n:case f:return me;default:var Ge=me&&me.$$typeof;switch(Ge){case u:case l:case p:case _:case o:return Ge;default:return ye}}case t:return ye}}}var E=c,T=i,D=u,R=o,L=e,I=l,A=s,M=p,F=_,V=t,G=a,X=n,re=f,te=!1;function oe(q){return te||(te=!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.")),P(q)||w(q)===c}function P(q){return w(q)===i}function k(q){return w(q)===u}function x(q){return w(q)===o}function S(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function d(q){return w(q)===l}function $(q){return w(q)===s}function N(q){return w(q)===p}function z(q){return w(q)===_}function j(q){return w(q)===t}function H(q){return w(q)===a}function K(q){return w(q)===n}function ne(q){return w(q)===f}ge.AsyncMode=E,ge.ConcurrentMode=T,ge.ContextConsumer=D,ge.ContextProvider=R,ge.Element=L,ge.ForwardRef=I,ge.Fragment=A,ge.Lazy=M,ge.Memo=F,ge.Portal=V,ge.Profiler=G,ge.StrictMode=X,ge.Suspense=re,ge.isAsyncMode=oe,ge.isConcurrentMode=P,ge.isContextConsumer=k,ge.isContextProvider=x,ge.isElement=S,ge.isForwardRef=d,ge.isFragment=$,ge.isLazy=N,ge.isMemo=z,ge.isPortal=j,ge.isProfiler=H,ge.isStrictMode=K,ge.isSuspense=ne,ge.isValidElementType=b,ge.typeOf=w}()),ge}var _a;function ba(){return _a||(_a=1,process.env.NODE_ENV==="production"?Rs.exports=Tl():Rs.exports=Pl()),Rs.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var Bs,ka;function Nl(){if(ka)return Bs;ka=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function s(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function n(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(i).map(function(l){return i[l]});if(c.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(l){o[l]=l}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Bs=n()?Object.assign:function(a,i){for(var u,c=s(a),o,l=1;l<arguments.length;l++){u=Object(arguments[l]);for(var f in u)e.call(u,f)&&(c[f]=u[f]);if(r){o=r(u);for(var h=0;h<o.length;h++)t.call(u,o[h])&&(c[o[h]]=u[o[h]])}}return c},Bs}var Ls,wa;function js(){if(wa)return Ls;wa=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ls=r,Ls}var Ea,$a;function Sa(){return $a||($a=1,Ea=Function.call.bind(Object.prototype.hasOwnProperty)),Ea}var zs,xa;function Ol(){if(xa)return zs;xa=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=js(),t={},s=Sa();r=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(a,i,u,c,o){if(process.env.NODE_ENV!=="production"){for(var l in a)if(s(a,l)){var f;try{if(typeof a[l]!="function"){var h=Error((c||"React class")+": "+u+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[l](i,l,c,u,null,e)}catch(p){f=p}if(f&&!(f instanceof Error)&&r((c||"React class")+": type specification of "+u+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in t)){t[f.message]=!0;var _=o?o():"";r("Failed "+u+" type: "+f.message+(_??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},zs=n,zs}var Vs,Ca;function Il(){if(Ca)return Vs;Ca=1;var r=ba(),e=Nl(),t=js(),s=Sa(),n=Ol(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return Vs=function(u,c){var o=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(P){var k=P&&(o&&P[o]||P[l]);if(typeof k=="function")return k}var h="<<anonymous>>",_={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(),arrayOf:b,element:w(),elementType:E(),instanceOf:T,node:I(),objectOf:R,oneOf:D,oneOfType:L,shape:M,exact:F};function p(P,k){return P===k?P!==0||1/P===1/k:P!==P&&k!==k}function v(P,k){this.message=P,this.data=k&&typeof k=="object"?k:{},this.stack=""}v.prototype=Error.prototype;function m(P){if(process.env.NODE_ENV!=="production")var k={},C=0;function S($,N,z,j,H,K,ne){if(j=j||h,K=K||z,ne!==t){if(c){var q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=j+":"+z;!k[ye]&&C<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+j+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),k[ye]=!0,C++)}}return N[z]==null?$?N[z]===null?new v("The "+H+" `"+K+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new v("The "+H+" `"+K+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:P(N,z,j,H,K)}var d=S.bind(null,!1);return d.isRequired=S.bind(null,!0),d}function y(P){function k(C,S,d,$,N,z){var j=C[S],H=X(j);if(H!==P){var K=re(j);return new v("Invalid "+$+" `"+N+"` of type "+("`"+K+"` supplied to `"+d+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return m(k)}function g(){return m(i)}function b(P){function k(C,S,d,$,N){if(typeof P!="function")return new v("Property `"+N+"` of component `"+d+"` has invalid PropType notation inside arrayOf.");var z=C[S];if(!Array.isArray(z)){var j=X(z);return new v("Invalid "+$+" `"+N+"` of type "+("`"+j+"` supplied to `"+d+"`, expected an array."))}for(var H=0;H<z.length;H++){var K=P(z,H,d,$,N+"["+H+"]",t);if(K instanceof Error)return K}return null}return m(k)}function w(){function P(k,C,S,d,$){var N=k[C];if(!u(N)){var z=X(N);return new v("Invalid "+d+" `"+$+"` of type "+("`"+z+"` supplied to `"+S+"`, expected a single ReactElement."))}return null}return m(P)}function E(){function P(k,C,S,d,$){var N=k[C];if(!r.isValidElementType(N)){var z=X(N);return new v("Invalid "+d+" `"+$+"` of type "+("`"+z+"` supplied to `"+S+"`, expected a single ReactElement type."))}return null}return m(P)}function T(P){function k(C,S,d,$,N){if(!(C[S]instanceof P)){var z=P.name||h,j=oe(C[S]);return new v("Invalid "+$+" `"+N+"` of type "+("`"+j+"` supplied to `"+d+"`, expected ")+("instance of `"+z+"`."))}return null}return m(k)}function D(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function k(C,S,d,$,N){for(var z=C[S],j=0;j<P.length;j++)if(p(z,P[j]))return null;var H=JSON.stringify(P,function(K,ne){var q=re(ne);return q==="symbol"?String(ne):ne});return new v("Invalid "+$+" `"+N+"` of value `"+String(z)+"` "+("supplied to `"+d+"`, expected one of "+H+"."))}return m(k)}function R(P){function k(C,S,d,$,N){if(typeof P!="function")return new v("Property `"+N+"` of component `"+d+"` has invalid PropType notation inside objectOf.");var z=C[S],j=X(z);if(j!=="object")return new v("Invalid "+$+" `"+N+"` of type "+("`"+j+"` supplied to `"+d+"`, expected an object."));for(var H in z)if(s(z,H)){var K=P(z,H,d,$,N+"."+H,t);if(K instanceof Error)return K}return null}return m(k)}function L(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var k=0;k<P.length;k++){var C=P[k];if(typeof C!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(C)+" at index "+k+"."),i}function S(d,$,N,z,j){for(var H=[],K=0;K<P.length;K++){var ne=P[K],q=ne(d,$,N,z,j,t);if(q==null)return null;q.data&&s(q.data,"expectedType")&&H.push(q.data.expectedType)}var ye=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new v("Invalid "+z+" `"+j+"` supplied to "+("`"+N+"`"+ye+"."))}return m(S)}function I(){function P(k,C,S,d,$){return V(k[C])?null:new v("Invalid "+d+" `"+$+"` supplied to "+("`"+S+"`, expected a ReactNode."))}return m(P)}function A(P,k,C,S,d){return new v((P||"React class")+": "+k+" type `"+C+"."+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+d+"`.")}function M(P){function k(C,S,d,$,N){var z=C[S],j=X(z);if(j!=="object")return new v("Invalid "+$+" `"+N+"` of type `"+j+"` "+("supplied to `"+d+"`, expected `object`."));for(var H in P){var K=P[H];if(typeof K!="function")return A(d,$,N,H,re(K));var ne=K(z,H,d,$,N+"."+H,t);if(ne)return ne}return null}return m(k)}function F(P){function k(C,S,d,$,N){var z=C[S],j=X(z);if(j!=="object")return new v("Invalid "+$+" `"+N+"` of type `"+j+"` "+("supplied to `"+d+"`, expected `object`."));var H=e({},C[S],P);for(var K in H){var ne=P[K];if(s(P,K)&&typeof ne!="function")return A(d,$,N,K,re(ne));if(!ne)return new v("Invalid "+$+" `"+N+"` key `"+K+"` supplied to `"+d+"`.\nBad object: "+JSON.stringify(C[S],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=ne(z,K,d,$,N+"."+K,t);if(q)return q}return null}return m(k)}function V(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(V);if(P===null||u(P))return!0;var k=f(P);if(k){var C=k.call(P),S;if(k!==P.entries){for(;!(S=C.next()).done;)if(!V(S.value))return!1}else for(;!(S=C.next()).done;){var d=S.value;if(d&&!V(d[1]))return!1}}else return!1;return!0;default:return!1}}function G(P,k){return P==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function X(P){var k=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":G(k,P)?"symbol":k}function re(P){if(typeof P>"u"||P===null)return""+P;var k=X(P);if(k==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return k}function te(P){var k=re(P);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function oe(P){return!P.constructor||!P.constructor.name?h:P.constructor.name}return _.checkPropTypes=n,_.resetWarningCache=n.resetWarningCache,_.PropTypes=_,_},Vs}var Hs,Aa;function Dl(){if(Aa)return Hs;Aa=1;var r=js();function e(){}function t(){}return t.resetWarningCache=e,Hs=function(){function s(i,u,c,o,l,f){if(f!==r){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}s.isRequired=s;function n(){return s}var a={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:n,element:s,elementType:s,instanceOf:n,node:s,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:t,resetWarningCache:e};return a.PropTypes=a,a},Hs}if(process.env.NODE_ENV!=="production"){var Ml=ba(),Fl=!0;Fs.exports=Il()(Ml.isElement,Fl)}else Fs.exports=Dl()();var Rl=Fs.exports;const x=Al(Rl),Bl={Primary:"primary",Secondary:"secondary",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Neutral:"neutral"},Ll={Solid:"solid",Outline:"outline",Text:"text"},jl={Large:"lg",Medium:"md",Small:"sm"},zl={Right:"right",Left:"left"},Jr={props:{color:{options:Object.values(Bl)},variant:{options:Object.values(Ll)},size:{options:Object.values(jl)},iconPosition:{options:Object.values(zl)}}},Ta={Primary:"primary",PrimaryLightest:"primary-lightest",PrimaryLighter:"primary-lighter",PrimaryLight:"primary-light",PrimaryDark:"primary-dark",PrimaryDarker:"primary-darker",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",Secondary:"secondary",SecondaryLightest:"secondary-lightest",SecondaryLighter:"secondary-lighter",SecondaryLight:"secondary-light",SecondaryDark:"secondary-dark",SecondaryDarker:"secondary-darker",Success:"success",SuccessLighter:"success-lighter",SuccessLight:"success-light",SuccessDark:"success-dark",Warning:"warning",WarningLighter:"warning-lighter",WarningLight:"warning-light",WarningDark:"warning-dark",Danger:"danger",DangerLighter:"danger-lighter",DangerLight:"danger-light",DangerDark:"danger-dark",Info:"info",InfoLighter:"info-lighter",InfoLight:"info-light",InfoDark:"info-dark"},Pa={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl",Huge:"huge"},Na={Bold:"bold",Semibold:"semibold",Medium:"medium",Regular:"regular",Light:"light",Extralight:"extralight"},Je={class:"ds-icon",props:{color:{default:Ta.Neutral90,options:Object.values(Ta)},image:{default:"settings"},size:{default:Pa.MD,options:Object.values(Pa)},fill:{default:!1},testId:{default:"ds-icon-test"},weight:{default:Na.Semibold,options:Object.values(Na)},onClick:{default:()=>({})}}},Vl={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},Ie=({image:r=Je.props.image.default,color:e=Je.props.color.default,className:t,size:s=Je.props.size.default,fill:n=Je.props.fill.default,weight:a=Je.props.weight.default,testId:i=Je.props.testId.default,onClick:u=Je.props.onClick.default})=>{const c="material-symbols-rounded",o=e&&Je.props.color.options.find(f=>f===e)&&`${Je.class}__color--${e}`,l=ee.useMemo(()=>({fontVariationSettings:`'FILL' ${n?1:0}, 'GRAD' 0,'wght' ${Vl[a]}, 'opsz' 48`}),[a,n]);return B.jsx("i",{className:[`${Je.class}--${s}`,Je.class,c,o,t&&t].filter(f=>f).join(" "),"data-testid":i,onClick:u,style:l,translate:"no",children:r})};Ie.propTypes={color:x.oneOf(Je.props.color.options),image:x.string,fontVariationSettings:x.object,size:x.oneOf(Je.props.size.options),fill:x.bool,weight:x.oneOf(Je.props.weight.options),onClick:x.func},Ie.displayName="DsIcon",x.oneOf(Jr.props.color.options),x.oneOf(Jr.props.variant.options),x.oneOf(Jr.props.size.options),x.bool,x.string,x.bool,x.oneOf(Jr.props.iconPosition.options),x.string,x.string,x.bool,x.node.isRequired,x.string,x.string;const Zr={None:"",PrimaryDarker:"primary-darker",PrimaryDark:"primary-dark",Primary:"primary",PrimaryLight:"primary-light",PrimaryLighter:"primary-lighter",PrimaryLightest:"primary-lightest",SecondaryDarker:"secondary-darker",SecondaryDark:"secondary-dark",Secondary:"secondary",SecondaryLight:"secondary-light",SecondaryLighter:"secondary-lighter",SecondaryLightest:"secondary-lightest",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",SuccessDark:"success-dark",Success:"success",SuccessLight:"success-light",SuccessLighter:"success-lighter",WarningDark:"warning-dark",Warning:"warning",WarningLight:"warning-light",WarningLighter:"warning-lighter",DangerDark:"danger-dark",Danger:"danger",DangerLight:"danger-light",DangerLighter:"danger-lighter",InfoDark:"info-dark",Info:"info",InfoLight:"info-light",InfoLighter:"info-lighter"},pt={class:"ds-card",props:{backgroundColor:{default:Zr.None,options:Object.values(Zr)},borderColor:{default:Zr.None,options:Object.values(Zr)},elevation:{default:0,options:[0,1,2,3,4]},testId:{default:"ds-card"}}},Er=({id:r,testId:e=pt.props.testId.default,children:t,className:s,elevation:n=pt.props.elevation.default,backgroundColor:a=pt.props.backgroundColor.default,borderColor:i=pt.props.borderColor.default})=>{const u=n&&`${pt.class}--elevation-${n}`,c=i&&`${pt.class}--border-${i}`,o=a&&`${pt.class}--${a}`;return B.jsx("div",{className:[pt.class,s,u,c,o].filter(l=>l).join(" "),"data-testid":e,id:r,children:t})};Er.propTypes={id:x.string,testId:x.string,backgroundColor:x.oneOf(pt.props.backgroundColor.options),borderColor:x.oneOf(pt.props.borderColor.options),elevation:x.oneOf(pt.props.elevation.options)},Er.displayName="DsCard";const Ve={class:"ds-checkbox",props:{testId:{default:"ds-checkbox-test"},label:{default:""},description:{default:""},checked:{default:!1},changeByChecked:{default:!1}}},Oa=ee.forwardRef(({id:r,className:e,name:t,testId:s=Ve.props.testId.default,label:n=Ve.props.label.default,description:a=Ve.props.description.default,checked:i=Ve.props.checked.default,disabled:u=Ve.props.checked.default,changeByChecked:c=Ve.props.changeByChecked.default,onChangeHandler:o},l)=>{const f=c||!1,h=i||!1,[_,p]=ee.useState(h),v={image:_?"check_box":"check_box_outline_blank",class:_?`${Ve.class}__icon--checked`:`${Ve.class}__icon--unchecked`},m=u&&`${Ve.class}--disabled`,y=g=>{u||(p(b=>!b),o&&o(g))};return ee.useEffect(()=>{f&&p(i)},[i,f]),B.jsxs("label",{className:[Ve.class,m,e&&e].join(" "),htmlFor:r||t,children:[B.jsx("input",{checked:_,className:`${Ve.class}__input`,"data-testid":s,id:r||t,name:t,onChange:y,ref:l,type:"checkbox"}),B.jsx(Ie,{className:`${Ve.class}__icon ${v.class}`,fill:!0,image:v.image,size:"xxl",testId:`${s}-icon`}),(a||n)&&B.jsxs("div",{className:`${Ve.class}__label`,children:[n&&B.jsx("label",{className:`${Ve.class}__label-title`,htmlFor:r||t,children:n}),a&&B.jsx("label",{className:`${Ve.class}__label-description`,htmlFor:r||t,children:a})]})]})});Oa.propTypes={label:x.oneOfType([x.string,x.node]),name:x.string,className:x.string,testId:x.string,description:x.oneOfType([x.string,x.node]),checked:x.bool,disabled:x.bool},Oa.displayName="DsCheckbox";const Ia={Heading1:"heading-1",Heading2:"heading-2",Heading3:"heading-3",Heading4:"heading-4",Heading5:"heading-5",Heading6:"heading-6"},$r={class:"ds-heading",props:{type:{default:Ia.Heading1,options:Object.values(Ia)}}},Rt=({children:r,testId:e="ds-heading-test",type:t=$r.props.type.default,className:s})=>{const n={"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6"},a=$r.props.type.options.find(u=>u===t)&&`${$r.class}--${t}`,i=n[t];return B.jsx(i,{className:[$r.class,a,s&&s].filter(u=>u).join(" "),"data-testid":e,children:r})};Rt.propTypes={className:x.string,testId:x.string,type:x.oneOf($r.props.type.options)},Rt.displayName="DsHeading";const Da={None:"",Dashed:"dashed",Dotted:"dotted"},Ma={None:"",Small:"small",Large:"large"},Wt={class:"ds-hr",props:{borderStyle:{type:String,default:Da.None,options:Object.values(Da)},size:{type:String,default:Ma.None,options:Object.values(Ma)}}};function Fa(r,e,t){const s=t.props[r];return s.options&&s.options.some(n=>n===e)?`${t.class}--${e}`:""}const Us=({size:r=Wt.props.size.default,borderStyle:e=Wt.props.borderStyle.default})=>{const t=Fa("size",r,Wt),s=Fa("borderStyle",e,Wt);return B.jsx("hr",{className:`${Wt.class} ${t} ${s}`.trim()})};Us.propTypes={size:x.oneOf(Wt.props.size.options),borderStyle:x.oneOf(Wt.props.borderStyle.options)},Us.displayName="DsHR";function Bt(r){return typeof r=="string"||r instanceof String}function Ra(r){var e;return typeof r=="object"&&r!=null&&(r==null||(e=r.constructor)==null?void 0:e.name)==="Object"}function Ba(r,e){return Array.isArray(e)?Ba(r,(t,s)=>e.includes(s)):Object.entries(r).reduce((t,s)=>{let[n,a]=s;return e(a,n)&&(t[n]=a),t},{})}const Z={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Hl(r){switch(r){case Z.LEFT:return Z.FORCE_LEFT;case Z.RIGHT:return Z.FORCE_RIGHT;default:return r}}function qs(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Qr(r,e){if(e===r)return!0;const t=Array.isArray(e),s=Array.isArray(r);let n;if(t&&s){if(e.length!=r.length)return!1;for(n=0;n<e.length;n++)if(!Qr(e[n],r[n]))return!1;return!0}if(t!=s)return!1;if(e&&r&&typeof e=="object"&&typeof r=="object"){const a=e instanceof Date,i=r instanceof Date;if(a&&i)return e.getTime()==r.getTime();if(a!=i)return!1;const u=e instanceof RegExp,c=r instanceof RegExp;if(u&&c)return e.toString()==r.toString();if(u!=c)return!1;const o=Object.keys(e);for(n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=0;n<o.length;n++)if(!Qr(r[o[n]],e[o[n]]))return!1;return!0}else if(e&&r&&typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();return!1}let Ul=class{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?Z.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?Z.RIGHT:Z.LEFT}};function se(r,e){return new se.InputMask(r,e)}function La(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?se.MaskedRegExp:Bt(r)?se.MaskedPattern:r===Date?se.MaskedDate:r===Number?se.MaskedNumber:Array.isArray(r)||r===Array?se.MaskedDynamic:se.Masked&&r.prototype instanceof se.Masked?r:se.Masked&&r instanceof se.Masked?r.constructor:r instanceof Function?se.MaskedFunction:(console.warn("Mask not found for mask",r),se.Masked)}function Sr(r){if(!r)throw new Error("Options in not defined");if(se.Masked){if(r.prototype instanceof se.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof se.Masked?{mask:r}:Ra(r)&&r.mask instanceof se.Masked?r:{};if(e){const s=e.mask;return{...Ba(e,(n,a)=>!a.startsWith("_")),mask:e.constructor,_mask:s,...t}}}return Ra(r)?{...r}:{mask:r}}function At(r){if(se.Masked&&r instanceof se.Masked)return r;const e=Sr(r),t=La(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}se.createMask=At;let Ks=class{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}};se.MaskElement=Ks;const ja=90,ql=89;let es=class extends Ks{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return(e=(t=(s=this.input).getRootNode)==null?void 0:t.call(s))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===ja&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===ql&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===ja&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};se.HTMLMaskElement=es;class Kl extends es{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}se.HTMLMaskElement=es;let za=class extends es{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s<n?s:n}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s>n?s:n}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);const n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}};se.HTMLContenteditableMaskElement=za;let Va=class xl{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>xl.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};Va.MAX_LENGTH=100;let Gl=class{constructor(e,t){this.el=e instanceof Ks?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new za(e):new Kl(e),this.masked=At(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Va,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof se.Masked)&&this.masked.constructor===La(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof se.Masked?e:At({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const s=this._listeners[e];s&&s.forEach(n=>n(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,s=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==n;this._unmaskedValue=t,this._value=s,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...s}=e,n=!this.maskEquals(t),a=this.masked.optionsIsChanged(s);n&&(this.mask=t),a&&this.masked.updateOptions(s),(n||a)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Z.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new Ul({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=s===this.masked.rawInputValue?t.removeDirection:Z.NONE;let i=this.masked.nearestInputPos(t.startChangePos+n,a);a!==Z.NONE&&(i=this.masked.nearestInputPos(i,Z.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};se.InputMask=Gl;class ue{static normalize(e){return Array.isArray(e)?e:[e,new ue]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}se.ChangeDetails=ue;class kt{constructor(e,t,s){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class Re{constructor(e){this._value="",this._update({...Re.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new kt(this.extractInput(e,t),e)}appendTail(e){return Bt(e)&&(e=new kt(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new ue({inserted:e,rawInserted:e})):new ue}_appendChar(e,t,s){t===void 0&&(t={});const n=this.state;let a;if([e,a]=this.doPrepareChar(e,t),e&&(a=a.aggregate(this._appendCharRaw(e,t)),!a.rawInserted&&this.autofix==="pad")){const i=this.state;this.state=n;let u=this.pad(t);const c=this._appendCharRaw(e,t);u=u.aggregate(c),c.rawInserted||u.equals(a)?a=u:this.state=i}if(a.inserted){let i,u=this.doValidate(t)!==!1;if(u&&s!=null){const c=this.state;if(this.overwrite===!0){i=s.state;for(let l=0;l<a.rawInserted.length;++l)s.unshift(this.displayValue.length-a.tailShift)}let o=this.appendTail(s);if(u=o.rawInserted.length===s.toString().length,!(u&&o.inserted)&&this.overwrite==="shift"){this.state=c,i=s.state;for(let l=0;l<a.rawInserted.length;++l)s.shift();o=this.appendTail(s),u=o.rawInserted.length===s.toString().length}u&&o.inserted&&(this.state=c)}u||(a=new ue,this.state=n,s&&i&&(s.state=i))}return a}_appendPlaceholder(){return new ue}_appendEager(){return new ue}append(e,t,s){if(!Bt(e))throw new Error("value should be string");const n=Bt(s)?new kt(String(s)):s;t!=null&&t.tail&&(t._beforeTailState=this.state);let a;[e,a]=this.doPrepare(e,t);for(let i=0;i<e.length;++i){const u=this._appendChar(e[i],t,n);if(!u.rawInserted&&!this.doSkipInvalid(e[i],t,n))break;a.aggregate(u)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new ue}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,s=this.value,n=e();return this.rawInputValue=t,this.value&&this.value!==s&&s.indexOf(this.value)===0&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),ue.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),ue.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,n,a){s===void 0&&(s=""),n===void 0&&(n=Z.NONE),a===void 0&&(a={input:!0});const i=e+t,u=this.extractTail(i),c=this.eager===!0||this.eager==="remove";let o;c&&(n=Hl(n),o=this.extractInput(0,i,{raw:!0}));let l=e;const f=new ue;if(n!==Z.NONE&&(l=this.nearestInputPos(e,t>1&&e!==0&&!c?Z.NONE:n),f.tailShift=l-e),f.aggregate(this.remove(l)),c&&n!==Z.NONE&&o===this.rawInputValue)if(n===Z.FORCE_LEFT){let h;for(;o===this.rawInputValue&&(h=this.displayValue.length);)f.aggregate(new ue({tailShift:-1})).aggregate(this.remove(h-1))}else n===Z.FORCE_RIGHT&&u.unshift();return f.aggregate(this.append(s,a,u))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!Qr(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||Re.EMPTY_VALUES.includes(e)&&Re.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new ue}}Re.DEFAULTS={skipInvalid:!0},Re.EMPTY_VALUES=[void 0,null,""],se.Masked=Re;class Xt{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=Bt(e)?new kt(String(e)):e;const t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof kt)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof Xt){if(e.stop==null){let n;for(;e.chunks.length&&e.chunks[0].stop==null;)n=e.chunks.shift(),n.from+=e.from,this.extend(n)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof se.MaskedPattern))return new kt(this.toString()).appendTo(e);const t=new ue;for(let s=0;s<this.chunks.length;++s){const n=this.chunks[s],a=e._mapPosToBlock(e.displayValue.length),i=n.stop;let u;if(i!=null&&(!a||a.index<=i)&&((n instanceof Xt||e._stops.indexOf(i)>=0)&&t.aggregate(e._appendPlaceholder(i)),u=n instanceof Xt&&e._blocks[i]),u){const c=u.appendTail(n);t.aggregate(c);const o=n.toString().slice(c.rawInserted.length);o&&t.aggregate(e.append(o,{tail:!0}))}else t.aggregate(e.append(n.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(n=>{const a="chunks"in n?new Xt:new kt;return a.state=n,a})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let s=0;for(;s<this.chunks.length;){const n=this.chunks[s],a=n.unshift(t);if(n.toString()){if(!a)break;++s}else this.chunks.splice(s,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}class Wl{constructor(e,t){this.masked=e,this._log=[];const{offset:s,index:n}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Z.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Z.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Z.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Z.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Z.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Z.NONE),!0})}}let Ha=class{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new ue}nearestInputPos(e,t){t===void 0&&(t=Z.NONE);const s=0,n=this._value.length;switch(t){case Z.LEFT:case Z.FORCE_LEFT:return s;case Z.NONE:case Z.RIGHT:case Z.FORCE_RIGHT:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),s===void 0&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new ue;const s=this.eager===!0||this.eager==="append",n=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,a=new ue({inserted:this.char,rawInserted:n?this.char:""});return this._value=this.char,this._isRawInput=n&&(t.raw||t.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new ue;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new kt("")}appendTail(e){return Bt(e)&&(e=new kt(String(e))),e.appendTo(this)}append(e,t,s){const n=this._appendChar(e[0],t);return s!=null&&(n.tailShift+=this.appendTail(s).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}},ts=class{constructor(e){const{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:u,...c}=e;this.masked=At(c),Object.assign(this,{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:u})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new ue}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new ue;const s=this.masked.state;let n=this.masked._appendChar(e,this.currentMaskFlags(t));return n.inserted&&this.doValidate(t)===!1&&(n=new ue,this.masked.state=s),!n.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new ue:(this.isFilled=!0,new ue({inserted:this.placeholderChar}))}_appendEager(){return new ue}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){t===void 0&&(t=Z.NONE);const s=0,n=this.value.length,a=Math.min(Math.max(e,s),n);switch(t){case Z.LEFT:case Z.FORCE_LEFT:return this.isComplete?a:s;case Z.RIGHT:case Z.FORCE_RIGHT:return this.isComplete?a:n;case Z.NONE:default:return a}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new ue}};ts.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Xl extends Re{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=s=>s.search(t)>=0),super._update(e)}}se.MaskedRegExp=Xl;class Be extends Re{constructor(e){super({...Be.DEFAULTS,...e,definitions:Object.assign({},ts.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let s=!1,n=!1;for(let a=0;a<t.length;++a){if(this.blocks){const o=t.slice(a),l=Object.keys(this.blocks).filter(h=>o.indexOf(h)===0);l.sort((h,_)=>_.length-h.length);const f=l[0];if(f){const{expose:h,repeat:_,...p}=Sr(this.blocks[f]),v={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...p,repeat:_,parent:this},m=_!=null?new se.RepeatBlock(v):At(v);m&&(this._blocks.push(m),h&&(this.exposeBlock=m),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),a+=f.length-1;continue}}let i=t[a],u=i in e;if(i===Be.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(i==="{"||i==="}"){s=!s;continue}if(i==="["||i==="]"){n=!n;continue}if(i===Be.ESCAPE_CHAR){if(++a,i=t[a],!i)break;u=!1}const c=u?new ts({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Sr(e[i]),parent:this}):new Ha({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...s}=e;this._blocks.forEach((n,a)=>n.state=t[a]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new ue;let s=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(s==null)return t;this._blocks[s].isFilled&&++s;for(let n=s;n<this._blocks.length;++n){const a=this._blocks[n]._appendEager();if(!a.inserted)break;t.aggregate(a)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._mapPosToBlock(this.displayValue.length),n=new ue;if(!s)return n;for(let i=s.index,u;u=this._blocks[i];++i){var a;const c=u._appendChar(e,{...t,_beforeTailState:(a=t._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]});if(n.aggregate(c),c.consumed)break}return n}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=new Xt;return e===t||this._forEachBlocksInRange(e,t,(n,a,i,u)=>{const c=n.extractTail(i,u);c.stop=this._findStopBefore(a),c.from=this._blockStartPos(a),c instanceof Xt&&(c.blockIndex=a),s.extend(c)}),s}extractInput(e,t,s){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),s===void 0&&(s={}),e===t)return"";let n="";return this._forEachBlocksInRange(e,t,(a,i,u,c)=>{n+=a.extractInput(u,c,s)}),n}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){const n=this._stops[s];if(n<=e)t=n;else break}return t}_appendPlaceholder(e){const t=new ue;if(this.lazy&&e==null)return t;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;const n=s.index,a=e??this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||e!=null){var u;t.aggregate(i._appendPlaceholder((u=i._blocks)==null?void 0:u.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){const n=this._blocks[s],a=t.length;if(t+=n.displayValue,e<=t.length)return{index:s,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,s)=>t+=s.displayValue.length,0)}_forEachBlocksInRange(e,t,s){t===void 0&&(t=this.displayValue.length);const n=this._mapPosToBlock(e);if(n){const a=this._mapPosToBlock(t),i=a&&n.index===a.index,u=n.offset,c=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(s(this._blocks[n.index],n.index,u,c),a&&!i){for(let o=n.index+1;o<a.index;++o)s(this._blocks[o],o,0,this._blocks[o].displayValue.length);s(this._blocks[a.index],a.index,0,a.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(n,a,i,u)=>{s.aggregate(n.remove(i,u))}),s}nearestInputPos(e,t){if(t===void 0&&(t=Z.NONE),!this._blocks.length)return 0;const s=new Wl(this,e);if(t===Z.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===Z.LEFT||t===Z.FORCE_LEFT){if(t===Z.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===Z.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===Z.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return t===Z.RIGHT||t===Z.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:t===Z.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,Z.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(n,a,i,u)=>{s+=n.totalInputPositions(i,u)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(s=>this._blocks[s]):[]}pad(e){const t=new ue;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}}Be.DEFAULTS={...Re.DEFAULTS,lazy:!0,placeholderChar:"_"},Be.STOP_CHAR="`",Be.ESCAPE_CHAR="\\",Be.InputDefinition=ts,Be.FixedDefinition=Ha,se.MaskedPattern=Be;let rs=class extends Be{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:s=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix,...i}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,n),this.autofix=a;const u=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0");let o=0;for(;o<c.length&&c[o]===u[o];)++o;i.mask=c.slice(0,o).replace(/0/g,"\\0")+"0".repeat(this.maxLength-o),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="";const[,n,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(t="0".repeat(n.length)+a,s="9".repeat(n.length)+a),t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9"),[t,s]}doPrepareChar(e,t){t===void 0&&(t={});let s;return[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const s=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,i]=this.boundaries(this.value+e);return Number(i)<this.from?super._appendCharRaw(s[this.value.length],t):Number(a)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(n[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[s,n]=this.boundaries(t);return this.from<=Number(n)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){const t=new ue;if(this.value.length===this.maxLength)return t;const s=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(a=>this._appendCharRaw(a))}return t}};se.MaskedRange=rs;let Gs=class wr extends Be{static extractPatternOptions(e){const{mask:t,pattern:s,...n}=e;return{...n,mask:Bt(t)?t:s}}constructor(e){super(wr.extractPatternOptions({...wr.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:n,...a}={...wr.DEFAULTS,...e},i=Object.assign({},wr.GET_DEFAULT_BLOCKS());e.min&&(i.Y.from=e.min.getFullYear()),e.max&&(i.Y.to=e.max.getFullYear()),e.min&&e.max&&i.Y.from===i.Y.to&&(i.m.from=e.min.getMonth()+1,i.m.to=e.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=e.min.getDate(),i.d.to=e.max.getDate())),Object.assign(i,this.blocks,n),super._update({...a,mask:Bt(t)?t:s,blocks:i})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(wr.extractPatternOptions(e))}};Gs.GET_DEFAULT_BLOCKS=()=>({d:{mask:rs,from:1,to:31,maxLength:2},m:{mask:rs,from:1,to:12,maxLength:2},Y:{mask:rs,from:1900,to:9999}}),Gs.DEFAULTS={...Be.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(r,e)=>{if(!r)return"";const t=String(r.getDate()).padStart(2,"0"),s=String(r.getMonth()+1).padStart(2,"0"),n=r.getFullYear();return[t,s,n].join(".")},parse:(r,e)=>{const[t,s,n]=r.split(".").map(Number);return new Date(n,s-1,t)}},se.MaskedDate=Gs;let Ua=class Cl extends Re{constructor(e){super({...Cl.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:s,...n}=Sr(t),a=At({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return s&&(this.exposeMask=a),a}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){e===void 0&&(e=""),t===void 0&&(t={}),s===void 0&&(s="");const n=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,a=this.rawInputValue,i=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:a,u=a.slice(i.length),c=this.currentMask,o=new ue,l=c==null?void 0:c.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==c?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),o.tailShift=this.currentMask.value.length-n.length),u&&(o.tailShift+=this.currentMask.append(u,{raw:!0,tail:!0}).tailShift)):l&&(this.currentMask.state=l)),o}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new ue;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)==null?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return t===void 0&&(t={}),s===void 0&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[s,n]=super.doPrepare(e,t);if(this.currentMask){let a;[s,a]=super.doPrepare(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}doPrepareChar(e,t){t===void 0&&(t={});let[s,n]=super.doPrepareChar(e,t);if(this.currentMask){let a;[s,a]=super.doPrepareChar(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const s=new ue;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:s,currentMask:n,...a}=e;t&&this.compiledMasks.forEach((i,u)=>i.state=t[u]),s!=null&&(this.currentMask=s,this.currentMask.state=n),super.state=a}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;const{mask:n,...a}=e[s];return Qr(t,a)&&t.maskEquals(n)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}};Ua.DEFAULTS={...Re.DEFAULTS,dispatch:(r,e,t,s)=>{if(!e.compiledMasks.length)return;const n=e.rawInputValue,a=e.compiledMasks.map((i,u)=>{const c=e.currentMask===i,o=c?i.displayValue.length:i.nearestInputPos(i.displayValue.length,Z.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):c||i.remove(o),i.append(r,e.currentMaskFlags(t)),i.appendTail(s),{index:u,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(o,i.nearestInputPos(i.displayValue.length,Z.FORCE_LEFT)))}});return a.sort((i,u)=>u.weight-i.weight||u.totalInputPositions-i.totalInputPositions),e.compiledMasks[a[0].index]}},se.MaskedDynamic=Ua;class ss extends Be{constructor(e){super({...ss.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...s}=e;if(t){const n=t.map(u=>u.length),a=Math.min(...n),i=Math.max(...n)-a;s.mask="*".repeat(a),i&&(s.mask+="["+"*".repeat(i)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){t===void 0&&(t={});const s=Math.min(this.nearestInputPos(0,Z.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+e,s));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,u)=>{const c=n[0][u];u>=this.value.length||c===i.value||(i.reset(),i._appendChar(c,t))});const a=super._appendCharRaw(n[0][this.value.length],t);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(i=>a.aggregate(super._appendCharRaw(i))),a}return new ue({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new kt("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new ue;const s=Math.min(super.nearestInputPos(0,Z.FORCE_RIGHT),this.value.length);let n;for(n=e;n>=0&&!(this.enum.filter(i=>this.matchValue(i,this.value.slice(s,n),s)).length>1);--n);const a=super.remove(n,t);return a.tailShift+=n-e,a}get isComplete(){return this.enum.indexOf(this.value)>=0}}ss.DEFAULTS={...Be.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t},se.MaskedEnum=ss;let Yl=class extends Re{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};se.MaskedFunction=Yl;var qa;class st extends Re{constructor(e){super({...st.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",s=(this.scale?"("+qs(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+s),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(qs).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(qs(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[s,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(n.skip=!0),s&&!this.allowPositive&&!this.value&&s!=="-"&&n.aggregate(this._appendChar("-")),[s,n]}_separatorsCount(e,t){t===void 0&&(t=!1);let s=0;for(let n=0;n<e;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){t===void 0&&(t={});const s=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const a=this._value;this._value+=e;const i=this.number;let u=!isNaN(i),c=!1;if(u){let h;this.min!=null&&this.min<0&&this.number<this.min&&(h=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(h=this.max),h!=null&&(this.autofix?(this._value=this.format(h,this).replace(st.UNMASKED_RADIX,this.radix),c||(c=a===this._value&&!t.tail)):u=!1),u&&(u=!!this._value.match(this._numberRegExp))}let o;u?o=new ue({inserted:this._value.slice(a.length),rawInserted:c?"":e,skip:c}):(this._value=a,o=new ue),this._value=this._insertThousandsSeparators(this._value);const l=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,f=this._separatorsCountFromSlice(l);return o.tailShift+=(f-n)*this.thousandsSeparator.length,o}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,t){const s=this._findSeparatorAround(e);s>=0&&(e=s);const n=this._findSeparatorAround(t);return n>=0&&(t=n+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const s=this.value.slice(0,e),n=this.value.slice(t),a=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+n));const i=this._separatorsCountFromSlice(s);return new ue({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case Z.NONE:case Z.LEFT:case Z.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const n=s+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===Z.FORCE_LEFT)return s}break}case Z.RIGHT:case Z.FORCE_RIGHT:{const s=this._findSeparatorAround(e);if(s>=0)return s+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(s,n,a,i)=>n+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){t===void 0&&(t={});const n=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===st.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,st.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(st.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||st.EMPTY_VALUES.includes(e)&&st.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}qa=st,st.UNMASKED_RADIX=".",st.EMPTY_VALUES=[...Re.EMPTY_VALUES,0],st.DEFAULTS={...Re.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[qa.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},se.MaskedNumber=st;const Ws={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Ka(r,e,t){e===void 0&&(e=Ws.MASKED),t===void 0&&(t=Ws.MASKED);const s=At(r);return n=>s.runIsolated(a=>(a[e]=n,a[t]))}function Jl(r,e,t,s){return Ka(e,t,s)(r)}se.PIPE_TYPE=Ws,se.createPipe=Ka,se.pipe=Jl;let Zl=class extends Be{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,n;const{repeat:a,...i}=Sr(e);this._blockOpts=Object.assign({},this._blockOpts,i);const u=At(this._blockOpts);this.repeat=(t=(s=a??u.repeat)!=null?s:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:u},eager:u.eager,overwrite:u.overwrite,skipInvalid:u.skipInvalid,lazy:u.lazy,placeholderChar:u.placeholderChar,displayChar:u.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(At(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const s=new ue;for(let c=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),o,l;o=(i=this._blocks[c])!=null?i:l=!l&&this._allocateBlock(c);++c){var n,a,i,u;const f=o._appendChar(e,{...t,_beforeTailState:(u=t._beforeTailState)==null||(u=u._blocks)==null?void 0:u[c]});if(f.skip&&l){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(f),f.consumed)break}return s}_trimEmptyTail(e,t){var s,n;e===void 0&&(e=0);const a=Math.max(((s=this._mapPosToBlock(e))==null?void 0:s.index)||0,this.repeatFrom,0);let i;t!=null&&(i=(n=this._mapPosToBlock(t))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let u=0;for(let c=i;a<=c&&!this._blocks[c].unmaskedValue;--c,++u);u&&(this._blocks.splice(i-u+1,u),this.mask=this.mask.slice(u))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};se.RepeatBlock=Zl;try{globalThis.IMask=se}catch{}const Ga={mask:x.oneOfType([x.array,x.func,x.string,x.instanceOf(RegExp),x.oneOf([Date,Number,se.Masked]),x.instanceOf(se.Masked)]),value:x.any,unmask:x.oneOfType([x.bool,x.oneOf(["typed"])]),prepare:x.func,prepareChar:x.func,validate:x.func,commit:x.func,overwrite:x.oneOfType([x.bool,x.oneOf(["shift"])]),eager:x.oneOfType([x.bool,x.oneOf(["append","remove"])]),skipInvalid:x.bool,onAccept:x.func,onComplete:x.func,placeholderChar:x.string,displayChar:x.string,lazy:x.bool,definitions:x.object,blocks:x.object,enum:x.arrayOf(x.string),maxLength:x.number,from:x.number,to:x.number,pattern:x.string,format:x.func,parse:x.func,autofix:x.oneOfType([x.bool,x.oneOf(["pad"])]),radix:x.string,thousandsSeparator:x.string,mapToRadix:x.arrayOf(x.string),scale:x.number,normalizeZeros:x.bool,padFractionalZeros:x.bool,min:x.oneOfType([x.number,x.instanceOf(Date)]),max:x.oneOfType([x.number,x.instanceOf(Date)]),dispatch:x.func,inputRef:x.oneOfType([x.func,x.shape({current:x.object})])},Wa=Object.keys(Ga).filter(r=>r!=="value"),Ql=["value","unmask","onAccept","onComplete","inputRef"],ec=Wa.filter(r=>Ql.indexOf(r)<0);function tc(r){var e;const t=(e=class extends ee.Component{constructor(n){super(n),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const n=this.props,a=this._extractMaskOptionsFromProps(n);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in n&&n.value!==void 0&&(this.maskValue=n.value)):this.initMask(a);else if(this.destroyMask(),"value"in n&&n.value!==void 0){var i;(i=this.element)!=null&&i.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=n.value:this.element.value=n.value}}componentWillUnmount(){this.destroyMask()}_inputRef(n){this.element=n,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=n:this.props.inputRef(n))}initMask(n){n===void 0&&(n=this._extractMaskOptionsFromProps(this.props)),this.maskRef=se(this.element,n).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(n){const{...a}=n;return Object.keys(a).filter(i=>ec.indexOf(i)<0).forEach(i=>{delete a[i]}),a}_extractNonMaskProps(n){const{...a}=n;return Wa.forEach(i=>{i!=="maxLength"&&delete a[i]}),"defaultValue"in a||(a.defaultValue=n.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(n){this.maskRef&&(n=n==null&&this.props.unmask!=="typed"?"":n,this.props.unmask==="typed"?this.maskRef.typedValue=n:this.props.unmask?this.maskRef.unmaskedValue=n:this.maskRef.value=n)}_onAccept(n){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,n)}_onComplete(n){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,n)}render(){return ee.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),s=r.displayName||r.name||"Component";return t.displayName="IMask("+s+")",t.propTypes=Ga,ee.forwardRef((n,a)=>ee.createElement(t,{...n,ref:a}))}const rc=tc(r=>{let{inputRef:e,...t}=r;return ee.createElement("input",{...t,ref:e})}),sc=(r,e)=>ee.createElement(rc,{...r,ref:e});ee.forwardRef(sc);function nc(r,e){let{onAccept:t,onComplete:s,ref:n=ee.useRef(null),defaultValue:a,defaultUnmaskedValue:i,defaultTypedValue:u}=e===void 0?{}:e;const c=ee.useRef(null),[o,l]=ee.useState({}),[f,h]=ee.useState(""),[_,p]=ee.useState(""),[v,m]=ee.useState(),y=ee.useCallback(()=>{var E;(E=c.current)==null||E.destroy(),c.current=null},[]),g=ee.useCallback(()=>{const E=c.current;E&&(l({value:E.value,unmaskedValue:E.unmaskedValue,typedValue:E.typedValue}),m(E.typedValue),p(E.unmaskedValue),h(E.value))},[]),b=ee.useCallback(E=>{const T=c.current;T&&(g(),t==null||t(T.value,T,E))},[t]),w=ee.useCallback(E=>c.current&&(s==null?void 0:s(c.current.value,c.current,E)),[s]);return ee.useEffect(()=>{const{value:E,...T}=o,D=c.current;!D||f===void 0||(E!==f&&(D.value=f,D.value!==f&&b()),l(T))},[f]),ee.useEffect(()=>{const{unmaskedValue:E,...T}=o,D=c.current;!D||_===void 0||(E!==_&&(D.unmaskedValue=_,D.unmaskedValue!==_&&b()),l(T))},[_]),ee.useEffect(()=>{const{typedValue:E,...T}=o,D=c.current;!D||v===void 0||(E!==v&&(D.typedValue=v,D.masked.typedValueEquals(v)||b()),l(T))},[v]),ee.useEffect(()=>{const E=n.current;if(!E||!(r!=null&&r.mask))return y();const T=c.current;T?T==null||T.updateOptions(r):E&&r!=null&&r.mask&&(c.current=se(E,r),g(),a!==void 0&&h(a),i!==void 0&&p(i),u!==void 0&&m(u))},[r,y,b]),ee.useEffect(()=>{if(!c.current)return;const E=c.current;return E.on("accept",b),E.on("complete",w),()=>{E.off("accept",b),E.off("complete",w)}},[b,w]),ee.useEffect(()=>y,[y]),{ref:n,maskRef:c,value:f,setValue:h,unmaskedValue:_,setUnmaskedValue:p,typedValue:v,setTypedValue:m}}const Xa={Text:"text",Password:"password",Email:"email",Date:"date",Number:"number"},Ya={Small:"small",Medium:"medium",Large:"large"},Ja={Default:"",Error:"error",Success:"success"},ac={Center:"center"},oc={Top:"top"},be={class:"ds-input",props:{testId:{default:"ds-input-test"},type:{default:Xa.Text,options:Object.values(Xa)},animated:{default:!0},disabled:{default:!1},size:{default:Ya.Medium,options:Object.values(Ya)},status:{default:Ja.Default,options:Object.values(Ja)},hasFeedback:{default:!0},noMargin:{default:!1},icon:{default:""},tooltip:{default:""},tooltipPlacement:{default:ac.Center},tooltipPosition:{default:oc.Top},onChangeHandler:{default:()=>({})}}},Za={currency:{mask:"currency",blocks:{currency:{mask:"R$ num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:".",padFractionalZeros:!0,normalizeZeros:!1,radix:",",mapToRadix:[",","."]}}}}},document:{mask:[{mask:"000.000.000-00",startsWith:/[0-9]/,maxLength:14},{mask:"00.000.000/0000-00",startsWith:/[0-9]/,maxLength:18}]},"phone-br":{mask:[{mask:"(00) 0000-0000"},{mask:"(00) 00000-0000"}],dispatch:(r,e)=>(e.value+r).replace(/\D/g,"").length<=10?e.compiledMasks[0]:e.compiledMasks[1]}},Qa={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},eo={Center:"center",End:"end",Initial:"initial"},Tt={class:"ds-tooltip",props:{position:{default:Qa.Top,options:Object.values(Qa)},placement:{default:eo.Center,options:Object.values(eo)},text:{default:""}}},xr=({children:r,position:e=Tt.props.position.default,placement:t=Tt.props.placement.default,text:s=Tt.props.text.default,className:n})=>{const a=ee.useRef(null),[i,u]=ee.useState(0),[c,o]=ee.useState(0),[l,f]=ee.useState(!1),h=e&&Tt.props.position.options.find(y=>y===e)&&`${Tt.class}--${e}`,_=t&&Tt.props.placement.options.find(y=>y===t)&&`${Tt.class}--${t}`;let p;ee.useLayoutEffect(()=>{var y,g;a.current&&(u((y=a==null?void 0:a.current)==null?void 0:y.offsetHeight),o((g=a==null?void 0:a.current)==null?void 0:g.offsetWidth))},[]),ee.useEffect(()=>(document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}),[]);const v=9;switch(e){case"top":t==="initial"?p={bottom:i+v,left:-9}:t==="end"?p={bottom:i+v,right:-9}:p={bottom:i+v,left:"50%",transform:"translateX(-50%)"};break;case"bottom":t==="initial"?p={top:i+v,left:-9}:t==="end"?p={top:i+v,right:-9}:p={top:i+v,left:"50%",transform:"translateX(-50%)"};break;case"left":t==="initial"?p={right:c+v,top:-9}:t==="end"?p={right:c+v,bottom:-9}:p={right:c+v,top:"50%",transform:"translateY(-50%)"};break;case"right":t==="initial"?p={left:c+v,top:-9}:t==="end"?p={left:c+v,bottom:-9}:p={left:c+v,top:"50%",transform:"translateY(-50%)"};break}const m=({target:y})=>{a.current&&a.current.contains(y)||f(!1)};return B.jsxs("span",{className:[Tt.class,n].join(" "),"data-testid":"ds-tooltip",onClick:()=>f(!l),ref:a,children:[r,l&&B.jsx("span",{className:[h,_].filter(y=>y).join(" "),children:B.jsx("span",{className:`${Tt.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:p,children:s})})]})};xr.propTypes={position:x.string,placement:x.string,text:x.oneOfType([x.string,x.node])},xr.displayName="DsTooltip";const to=ee.forwardRef(({name:r,testId:e=be.props.testId.default,type:t=be.props.type.default,animated:s=be.props.animated.default,size:n=be.props.size.default,label:a,placeholder:i,value:u,min:c,max:o,tooltip:l=be.props.tooltip.default,tooltipPosition:f=be.props.tooltipPosition.default,tooltipPlacement:h=be.props.tooltipPlacement.default,icon:_=be.props.icon.default,status:p=be.props.status.default,feedback:v,hasFeedback:m=be.props.hasFeedback.default,noMargin:y=be.props.noMargin.default,disabled:g=be.props.disabled.default,className:b,mask:w,onChangeHandler:E=be.props.onChangeHandler.default,onBlurHandler:T,onKeyDownHandler:D,onFocusHandler:R},L)=>{const[I,A]=ee.useState(!1),[M,F]=ee.useState(!1),V=!!E&&!!w,G=(H,K,ne)=>{if(V&&ne){const q={...ne,target:{...ne.target,name:r,maskedValue:H,value:K.unmaskedValue,type:"text"}};E(q)}},X=ee.useMemo(()=>typeof w=="object"?{lazy:!0,...w}:Za[w]?{...Za[w],min:c,max:o,lazy:!0}:{mask:w||"",min:c,max:o,lazy:!0},[w]),{ref:re,setUnmaskedValue:te}=nc(X,{onAccept:G}),oe=H=>{E&&!V&&E(H)},P=H=>{D&&D(H)},k=H=>{A(!1),T&&T(H)},C=H=>{A(!0),R&&R(H)},S=()=>{F(H=>!H)},d=ee.useMemo(()=>M&&t==="password"?"text":t,[M,t]),$=()=>{const H=[`${be.class}`];return n&&H.push(`${be.class}--${n}`),s&&H.push(`${be.class}--animated`),y&&H.push(`${be.class}--no-margin`),_&&H.push(`${be.class}--with-icon`),p&&H.push(`${be.class}--${p}`),b&&H.push(b),H.join(" ")},N=ee.useMemo(()=>{const H=[`${be.class}__label`];return(I||u)&&H.push(`${be.class}__label--active`),H.join(" ")},[u,I]),z=()=>!s&&i?i:"",j=()=>p&&p==="error"?"info":"check_circle";return ee.useEffect(()=>{w&&te(u||"")},[u,w,te]),B.jsxs("div",{className:$(),ref:L,children:[m&&B.jsx("div",{className:"ds-input__feedback",children:v&&B.jsxs(B.Fragment,{children:[B.jsx(Ie,{image:j()}),v]})}),B.jsx("input",{className:"ds-input__input","data-testid":e,disabled:g,id:r,max:o,min:c,name:r,onBlur:k,onChange:oe,onFocus:C,onInput:oe,onKeyDown:P,placeholder:z(),ref:re,type:d,...!w&&{value:u||""}}),B.jsxs("label",{className:N,htmlFor:r,children:[a,l&&B.jsx(xr,{className:"ds-input__tooltip",placement:h,position:f,text:l,children:B.jsx(Ie,{className:"ds-input__icon",image:"info"})})]}),_&&B.jsx(Ie,{className:"ds-input__icon",image:_}),t==="password"&&B.jsx(Ie,{className:"ds-input__password-icon",image:M?"visibility_off":"visibility",onClick:S,size:"xl"})]})});to.propTypes={name:x.string,testId:x.string,type:x.oneOf(be.props.type.options),animated:x.bool,size:x.oneOf(be.props.size.options),label:x.string,placeholder:x.string,value:x.oneOfType([x.string]),min:x.string,max:x.string,tooltip:x.string,tooltipPosition:x.string,tooltipPlacement:x.string,icon:x.string,status:x.oneOf(be.props.status.options),feedback:x.string,hasFeedback:x.bool,noMargin:x.bool,disabled:x.bool,mask:x.oneOfType([x.string,x.object]),onChangeHandler:x.func,onFocusHandler:x.func},to.displayName="DsInput";const ic={Small:"small",Medium:"medium",Large:"large"},uc={props:{size:{options:Object.values(ic)}}};x.string,x.string,x.oneOf(uc.props.size.options),x.bool,x.bool,x.string,x.string,x.string,x.string,x.oneOfType([x.string,x.node]),x.oneOfType([x.string,x.number]),x.string,x.bool,x.bool,x.func;const ro={Default:"",Large:"large",Small:"small"},ns={class:"ds-paragraph",props:{type:{default:ro.Default,options:Object.values(ro)}}},Lt=({children:r,className:e,testId:t="ds-paragraph-test",type:s=ns.props.type.default})=>{const n=s&&`${ns.class}--${s}`;return B.jsx("p",{className:[ns.class,n,e&&e].filter(a=>a).join(" "),"data-testid":t,children:r})};Lt.propTypes={className:x.string,testId:x.string,type:x.oneOf(ns.props.type.options)},Lt.displayName="DsParagraph";const Xs={class:"ds-flex-element",props:{flex:{default:"0 1 auto"},className:{default:""}}},$e=({children:r,flex:e=Xs.props.flex.default,className:t=Xs.props.className.default})=>{const s=()=>[Xs.class,t].join(" "),n=()=>({flex:e});return B.jsx("div",{className:s(),style:n(),children:r})};$e.propTypes={className:x.string,flex:x.string},$e.displayName="DsFlexElement";const lc={Stretch:"stretch"},cc={Stretch:"stretch"},dc={Row:"row"},hc={Wrap:"wrap"},Yt={class:"ds-flex-layout",props:{justifyContent:{default:lc.Stretch},alignItems:{default:cc.Stretch},flexDirection:{default:dc.Row},flexWrap:{default:hc.Wrap},width:{default:"100%"}}},mt=({children:r,className:e,justifyContent:t=Yt.props.justifyContent.default,alignItems:s=Yt.props.alignItems.default,flexDirection:n=Yt.props.flexDirection.default,flexWrap:a=Yt.props.flexWrap.default,width:i=Yt.props.width.default,height:u,gap:c})=>{const o=()=>{const f=[Yt.class,e];return c&&f.push(`${Yt.class}--gap-${c}`),f.join(" ")},l=()=>({display:"flex",justifyContent:t,alignItems:s,flexDirection:n,flexWrap:a,width:i,height:u,gap:c});return B.jsx("div",{className:o(),style:l(),children:r})};mt.propTypes={className:x.string,justifyContent:x.string,alignItems:x.string,flexDirection:x.string,flexWrap:x.string,width:x.string,height:x.string,gap:x.string},mt.displayName="DsFlexLayout";const as={None:"none",Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm"},Cr={class:"ds-spacer",props:{vertical:{default:as.None,options:Object.values(as)},horizontal:{default:as.None,options:Object.values(as)}}},nt=({vertical:r=Cr.props.vertical.default,horizontal:e=Cr.props.horizontal.default})=>{const t=r&&`ds-spacer__vertical--${r}`,s=e&&`ds-spacer__horizontal--${e}`;return B.jsx("div",{className:[Cr.class,t,s].filter(n=>n).join(" "),"data-testid":"ds-spacer"})};nt.propTypes={vertical:x.oneOf(Cr.props.vertical.options),horizontal:x.oneOf(Cr.props.horizontal.options)},nt.displayName="DsSpacer",x.string,x.number,x.string;const so={Small:"sm",Medium:"md",Large:"lg"},no={Default:"",Error:"error",Success:"success"},fc={Initial:"initial"},pc={Top:"top"},we={class:"ds-select",props:{animated:{default:!0},disabled:{default:!1},multiple:{default:!1},testId:{default:"ds-select-test"},size:{options:Object.values(so),default:so.Medium},status:{default:no.Default,options:Object.values(no)},tooltipPlacement:{default:fc.Initial},tooltipPosition:{default:pc.Top}}},ao=ee.forwardRef(({label:r,className:e,disabled:t=we.props.disabled.default,animated:s=we.props.animated.default,multiple:n=we.props.multiple.default,testId:a=we.props.testId.default,name:i,options:u,value:c,placeholder:o,onChange:l,onChangeHandler:f,size:h=we.props.size.default,status:_=we.props.status.default,tooltip:p,tooltipPosition:v=we.props.tooltipPosition.default,tooltipPlacement:m=we.props.tooltipPlacement.default,feedback:y,...g},b)=>{const[w,E]=ee.useState(!1),T=L=>{E(!1),l&&l(L,L.target.value),f&&f(L,L.target.value)},D=()=>{const L=[we.class,"select-placeholder"];return L.push(`${we.class}--${h}`),_&&L.push(`${we.class}--${_}`),w&&L.push(`${we.class}--active`),t&&L.push(`${we.class}--disabled`),e&&L.push(e),L.join(" ")},R=ee.useMemo(()=>{const L=[`${we.class}__label`];return!s&&L.push(`${we.class}__label--not-animated`),c&&L.push(`${we.class}__label--has-value`),s&&!c&&!p&&L.push(`${we.class}__label--hidden`),L.join(" ")},[c]);return B.jsxs("div",{className:D(),"data-testid":"ds-select-component",children:[B.jsxs("label",{className:R,"data-testid":"ds-label-id",htmlFor:i,children:[r,p&&B.jsx(xr,{className:`${we.class}__tooltip`,placement:m,position:v,text:p,children:B.jsx(Ie,{className:`${we.class}__icon`,image:"info"})})]}),B.jsxs("select",{"data-testid":a,disabled:t,id:i,multiple:n,name:i,onChange:L=>T(L),value:c||"",...g,onBlur:()=>E(!1),onFocus:()=>E(!0),ref:b,required:!0,children:[(o||s)&&B.jsx("option",{disabled:!0,value:"",children:o??r}),u==null?void 0:u.map((L,I)=>{var A;return"options"in L?B.jsx("optgroup",{label:L.label,children:(A=L.options)==null?void 0:A.map((M,F)=>B.jsx("option",{className:`${we.class}__option-select`,value:M.value,children:M.label||M.value},F))},I):B.jsx("option",{className:`${we.class}__option-select`,value:L.value,children:L.label||L.value},I)})]}),y&&B.jsxs("div",{className:"ds-select__feedback-container",children:[B.jsx(Ie,{className:"ds-select__icon",image:_==="success"?"check_circle":"info"}),B.jsx("span",{className:"ds-select__feedback",children:y})]})]})});ao.propTypes={label:x.string.isRequired,className:x.string,disabled:x.bool,animated:x.bool,multiple:x.bool,name:x.string,testId:x.string,options:x.array.isRequired,placeholder:x.string,onChange:x.func,onChangeHandler:x.func,value:x.oneOfType([x.string,x.number]),size:x.oneOf(we.props.size.options),status:x.oneOf(we.props.status.options),tooltip:x.string,tooltipPosition:x.string,tooltipPlacement:x.string,feedback:x.string},ao.displayName="DsSelect";const oo={Small:"small",Medium:"medium",Large:"large"},mc={Text:"text"},io={None:"",Error:"error",Success:"success"},uo={None:"none",Both:"both",Horizontal:"horizontal",Vertical:"vertical",Block:"block",Inline:"inline"},Te={class:"ds-textarea",props:{testId:{default:"ds-textarea-test"},type:{options:Object.values(mc)},animated:{default:!0},disabled:{default:!1},size:{default:oo.Medium,options:Object.values(oo)},rows:{default:1},status:{default:io.None,options:Object.values(io)},resize:{default:uo.None,options:Object.values(uo)}}},lo=ee.forwardRef(({name:r,testId:e=Te.props.testId.default,animated:t=Te.props.animated.default,size:s=Te.props.size.default,label:n,placeholder:a,value:i,minLength:u,maxLength:c,tooltip:o,icon:l,status:f=Te.props.status.default,feedback:h,disabled:_=Te.props.disabled.default,required:p,className:v,resize:m=Te.props.resize.default,onChangeHandler:y,onBlurHandler:g,onKeyDownHandler:b,onFocusHandler:w,rows:E=Te.props.rows.default,cols:T,description:D,style:R},L)=>{const[I,A]=ee.useState(!1),[M,F]=ee.useState(0),[V,G]=ee.useState(Math.random());ee.useEffect(()=>{i==null&&G(Math.random())},[i]);const X=$=>{F($.target.value.length),y&&y($)},re=$=>{b&&b($)},te=$=>{A(!1),g&&g($)},oe=$=>{A(!0),w&&w($)},P=()=>{const $=[`${Te.class}`];return s&&$.push(`${Te.class}--${s}`),t&&$.push(`${Te.class}--animated`),o&&$.push(`${Te.class}--with-icon`),f&&$.push(`${Te.class}--${f}`),v&&$.push(v),$.join(" ")},k=ee.useMemo(()=>{const $=[`${Te.class}__label`];return(I||i)&&$.push(`${Te.class}__label--active`),$.join(" ")},[i,I]),C=()=>!t&&a?a:"",S=()=>f&&f==="error"?"info":"check_circle",d={resize:m,...R||{}};return B.jsxs("div",{className:P(),children:[D&&B.jsx("span",{className:"ds-textarea__description",children:D}),h&&B.jsxs("div",{className:"ds-textarea__feedback",children:[B.jsx(Ie,{image:S()}),h]}),B.jsx("textarea",{className:"ds-textarea__textarea",cols:T,"data-testid":e,defaultValue:i||"",disabled:_,id:r,maxLength:c,minLength:u,name:r,onBlur:te,onChange:X,onFocus:oe,onKeyDown:re,placeholder:C(),ref:L,required:p,rows:E,style:d}),B.jsx("label",{className:k,htmlFor:r,children:n}),c&&B.jsxs("span",{className:"ds-textarea__count",children:[M,"/",c]}),o&&B.jsx(xr,{className:"ds-textarea__tooltip",placement:"end",text:o,children:B.jsx(Ie,{className:"ds-textarea__icon",image:l})})]},V)});lo.propTypes={name:x.string,testId:x.string,type:x.oneOf(Te.props.type.options),animated:x.bool,size:x.oneOf(Te.props.size.options),label:x.string,placeholder:x.string,value:x.oneOfType([x.string]),tooltip:x.string,icon:x.string,status:x.oneOf(Te.props.status.options),feedback:x.string,minLength:x.number,maxLength:x.number,rows:x.number,cols:x.number,disabled:x.bool,required:x.bool,onChangeHandler:x.func,onBlur:x.func,onKeyDown:x.func,onFocus:x.func,resize:x.oneOf(Te.props.resize.options).isRequired,description:x.string,style:x.object},lo.displayName="DsTextArea",x.node,x.bool,x.string,x.object,x.string;const gc={Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},co={Start:"start",End:"end",Center:"center",Stretch:"stretch",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},Ys={props:{gap:{options:Object.values(gc)},horizontalAlign:{options:Object.values(co)},verticalAlign:{options:Object.values(co)}}};x.oneOfType([x.arrayOf(x.node),x.node,x.func]),x.string,x.oneOf(Ys.props.gap.options),x.bool,x.bool,x.string,x.string,x.oneOf(Ys.props.horizontalAlign.options),x.oneOf(Ys.props.verticalAlign.options),x.bool,x.oneOfType([x.element,x.string]),x.oneOfType([x.element,x.string]),x.bool,x.array,x.number,x.string;const yc=[1,2,3,4],vc={Squared:"squared",Rounded:"rounded"},ho={props:{elevation:{options:yc},variant:{options:Object.values(vc)}}};x.string,x.string,x.string,x.oneOf(ho.props.variant.options),x.oneOf(ho.props.elevation.options),x.bool,x.node,x.node,x.func,x.array,x.string,x.string,x.string,x.node.isRequired,x.string;const _c={TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right"},bc={props:{position:{options:Object.values(_c)}}};x.oneOf(bc.props.position.options),x.bool,x.array,x.func,x.node,x.node,x.node,x.node;const kc=({categories:r=[],onClick:e,title:t="Categorias"})=>{const s=n=>{e(n)};return B.jsxs("div",{className:"category-cards","data-testid":"category-cards",children:[B.jsx(nt,{vertical:"xxs"}),B.jsx(Rt,{type:"heading-5",children:t}),B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"category-cards__grid",children:B.jsx(mt,{gap:"xxxs",children:r.map(n=>B.jsx($e,{flex:"0 0 32%",children:B.jsx("div",{className:"category-cards__card","data-testid":`category-card-${n.id}`,onClick:()=>s(n.id),role:"button",tabIndex:0,children:B.jsxs(Er,{className:"category-card","data-testid":`category-card-item-${n.id}`,elevation:2,children:[B.jsx(nt,{vertical:"nano"}),B.jsxs(mt,{alignItems:"center",flexDirection:"column",gap:"nano",children:[B.jsx($e,{children:B.jsx(Ie,{color:"secondary-dark","data-testid":`category-card-icon-${n.id}`,image:n.attributes.icon,size:"xxxl"})}),B.jsx($e,{children:B.jsx("div",{className:"category-cards__title","data-testid":`category-card-title-${n.id}`,children:n.attributes.name})})]}),B.jsx(nt,{vertical:"nano"})]})})},n.id))})})]})};/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:fo,setPrototypeOf:po,isFrozen:wc,getPrototypeOf:Ec,getOwnPropertyDescriptor:$c}=Object;let{freeze:He,seal:it,create:mo}=Object,{apply:Js,construct:Zs}=typeof Reflect<"u"&&Reflect;He||(He=function(e){return e}),it||(it=function(e){return e}),Js||(Js=function(e,t,s){return e.apply(t,s)}),Zs||(Zs=function(e,t){return new e(...t)});const os=qe(Array.prototype.forEach),Sc=qe(Array.prototype.lastIndexOf),go=qe(Array.prototype.pop),Ar=qe(Array.prototype.push),xc=qe(Array.prototype.splice),is=qe(String.prototype.toLowerCase),Qs=qe(String.prototype.toString),yo=qe(String.prototype.match),Tr=qe(String.prototype.replace),Cc=qe(String.prototype.indexOf),Ac=qe(String.prototype.trim),gt=qe(Object.prototype.hasOwnProperty),Ue=qe(RegExp.prototype.test),Pr=Tc(TypeError);function qe(r){return function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return Js(r,e,s)}}function Tc(r){return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return Zs(r,t)}}function he(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:is;po&&po(r,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const a=t(n);a!==n&&(wc(e)||(e[s]=a),n=a)}r[n]=!0}return r}function Pc(r){for(let e=0;e<r.length;e++)gt(r,e)||(r[e]=null);return r}function Jt(r){const e=mo(null);for(const[t,s]of fo(r))gt(r,t)&&(Array.isArray(s)?e[t]=Pc(s):s&&typeof s=="object"&&s.constructor===Object?e[t]=Jt(s):e[t]=s);return e}function Nr(r,e){for(;r!==null;){const s=$c(r,e);if(s){if(s.get)return qe(s.get);if(typeof s.value=="function")return qe(s.value)}r=Ec(r)}function t(){return null}return t}const vo=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),en=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tn=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Nc=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rn=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Oc=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_o=He(["#text"]),bo=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),sn=He(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ko=He(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),us=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ic=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dc=it(/<%[\w\W]*|[\w\W]*%>/gm),Mc=it(/\$\{[\w\W]*/gm),Fc=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rc=it(/^aria-[\-\w]+$/),wo=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bc=it(/^(?:\w+script|data):/i),Lc=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Eo=it(/^html$/i),jc=it(/^[a-z][.\w]*(-[.\w]+)+$/i);var $o=Object.freeze({__proto__:null,ARIA_ATTR:Rc,ATTR_WHITESPACE:Lc,CUSTOM_ELEMENT:jc,DATA_ATTR:Fc,DOCTYPE_NAME:Eo,ERB_EXPR:Dc,IS_ALLOWED_URI:wo,IS_SCRIPT_OR_DATA:Bc,MUSTACHE_EXPR:Ic,TMPLIT_EXPR:Mc});const Or={element:1,text:3,progressingInstruction:7,comment:8,document:9},zc=function(){return typeof window>"u"?null:window},Vc=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(s=t.getAttribute(n));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},So=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xo(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zc();const e=Q=>xo(Q);if(e.version="3.2.4",e.removed=[],!r||!r.document||r.document.nodeType!==Or.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const s=t,n=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:u,Element:c,NodeFilter:o,NamedNodeMap:l=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:_}=r,p=c.prototype,v=Nr(p,"cloneNode"),m=Nr(p,"remove"),y=Nr(p,"nextSibling"),g=Nr(p,"childNodes"),b=Nr(p,"parentNode");if(typeof i=="function"){const Q=t.createElement("template");Q.content&&Q.content.ownerDocument&&(t=Q.content.ownerDocument)}let w,E="";const{implementation:T,createNodeIterator:D,createDocumentFragment:R,getElementsByTagName:L}=t,{importNode:I}=s;let A=So();e.isSupported=typeof fo=="function"&&typeof b=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:F,TMPLIT_EXPR:V,DATA_ATTR:G,ARIA_ATTR:X,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:oe}=$o;let{IS_ALLOWED_URI:P}=$o,k=null;const C=he({},[...vo,...en,...tn,...rn,..._o]);let S=null;const d=he({},[...bo,...sn,...ko,...us]);let $=Object.seal(mo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),N=null,z=null,j=!0,H=!0,K=!1,ne=!0,q=!1,ye=!0,me=!1,Ge=!1,at=!1,We=!1,et=!1,lt=!1,ct=!0,Ne=!1;const Oe="user-content-";let je=!0,tt=!1,ot={},Ce=null;const dt=he({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let or=null;const qt=he({},["audio","video","img","source","image","track"]);let Kt=null;const It=he({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",_r="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let Dt=ht,Gr=!1,Wr=null;const Os=he({},[xt,_r,ht],Qs);let br=he({},["mi","mo","mn","ms","mtext"]),ir=he({},["annotation-xml"]);const ha=he({},["title","style","font","a","script"]);let Gt=null;const fa=["application/xhtml+xml","text/html"],pa="text/html";let Se=null,Mt=null;const ma=t.createElement("form"),Is=function(O){return O instanceof RegExp||O instanceof Function},kr=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mt&&Mt===O)){if((!O||typeof O!="object")&&(O={}),O=Jt(O),Gt=fa.indexOf(O.PARSER_MEDIA_TYPE)===-1?pa:O.PARSER_MEDIA_TYPE,Se=Gt==="application/xhtml+xml"?Qs:is,k=gt(O,"ALLOWED_TAGS")?he({},O.ALLOWED_TAGS,Se):C,S=gt(O,"ALLOWED_ATTR")?he({},O.ALLOWED_ATTR,Se):d,Wr=gt(O,"ALLOWED_NAMESPACES")?he({},O.ALLOWED_NAMESPACES,Qs):Os,Kt=gt(O,"ADD_URI_SAFE_ATTR")?he(Jt(It),O.ADD_URI_SAFE_ATTR,Se):It,or=gt(O,"ADD_DATA_URI_TAGS")?he(Jt(qt),O.ADD_DATA_URI_TAGS,Se):qt,Ce=gt(O,"FORBID_CONTENTS")?he({},O.FORBID_CONTENTS,Se):dt,N=gt(O,"FORBID_TAGS")?he({},O.FORBID_TAGS,Se):{},z=gt(O,"FORBID_ATTR")?he({},O.FORBID_ATTR,Se):{},ot=gt(O,"USE_PROFILES")?O.USE_PROFILES:!1,j=O.ALLOW_ARIA_ATTR!==!1,H=O.ALLOW_DATA_ATTR!==!1,K=O.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,q=O.SAFE_FOR_TEMPLATES||!1,ye=O.SAFE_FOR_XML!==!1,me=O.WHOLE_DOCUMENT||!1,We=O.RETURN_DOM||!1,et=O.RETURN_DOM_FRAGMENT||!1,lt=O.RETURN_TRUSTED_TYPE||!1,at=O.FORCE_BODY||!1,ct=O.SANITIZE_DOM!==!1,Ne=O.SANITIZE_NAMED_PROPS||!1,je=O.KEEP_CONTENT!==!1,tt=O.IN_PLACE||!1,P=O.ALLOWED_URI_REGEXP||wo,Dt=O.NAMESPACE||ht,br=O.MATHML_TEXT_INTEGRATION_POINTS||br,ir=O.HTML_INTEGRATION_POINTS||ir,$=O.CUSTOM_ELEMENT_HANDLING||{},O.CUSTOM_ELEMENT_HANDLING&&Is(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&Is(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(H=!1),et&&(We=!0),ot&&(k=he({},_o),S=[],ot.html===!0&&(he(k,vo),he(S,bo)),ot.svg===!0&&(he(k,en),he(S,sn),he(S,us)),ot.svgFilters===!0&&(he(k,tn),he(S,sn),he(S,us)),ot.mathMl===!0&&(he(k,rn),he(S,ko),he(S,us))),O.ADD_TAGS&&(k===C&&(k=Jt(k)),he(k,O.ADD_TAGS,Se)),O.ADD_ATTR&&(S===d&&(S=Jt(S)),he(S,O.ADD_ATTR,Se)),O.ADD_URI_SAFE_ATTR&&he(Kt,O.ADD_URI_SAFE_ATTR,Se),O.FORBID_CONTENTS&&(Ce===dt&&(Ce=Jt(Ce)),he(Ce,O.FORBID_CONTENTS,Se)),je&&(k["#text"]=!0),me&&he(k,["html","head","body"]),k.table&&(he(k,["tbody"]),delete N.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=O.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else w===void 0&&(w=Vc(_,n)),w!==null&&typeof E=="string"&&(E=w.createHTML(""));He&&He(O),Mt=O}},Ds=he({},[...en,...tn,...Nc]),Xr=he({},[...rn,...Oc]),Xe=function(O){let U=b(O);(!U||!U.tagName)&&(U={namespaceURI:Dt,tagName:"template"});const Y=is(O.tagName),ke=is(U.tagName);return Wr[O.namespaceURI]?O.namespaceURI===_r?U.namespaceURI===ht?Y==="svg":U.namespaceURI===xt?Y==="svg"&&(ke==="annotation-xml"||br[ke]):!!Ds[Y]:O.namespaceURI===xt?U.namespaceURI===ht?Y==="math":U.namespaceURI===_r?Y==="math"&&ir[ke]:!!Xr[Y]:O.namespaceURI===ht?U.namespaceURI===_r&&!ir[ke]||U.namespaceURI===xt&&!br[ke]?!1:!Xr[Y]&&(ha[Y]||!Ds[Y]):!!(Gt==="application/xhtml+xml"&&Wr[O.namespaceURI]):!1},Ae=function(O){Ar(e.removed,{element:O});try{b(O).removeChild(O)}catch{m(O)}},ur=function(O,U){try{Ar(e.removed,{attribute:U.getAttributeNode(O),from:U})}catch{Ar(e.removed,{attribute:null,from:U})}if(U.removeAttribute(O),O==="is")if(We||et)try{Ae(U)}catch{}else try{U.setAttribute(O,"")}catch{}},Ms=function(O){let U=null,Y=null;if(at)O="<remove></remove>"+O;else{const Fe=yo(O,/^[\r\n\t ]+/);Y=Fe&&Fe[0]}Gt==="application/xhtml+xml"&&Dt===ht&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const ke=w?w.createHTML(O):O;if(Dt===ht)try{U=new h().parseFromString(ke,Gt)}catch{}if(!U||!U.documentElement){U=T.createDocument(Dt,"template",null);try{U.documentElement.innerHTML=Gr?E:ke}catch{}}const ze=U.body||U.documentElement;return O&&Y&&ze.insertBefore(t.createTextNode(Y),ze.childNodes[0]||null),Dt===ht?L.call(U,me?"html":"body")[0]:me?U.documentElement:ze},vl=function(O){return D.call(O.ownerDocument||O,O,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},ga=function(O){return O instanceof f&&(typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||!(O.attributes instanceof l)||typeof O.removeAttribute!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function")},_l=function(O){return typeof u=="function"&&O instanceof u};function Ft(Q,O,U){os(Q,Y=>{Y.call(e,O,U,Mt)})}const bl=function(O){let U=null;if(Ft(A.beforeSanitizeElements,O,null),ga(O))return Ae(O),!0;const Y=Se(O.nodeName);if(Ft(A.uponSanitizeElement,O,{tagName:Y,allowedTags:k}),O.hasChildNodes()&&!_l(O.firstElementChild)&&Ue(/<[/\w]/g,O.innerHTML)&&Ue(/<[/\w]/g,O.textContent)||O.nodeType===Or.progressingInstruction||ye&&O.nodeType===Or.comment&&Ue(/<[/\w]/g,O.data))return Ae(O),!0;if(!k[Y]||N[Y]){if(!N[Y]&&wl(Y)&&($.tagNameCheck instanceof RegExp&&Ue($.tagNameCheck,Y)||$.tagNameCheck instanceof Function&&$.tagNameCheck(Y)))return!1;if(je&&!Ce[Y]){const ke=b(O)||O.parentNode,ze=g(O)||O.childNodes;if(ze&&ke){const Fe=ze.length;for(let rt=Fe-1;rt>=0;--rt){const Ct=v(ze[rt],!0);Ct.__removalCount=(O.__removalCount||0)+1,ke.insertBefore(Ct,y(O))}}}return Ae(O),!0}return O instanceof c&&!Xe(O)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&Ue(/<\/no(script|embed|frames)/i,O.innerHTML)?(Ae(O),!0):(q&&O.nodeType===Or.text&&(U=O.textContent,os([M,F,V],ke=>{U=Tr(U,ke," ")}),O.textContent!==U&&(Ar(e.removed,{element:O.cloneNode()}),O.textContent=U)),Ft(A.afterSanitizeElements,O,null),!1)},kl=function(O,U,Y){if(ct&&(U==="id"||U==="name")&&(Y in t||Y in ma))return!1;if(!(H&&!z[U]&&Ue(G,U))){if(!(j&&Ue(X,U))){if(!S[U]||z[U]){if(!(wl(O)&&($.tagNameCheck instanceof RegExp&&Ue($.tagNameCheck,O)||$.tagNameCheck instanceof Function&&$.tagNameCheck(O))&&($.attributeNameCheck instanceof RegExp&&Ue($.attributeNameCheck,U)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(U))||U==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Ue($.tagNameCheck,Y)||$.tagNameCheck instanceof Function&&$.tagNameCheck(Y))))return!1}else if(!Kt[U]){if(!Ue(P,Tr(Y,te,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&O!=="script"&&Cc(Y,"data:")===0&&or[O])){if(!(K&&!Ue(re,Tr(Y,te,"")))){if(Y)return!1}}}}}}return!0},wl=function(O){return O!=="annotation-xml"&&yo(O,oe)},El=function(O){Ft(A.beforeSanitizeAttributes,O,null);const{attributes:U}=O;if(!U||ga(O))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S,forceKeepAttr:void 0};let ke=U.length;for(;ke--;){const ze=U[ke],{name:Fe,namespaceURI:rt,value:Ct}=ze,Yr=Se(Fe);let Ye=Fe==="value"?Ct:Ac(Ct);if(Y.attrName=Yr,Y.attrValue=Ye,Y.keepAttr=!0,Y.forceKeepAttr=void 0,Ft(A.uponSanitizeAttribute,O,Y),Ye=Y.attrValue,Ne&&(Yr==="id"||Yr==="name")&&(ur(Fe,O),Ye=Oe+Ye),ye&&Ue(/((--!?|])>)|<\/(style|title)/i,Ye)){ur(Fe,O);continue}if(Y.forceKeepAttr||(ur(Fe,O),!Y.keepAttr))continue;if(!ne&&Ue(/\/>/i,Ye)){ur(Fe,O);continue}q&&os([M,F,V],Sl=>{Ye=Tr(Ye,Sl," ")});const $l=Se(O.nodeName);if(kl($l,Yr,Ye)){if(w&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!rt)switch(_.getAttributeType($l,Yr)){case"TrustedHTML":{Ye=w.createHTML(Ye);break}case"TrustedScriptURL":{Ye=w.createScriptURL(Ye);break}}try{rt?O.setAttributeNS(rt,Fe,Ye):O.setAttribute(Fe,Ye),ga(O)?Ae(O):go(e.removed)}catch{}}}Ft(A.afterSanitizeAttributes,O,null)},y1=function Q(O){let U=null;const Y=vl(O);for(Ft(A.beforeSanitizeShadowDOM,O,null);U=Y.nextNode();)Ft(A.uponSanitizeShadowNode,U,null),bl(U),El(U),U.content instanceof a&&Q(U.content);Ft(A.afterSanitizeShadowDOM,O,null)};return e.sanitize=function(Q){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,Y=null,ke=null,ze=null;if(Gr=!Q,Gr&&(Q="<!-->"),typeof Q!="string"&&!_l(Q))if(typeof Q.toString=="function"){if(Q=Q.toString(),typeof Q!="string")throw Pr("dirty is not a string, aborting")}else throw Pr("toString is not a function");if(!e.isSupported)return Q;if(Ge||kr(O),e.removed=[],typeof Q=="string"&&(tt=!1),tt){if(Q.nodeName){const Ct=Se(Q.nodeName);if(!k[Ct]||N[Ct])throw Pr("root node is forbidden and cannot be sanitized in-place")}}else if(Q instanceof u)U=Ms("<!---->"),Y=U.ownerDocument.importNode(Q,!0),Y.nodeType===Or.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?U=Y:U.appendChild(Y);else{if(!We&&!q&&!me&&Q.indexOf("<")===-1)return w&&lt?w.createHTML(Q):Q;if(U=Ms(Q),!U)return We?null:lt?E:""}U&&at&&Ae(U.firstChild);const Fe=vl(tt?Q:U);for(;ke=Fe.nextNode();)bl(ke),El(ke),ke.content instanceof a&&y1(ke.content);if(tt)return Q;if(We){if(et)for(ze=R.call(U.ownerDocument);U.firstChild;)ze.appendChild(U.firstChild);else ze=U;return(S.shadowroot||S.shadowrootmode)&&(ze=I.call(s,ze,!0)),ze}let rt=me?U.outerHTML:U.innerHTML;return me&&k["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&Ue(Eo,U.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
21
- `+rt),q&&os([M,F,V],Ct=>{rt=Tr(rt,Ct," ")}),w&&lt?w.createHTML(rt):rt},e.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kr(Q),Ge=!0},e.clearConfig=function(){Mt=null,Ge=!1},e.isValidAttribute=function(Q,O,U){Mt||kr({});const Y=Se(Q),ke=Se(O);return kl(Y,ke,U)},e.addHook=function(Q,O){typeof O=="function"&&Ar(A[Q],O)},e.removeHook=function(Q,O){if(O!==void 0){const U=Sc(A[Q],O);return U===-1?void 0:xc(A[Q],U,1)[0]}return go(A[Q])},e.removeHooks=function(Q){A[Q]=[]},e.removeAllHooks=function(){A=So()},e}var nn=xo(),ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hc(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return r[s]}})}),t}var an={exports:{}},Co={},yt={},lr={},Ir={},le={},Dr={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class e{}r._CodeOrName=e,r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(g){if(super(),!r.IDENTIFIER.test(g))throw new Error("CodeGen: name must be a valid identifier");this.str=g}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=t;class s extends e{constructor(g){super(),this._items=typeof g=="string"?[g]:g}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const g=this._items[0];return g===""||g==='""'}get str(){var g;return(g=this._str)!==null&&g!==void 0?g:this._str=this._items.reduce((b,w)=>`${b}${w}`,"")}get names(){var g;return(g=this._names)!==null&&g!==void 0?g:this._names=this._items.reduce((b,w)=>(w instanceof t&&(b[w.str]=(b[w.str]||0)+1),b),{})}}r._Code=s,r.nil=new s("");function n(y,...g){const b=[y[0]];let w=0;for(;w<g.length;)u(b,g[w]),b.push(y[++w]);return new s(b)}r._=n;const a=new s("+");function i(y,...g){const b=[_(y[0])];let w=0;for(;w<g.length;)b.push(a),u(b,g[w]),b.push(a,_(y[++w]));return c(b),new s(b)}r.str=i;function u(y,g){g instanceof s?y.push(...g._items):g instanceof t?y.push(g):y.push(f(g))}r.addCodeArg=u;function c(y){let g=1;for(;g<y.length-1;){if(y[g]===a){const b=o(y[g-1],y[g+1]);if(b!==void 0){y.splice(g-1,3,b);continue}y[g++]="+"}g++}}function o(y,g){if(g==='""')return y;if(y==='""')return g;if(typeof y=="string")return g instanceof t||y[y.length-1]!=='"'?void 0:typeof g!="string"?`${y.slice(0,-1)}${g}"`:g[0]==='"'?y.slice(0,-1)+g.slice(1):void 0;if(typeof g=="string"&&g[0]==='"'&&!(y instanceof t))return`"${y}${g.slice(1)}`}function l(y,g){return g.emptyStr()?y:y.emptyStr()?g:i`${y}${g}`}r.strConcat=l;function f(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:_(Array.isArray(y)?y.join(","):y)}function h(y){return new s(_(y))}r.stringify=h;function _(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=_;function p(y){return typeof y=="string"&&r.IDENTIFIER.test(y)?new s(`.${y}`):n`[${y}]`}r.getProperty=p;function v(y){if(typeof y=="string"&&r.IDENTIFIER.test(y))return new s(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}r.getEsmExportName=v;function m(y){return new s(y.toString())}r.regexpCode=m})(Dr);var on={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const e=Dr;class t extends Error{constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}}var s;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(s||(r.UsedValueState=s={})),r.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class n{constructor({prefixes:o,parent:l}={}){this._names={},this._prefixes=o,this._parent=l}toName(o){return o instanceof e.Name?o:this.name(o)}name(o){return new e.Name(this._newName(o))}_newName(o){const l=this._names[o]||this._nameGroup(o);return`${o}${l.index++}`}_nameGroup(o){var l,f;if(!((f=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||f===void 0)&&f.has(o)||this._prefixes&&!this._prefixes.has(o))throw new Error(`CodeGen: prefix "${o}" is not allowed in this scope`);return this._names[o]={prefix:o,index:0}}}r.Scope=n;class a extends e.Name{constructor(o,l){super(l),this.prefix=o}setValue(o,{property:l,itemIndex:f}){this.value=o,this.scopePath=(0,e._)`.${new e.Name(l)}[${f}]`}}r.ValueScopeName=a;const i=(0,e._)`\n`;class u extends n{constructor(o){super(o),this._values={},this._scope=o.scope,this.opts={...o,_n:o.lines?i:e.nil}}get(){return this._scope}name(o){return new a(o,this._newName(o))}value(o,l){var f;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(o),{prefix:_}=h,p=(f=l.key)!==null&&f!==void 0?f:l.ref;let v=this._values[_];if(v){const g=v.get(p);if(g)return g}else v=this._values[_]=new Map;v.set(p,h);const m=this._scope[_]||(this._scope[_]=[]),y=m.length;return m[y]=l.ref,h.setValue(l,{property:_,itemIndex:y}),h}getValue(o,l){const f=this._values[o];if(f)return f.get(l)}scopeRefs(o,l=this._values){return this._reduceValues(l,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,e._)`${o}${f.scopePath}`})}scopeCode(o=this._values,l,f){return this._reduceValues(o,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},l,f)}_reduceValues(o,l,f={},h){let _=e.nil;for(const p in o){const v=o[p];if(!v)continue;const m=f[p]=f[p]||new Map;v.forEach(y=>{if(m.has(y))return;m.set(y,s.Started);let g=l(y);if(g){const b=this.opts.es5?r.varKinds.var:r.varKinds.const;_=(0,e._)`${_}${b} ${y} = ${g};${this.opts._n}`}else if(g=h==null?void 0:h(y))_=(0,e._)`${_}${g}${this.opts._n}`;else throw new t(y);m.set(y,s.Completed)})}return _}}r.ValueScope=u})(on),function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const e=Dr,t=on;var s=Dr;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(r,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(r,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(r,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return s.Name}});var n=on;Object.defineProperty(r,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(r,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(r,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(r,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),r.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class a{optimizeNodes(){return this}optimizeNames(d,$){return this}}class i extends a{constructor(d,$,N){super(),this.varKind=d,this.name=$,this.rhs=N}render({es5:d,_n:$}){const N=d?t.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${z};`+$}optimizeNames(d,$){if(d[this.name.str])return this.rhs&&(this.rhs=V(this.rhs,d,$)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(d,$,N){super(),this.lhs=d,this.rhs=$,this.sideEffects=N}render({_n:d}){return`${this.lhs} = ${this.rhs};`+d}optimizeNames(d,$){if(!(this.lhs instanceof e.Name&&!d[this.lhs.str]&&!this.sideEffects))return this.rhs=V(this.rhs,d,$),this}get names(){const d=this.lhs instanceof e.Name?{}:{...this.lhs.names};return F(d,this.rhs)}}class c extends u{constructor(d,$,N,z){super(d,N,z),this.op=$}render({_n:d}){return`${this.lhs} ${this.op}= ${this.rhs};`+d}}class o extends a{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`${this.label}:`+d}}class l extends a{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`break${this.label?` ${this.label}`:""};`+d}}class f extends a{constructor(d){super(),this.error=d}render({_n:d}){return`throw ${this.error};`+d}get names(){return this.error.names}}class h extends a{constructor(d){super(),this.code=d}render({_n:d}){return`${this.code};`+d}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(d,$){return this.code=V(this.code,d,$),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class _ extends a{constructor(d=[]){super(),this.nodes=d}render(d){return this.nodes.reduce(($,N)=>$+N.render(d),"")}optimizeNodes(){const{nodes:d}=this;let $=d.length;for(;$--;){const N=d[$].optimizeNodes();Array.isArray(N)?d.splice($,1,...N):N?d[$]=N:d.splice($,1)}return d.length>0?this:void 0}optimizeNames(d,$){const{nodes:N}=this;let z=N.length;for(;z--;){const j=N[z];j.optimizeNames(d,$)||(G(d,j.names),N.splice(z,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((d,$)=>M(d,$.names),{})}}class p extends _{render(d){return"{"+d._n+super.render(d)+"}"+d._n}}class v extends _{}class m extends p{}m.kind="else";class y extends p{constructor(d,$){super($),this.condition=d}render(d){let $=`if(${this.condition})`+super.render(d);return this.else&&($+="else "+this.else.render(d)),$}optimizeNodes(){super.optimizeNodes();const d=this.condition;if(d===!0)return this.nodes;let $=this.else;if($){const N=$.optimizeNodes();$=this.else=Array.isArray(N)?new m(N):N}if($)return d===!1?$ instanceof y?$:$.nodes:this.nodes.length?this:new y(X(d),$ instanceof y?[$]:$.nodes);if(!(d===!1||!this.nodes.length))return this}optimizeNames(d,$){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(d,$),!!(super.optimizeNames(d,$)||this.else))return this.condition=V(this.condition,d,$),this}get names(){const d=super.names;return F(d,this.condition),this.else&&M(d,this.else.names),d}}y.kind="if";class g extends p{}g.kind="for";class b extends g{constructor(d){super(),this.iteration=d}render(d){return`for(${this.iteration})`+super.render(d)}optimizeNames(d,$){if(super.optimizeNames(d,$))return this.iteration=V(this.iteration,d,$),this}get names(){return M(super.names,this.iteration.names)}}class w extends g{constructor(d,$,N,z){super(),this.varKind=d,this.name=$,this.from=N,this.to=z}render(d){const $=d.es5?t.varKinds.var:this.varKind,{name:N,from:z,to:j}=this;return`for(${$} ${N}=${z}; ${N}<${j}; ${N}++)`+super.render(d)}get names(){const d=F(super.names,this.from);return F(d,this.to)}}class E extends g{constructor(d,$,N,z){super(),this.loop=d,this.varKind=$,this.name=N,this.iterable=z}render(d){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(d)}optimizeNames(d,$){if(super.optimizeNames(d,$))return this.iterable=V(this.iterable,d,$),this}get names(){return M(super.names,this.iterable.names)}}class T extends p{constructor(d,$,N){super(),this.name=d,this.args=$,this.async=N}render(d){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(d)}}T.kind="func";class D extends _{render(d){return"return "+super.render(d)}}D.kind="return";class R extends p{render(d){let $="try"+super.render(d);return this.catch&&($+=this.catch.render(d)),this.finally&&($+=this.finally.render(d)),$}optimizeNodes(){var d,$;return super.optimizeNodes(),(d=this.catch)===null||d===void 0||d.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(d,$){var N,z;return super.optimizeNames(d,$),(N=this.catch)===null||N===void 0||N.optimizeNames(d,$),(z=this.finally)===null||z===void 0||z.optimizeNames(d,$),this}get names(){const d=super.names;return this.catch&&M(d,this.catch.names),this.finally&&M(d,this.finally.names),d}}class L extends p{constructor(d){super(),this.error=d}render(d){return`catch(${this.error})`+super.render(d)}}L.kind="catch";class I extends p{render(d){return"finally"+super.render(d)}}I.kind="finally";class A{constructor(d,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
22
- `:""},this._extScope=d,this._scope=new t.Scope({parent:d}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(d){return this._scope.name(d)}scopeName(d){return this._extScope.name(d)}scopeValue(d,$){const N=this._extScope.value(d,$);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(d,$){return this._extScope.getValue(d,$)}scopeRefs(d){return this._extScope.scopeRefs(d,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(d,$,N,z){const j=this._scope.toName($);return N!==void 0&&z&&(this._constants[j.str]=N),this._leafNode(new i(d,j,N)),j}const(d,$,N){return this._def(t.varKinds.const,d,$,N)}let(d,$,N){return this._def(t.varKinds.let,d,$,N)}var(d,$,N){return this._def(t.varKinds.var,d,$,N)}assign(d,$,N){return this._leafNode(new u(d,$,N))}add(d,$){return this._leafNode(new c(d,r.operators.ADD,$))}code(d){return typeof d=="function"?d():d!==e.nil&&this._leafNode(new h(d)),this}object(...d){const $=["{"];for(const[N,z]of d)$.length>1&&$.push(","),$.push(N),(N!==z||this.opts.es5)&&($.push(":"),(0,e.addCodeArg)($,z));return $.push("}"),new e._Code($)}if(d,$,N){if(this._blockNode(new y(d)),$&&N)this.code($).else().code(N).endIf();else if($)this.code($).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(d){return this._elseNode(new y(d))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(y,m)}_for(d,$){return this._blockNode(d),$&&this.code($).endFor(),this}for(d,$){return this._for(new b(d),$)}forRange(d,$,N,z,j=this.opts.es5?t.varKinds.var:t.varKinds.let){const H=this._scope.toName(d);return this._for(new w(j,H,$,N),()=>z(H))}forOf(d,$,N,z=t.varKinds.const){const j=this._scope.toName(d);if(this.opts.es5){const H=$ instanceof e.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,e._)`${H}.length`,K=>{this.var(j,(0,e._)`${H}[${K}]`),N(j)})}return this._for(new E("of",z,j,$),()=>N(j))}forIn(d,$,N,z=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(d,(0,e._)`Object.keys(${$})`,N);const j=this._scope.toName(d);return this._for(new E("in",z,j,$),()=>N(j))}endFor(){return this._endBlockNode(g)}label(d){return this._leafNode(new o(d))}break(d){return this._leafNode(new l(d))}return(d){const $=new D;if(this._blockNode($),this.code(d),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(D)}try(d,$,N){if(!$&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new R;if(this._blockNode(z),this.code(d),$){const j=this.name("e");this._currNode=z.catch=new L(j),$(j)}return N&&(this._currNode=z.finally=new I,this.code(N)),this._endBlockNode(L,I)}throw(d){return this._leafNode(new f(d))}block(d,$){return this._blockStarts.push(this._nodes.length),d&&this.code(d).endBlock($),this}endBlock(d){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-$;if(N<0||d!==void 0&&N!==d)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${d} expected`);return this._nodes.length=$,this}func(d,$=e.nil,N,z){return this._blockNode(new T(d,$,N)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(d=1){for(;d-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(d){return this._currNode.nodes.push(d),this}_blockNode(d){this._currNode.nodes.push(d),this._nodes.push(d)}_endBlockNode(d,$){const N=this._currNode;if(N instanceof d||$&&N instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${d.kind}/${$.kind}`:d.kind}"`)}_elseNode(d){const $=this._currNode;if(!($ instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=d,this}get _root(){return this._nodes[0]}get _currNode(){const d=this._nodes;return d[d.length-1]}set _currNode(d){const $=this._nodes;$[$.length-1]=d}}r.CodeGen=A;function M(S,d){for(const $ in d)S[$]=(S[$]||0)+(d[$]||0);return S}function F(S,d){return d instanceof e._CodeOrName?M(S,d.names):S}function V(S,d,$){if(S instanceof e.Name)return N(S);if(!z(S))return S;return new e._Code(S._items.reduce((j,H)=>(H instanceof e.Name&&(H=N(H)),H instanceof e._Code?j.push(...H._items):j.push(H),j),[]));function N(j){const H=$[j.str];return H===void 0||d[j.str]!==1?j:(delete d[j.str],H)}function z(j){return j instanceof e._Code&&j._items.some(H=>H instanceof e.Name&&d[H.str]===1&&$[H.str]!==void 0)}}function G(S,d){for(const $ in d)S[$]=(S[$]||0)-(d[$]||0)}function X(S){return typeof S=="boolean"||typeof S=="number"||S===null?!S:(0,e._)`!${C(S)}`}r.not=X;const re=k(r.operators.AND);function te(...S){return S.reduce(re)}r.and=te;const oe=k(r.operators.OR);function P(...S){return S.reduce(oe)}r.or=P;function k(S){return(d,$)=>d===e.nil?$:$===e.nil?d:(0,e._)`${C(d)} ${S} ${C($)}`}function C(S){return S instanceof e.Name?S:(0,e._)`(${S})`}}(le);var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.checkStrictMode=W.getErrorPath=W.Type=W.useFunc=W.setEvaluated=W.evaluatedPropsToName=W.mergeEvaluated=W.eachItem=W.unescapeJsonPointer=W.escapeJsonPointer=W.escapeFragment=W.unescapeFragment=W.schemaRefOrVal=W.schemaHasRulesButRef=W.schemaHasRules=W.checkUnknownRules=W.alwaysValidSchema=W.toHash=void 0;const ve=le,Uc=Dr;function qc(r){const e={};for(const t of r)e[t]=!0;return e}W.toHash=qc;function Kc(r,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Ao(r,e),!To(e,r.self.RULES.all))}W.alwaysValidSchema=Kc;function Ao(r,e=r.schema){const{opts:t,self:s}=r;if(!t.strictSchema||typeof e=="boolean")return;const n=s.RULES.keywords;for(const a in e)n[a]||Do(r,`unknown keyword: "${a}"`)}W.checkUnknownRules=Ao;function To(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(e[t])return!0;return!1}W.schemaHasRules=To;function Gc(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(t!=="$ref"&&e.all[t])return!0;return!1}W.schemaHasRulesButRef=Gc;function Wc({topSchemaRef:r,schemaPath:e},t,s,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,ve._)`${t}`}return(0,ve._)`${r}${e}${(0,ve.getProperty)(s)}`}W.schemaRefOrVal=Wc;function Xc(r){return Po(decodeURIComponent(r))}W.unescapeFragment=Xc;function Yc(r){return encodeURIComponent(un(r))}W.escapeFragment=Yc;function un(r){return typeof r=="number"?`${r}`:r.replace(/~/g,"~0").replace(/\//g,"~1")}W.escapeJsonPointer=un;function Po(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}W.unescapeJsonPointer=Po;function Jc(r,e){if(Array.isArray(r))for(const t of r)e(t);else e(r)}W.eachItem=Jc;function No({mergeNames:r,mergeToName:e,mergeValues:t,resultToName:s}){return(n,a,i,u)=>{const c=i===void 0?a:i instanceof ve.Name?(a instanceof ve.Name?r(n,a,i):e(n,a,i),i):a instanceof ve.Name?(e(n,i,a),a):t(a,i);return u===ve.Name&&!(c instanceof ve.Name)?s(n,c):c}}W.mergeEvaluated={props:No({mergeNames:(r,e,t)=>r.if((0,ve._)`${t} !== true && ${e} !== undefined`,()=>{r.if((0,ve._)`${e} === true`,()=>r.assign(t,!0),()=>r.assign(t,(0,ve._)`${t} || {}`).code((0,ve._)`Object.assign(${t}, ${e})`))}),mergeToName:(r,e,t)=>r.if((0,ve._)`${t} !== true`,()=>{e===!0?r.assign(t,!0):(r.assign(t,(0,ve._)`${t} || {}`),ln(r,t,e))}),mergeValues:(r,e)=>r===!0?!0:{...r,...e},resultToName:Oo}),items:No({mergeNames:(r,e,t)=>r.if((0,ve._)`${t} !== true && ${e} !== undefined`,()=>r.assign(t,(0,ve._)`${e} === true ? true : ${t} > ${e} ? ${t} : ${e}`)),mergeToName:(r,e,t)=>r.if((0,ve._)`${t} !== true`,()=>r.assign(t,e===!0?!0:(0,ve._)`${t} > ${e} ? ${t} : ${e}`)),mergeValues:(r,e)=>r===!0?!0:Math.max(r,e),resultToName:(r,e)=>r.var("items",e)})};function Oo(r,e){if(e===!0)return r.var("props",!0);const t=r.var("props",(0,ve._)`{}`);return e!==void 0&&ln(r,t,e),t}W.evaluatedPropsToName=Oo;function ln(r,e,t){Object.keys(t).forEach(s=>r.assign((0,ve._)`${e}${(0,ve.getProperty)(s)}`,!0))}W.setEvaluated=ln;const Io={};function Zc(r,e){return r.scopeValue("func",{ref:e,code:Io[e.code]||(Io[e.code]=new Uc._Code(e.code))})}W.useFunc=Zc;var cn;(function(r){r[r.Num=0]="Num",r[r.Str=1]="Str"})(cn||(W.Type=cn={}));function Qc(r,e,t){if(r instanceof ve.Name){const s=e===cn.Num;return t?s?(0,ve._)`"[" + ${r} + "]"`:(0,ve._)`"['" + ${r} + "']"`:s?(0,ve._)`"/" + ${r}`:(0,ve._)`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,ve.getProperty)(r).toString():"/"+un(r)}W.getErrorPath=Qc;function Do(r,e,t=r.opts.strictSchema){if(t){if(e=`strict mode: ${e}`,t===!0)throw new Error(e);r.self.logger.warn(e)}}W.checkStrictMode=Do;var wt={};Object.defineProperty(wt,"__esModule",{value:!0});const Le=le,ed={data:new Le.Name("data"),valCxt:new Le.Name("valCxt"),instancePath:new Le.Name("instancePath"),parentData:new Le.Name("parentData"),parentDataProperty:new Le.Name("parentDataProperty"),rootData:new Le.Name("rootData"),dynamicAnchors:new Le.Name("dynamicAnchors"),vErrors:new Le.Name("vErrors"),errors:new Le.Name("errors"),this:new Le.Name("this"),self:new Le.Name("self"),scope:new Le.Name("scope"),json:new Le.Name("json"),jsonPos:new Le.Name("jsonPos"),jsonLen:new Le.Name("jsonLen"),jsonPart:new Le.Name("jsonPart")};wt.default=ed,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const e=le,t=W,s=wt;r.keywordError={message:({keyword:m})=>(0,e.str)`must pass "${m}" keyword validation`},r.keyword$DataError={message:({keyword:m,schemaType:y})=>y?(0,e.str)`"${m}" keyword must be ${y} ($data)`:(0,e.str)`"${m}" keyword is invalid ($data)`};function n(m,y=r.keywordError,g,b){const{it:w}=m,{gen:E,compositeRule:T,allErrors:D}=w,R=f(m,y,g);b??(T||D)?c(E,R):o(w,(0,e._)`[${R}]`)}r.reportError=n;function a(m,y=r.keywordError,g){const{it:b}=m,{gen:w,compositeRule:E,allErrors:T}=b,D=f(m,y,g);c(w,D),E||T||o(b,s.default.vErrors)}r.reportExtraError=a;function i(m,y){m.assign(s.default.errors,y),m.if((0,e._)`${s.default.vErrors} !== null`,()=>m.if(y,()=>m.assign((0,e._)`${s.default.vErrors}.length`,y),()=>m.assign(s.default.vErrors,null)))}r.resetErrorsCount=i;function u({gen:m,keyword:y,schemaValue:g,data:b,errsCount:w,it:E}){if(w===void 0)throw new Error("ajv implementation error");const T=m.name("err");m.forRange("i",w,s.default.errors,D=>{m.const(T,(0,e._)`${s.default.vErrors}[${D}]`),m.if((0,e._)`${T}.instancePath === undefined`,()=>m.assign((0,e._)`${T}.instancePath`,(0,e.strConcat)(s.default.instancePath,E.errorPath))),m.assign((0,e._)`${T}.schemaPath`,(0,e.str)`${E.errSchemaPath}/${y}`),E.opts.verbose&&(m.assign((0,e._)`${T}.schema`,g),m.assign((0,e._)`${T}.data`,b))})}r.extendErrors=u;function c(m,y){const g=m.const("err",y);m.if((0,e._)`${s.default.vErrors} === null`,()=>m.assign(s.default.vErrors,(0,e._)`[${g}]`),(0,e._)`${s.default.vErrors}.push(${g})`),m.code((0,e._)`${s.default.errors}++`)}function o(m,y){const{gen:g,validateName:b,schemaEnv:w}=m;w.$async?g.throw((0,e._)`new ${m.ValidationError}(${y})`):(g.assign((0,e._)`${b}.errors`,y),g.return(!1))}const l={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function f(m,y,g){const{createErrors:b}=m.it;return b===!1?(0,e._)`{}`:h(m,y,g)}function h(m,y,g={}){const{gen:b,it:w}=m,E=[_(w,g),p(m,g)];return v(m,y,E),b.object(...E)}function _({errorPath:m},{instancePath:y}){const g=y?(0,e.str)`${m}${(0,t.getErrorPath)(y,t.Type.Str)}`:m;return[s.default.instancePath,(0,e.strConcat)(s.default.instancePath,g)]}function p({keyword:m,it:{errSchemaPath:y}},{schemaPath:g,parentSchema:b}){let w=b?y:(0,e.str)`${y}/${m}`;return g&&(w=(0,e.str)`${w}${(0,t.getErrorPath)(g,t.Type.Str)}`),[l.schemaPath,w]}function v(m,{params:y,message:g},b){const{keyword:w,data:E,schemaValue:T,it:D}=m,{opts:R,propertyName:L,topSchemaRef:I,schemaPath:A}=D;b.push([l.keyword,w],[l.params,typeof y=="function"?y(m):y||(0,e._)`{}`]),R.messages&&b.push([l.message,typeof g=="function"?g(m):g]),R.verbose&&b.push([l.schema,T],[l.parentSchema,(0,e._)`${I}${A}`],[s.default.data,E]),L&&b.push([l.propertyName,L])}}(Ir),Object.defineProperty(lr,"__esModule",{value:!0}),lr.boolOrEmptySchema=lr.topBoolOrEmptySchema=void 0;const td=Ir,rd=le,sd=wt,nd={message:"boolean schema is false"};function ad(r){const{gen:e,schema:t,validateName:s}=r;t===!1?Mo(r,!1):typeof t=="object"&&t.$async===!0?e.return(sd.default.data):(e.assign((0,rd._)`${s}.errors`,null),e.return(!0))}lr.topBoolOrEmptySchema=ad;function od(r,e){const{gen:t,schema:s}=r;s===!1?(t.var(e,!1),Mo(r)):t.var(e,!0)}lr.boolOrEmptySchema=od;function Mo(r,e){const{gen:t,data:s}=r,n={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,td.reportError)(n,nd,void 0,e)}var xe={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.getRules=Zt.isJSONType=void 0;const id=["string","number","integer","boolean","null","object","array"],ud=new Set(id);function ld(r){return typeof r=="string"&&ud.has(r)}Zt.isJSONType=ld;function cd(){const r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...r,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}Zt.getRules=cd;var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.shouldUseRule=Pt.shouldUseGroup=Pt.schemaHasRulesForType=void 0;function dd({schema:r,self:e},t){const s=e.RULES.types[t];return s&&s!==!0&&Fo(r,s)}Pt.schemaHasRulesForType=dd;function Fo(r,e){return e.rules.some(t=>Ro(r,t))}Pt.shouldUseGroup=Fo;function Ro(r,e){var t;return r[e.keyword]!==void 0||((t=e.definition.implements)===null||t===void 0?void 0:t.some(s=>r[s]!==void 0))}Pt.shouldUseRule=Ro,Object.defineProperty(xe,"__esModule",{value:!0}),xe.reportTypeError=xe.checkDataTypes=xe.checkDataType=xe.coerceAndCheckDataType=xe.getJSONTypes=xe.getSchemaTypes=xe.DataType=void 0;const hd=Zt,fd=Pt,pd=Ir,ie=le,Bo=W;var cr;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(cr||(xe.DataType=cr={}));function md(r){const e=Lo(r.type);if(e.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&e.push("null")}return e}xe.getSchemaTypes=md;function Lo(r){const e=Array.isArray(r)?r:r?[r]:[];if(e.every(hd.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}xe.getJSONTypes=Lo;function gd(r,e){const{gen:t,data:s,opts:n}=r,a=yd(e,n.coerceTypes),i=e.length>0&&!(a.length===0&&e.length===1&&(0,fd.schemaHasRulesForType)(r,e[0]));if(i){const u=hn(e,s,n.strictNumbers,cr.Wrong);t.if(u,()=>{a.length?vd(r,e,a):fn(r)})}return i}xe.coerceAndCheckDataType=gd;const jo=new Set(["string","number","integer","boolean","null"]);function yd(r,e){return e?r.filter(t=>jo.has(t)||e==="array"&&t==="array"):[]}function vd(r,e,t){const{gen:s,data:n,opts:a}=r,i=s.let("dataType",(0,ie._)`typeof ${n}`),u=s.let("coerced",(0,ie._)`undefined`);a.coerceTypes==="array"&&s.if((0,ie._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,ie._)`${n}[0]`).assign(i,(0,ie._)`typeof ${n}`).if(hn(e,n,a.strictNumbers),()=>s.assign(u,n))),s.if((0,ie._)`${u} !== undefined`);for(const o of t)(jo.has(o)||o==="array"&&a.coerceTypes==="array")&&c(o);s.else(),fn(r),s.endIf(),s.if((0,ie._)`${u} !== undefined`,()=>{s.assign(n,u),_d(r,u)});function c(o){switch(o){case"string":s.elseIf((0,ie._)`${i} == "number" || ${i} == "boolean"`).assign(u,(0,ie._)`"" + ${n}`).elseIf((0,ie._)`${n} === null`).assign(u,(0,ie._)`""`);return;case"number":s.elseIf((0,ie._)`${i} == "boolean" || ${n} === null
23
- || (${i} == "string" && ${n} && ${n} == +${n})`).assign(u,(0,ie._)`+${n}`);return;case"integer":s.elseIf((0,ie._)`${i} === "boolean" || ${n} === null
24
- || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(u,(0,ie._)`+${n}`);return;case"boolean":s.elseIf((0,ie._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(u,!1).elseIf((0,ie._)`${n} === "true" || ${n} === 1`).assign(u,!0);return;case"null":s.elseIf((0,ie._)`${n} === "" || ${n} === 0 || ${n} === false`),s.assign(u,null);return;case"array":s.elseIf((0,ie._)`${i} === "string" || ${i} === "number"
25
- || ${i} === "boolean" || ${n} === null`).assign(u,(0,ie._)`[${n}]`)}}}function _d({gen:r,parentData:e,parentDataProperty:t},s){r.if((0,ie._)`${e} !== undefined`,()=>r.assign((0,ie._)`${e}[${t}]`,s))}function dn(r,e,t,s=cr.Correct){const n=s===cr.Correct?ie.operators.EQ:ie.operators.NEQ;let a;switch(r){case"null":return(0,ie._)`${e} ${n} null`;case"array":a=(0,ie._)`Array.isArray(${e})`;break;case"object":a=(0,ie._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=i((0,ie._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=i();break;default:return(0,ie._)`typeof ${e} ${n} ${r}`}return s===cr.Correct?a:(0,ie.not)(a);function i(u=ie.nil){return(0,ie.and)((0,ie._)`typeof ${e} == "number"`,u,t?(0,ie._)`isFinite(${e})`:ie.nil)}}xe.checkDataType=dn;function hn(r,e,t,s){if(r.length===1)return dn(r[0],e,t,s);let n;const a=(0,Bo.toHash)(r);if(a.array&&a.object){const i=(0,ie._)`typeof ${e} != "object"`;n=a.null?i:(0,ie._)`!${e} || ${i}`,delete a.null,delete a.array,delete a.object}else n=ie.nil;a.number&&delete a.integer;for(const i in a)n=(0,ie.and)(n,dn(i,e,t,s));return n}xe.checkDataTypes=hn;const bd={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:e})=>typeof r=="string"?(0,ie._)`{type: ${r}}`:(0,ie._)`{type: ${e}}`};function fn(r){const e=kd(r);(0,pd.reportError)(e,bd)}xe.reportTypeError=fn;function kd(r){const{gen:e,data:t,schema:s}=r,n=(0,Bo.schemaRefOrVal)(r,s,"type");return{gen:e,keyword:"type",data:t,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:r}}var ls={};Object.defineProperty(ls,"__esModule",{value:!0}),ls.assignDefaults=void 0;const dr=le,wd=W;function Ed(r,e){const{properties:t,items:s}=r.schema;if(e==="object"&&t)for(const n in t)zo(r,n,t[n].default);else e==="array"&&Array.isArray(s)&&s.forEach((n,a)=>zo(r,a,n.default))}ls.assignDefaults=Ed;function zo(r,e,t){const{gen:s,compositeRule:n,data:a,opts:i}=r;if(t===void 0)return;const u=(0,dr._)`${a}${(0,dr.getProperty)(e)}`;if(n){(0,wd.checkStrictMode)(r,`default is ignored for: ${u}`);return}let c=(0,dr._)`${u} === undefined`;i.useDefaults==="empty"&&(c=(0,dr._)`${c} || ${u} === null || ${u} === ""`),s.if(c,(0,dr._)`${u} = ${(0,dr.stringify)(t)}`)}var Et={},de={};Object.defineProperty(de,"__esModule",{value:!0}),de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;const _e=le,pn=W,jt=wt,$d=W;function Sd(r,e){const{gen:t,data:s,it:n}=r;t.if(gn(t,s,e,n.opts.ownProperties),()=>{r.setParams({missingProperty:(0,_e._)`${e}`},!0),r.error()})}de.checkReportMissingProp=Sd;function xd({gen:r,data:e,it:{opts:t}},s,n){return(0,_e.or)(...s.map(a=>(0,_e.and)(gn(r,e,a,t.ownProperties),(0,_e._)`${n} = ${a}`)))}de.checkMissingProp=xd;function Cd(r,e){r.setParams({missingProperty:e},!0),r.error()}de.reportMissingProp=Cd;function Vo(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,_e._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=Vo;function mn(r,e,t){return(0,_e._)`${Vo(r)}.call(${e}, ${t})`}de.isOwnProperty=mn;function Ad(r,e,t,s){const n=(0,_e._)`${e}${(0,_e.getProperty)(t)} !== undefined`;return s?(0,_e._)`${n} && ${mn(r,e,t)}`:n}de.propertyInData=Ad;function gn(r,e,t,s){const n=(0,_e._)`${e}${(0,_e.getProperty)(t)} === undefined`;return s?(0,_e.or)(n,(0,_e.not)(mn(r,e,t))):n}de.noPropertyInData=gn;function Ho(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=Ho;function Td(r,e){return Ho(e).filter(t=>!(0,pn.alwaysValidSchema)(r,e[t]))}de.schemaProperties=Td;function Pd({schemaCode:r,data:e,it:{gen:t,topSchemaRef:s,schemaPath:n,errorPath:a},it:i},u,c,o){const l=o?(0,_e._)`${r}, ${e}, ${s}${n}`:e,f=[[jt.default.instancePath,(0,_e.strConcat)(jt.default.instancePath,a)],[jt.default.parentData,i.parentData],[jt.default.parentDataProperty,i.parentDataProperty],[jt.default.rootData,jt.default.rootData]];i.opts.dynamicRef&&f.push([jt.default.dynamicAnchors,jt.default.dynamicAnchors]);const h=(0,_e._)`${l}, ${t.object(...f)}`;return c!==_e.nil?(0,_e._)`${u}.call(${c}, ${h})`:(0,_e._)`${u}(${h})`}de.callValidateCode=Pd;const Nd=(0,_e._)`new RegExp`;function Od({gen:r,it:{opts:e}},t){const s=e.unicodeRegExp?"u":"",{regExp:n}=e.code,a=n(t,s);return r.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,_e._)`${n.code==="new RegExp"?Nd:(0,$d.useFunc)(r,n)}(${t}, ${s})`})}de.usePattern=Od;function Id(r){const{gen:e,data:t,keyword:s,it:n}=r,a=e.name("valid");if(n.allErrors){const u=e.let("valid",!0);return i(()=>e.assign(u,!1)),u}return e.var(a,!0),i(()=>e.break()),a;function i(u){const c=e.const("len",(0,_e._)`${t}.length`);e.forRange("i",0,c,o=>{r.subschema({keyword:s,dataProp:o,dataPropType:pn.Type.Num},a),e.if((0,_e.not)(a),u)})}}de.validateArray=Id;function Dd(r){const{gen:e,schema:t,keyword:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(u=>(0,pn.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;const a=e.let("valid",!1),i=e.name("_valid");e.block(()=>t.forEach((u,c)=>{const o=r.subschema({keyword:s,schemaProp:c,compositeRule:!0},i);e.assign(a,(0,_e._)`${a} || ${i}`),r.mergeValidEvaluated(o,i)||e.if((0,_e.not)(a))})),r.result(a,()=>r.reset(),()=>r.error(!0))}de.validateUnion=Dd,Object.defineProperty(Et,"__esModule",{value:!0}),Et.validateKeywordUsage=Et.validSchemaType=Et.funcKeywordCode=Et.macroKeywordCode=void 0;const Ke=le,Qt=wt,Md=de,Fd=Ir;function Rd(r,e){const{gen:t,keyword:s,schema:n,parentSchema:a,it:i}=r,u=e.macro.call(i.self,n,a,i),c=qo(t,s,u);i.opts.validateSchema!==!1&&i.self.validateSchema(u,!0);const o=t.name("valid");r.subschema({schema:u,schemaPath:Ke.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:c,compositeRule:!0},o),r.pass(o,()=>r.error(!0))}Et.macroKeywordCode=Rd;function Bd(r,e){var t;const{gen:s,keyword:n,schema:a,parentSchema:i,$data:u,it:c}=r;jd(c,e);const o=!u&&e.compile?e.compile.call(c.self,a,i,c):e.validate,l=qo(s,n,o),f=s.let("valid");r.block$data(f,h),r.ok((t=e.valid)!==null&&t!==void 0?t:f);function h(){if(e.errors===!1)v(),e.modifying&&Uo(r),m(()=>r.error());else{const y=e.async?_():p();e.modifying&&Uo(r),m(()=>Ld(r,y))}}function _(){const y=s.let("ruleErrs",null);return s.try(()=>v((0,Ke._)`await `),g=>s.assign(f,!1).if((0,Ke._)`${g} instanceof ${c.ValidationError}`,()=>s.assign(y,(0,Ke._)`${g}.errors`),()=>s.throw(g))),y}function p(){const y=(0,Ke._)`${l}.errors`;return s.assign(y,null),v(Ke.nil),y}function v(y=e.async?(0,Ke._)`await `:Ke.nil){const g=c.opts.passContext?Qt.default.this:Qt.default.self,b=!("compile"in e&&!u||e.schema===!1);s.assign(f,(0,Ke._)`${y}${(0,Md.callValidateCode)(r,l,g,b)}`,e.modifying)}function m(y){var g;s.if((0,Ke.not)((g=e.valid)!==null&&g!==void 0?g:f),y)}}Et.funcKeywordCode=Bd;function Uo(r){const{gen:e,data:t,it:s}=r;e.if(s.parentData,()=>e.assign(t,(0,Ke._)`${s.parentData}[${s.parentDataProperty}]`))}function Ld(r,e){const{gen:t}=r;t.if((0,Ke._)`Array.isArray(${e})`,()=>{t.assign(Qt.default.vErrors,(0,Ke._)`${Qt.default.vErrors} === null ? ${e} : ${Qt.default.vErrors}.concat(${e})`).assign(Qt.default.errors,(0,Ke._)`${Qt.default.vErrors}.length`),(0,Fd.extendErrors)(r)},()=>r.error())}function jd({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function qo(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Ke.stringify)(t)})}function zd(r,e,t=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(r):s==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==s||t&&typeof r>"u")}Et.validSchemaType=zd;function Vd({schema:r,opts:e,self:t,errSchemaPath:s},n,a){if(Array.isArray(n.keyword)?!n.keyword.includes(a):n.keyword!==a)throw new Error("ajv implementation error");const i=n.dependencies;if(i!=null&&i.some(u=>!Object.prototype.hasOwnProperty.call(r,u)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(n.validateSchema&&!n.validateSchema(r[a])){const u=`keyword "${a}" value is invalid at path "${s}": `+t.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(u);else throw new Error(u)}}Et.validateKeywordUsage=Vd;var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.extendSubschemaMode=zt.extendSubschemaData=zt.getSubschema=void 0;const $t=le,Ko=W;function Hd(r,{keyword:e,schemaProp:t,schema:s,schemaPath:n,errSchemaPath:a,topSchemaRef:i}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const u=r.schema[e];return t===void 0?{schema:u,schemaPath:(0,$t._)`${r.schemaPath}${(0,$t.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:u[t],schemaPath:(0,$t._)`${r.schemaPath}${(0,$t.getProperty)(e)}${(0,$t.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,Ko.escapeFragment)(t)}`}}if(s!==void 0){if(n===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:n,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}zt.getSubschema=Hd;function Ud(r,e,{dataProp:t,dataPropType:s,data:n,dataTypes:a,propertyName:i}){if(n!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=e;if(t!==void 0){const{errorPath:o,dataPathArr:l,opts:f}=e,h=u.let("data",(0,$t._)`${e.data}${(0,$t.getProperty)(t)}`,!0);c(h),r.errorPath=(0,$t.str)`${o}${(0,Ko.getErrorPath)(t,s,f.jsPropertySyntax)}`,r.parentDataProperty=(0,$t._)`${t}`,r.dataPathArr=[...l,r.parentDataProperty]}if(n!==void 0){const o=n instanceof $t.Name?n:u.let("data",n,!0);c(o),i!==void 0&&(r.propertyName=i)}a&&(r.dataTypes=a);function c(o){r.data=o,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,o]}}zt.extendSubschemaData=Ud;function qd(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:s,createErrors:n,allErrors:a}){s!==void 0&&(r.compositeRule=s),n!==void 0&&(r.createErrors=n),a!==void 0&&(r.allErrors=a),r.jtdDiscriminator=e,r.jtdMetadata=t}zt.extendSubschemaMode=qd;var De={},Go=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var s,n,a;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!r(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),s=a.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=s;n--!==0;){var i=a[n];if(!r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t},Wo={exports:{}},Vt=Wo.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var s=typeof t=="function"?t:t.pre||function(){},n=t.post||function(){};cs(e,s,n,r,"",r)};Vt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},Vt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Vt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Vt.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 cs(r,e,t,s,n,a,i,u,c,o){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,a,i,u,c,o);for(var l in s){var f=s[l];if(Array.isArray(f)){if(l in Vt.arrayKeywords)for(var h=0;h<f.length;h++)cs(r,e,t,f[h],n+"/"+l+"/"+h,a,n,l,s,h)}else if(l in Vt.propsKeywords){if(f&&typeof f=="object")for(var _ in f)cs(r,e,t,f[_],n+"/"+l+"/"+Kd(_),a,n,l,s,_)}else(l in Vt.keywords||r.allKeys&&!(l in Vt.skipKeywords))&&cs(r,e,t,f,n+"/"+l,a,n,l,s)}t(s,n,a,i,u,c,o)}}function Kd(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var Gd=Wo.exports;Object.defineProperty(De,"__esModule",{value:!0}),De.getSchemaRefs=De.resolveUrl=De.normalizeId=De._getFullPath=De.getFullPath=De.inlineRef=void 0;const Wd=W,Xd=Go,Yd=Gd,Jd=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Zd(r,e=!0){return typeof r=="boolean"?!0:e===!0?!yn(r):e?Xo(r)<=e:!1}De.inlineRef=Zd;const Qd=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function yn(r){for(const e in r){if(Qd.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(yn)||typeof t=="object"&&yn(t))return!0}return!1}function Xo(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!Jd.has(t)&&(typeof r[t]=="object"&&(0,Wd.eachItem)(r[t],s=>e+=Xo(s)),e===1/0)))return 1/0;return e}function Yo(r,e="",t){t!==!1&&(e=hr(e));const s=r.parse(e);return Jo(r,s)}De.getFullPath=Yo;function Jo(r,e){return r.serialize(e).split("#")[0]+"#"}De._getFullPath=Jo;const eh=/#\/?$/;function hr(r){return r?r.replace(eh,""):""}De.normalizeId=hr;function th(r,e,t){return t=hr(t),r.resolve(e,t)}De.resolveUrl=th;const rh=/^[a-z_][-a-z0-9._]*$/i;function sh(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:s}=this.opts,n=hr(r[t]||e),a={"":n},i=Yo(s,n,!1),u={},c=new Set;return Yd(r,{allKeys:!0},(f,h,_,p)=>{if(p===void 0)return;const v=i+h;let m=a[p];typeof f[t]=="string"&&(m=y.call(this,f[t])),g.call(this,f.$anchor),g.call(this,f.$dynamicAnchor),a[h]=m;function y(b){const w=this.opts.uriResolver.resolve;if(b=hr(m?w(m,b):b),c.has(b))throw l(b);c.add(b);let E=this.refs[b];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?o(f,E.schema,b):b!==hr(v)&&(b[0]==="#"?(o(f,u[b],b),u[b]=f):this.refs[b]=v),b}function g(b){if(typeof b=="string"){if(!rh.test(b))throw new Error(`invalid anchor "${b}"`);y.call(this,`#${b}`)}}}),u;function o(f,h,_){if(h!==void 0&&!Xd(f,h))throw l(_)}function l(f){return new Error(`reference "${f}" resolves to more than one schema`)}}De.getSchemaRefs=sh,Object.defineProperty(yt,"__esModule",{value:!0}),yt.getData=yt.KeywordCxt=yt.validateFunctionCode=void 0;const Zo=lr,Qo=xe,vn=Pt,ds=xe,nh=ls,Mr=Et,_n=zt,J=le,ae=wt,ah=De,Nt=W,Fr=Ir;function oh(r){if(si(r)&&(ni(r),ri(r))){lh(r);return}ei(r,()=>(0,Zo.topBoolOrEmptySchema)(r))}yt.validateFunctionCode=oh;function ei({gen:r,validateName:e,schema:t,schemaEnv:s,opts:n},a){n.code.es5?r.func(e,(0,J._)`${ae.default.data}, ${ae.default.valCxt}`,s.$async,()=>{r.code((0,J._)`"use strict"; ${ti(t,n)}`),uh(r,n),r.code(a)}):r.func(e,(0,J._)`${ae.default.data}, ${ih(n)}`,s.$async,()=>r.code(ti(t,n)).code(a))}function ih(r){return(0,J._)`{${ae.default.instancePath}="", ${ae.default.parentData}, ${ae.default.parentDataProperty}, ${ae.default.rootData}=${ae.default.data}${r.dynamicRef?(0,J._)`, ${ae.default.dynamicAnchors}={}`:J.nil}}={}`}function uh(r,e){r.if(ae.default.valCxt,()=>{r.var(ae.default.instancePath,(0,J._)`${ae.default.valCxt}.${ae.default.instancePath}`),r.var(ae.default.parentData,(0,J._)`${ae.default.valCxt}.${ae.default.parentData}`),r.var(ae.default.parentDataProperty,(0,J._)`${ae.default.valCxt}.${ae.default.parentDataProperty}`),r.var(ae.default.rootData,(0,J._)`${ae.default.valCxt}.${ae.default.rootData}`),e.dynamicRef&&r.var(ae.default.dynamicAnchors,(0,J._)`${ae.default.valCxt}.${ae.default.dynamicAnchors}`)},()=>{r.var(ae.default.instancePath,(0,J._)`""`),r.var(ae.default.parentData,(0,J._)`undefined`),r.var(ae.default.parentDataProperty,(0,J._)`undefined`),r.var(ae.default.rootData,ae.default.data),e.dynamicRef&&r.var(ae.default.dynamicAnchors,(0,J._)`{}`)})}function lh(r){const{schema:e,opts:t,gen:s}=r;ei(r,()=>{t.$comment&&e.$comment&&oi(r),ph(r),s.let(ae.default.vErrors,null),s.let(ae.default.errors,0),t.unevaluated&&ch(r),ai(r),yh(r)})}function ch(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,J._)`${t}.evaluated`),e.if((0,J._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,J._)`${r.evaluated}.props`,(0,J._)`undefined`)),e.if((0,J._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,J._)`${r.evaluated}.items`,(0,J._)`undefined`))}function ti(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,J._)`/*# sourceURL=${t} */`:J.nil}function dh(r,e){if(si(r)&&(ni(r),ri(r))){hh(r,e);return}(0,Zo.boolOrEmptySchema)(r,e)}function ri({schema:r,self:e}){if(typeof r=="boolean")return!r;for(const t in r)if(e.RULES.all[t])return!0;return!1}function si(r){return typeof r.schema!="boolean"}function hh(r,e){const{schema:t,gen:s,opts:n}=r;n.$comment&&t.$comment&&oi(r),mh(r),gh(r);const a=s.const("_errs",ae.default.errors);ai(r,a),s.var(e,(0,J._)`${a} === ${ae.default.errors}`)}function ni(r){(0,Nt.checkUnknownRules)(r),fh(r)}function ai(r,e){if(r.opts.jtd)return ii(r,[],!1,e);const t=(0,Qo.getSchemaTypes)(r.schema),s=(0,Qo.coerceAndCheckDataType)(r,t);ii(r,t,!s,e)}function fh(r){const{schema:e,errSchemaPath:t,opts:s,self:n}=r;e.$ref&&s.ignoreKeywordsWithRef&&(0,Nt.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function ph(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,Nt.checkStrictMode)(r,"default is ignored in the schema root")}function mh(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,ah.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function gh(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function oi({gen:r,schemaEnv:e,schema:t,errSchemaPath:s,opts:n}){const a=t.$comment;if(n.$comment===!0)r.code((0,J._)`${ae.default.self}.logger.log(${a})`);else if(typeof n.$comment=="function"){const i=(0,J.str)`${s}/$comment`,u=r.scopeValue("root",{ref:e.root});r.code((0,J._)`${ae.default.self}.opts.$comment(${a}, ${i}, ${u}.schema)`)}}function yh(r){const{gen:e,schemaEnv:t,validateName:s,ValidationError:n,opts:a}=r;t.$async?e.if((0,J._)`${ae.default.errors} === 0`,()=>e.return(ae.default.data),()=>e.throw((0,J._)`new ${n}(${ae.default.vErrors})`)):(e.assign((0,J._)`${s}.errors`,ae.default.vErrors),a.unevaluated&&vh(r),e.return((0,J._)`${ae.default.errors} === 0`))}function vh({gen:r,evaluated:e,props:t,items:s}){t instanceof J.Name&&r.assign((0,J._)`${e}.props`,t),s instanceof J.Name&&r.assign((0,J._)`${e}.items`,s)}function ii(r,e,t,s){const{gen:n,schema:a,data:i,allErrors:u,opts:c,self:o}=r,{RULES:l}=o;if(a.$ref&&(c.ignoreKeywordsWithRef||!(0,Nt.schemaHasRulesButRef)(a,l))){n.block(()=>di(r,"$ref",l.all.$ref.definition));return}c.jtd||_h(r,e),n.block(()=>{for(const h of l.rules)f(h);f(l.post)});function f(h){(0,vn.shouldUseGroup)(a,h)&&(h.type?(n.if((0,ds.checkDataType)(h.type,i,c.strictNumbers)),ui(r,h),e.length===1&&e[0]===h.type&&t&&(n.else(),(0,ds.reportTypeError)(r)),n.endIf()):ui(r,h),u||n.if((0,J._)`${ae.default.errors} === ${s||0}`))}}function ui(r,e){const{gen:t,schema:s,opts:{useDefaults:n}}=r;n&&(0,nh.assignDefaults)(r,e.type),t.block(()=>{for(const a of e.rules)(0,vn.shouldUseRule)(s,a)&&di(r,a.keyword,a.definition,e.type)})}function _h(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(bh(r,e),r.opts.allowUnionTypes||kh(r,e),wh(r,r.dataTypes))}function bh(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{li(r.dataTypes,t)||bn(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),$h(r,e)}}function kh(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&bn(r,"use allowUnionTypes to allow union type keyword")}function wh(r,e){const t=r.self.RULES.all;for(const s in t){const n=t[s];if(typeof n=="object"&&(0,vn.shouldUseRule)(r.schema,n)){const{type:a}=n.definition;a.length&&!a.some(i=>Eh(e,i))&&bn(r,`missing type "${a.join(",")}" for keyword "${s}"`)}}}function Eh(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function li(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function $h(r,e){const t=[];for(const s of r.dataTypes)li(e,s)?t.push(s):e.includes("integer")&&s==="number"&&t.push("integer");r.dataTypes=t}function bn(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,Nt.checkStrictMode)(r,e,r.opts.strictTypes)}class ci{constructor(e,t,s){if((0,Mr.validateKeywordUsage)(e,t,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Nt.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",hi(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Mr.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ae.default.errors))}result(e,t,s){this.failResult((0,J.not)(e),t,s)}failResult(e,t,s){this.gen.if(e),s?s():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,J.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,J._)`${t} !== undefined && (${(0,J.or)(this.invalid$data(),e)})`)}error(e,t,s){if(t){this.setParams(t),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,t){(e?Fr.reportExtraError:Fr.reportError)(this,this.def.error,t)}$dataError(){(0,Fr.reportError)(this,this.def.$dataError||Fr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Fr.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,s=J.nil){this.gen.block(()=>{this.check$data(e,s),t()})}check$data(e=J.nil,t=J.nil){if(!this.$data)return;const{gen:s,schemaCode:n,schemaType:a,def:i}=this;s.if((0,J.or)((0,J._)`${n} === undefined`,t)),e!==J.nil&&s.assign(e,!0),(a.length||i.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==J.nil&&s.assign(e,!1)),s.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:s,def:n,it:a}=this;return(0,J.or)(i(),u());function i(){if(s.length){if(!(t instanceof J.Name))throw new Error("ajv implementation error");const c=Array.isArray(s)?s:[s];return(0,J._)`${(0,ds.checkDataTypes)(c,t,a.opts.strictNumbers,ds.DataType.Wrong)}`}return J.nil}function u(){if(n.validateSchema){const c=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,J._)`!${c}(${t})`}return J.nil}}subschema(e,t){const s=(0,_n.getSubschema)(this.it,e);(0,_n.extendSubschemaData)(s,this.it,e),(0,_n.extendSubschemaMode)(s,e);const n={...this.it,...s,items:void 0,props:void 0};return dh(n,t),n}mergeEvaluated(e,t){const{it:s,gen:n}=this;s.opts.unevaluated&&(s.props!==!0&&e.props!==void 0&&(s.props=Nt.mergeEvaluated.props(n,e.props,s.props,t)),s.items!==!0&&e.items!==void 0&&(s.items=Nt.mergeEvaluated.items(n,e.items,s.items,t)))}mergeValidEvaluated(e,t){const{it:s,gen:n}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return n.if(t,()=>this.mergeEvaluated(e,J.Name)),!0}}yt.KeywordCxt=ci;function di(r,e,t,s){const n=new ci(r,t,e);"code"in t?t.code(n,s):n.$data&&t.validate?(0,Mr.funcKeywordCode)(n,t):"macro"in t?(0,Mr.macroKeywordCode)(n,t):(t.compile||t.validate)&&(0,Mr.funcKeywordCode)(n,t)}const Sh=/^\/(?:[^~]|~0|~1)*$/,xh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function hi(r,{dataLevel:e,dataNames:t,dataPathArr:s}){let n,a;if(r==="")return ae.default.rootData;if(r[0]==="/"){if(!Sh.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);n=r,a=ae.default.rootData}else{const o=xh.exec(r);if(!o)throw new Error(`Invalid JSON-pointer: ${r}`);const l=+o[1];if(n=o[2],n==="#"){if(l>=e)throw new Error(c("property/index",l));return s[e-l]}if(l>e)throw new Error(c("data",l));if(a=t[e-l],!n)return a}let i=a;const u=n.split("/");for(const o of u)o&&(a=(0,J._)`${a}${(0,J.getProperty)((0,Nt.unescapeJsonPointer)(o))}`,i=(0,J._)`${i} && ${a}`);return i;function c(o,l){return`Cannot access ${o} ${l} levels up, current level is ${e}`}}yt.getData=hi;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});class Ch extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Rr.default=Ch;var fr={};Object.defineProperty(fr,"__esModule",{value:!0});const kn=De;class Ah extends Error{constructor(e,t,s,n){super(n||`can't resolve reference ${s} from id ${t}`),this.missingRef=(0,kn.resolveUrl)(e,t,s),this.missingSchema=(0,kn.normalizeId)((0,kn.getFullPath)(e,this.missingRef))}}fr.default=Ah;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;const vt=le,Th=Rr,er=wt,_t=De,fi=W,Ph=yt;class hs{constructor(e){var t;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,_t.normalizeId)(s==null?void 0:s[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s==null?void 0:s.$async,this.refs={}}}Ze.SchemaEnv=hs;function wn(r){const e=pi.call(this,r);if(e)return e;const t=(0,_t.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:s,lines:n}=this.opts.code,{ownProperties:a}=this.opts,i=new vt.CodeGen(this.scope,{es5:s,lines:n,ownProperties:a});let u;r.$async&&(u=i.scopeValue("Error",{ref:Th.default,code:(0,vt._)`require("ajv/dist/runtime/validation_error").default`}));const c=i.scopeName("validate");r.validateName=c;const o={gen:i,allErrors:this.opts.allErrors,data:er.default.data,parentData:er.default.parentData,parentDataProperty:er.default.parentDataProperty,dataNames:[er.default.data],dataPathArr:[vt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,vt.stringify)(r.schema)}:{ref:r.schema}),validateName:c,ValidationError:u,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:vt.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vt._)`""`,opts:this.opts,self:this};let l;try{this._compilations.add(r),(0,Ph.validateFunctionCode)(o),i.optimize(this.opts.code.optimize);const f=i.toString();l=`${i.scopeRefs(er.default.scope)}return ${f}`,this.opts.code.process&&(l=this.opts.code.process(l,r));const h=new Function(`${er.default.self}`,`${er.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=r.schema,h.schemaEnv=r,r.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:_,items:p}=o;h.evaluated={props:_ instanceof vt.Name?void 0:_,items:p instanceof vt.Name?void 0:p,dynamicProps:_ instanceof vt.Name,dynamicItems:p instanceof vt.Name},h.source&&(h.source.evaluated=(0,vt.stringify)(h.evaluated))}return r.validate=h,r}catch(f){throw delete r.validate,delete r.validateName,l&&this.logger.error("Error compiling schema, function code:",l),f}finally{this._compilations.delete(r)}}Ze.compileSchema=wn;function Nh(r,e,t){var s;t=(0,_t.resolveUrl)(this.opts.uriResolver,e,t);const n=r.refs[t];if(n)return n;let a=Dh.call(this,r,t);if(a===void 0){const i=(s=r.localRefs)===null||s===void 0?void 0:s[t],{schemaId:u}=this.opts;i&&(a=new hs({schema:i,schemaId:u,root:r,baseId:e}))}if(a!==void 0)return r.refs[t]=Oh.call(this,a)}Ze.resolveRef=Nh;function Oh(r){return(0,_t.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:wn.call(this,r)}function pi(r){for(const e of this._compilations)if(Ih(e,r))return e}Ze.getCompilingSchema=pi;function Ih(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function Dh(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||fs.call(this,r,e)}function fs(r,e){const t=this.opts.uriResolver.parse(e),s=(0,_t._getFullPath)(this.opts.uriResolver,t);let n=(0,_t.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&s===n)return En.call(this,t,r);const a=(0,_t.normalizeId)(s),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const u=fs.call(this,r,i);return typeof(u==null?void 0:u.schema)!="object"?void 0:En.call(this,t,u)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||wn.call(this,i),a===(0,_t.normalizeId)(e)){const{schema:u}=i,{schemaId:c}=this.opts,o=u[c];return o&&(n=(0,_t.resolveUrl)(this.opts.uriResolver,n,o)),new hs({schema:u,schemaId:c,root:r,baseId:n})}return En.call(this,t,i)}}Ze.resolveSchema=fs;const Mh=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function En(r,{baseId:e,schema:t,root:s}){var n;if(((n=r.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const u of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const c=t[(0,fi.unescapeFragment)(u)];if(c===void 0)return;t=c;const o=typeof t=="object"&&t[this.opts.schemaId];!Mh.has(u)&&o&&(e=(0,_t.resolveUrl)(this.opts.uriResolver,e,o))}let a;if(typeof t!="boolean"&&t.$ref&&!(0,fi.schemaHasRulesButRef)(t,this.RULES)){const u=(0,_t.resolveUrl)(this.opts.uriResolver,e,t.$ref);a=fs.call(this,s,u)}const{schemaId:i}=this.opts;if(a=a||new hs({schema:t,schemaId:i,root:s,baseId:e}),a.schema!==a.root.schema)return a}const Fh="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Rh="Meta-schema for $data reference (JSON AnySchema extension proposal)",Bh="object",Lh=["$data"],jh={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},zh=!1,Vh={$id:Fh,description:Rh,type:Bh,required:Lh,properties:jh,additionalProperties:zh};var $n={},ps={exports:{}},Hh={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}};const{HEX:Uh}=Hh;function mi(r){if(vi(r,".")<3)return{host:r,isIPV4:!1};const e=r.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[t]=e;return t?{host:Kh(t,"."),isIPV4:!0}:{host:r,isIPV4:!1}}function gi(r,e=!1){let t="",s=!0;for(const n of r){if(Uh[n]===void 0)return;n!=="0"&&s===!0&&(s=!1),s||(t+=n)}return e&&t.length===0&&(t="0"),t}function qh(r){let e=0;const t={error:!1,address:"",zone:""},s=[],n=[];let a=!1,i=!1,u=!1;function c(){if(n.length){if(a===!1){const o=gi(n);if(o!==void 0)s.push(o);else return t.error=!0,!1}n.length=0}return!0}for(let o=0;o<r.length;o++){const l=r[o];if(!(l==="["||l==="]"))if(l===":"){if(i===!0&&(u=!0),!c())break;if(e++,s.push(":"),e>7){t.error=!0;break}o-1>=0&&r[o-1]===":"&&(i=!0);continue}else if(l==="%"){if(!c())break;a=!0}else{n.push(l);continue}}return n.length&&(a?t.zone=n.join(""):u?s.push(n.join("")):s.push(gi(n))),t.address=s.join(""),t}function yi(r,e={}){if(vi(r,":")<2)return{host:r,isIPV6:!1};const t=qh(r);if(t.error)return{host:r,isIPV6:!1};{let s=t.address,n=t.address;return t.zone&&(s+="%"+t.zone,n+="%25"+t.zone),{host:s,escapedHost:n,isIPV6:!0}}}function Kh(r,e){let t="",s=!0;const n=r.length;for(let a=0;a<n;a++){const i=r[a];i==="0"&&s?(a+1<=n&&r[a+1]===e||a+1===n)&&(t+=i,s=!1):(i===e?s=!0:s=!1,t+=i)}return t}function vi(r,e){let t=0;for(let s=0;s<r.length;s++)r[s]===e&&t++;return t}const _i=/^\.\.?\//u,bi=/^\/\.(?:\/|$)/u,ki=/^\/\.\.(?:\/|$)/u,Gh=/^\/?(?:.|\n)*?(?=\/|$)/u;function Wh(r){const e=[];for(;r.length;)if(r.match(_i))r=r.replace(_i,"");else if(r.match(bi))r=r.replace(bi,"/");else if(r.match(ki))r=r.replace(ki,"/"),e.pop();else if(r==="."||r==="..")r="";else{const t=r.match(Gh);if(t){const s=t[0];r=r.slice(s.length),e.push(s)}else throw new Error("Unexpected dot segment condition")}return e.join("")}function Xh(r,e){const t=e!==!0?escape:unescape;return r.scheme!==void 0&&(r.scheme=t(r.scheme)),r.userinfo!==void 0&&(r.userinfo=t(r.userinfo)),r.host!==void 0&&(r.host=t(r.host)),r.path!==void 0&&(r.path=t(r.path)),r.query!==void 0&&(r.query=t(r.query)),r.fragment!==void 0&&(r.fragment=t(r.fragment)),r}function Yh(r,e){const t=[];if(r.userinfo!==void 0&&(t.push(r.userinfo),t.push("@")),r.host!==void 0){let s=unescape(r.host);const n=mi(s);if(n.isIPV4)s=n.host;else{const a=yi(n.host,{});a.isIPV6===!0?s=`[${a.escapedHost}]`:s=r.host}t.push(s)}return(typeof r.port=="number"||typeof r.port=="string")&&(t.push(":"),t.push(String(r.port))),t.length?t.join(""):void 0}var Jh={recomposeAuthority:Yh,normalizeComponentEncoding:Xh,removeDotSegments:Wh,normalizeIPv4:mi,normalizeIPv6:yi};const Zh=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Qh=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function wi(r){return typeof r.secure=="boolean"?r.secure:String(r.scheme).toLowerCase()==="wss"}function Ei(r){return r.host||(r.error=r.error||"HTTP URIs must have a host."),r}function $i(r){const e=String(r.scheme).toLowerCase()==="https";return(r.port===(e?443:80)||r.port==="")&&(r.port=void 0),r.path||(r.path="/"),r}function ef(r){return r.secure=wi(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r}function tf(r){if((r.port===(wi(r)?443:80)||r.port==="")&&(r.port=void 0),typeof r.secure=="boolean"&&(r.scheme=r.secure?"wss":"ws",r.secure=void 0),r.resourceName){const[e,t]=r.resourceName.split("?");r.path=e&&e!=="/"?e:void 0,r.query=t,r.resourceName=void 0}return r.fragment=void 0,r}function rf(r,e){if(!r.path)return r.error="URN can not be parsed",r;const t=r.path.match(Qh);if(t){const s=e.scheme||r.scheme||"urn";r.nid=t[1].toLowerCase(),r.nss=t[2];const n=`${s}:${e.nid||r.nid}`,a=Sn[n];r.path=void 0,a&&(r=a.parse(r,e))}else r.error=r.error||"URN can not be parsed.";return r}function sf(r,e){const t=e.scheme||r.scheme||"urn",s=r.nid.toLowerCase(),n=`${t}:${e.nid||s}`,a=Sn[n];a&&(r=a.serialize(r,e));const i=r,u=r.nss;return i.path=`${s||e.nid}:${u}`,e.skipEscape=!0,i}function nf(r,e){const t=r;return t.uuid=t.nss,t.nss=void 0,!e.tolerant&&(!t.uuid||!Zh.test(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function af(r){const e=r;return e.nss=(r.uuid||"").toLowerCase(),e}const Si={scheme:"http",domainHost:!0,parse:Ei,serialize:$i},of={scheme:"https",domainHost:Si.domainHost,parse:Ei,serialize:$i},ms={scheme:"ws",domainHost:!0,parse:ef,serialize:tf},uf={scheme:"wss",domainHost:ms.domainHost,parse:ms.parse,serialize:ms.serialize},lf={scheme:"urn",parse:rf,serialize:sf,skipNormalize:!0},cf={scheme:"urn:uuid",parse:nf,serialize:af,skipNormalize:!0},Sn={http:Si,https:of,ws:ms,wss:uf,urn:lf,"urn:uuid":cf};var df=Sn;const{normalizeIPv6:hf,normalizeIPv4:ff,removeDotSegments:Br,recomposeAuthority:pf,normalizeComponentEncoding:gs}=Jh,xn=df;function mf(r,e){return typeof r=="string"?r=St(Ot(r,e),e):typeof r=="object"&&(r=Ot(St(r,e),e)),r}function gf(r,e,t){const s=Object.assign({scheme:"null"},t),n=xi(Ot(r,s),Ot(e,s),s,!0);return St(n,{...s,skipEscape:!0})}function xi(r,e,t,s){const n={};return s||(r=Ot(St(r,t),t),e=Ot(St(e,t),t)),t=t||{},!t.tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Br(e.path||""),n.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Br(e.path||""),n.query=e.query):(e.path?(e.path.charAt(0)==="/"?n.path=Br(e.path):((r.userinfo!==void 0||r.host!==void 0||r.port!==void 0)&&!r.path?n.path="/"+e.path:r.path?n.path=r.path.slice(0,r.path.lastIndexOf("/")+1)+e.path:n.path=e.path,n.path=Br(n.path)),n.query=e.query):(n.path=r.path,e.query!==void 0?n.query=e.query:n.query=r.query),n.userinfo=r.userinfo,n.host=r.host,n.port=r.port),n.scheme=r.scheme),n.fragment=e.fragment,n}function yf(r,e,t){return typeof r=="string"?(r=unescape(r),r=St(gs(Ot(r,t),!0),{...t,skipEscape:!0})):typeof r=="object"&&(r=St(gs(r,!0),{...t,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=St(gs(Ot(e,t),!0),{...t,skipEscape:!0})):typeof e=="object"&&(e=St(gs(e,!0),{...t,skipEscape:!0})),r.toLowerCase()===e.toLowerCase()}function St(r,e){const t={host:r.host,scheme:r.scheme,userinfo:r.userinfo,port:r.port,path:r.path,query:r.query,nid:r.nid,nss:r.nss,uuid:r.uuid,fragment:r.fragment,reference:r.reference,resourceName:r.resourceName,secure:r.secure,error:""},s=Object.assign({},e),n=[],a=xn[(s.scheme||t.scheme||"").toLowerCase()];a&&a.serialize&&a.serialize(t,s),t.path!==void 0&&(s.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),s.reference!=="suffix"&&t.scheme&&n.push(t.scheme,":");const i=pf(t,s);if(i!==void 0&&(s.reference!=="suffix"&&n.push("//"),n.push(i),t.path&&t.path.charAt(0)!=="/"&&n.push("/")),t.path!==void 0){let u=t.path;!s.absolutePath&&(!a||!a.absolutePath)&&(u=Br(u)),i===void 0&&(u=u.replace(/^\/\//u,"/%2F")),n.push(u)}return t.query!==void 0&&n.push("?",t.query),t.fragment!==void 0&&n.push("#",t.fragment),n.join("")}const vf=Array.from({length:127},(r,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function _f(r){let e=0;for(let t=0,s=r.length;t<s;++t)if(e=r.charCodeAt(t),e>126||vf[e])return!0;return!1}const bf=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ot(r,e){const t=Object.assign({},e),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=r.indexOf("%")!==-1;let a=!1;t.reference==="suffix"&&(r=(t.scheme?t.scheme+":":"")+"//"+r);const i=r.match(bf);if(i){if(s.scheme=i[1],s.userinfo=i[3],s.host=i[4],s.port=parseInt(i[5],10),s.path=i[6]||"",s.query=i[7],s.fragment=i[8],isNaN(s.port)&&(s.port=i[5]),s.host){const c=ff(s.host);if(c.isIPV4===!1){const o=hf(c.host,{isIPV4:!1});s.host=o.host.toLowerCase(),a=o.isIPV6}else s.host=c.host,a=!0}s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&!s.path&&s.query===void 0?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==s.reference&&(s.error=s.error||"URI is not a "+t.reference+" reference.");const u=xn[(t.scheme||s.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!u||!u.unicodeSupport)&&s.host&&(t.domainHost||u&&u.domainHost)&&a===!1&&_f(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(c){s.error=s.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(n&&s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),n&&s.host!==void 0&&(s.host=unescape(s.host)),s.path!==void 0&&s.path.length&&(s.path=escape(unescape(s.path))),s.fragment!==void 0&&s.fragment.length&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),u&&u.parse&&u.parse(s,t)}else s.error=s.error||"URI can not be parsed.";return s}const Cn={SCHEMES:xn,normalize:mf,resolve:gf,resolveComponents:xi,equal:yf,serialize:St,parse:Ot};ps.exports=Cn,ps.exports.default=Cn,ps.exports.fastUri=Cn;var kf=ps.exports;Object.defineProperty($n,"__esModule",{value:!0});const Ci=kf;Ci.code='require("ajv/dist/runtime/uri").default',$n.default=Ci,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var e=yt;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=le;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const s=Rr,n=fr,a=Zt,i=Ze,u=le,c=De,o=xe,l=W,f=Vh,h=$n,_=(P,k)=>new RegExp(P,k);_.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},g=200;function b(P){var k,C,S,d,$,N,z,j,H,K,ne,q,ye,me,Ge,at,We,et,lt,ct,Ne,Oe,je,tt,ot;const Ce=P.strict,dt=(k=P.code)===null||k===void 0?void 0:k.optimize,or=dt===!0||dt===void 0?1:dt||0,qt=(S=(C=P.code)===null||C===void 0?void 0:C.regExp)!==null&&S!==void 0?S:_,Kt=(d=P.uriResolver)!==null&&d!==void 0?d:h.default;return{strictSchema:(N=($=P.strictSchema)!==null&&$!==void 0?$:Ce)!==null&&N!==void 0?N:!0,strictNumbers:(j=(z=P.strictNumbers)!==null&&z!==void 0?z:Ce)!==null&&j!==void 0?j:!0,strictTypes:(K=(H=P.strictTypes)!==null&&H!==void 0?H:Ce)!==null&&K!==void 0?K:"log",strictTuples:(q=(ne=P.strictTuples)!==null&&ne!==void 0?ne:Ce)!==null&&q!==void 0?q:"log",strictRequired:(me=(ye=P.strictRequired)!==null&&ye!==void 0?ye:Ce)!==null&&me!==void 0?me:!1,code:P.code?{...P.code,optimize:or,regExp:qt}:{optimize:or,regExp:qt},loopRequired:(Ge=P.loopRequired)!==null&&Ge!==void 0?Ge:g,loopEnum:(at=P.loopEnum)!==null&&at!==void 0?at:g,meta:(We=P.meta)!==null&&We!==void 0?We:!0,messages:(et=P.messages)!==null&&et!==void 0?et:!0,inlineRefs:(lt=P.inlineRefs)!==null&&lt!==void 0?lt:!0,schemaId:(ct=P.schemaId)!==null&&ct!==void 0?ct:"$id",addUsedSchema:(Ne=P.addUsedSchema)!==null&&Ne!==void 0?Ne:!0,validateSchema:(Oe=P.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(je=P.validateFormats)!==null&&je!==void 0?je:!0,unicodeRegExp:(tt=P.unicodeRegExp)!==null&&tt!==void 0?tt:!0,int32range:(ot=P.int32range)!==null&&ot!==void 0?ot:!0,uriResolver:Kt}}class w{constructor(k={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,...b(k)};const{es5:C,lines:S}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:C,lines:S}),this.logger=M(k.logger);const d=k.validateFormats;k.validateFormats=!1,this.RULES=(0,a.getRules)(),E.call(this,m,k,"NOT SUPPORTED"),E.call(this,y,k,"DEPRECATED","warn"),this._metaOpts=I.call(this),k.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&L.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),D.call(this),k.validateFormats=d}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:C,schemaId:S}=this.opts;let d=f;S==="id"&&(d={...f},d.id=d.$id,delete d.$id),C&&k&&this.addMetaSchema(d,d[S],!1)}defaultMeta(){const{meta:k,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[C]||k:void 0}validate(k,C){let S;if(typeof k=="string"){if(S=this.getSchema(k),!S)throw new Error(`no schema with key or ref "${k}"`)}else S=this.compile(k);const d=S(C);return"$async"in S||(this.errors=S.errors),d}compile(k,C){const S=this._addSchema(k,C);return S.validate||this._compileSchemaEnv(S)}compileAsync(k,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:S}=this.opts;return d.call(this,k,C);async function d(K,ne){await $.call(this,K.$schema);const q=this._addSchema(K,ne);return q.validate||N.call(this,q)}async function $(K){K&&!this.getSchema(K)&&await d.call(this,{$ref:K},!0)}async function N(K){try{return this._compileSchemaEnv(K)}catch(ne){if(!(ne instanceof n.default))throw ne;return z.call(this,ne),await j.call(this,ne.missingSchema),N.call(this,K)}}function z({missingSchema:K,missingRef:ne}){if(this.refs[K])throw new Error(`AnySchema ${K} is loaded but ${ne} cannot be resolved`)}async function j(K){const ne=await H.call(this,K);this.refs[K]||await $.call(this,ne.$schema),this.refs[K]||this.addSchema(ne,K,C)}async function H(K){const ne=this._loading[K];if(ne)return ne;try{return await(this._loading[K]=S(K))}finally{delete this._loading[K]}}}addSchema(k,C,S,d=this.opts.validateSchema){if(Array.isArray(k)){for(const N of k)this.addSchema(N,void 0,S,d);return this}let $;if(typeof k=="object"){const{schemaId:N}=this.opts;if($=k[N],$!==void 0&&typeof $!="string")throw new Error(`schema ${N} must be string`)}return C=(0,c.normalizeId)(C||$),this._checkUnique(C),this.schemas[C]=this._addSchema(k,S,C,d,!0),this}addMetaSchema(k,C,S=this.opts.validateSchema){return this.addSchema(k,C,!0,S),this}validateSchema(k,C){if(typeof k=="boolean")return!0;let S;if(S=k.$schema,S!==void 0&&typeof S!="string")throw new Error("$schema must be a string");if(S=S||this.opts.defaultMeta||this.defaultMeta(),!S)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const d=this.validate(S,k);if(!d&&C){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return d}getSchema(k){let C;for(;typeof(C=T.call(this,k))=="string";)k=C;if(C===void 0){const{schemaId:S}=this.opts,d=new i.SchemaEnv({schema:{},schemaId:S});if(C=i.resolveSchema.call(this,d,k),!C)return;this.refs[k]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=T.call(this,k);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{const C=k;this._cache.delete(C);let S=k[this.opts.schemaId];return S&&(S=(0,c.normalizeId)(S),delete this.schemas[S],delete this.refs[S]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(k){for(const C of k)this.addKeyword(C);return this}addKeyword(k,C){let S;if(typeof k=="string")S=k,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=S);else if(typeof k=="object"&&C===void 0){if(C=k,S=C.keyword,Array.isArray(S)&&!S.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(V.call(this,S,C),!C)return(0,l.eachItem)(S,$=>G.call(this,$)),this;re.call(this,C);const d={...C,type:(0,o.getJSONTypes)(C.type),schemaType:(0,o.getJSONTypes)(C.schemaType)};return(0,l.eachItem)(S,d.type.length===0?$=>G.call(this,$,d):$=>d.type.forEach(N=>G.call(this,$,d,N))),this}getKeyword(k){const C=this.RULES.all[k];return typeof C=="object"?C.definition:!!C}removeKeyword(k){const{RULES:C}=this;delete C.keywords[k],delete C.all[k];for(const S of C.rules){const d=S.rules.findIndex($=>$.keyword===k);d>=0&&S.rules.splice(d,1)}return this}addFormat(k,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[k]=C,this}errorsText(k=this.errors,{separator:C=", ",dataVar:S="data"}={}){return!k||k.length===0?"No errors":k.map(d=>`${S}${d.instancePath} ${d.message}`).reduce((d,$)=>d+C+$)}$dataMetaSchema(k,C){const S=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const d of C){const $=d.split("/").slice(1);let N=k;for(const z of $)N=N[z];for(const z in S){const j=S[z];if(typeof j!="object")continue;const{$data:H}=j.definition,K=N[z];H&&K&&(N[z]=oe(K))}}return k}_removeAllSchemas(k,C){for(const S in k){const d=k[S];(!C||C.test(S))&&(typeof d=="string"?delete k[S]:d&&!d.meta&&(this._cache.delete(d.schema),delete k[S]))}}_addSchema(k,C,S,d=this.opts.validateSchema,$=this.opts.addUsedSchema){let N;const{schemaId:z}=this.opts;if(typeof k=="object")N=k[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let j=this._cache.get(k);if(j!==void 0)return j;S=(0,c.normalizeId)(N||S);const H=c.getSchemaRefs.call(this,k,S);return j=new i.SchemaEnv({schema:k,schemaId:z,meta:C,baseId:S,localRefs:H}),this._cache.set(j.schema,j),$&&!S.startsWith("#")&&(S&&this._checkUnique(S),this.refs[S]=j),d&&this.validateSchema(k,!0),j}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):i.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){const C=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,k)}finally{this.opts=C}}}w.ValidationError=s.default,w.MissingRefError=n.default,r.default=w;function E(P,k,C,S="error"){for(const d in P){const $=d;$ in k&&this.logger[S](`${C}: option ${d}. ${P[$]}`)}}function T(P){return P=(0,c.normalizeId)(P),this.schemas[P]||this.refs[P]}function D(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const k in P)this.addSchema(P[k],k)}function R(){for(const P in this.opts.formats){const k=this.opts.formats[P];k&&this.addFormat(P,k)}}function L(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const k in P){const C=P[k];C.keyword||(C.keyword=k),this.addKeyword(C)}}function I(){const P={...this.opts};for(const k of p)delete P[k];return P}const A={log(){},warn(){},error(){}};function M(P){if(P===!1)return A;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function V(P,k){const{RULES:C}=this;if((0,l.eachItem)(P,S=>{if(C.keywords[S])throw new Error(`Keyword ${S} is already defined`);if(!F.test(S))throw new Error(`Keyword ${S} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function G(P,k,C){var S;const d=k==null?void 0:k.post;if(C&&d)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let N=d?$.post:$.rules.find(({type:j})=>j===C);if(N||(N={type:C,rules:[]},$.rules.push(N)),$.keywords[P]=!0,!k)return;const z={keyword:P,definition:{...k,type:(0,o.getJSONTypes)(k.type),schemaType:(0,o.getJSONTypes)(k.schemaType)}};k.before?X.call(this,N,z,k.before):N.rules.push(z),$.all[P]=z,(S=k.implements)===null||S===void 0||S.forEach(j=>this.addKeyword(j))}function X(P,k,C){const S=P.rules.findIndex(d=>d.keyword===C);S>=0?P.rules.splice(S,0,k):(P.rules.push(k),this.logger.warn(`rule ${C} is not defined`))}function re(P){let{metaSchema:k}=P;k!==void 0&&(P.$data&&this.opts.$data&&(k=oe(k)),P.validateSchema=this.compile(k,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function oe(P){return{anyOf:[P,te]}}}(Co);var An={},Tn={},Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const wf={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Pn.default=wf;var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.callRef=tr.getValidate=void 0;const Ef=fr,Ai=de,Qe=le,pr=wt,Ti=Ze,ys=W,$f={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:s}=r,{baseId:n,schemaEnv:a,validateName:i,opts:u,self:c}=s,{root:o}=a;if((t==="#"||t==="#/")&&n===o.baseId)return f();const l=Ti.resolveRef.call(c,o,n,t);if(l===void 0)throw new Ef.default(s.opts.uriResolver,n,t);if(l instanceof Ti.SchemaEnv)return h(l);return _(l);function f(){if(a===o)return vs(r,i,a,a.$async);const p=e.scopeValue("root",{ref:o});return vs(r,(0,Qe._)`${p}.validate`,o,o.$async)}function h(p){const v=Pi(r,p);vs(r,v,p,p.$async)}function _(p){const v=e.scopeValue("schema",u.code.source===!0?{ref:p,code:(0,Qe.stringify)(p)}:{ref:p}),m=e.name("valid"),y=r.subschema({schema:p,dataTypes:[],schemaPath:Qe.nil,topSchemaRef:v,errSchemaPath:t},m);r.mergeEvaluated(y),r.ok(m)}}};function Pi(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Qe._)`${t.scopeValue("wrapper",{ref:e})}.validate`}tr.getValidate=Pi;function vs(r,e,t,s){const{gen:n,it:a}=r,{allErrors:i,schemaEnv:u,opts:c}=a,o=c.passContext?pr.default.this:Qe.nil;s?l():f();function l(){if(!u.$async)throw new Error("async schema referenced by sync schema");const p=n.let("valid");n.try(()=>{n.code((0,Qe._)`await ${(0,Ai.callValidateCode)(r,e,o)}`),_(e),i||n.assign(p,!0)},v=>{n.if((0,Qe._)`!(${v} instanceof ${a.ValidationError})`,()=>n.throw(v)),h(v),i||n.assign(p,!1)}),r.ok(p)}function f(){r.result((0,Ai.callValidateCode)(r,e,o),()=>_(e),()=>h(e))}function h(p){const v=(0,Qe._)`${p}.errors`;n.assign(pr.default.vErrors,(0,Qe._)`${pr.default.vErrors} === null ? ${v} : ${pr.default.vErrors}.concat(${v})`),n.assign(pr.default.errors,(0,Qe._)`${pr.default.vErrors}.length`)}function _(p){var v;if(!a.opts.unevaluated)return;const m=(v=t==null?void 0:t.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(m&&!m.dynamicProps)m.props!==void 0&&(a.props=ys.mergeEvaluated.props(n,m.props,a.props));else{const y=n.var("props",(0,Qe._)`${p}.evaluated.props`);a.props=ys.mergeEvaluated.props(n,y,a.props,Qe.Name)}if(a.items!==!0)if(m&&!m.dynamicItems)m.items!==void 0&&(a.items=ys.mergeEvaluated.items(n,m.items,a.items));else{const y=n.var("items",(0,Qe._)`${p}.evaluated.items`);a.items=ys.mergeEvaluated.items(n,y,a.items,Qe.Name)}}}tr.callRef=vs,tr.default=$f,Object.defineProperty(Tn,"__esModule",{value:!0});const Sf=Pn,xf=tr,Cf=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Sf.default,xf.default];Tn.default=Cf;var Nn={},On={};Object.defineProperty(On,"__esModule",{value:!0});const _s=le,Ht=_s.operators,bs={maximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},minimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},exclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},exclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},Af={message:({keyword:r,schemaCode:e})=>(0,_s.str)`must be ${bs[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,_s._)`{comparison: ${bs[r].okStr}, limit: ${e}}`},Tf={keyword:Object.keys(bs),type:"number",schemaType:"number",$data:!0,error:Af,code(r){const{keyword:e,data:t,schemaCode:s}=r;r.fail$data((0,_s._)`${t} ${bs[e].fail} ${s} || isNaN(${t})`)}};On.default=Tf;var In={};Object.defineProperty(In,"__esModule",{value:!0});const Lr=le,Pf={message:({schemaCode:r})=>(0,Lr.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,Lr._)`{multipleOf: ${r}}`},Nf={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Pf,code(r){const{gen:e,data:t,schemaCode:s,it:n}=r,a=n.opts.multipleOfPrecision,i=e.let("res"),u=a?(0,Lr._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Lr._)`${i} !== parseInt(${i})`;r.fail$data((0,Lr._)`(${s} === 0 || (${i} = ${t}/${s}, ${u}))`)}};In.default=Nf;var Dn={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});function Ni(r){const e=r.length;let t=0,s=0,n;for(;s<e;)t++,n=r.charCodeAt(s++),n>=55296&&n<=56319&&s<e&&(n=r.charCodeAt(s),(n&64512)===56320&&s++);return t}Mn.default=Ni,Ni.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(Dn,"__esModule",{value:!0});const rr=le,Of=W,If=Mn,Df={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,rr.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,rr._)`{limit: ${r}}`},Mf={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Df,code(r){const{keyword:e,data:t,schemaCode:s,it:n}=r,a=e==="maxLength"?rr.operators.GT:rr.operators.LT,i=n.opts.unicode===!1?(0,rr._)`${t}.length`:(0,rr._)`${(0,Of.useFunc)(r.gen,If.default)}(${t})`;r.fail$data((0,rr._)`${i} ${a} ${s}`)}};Dn.default=Mf;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});const Ff=de,ks=le,Rf={message:({schemaCode:r})=>(0,ks.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,ks._)`{pattern: ${r}}`},Bf={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Rf,code(r){const{data:e,$data:t,schema:s,schemaCode:n,it:a}=r,i=a.opts.unicodeRegExp?"u":"",u=t?(0,ks._)`(new RegExp(${n}, ${i}))`:(0,Ff.usePattern)(r,s);r.fail$data((0,ks._)`!${u}.test(${e})`)}};Fn.default=Bf;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});const jr=le,Lf={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,jr.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,jr._)`{limit: ${r}}`},jf={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Lf,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxProperties"?jr.operators.GT:jr.operators.LT;r.fail$data((0,jr._)`Object.keys(${t}).length ${n} ${s}`)}};Rn.default=jf;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const zr=de,Vr=le,zf=W,Vf={message:({params:{missingProperty:r}})=>(0,Vr.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,Vr._)`{missingProperty: ${r}}`},Hf={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Vf,code(r){const{gen:e,schema:t,schemaCode:s,data:n,$data:a,it:i}=r,{opts:u}=i;if(!a&&t.length===0)return;const c=t.length>=u.loopRequired;if(i.allErrors?o():l(),u.strictRequired){const _=r.parentSchema.properties,{definedProperties:p}=r.it;for(const v of t)if((_==null?void 0:_[v])===void 0&&!p.has(v)){const m=i.schemaEnv.baseId+i.errSchemaPath,y=`required property "${v}" is not defined at "${m}" (strictRequired)`;(0,zf.checkStrictMode)(i,y,i.opts.strictRequired)}}function o(){if(c||a)r.block$data(Vr.nil,f);else for(const _ of t)(0,zr.checkReportMissingProp)(r,_)}function l(){const _=e.let("missing");if(c||a){const p=e.let("valid",!0);r.block$data(p,()=>h(_,p)),r.ok(p)}else e.if((0,zr.checkMissingProp)(r,t,_)),(0,zr.reportMissingProp)(r,_),e.else()}function f(){e.forOf("prop",s,_=>{r.setParams({missingProperty:_}),e.if((0,zr.noPropertyInData)(e,n,_,u.ownProperties),()=>r.error())})}function h(_,p){r.setParams({missingProperty:_}),e.forOf(_,s,()=>{e.assign(p,(0,zr.propertyInData)(e,n,_,u.ownProperties)),e.if((0,Vr.not)(p),()=>{r.error(),e.break()})},Vr.nil)}}};Bn.default=Hf;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Hr=le,Uf={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,Hr.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,Hr._)`{limit: ${r}}`},qf={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Uf,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxItems"?Hr.operators.GT:Hr.operators.LT;r.fail$data((0,Hr._)`${t}.length ${n} ${s}`)}};Ln.default=qf;var jn={},Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});const Oi=Go;Oi.code='require("ajv/dist/runtime/equal").default',Ur.default=Oi,Object.defineProperty(jn,"__esModule",{value:!0});const zn=xe,Me=le,Kf=W,Gf=Ur,Wf={message:({params:{i:r,j:e}})=>(0,Me.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,Me._)`{i: ${r}, j: ${e}}`},Xf={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Wf,code(r){const{gen:e,data:t,$data:s,schema:n,parentSchema:a,schemaCode:i,it:u}=r;if(!s&&!n)return;const c=e.let("valid"),o=a.items?(0,zn.getSchemaTypes)(a.items):[];r.block$data(c,l,(0,Me._)`${i} === false`),r.ok(c);function l(){const p=e.let("i",(0,Me._)`${t}.length`),v=e.let("j");r.setParams({i:p,j:v}),e.assign(c,!0),e.if((0,Me._)`${p} > 1`,()=>(f()?h:_)(p,v))}function f(){return o.length>0&&!o.some(p=>p==="object"||p==="array")}function h(p,v){const m=e.name("item"),y=(0,zn.checkDataTypes)(o,m,u.opts.strictNumbers,zn.DataType.Wrong),g=e.const("indices",(0,Me._)`{}`);e.for((0,Me._)`;${p}--;`,()=>{e.let(m,(0,Me._)`${t}[${p}]`),e.if(y,(0,Me._)`continue`),o.length>1&&e.if((0,Me._)`typeof ${m} == "string"`,(0,Me._)`${m} += "_"`),e.if((0,Me._)`typeof ${g}[${m}] == "number"`,()=>{e.assign(v,(0,Me._)`${g}[${m}]`),r.error(),e.assign(c,!1).break()}).code((0,Me._)`${g}[${m}] = ${p}`)})}function _(p,v){const m=(0,Kf.useFunc)(e,Gf.default),y=e.name("outer");e.label(y).for((0,Me._)`;${p}--;`,()=>e.for((0,Me._)`${v} = ${p}; ${v}--;`,()=>e.if((0,Me._)`${m}(${t}[${p}], ${t}[${v}])`,()=>{r.error(),e.assign(c,!1).break(y)})))}}};jn.default=Xf;var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});const Hn=le,Yf=W,Jf=Ur,Zf={message:"must be equal to constant",params:({schemaCode:r})=>(0,Hn._)`{allowedValue: ${r}}`},Qf={keyword:"const",$data:!0,error:Zf,code(r){const{gen:e,data:t,$data:s,schemaCode:n,schema:a}=r;s||a&&typeof a=="object"?r.fail$data((0,Hn._)`!${(0,Yf.useFunc)(e,Jf.default)}(${t}, ${n})`):r.fail((0,Hn._)`${a} !== ${t}`)}};Vn.default=Qf;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});const qr=le,ep=W,tp=Ur,rp={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,qr._)`{allowedValues: ${r}}`},sp={keyword:"enum",schemaType:"array",$data:!0,error:rp,code(r){const{gen:e,data:t,$data:s,schema:n,schemaCode:a,it:i}=r;if(!s&&n.length===0)throw new Error("enum must have non-empty array");const u=n.length>=i.opts.loopEnum;let c;const o=()=>c??(c=(0,ep.useFunc)(e,tp.default));let l;if(u||s)l=e.let("valid"),r.block$data(l,f);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const _=e.const("vSchema",a);l=(0,qr.or)(...n.map((p,v)=>h(_,v)))}r.pass(l);function f(){e.assign(l,!1),e.forOf("v",a,_=>e.if((0,qr._)`${o()}(${t}, ${_})`,()=>e.assign(l,!0).break()))}function h(_,p){const v=n[p];return typeof v=="object"&&v!==null?(0,qr._)`${o()}(${t}, ${_}[${p}])`:(0,qr._)`${t} === ${v}`}}};Un.default=sp,Object.defineProperty(Nn,"__esModule",{value:!0});const np=On,ap=In,op=Dn,ip=Fn,up=Rn,lp=Bn,cp=Ln,dp=jn,hp=Vn,fp=Un,pp=[np.default,ap.default,op.default,ip.default,up.default,lp.default,cp.default,dp.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hp.default,fp.default];Nn.default=pp;var qn={},mr={};Object.defineProperty(mr,"__esModule",{value:!0}),mr.validateAdditionalItems=void 0;const sr=le,Kn=W,mp={message:({params:{len:r}})=>(0,sr.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,sr._)`{limit: ${r}}`},gp={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:mp,code(r){const{parentSchema:e,it:t}=r,{items:s}=e;if(!Array.isArray(s)){(0,Kn.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ii(r,s)}};function Ii(r,e){const{gen:t,schema:s,data:n,keyword:a,it:i}=r;i.items=!0;const u=t.const("len",(0,sr._)`${n}.length`);if(s===!1)r.setParams({len:e.length}),r.pass((0,sr._)`${u} <= ${e.length}`);else if(typeof s=="object"&&!(0,Kn.alwaysValidSchema)(i,s)){const o=t.var("valid",(0,sr._)`${u} <= ${e.length}`);t.if((0,sr.not)(o),()=>c(o)),r.ok(o)}function c(o){t.forRange("i",e.length,u,l=>{r.subschema({keyword:a,dataProp:l,dataPropType:Kn.Type.Num},o),i.allErrors||t.if((0,sr.not)(o),()=>t.break())})}}mr.validateAdditionalItems=Ii,mr.default=gp;var Gn={},gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateTuple=void 0;const Di=le,ws=W,yp=de,vp={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return Mi(r,"additionalItems",e);t.items=!0,!(0,ws.alwaysValidSchema)(t,e)&&r.ok((0,yp.validateArray)(r))}};function Mi(r,e,t=r.schema){const{gen:s,parentSchema:n,data:a,keyword:i,it:u}=r;l(n),u.opts.unevaluated&&t.length&&u.items!==!0&&(u.items=ws.mergeEvaluated.items(s,t.length,u.items));const c=s.name("valid"),o=s.const("len",(0,Di._)`${a}.length`);t.forEach((f,h)=>{(0,ws.alwaysValidSchema)(u,f)||(s.if((0,Di._)`${o} > ${h}`,()=>r.subschema({keyword:i,schemaProp:h,dataProp:h},c)),r.ok(c))});function l(f){const{opts:h,errSchemaPath:_}=u,p=t.length,v=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(h.strictTuples&&!v){const m=`"${i}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${_}"`;(0,ws.checkStrictMode)(u,m,h.strictTuples)}}}gr.validateTuple=Mi,gr.default=vp,Object.defineProperty(Gn,"__esModule",{value:!0});const _p=gr,bp={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,_p.validateTuple)(r,"items")};Gn.default=bp;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});const Fi=le,kp=W,wp=de,Ep=mr,$p={message:({params:{len:r}})=>(0,Fi.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Fi._)`{limit: ${r}}`},Sp={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:$p,code(r){const{schema:e,parentSchema:t,it:s}=r,{prefixItems:n}=t;s.items=!0,!(0,kp.alwaysValidSchema)(s,e)&&(n?(0,Ep.validateAdditionalItems)(r,n):r.ok((0,wp.validateArray)(r)))}};Wn.default=Sp;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const ut=le,Es=W,xp={message:({params:{min:r,max:e}})=>e===void 0?(0,ut.str)`must contain at least ${r} valid item(s)`:(0,ut.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,ut._)`{minContains: ${r}}`:(0,ut._)`{minContains: ${r}, maxContains: ${e}}`},Cp={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:xp,code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;let i,u;const{minContains:c,maxContains:o}=s;a.opts.next?(i=c===void 0?1:c,u=o):i=1;const l=e.const("len",(0,ut._)`${n}.length`);if(r.setParams({min:i,max:u}),u===void 0&&i===0){(0,Es.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&i>u){(0,Es.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,Es.alwaysValidSchema)(a,t)){let v=(0,ut._)`${l} >= ${i}`;u!==void 0&&(v=(0,ut._)`${v} && ${l} <= ${u}`),r.pass(v);return}a.items=!0;const f=e.name("valid");u===void 0&&i===1?_(f,()=>e.if(f,()=>e.break())):i===0?(e.let(f,!0),u!==void 0&&e.if((0,ut._)`${n}.length > 0`,h)):(e.let(f,!1),h()),r.result(f,()=>r.reset());function h(){const v=e.name("_valid"),m=e.let("count",0);_(v,()=>e.if(v,()=>p(m)))}function _(v,m){e.forRange("i",0,l,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:Es.Type.Num,compositeRule:!0},v),m()})}function p(v){e.code((0,ut._)`${v}++`),u===void 0?e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(f,!0).break()):(e.if((0,ut._)`${v} > ${u}`,()=>e.assign(f,!1).break()),i===1?e.assign(f,!0):e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(f,!0)))}}};Xn.default=Cp;var Ri={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=le,t=W,s=de;r.error={message:({params:{property:c,depsCount:o,deps:l}})=>{const f=o===1?"property":"properties";return(0,e.str)`must have ${f} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:o,deps:l,missingProperty:f}})=>(0,e._)`{property: ${c},
19
+ */var Bs,ka;function Nl(){if(ka)return Bs;ka=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function s(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function n(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(l){i[l]=l}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Bs=n()?Object.assign:function(a,o){for(var u,c=s(a),i,l=1;l<arguments.length;l++){u=Object(arguments[l]);for(var f in u)e.call(u,f)&&(c[f]=u[f]);if(r){i=r(u);for(var h=0;h<i.length;h++)t.call(u,i[h])&&(c[i[h]]=u[i[h]])}}return c},Bs}var Ls,wa;function js(){if(wa)return Ls;wa=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ls=r,Ls}var Ea,$a;function Sa(){return $a||($a=1,Ea=Function.call.bind(Object.prototype.hasOwnProperty)),Ea}var zs,Ca;function Ol(){if(Ca)return zs;Ca=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=js(),t={},s=Sa();r=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function n(a,o,u,c,i){if(process.env.NODE_ENV!=="production"){for(var l in a)if(s(a,l)){var f;try{if(typeof a[l]!="function"){var h=Error((c||"React class")+": "+u+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[l](o,l,c,u,null,e)}catch(p){f=p}if(f&&!(f instanceof Error)&&r((c||"React class")+": type specification of "+u+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in t)){t[f.message]=!0;var _=i?i():"";r("Failed "+u+" type: "+f.message+(_??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},zs=n,zs}var Vs,xa;function Il(){if(xa)return Vs;xa=1;var r=ba(),e=Nl(),t=js(),s=Sa(),n=Ol(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return Vs=function(u,c){var i=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(P){var k=P&&(i&&P[i]||P[l]);if(typeof k=="function")return k}var h="<<anonymous>>",_={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(),arrayOf:b,element:w(),elementType:E(),instanceOf:T,node:I(),objectOf:R,oneOf:D,oneOfType:L,shape:M,exact:F};function p(P,k){return P===k?P!==0||1/P===1/k:P!==P&&k!==k}function v(P,k){this.message=P,this.data=k&&typeof k=="object"?k:{},this.stack=""}v.prototype=Error.prototype;function m(P){if(process.env.NODE_ENV!=="production")var k={},x=0;function S($,N,z,j,H,K,ne){if(j=j||h,K=K||z,ne!==t){if(c){var q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=j+":"+z;!k[ye]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+j+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),k[ye]=!0,x++)}}return N[z]==null?$?N[z]===null?new v("The "+H+" `"+K+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new v("The "+H+" `"+K+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:P(N,z,j,H,K)}var d=S.bind(null,!1);return d.isRequired=S.bind(null,!0),d}function y(P){function k(x,S,d,$,N,z){var j=x[S],H=X(j);if(H!==P){var K=re(j);return new v("Invalid "+$+" `"+N+"` of type "+("`"+K+"` supplied to `"+d+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return m(k)}function g(){return m(o)}function b(P){function k(x,S,d,$,N){if(typeof P!="function")return new v("Property `"+N+"` of component `"+d+"` has invalid PropType notation inside arrayOf.");var z=x[S];if(!Array.isArray(z)){var j=X(z);return new v("Invalid "+$+" `"+N+"` of type "+("`"+j+"` supplied to `"+d+"`, expected an array."))}for(var H=0;H<z.length;H++){var K=P(z,H,d,$,N+"["+H+"]",t);if(K instanceof Error)return K}return null}return m(k)}function w(){function P(k,x,S,d,$){var N=k[x];if(!u(N)){var z=X(N);return new v("Invalid "+d+" `"+$+"` of type "+("`"+z+"` supplied to `"+S+"`, expected a single ReactElement."))}return null}return m(P)}function E(){function P(k,x,S,d,$){var N=k[x];if(!r.isValidElementType(N)){var z=X(N);return new v("Invalid "+d+" `"+$+"` of type "+("`"+z+"` supplied to `"+S+"`, expected a single ReactElement type."))}return null}return m(P)}function T(P){function k(x,S,d,$,N){if(!(x[S]instanceof P)){var z=P.name||h,j=oe(x[S]);return new v("Invalid "+$+" `"+N+"` of type "+("`"+j+"` supplied to `"+d+"`, expected ")+("instance of `"+z+"`."))}return null}return m(k)}function D(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function k(x,S,d,$,N){for(var z=x[S],j=0;j<P.length;j++)if(p(z,P[j]))return null;var H=JSON.stringify(P,function(K,ne){var q=re(ne);return q==="symbol"?String(ne):ne});return new v("Invalid "+$+" `"+N+"` of value `"+String(z)+"` "+("supplied to `"+d+"`, expected one of "+H+"."))}return m(k)}function R(P){function k(x,S,d,$,N){if(typeof P!="function")return new v("Property `"+N+"` of component `"+d+"` has invalid PropType notation inside objectOf.");var z=x[S],j=X(z);if(j!=="object")return new v("Invalid "+$+" `"+N+"` of type "+("`"+j+"` supplied to `"+d+"`, expected an object."));for(var H in z)if(s(z,H)){var K=P(z,H,d,$,N+"."+H,t);if(K instanceof Error)return K}return null}return m(k)}function L(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var k=0;k<P.length;k++){var x=P[k];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(x)+" at index "+k+"."),o}function S(d,$,N,z,j){for(var H=[],K=0;K<P.length;K++){var ne=P[K],q=ne(d,$,N,z,j,t);if(q==null)return null;q.data&&s(q.data,"expectedType")&&H.push(q.data.expectedType)}var ye=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new v("Invalid "+z+" `"+j+"` supplied to "+("`"+N+"`"+ye+"."))}return m(S)}function I(){function P(k,x,S,d,$){return V(k[x])?null:new v("Invalid "+d+" `"+$+"` supplied to "+("`"+S+"`, expected a ReactNode."))}return m(P)}function A(P,k,x,S,d){return new v((P||"React class")+": "+k+" type `"+x+"."+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+d+"`.")}function M(P){function k(x,S,d,$,N){var z=x[S],j=X(z);if(j!=="object")return new v("Invalid "+$+" `"+N+"` of type `"+j+"` "+("supplied to `"+d+"`, expected `object`."));for(var H in P){var K=P[H];if(typeof K!="function")return A(d,$,N,H,re(K));var ne=K(z,H,d,$,N+"."+H,t);if(ne)return ne}return null}return m(k)}function F(P){function k(x,S,d,$,N){var z=x[S],j=X(z);if(j!=="object")return new v("Invalid "+$+" `"+N+"` of type `"+j+"` "+("supplied to `"+d+"`, expected `object`."));var H=e({},x[S],P);for(var K in H){var ne=P[K];if(s(P,K)&&typeof ne!="function")return A(d,$,N,K,re(ne));if(!ne)return new v("Invalid "+$+" `"+N+"` key `"+K+"` supplied to `"+d+"`.\nBad object: "+JSON.stringify(x[S],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=ne(z,K,d,$,N+"."+K,t);if(q)return q}return null}return m(k)}function V(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(V);if(P===null||u(P))return!0;var k=f(P);if(k){var x=k.call(P),S;if(k!==P.entries){for(;!(S=x.next()).done;)if(!V(S.value))return!1}else for(;!(S=x.next()).done;){var d=S.value;if(d&&!V(d[1]))return!1}}else return!1;return!0;default:return!1}}function G(P,k){return P==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function X(P){var k=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":G(k,P)?"symbol":k}function re(P){if(typeof P>"u"||P===null)return""+P;var k=X(P);if(k==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return k}function te(P){var k=re(P);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function oe(P){return!P.constructor||!P.constructor.name?h:P.constructor.name}return _.checkPropTypes=n,_.resetWarningCache=n.resetWarningCache,_.PropTypes=_,_},Vs}var Hs,Aa;function Dl(){if(Aa)return Hs;Aa=1;var r=js();function e(){}function t(){}return t.resetWarningCache=e,Hs=function(){function s(o,u,c,i,l,f){if(f!==r){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}s.isRequired=s;function n(){return s}var a={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:n,element:s,elementType:s,instanceOf:n,node:s,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:t,resetWarningCache:e};return a.PropTypes=a,a},Hs}if(process.env.NODE_ENV!=="production"){var Ml=ba(),Fl=!0;Fs.exports=Il()(Ml.isElement,Fl)}else Fs.exports=Dl()();var Rl=Fs.exports;const C=Al(Rl),Bl={Primary:"primary",Secondary:"secondary",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Neutral:"neutral"},Ll={Solid:"solid",Outline:"outline",Text:"text"},jl={Large:"lg",Medium:"md",Small:"sm"},zl={Right:"right",Left:"left"},Jr={props:{color:{options:Object.values(Bl)},variant:{options:Object.values(Ll)},size:{options:Object.values(jl)},iconPosition:{options:Object.values(zl)}}},Ta={Primary:"primary",PrimaryLightest:"primary-lightest",PrimaryLighter:"primary-lighter",PrimaryLight:"primary-light",PrimaryDark:"primary-dark",PrimaryDarker:"primary-darker",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",Secondary:"secondary",SecondaryLightest:"secondary-lightest",SecondaryLighter:"secondary-lighter",SecondaryLight:"secondary-light",SecondaryDark:"secondary-dark",SecondaryDarker:"secondary-darker",Success:"success",SuccessLighter:"success-lighter",SuccessLight:"success-light",SuccessDark:"success-dark",Warning:"warning",WarningLighter:"warning-lighter",WarningLight:"warning-light",WarningDark:"warning-dark",Danger:"danger",DangerLighter:"danger-lighter",DangerLight:"danger-light",DangerDark:"danger-dark",Info:"info",InfoLighter:"info-lighter",InfoLight:"info-light",InfoDark:"info-dark"},Pa={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl",Huge:"huge"},Na={Bold:"bold",Semibold:"semibold",Medium:"medium",Regular:"regular",Light:"light",Extralight:"extralight"},Je={class:"ds-icon",props:{color:{default:Ta.Neutral90,options:Object.values(Ta)},image:{default:"settings"},size:{default:Pa.MD,options:Object.values(Pa)},fill:{default:!1},testId:{default:"ds-icon-test"},weight:{default:Na.Semibold,options:Object.values(Na)},onClick:{default:()=>({})}}},Vl={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},Ie=({image:r=Je.props.image.default,color:e=Je.props.color.default,className:t,size:s=Je.props.size.default,fill:n=Je.props.fill.default,weight:a=Je.props.weight.default,testId:o=Je.props.testId.default,onClick:u=Je.props.onClick.default})=>{const c="material-symbols-rounded",i=e&&Je.props.color.options.find(f=>f===e)&&`${Je.class}__color--${e}`,l=ee.useMemo(()=>({fontVariationSettings:`'FILL' ${n?1:0}, 'GRAD' 0,'wght' ${Vl[a]}, 'opsz' 48`}),[a,n]);return B.jsx("i",{className:[`${Je.class}--${s}`,Je.class,c,i,t&&t].filter(f=>f).join(" "),"data-testid":o,onClick:u,style:l,translate:"no",children:r})};Ie.propTypes={color:C.oneOf(Je.props.color.options),image:C.string,fontVariationSettings:C.object,size:C.oneOf(Je.props.size.options),fill:C.bool,weight:C.oneOf(Je.props.weight.options),onClick:C.func},Ie.displayName="DsIcon",C.oneOf(Jr.props.color.options),C.oneOf(Jr.props.variant.options),C.oneOf(Jr.props.size.options),C.bool,C.string,C.bool,C.oneOf(Jr.props.iconPosition.options),C.string,C.string,C.bool,C.node.isRequired,C.string,C.string;const Zr={None:"",PrimaryDarker:"primary-darker",PrimaryDark:"primary-dark",Primary:"primary",PrimaryLight:"primary-light",PrimaryLighter:"primary-lighter",PrimaryLightest:"primary-lightest",SecondaryDarker:"secondary-darker",SecondaryDark:"secondary-dark",Secondary:"secondary",SecondaryLight:"secondary-light",SecondaryLighter:"secondary-lighter",SecondaryLightest:"secondary-lightest",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",SuccessDark:"success-dark",Success:"success",SuccessLight:"success-light",SuccessLighter:"success-lighter",WarningDark:"warning-dark",Warning:"warning",WarningLight:"warning-light",WarningLighter:"warning-lighter",DangerDark:"danger-dark",Danger:"danger",DangerLight:"danger-light",DangerLighter:"danger-lighter",InfoDark:"info-dark",Info:"info",InfoLight:"info-light",InfoLighter:"info-lighter"},pt={class:"ds-card",props:{backgroundColor:{default:Zr.None,options:Object.values(Zr)},borderColor:{default:Zr.None,options:Object.values(Zr)},elevation:{default:0,options:[0,1,2,3,4]},testId:{default:"ds-card"}}},Er=({id:r,testId:e=pt.props.testId.default,children:t,className:s,elevation:n=pt.props.elevation.default,backgroundColor:a=pt.props.backgroundColor.default,borderColor:o=pt.props.borderColor.default})=>{const u=n&&`${pt.class}--elevation-${n}`,c=o&&`${pt.class}--border-${o}`,i=a&&`${pt.class}--${a}`;return B.jsx("div",{className:[pt.class,s,u,c,i].filter(l=>l).join(" "),"data-testid":e,id:r,children:t})};Er.propTypes={id:C.string,testId:C.string,backgroundColor:C.oneOf(pt.props.backgroundColor.options),borderColor:C.oneOf(pt.props.borderColor.options),elevation:C.oneOf(pt.props.elevation.options)},Er.displayName="DsCard";const Ve={class:"ds-checkbox",props:{testId:{default:"ds-checkbox-test"},label:{default:""},description:{default:""},checked:{default:!1},changeByChecked:{default:!1}}},Oa=ee.forwardRef(({id:r,className:e,name:t,testId:s=Ve.props.testId.default,label:n=Ve.props.label.default,description:a=Ve.props.description.default,checked:o=Ve.props.checked.default,disabled:u=Ve.props.checked.default,changeByChecked:c=Ve.props.changeByChecked.default,onChangeHandler:i},l)=>{const f=c||!1,h=o||!1,[_,p]=ee.useState(h),v={image:_?"check_box":"check_box_outline_blank",class:_?`${Ve.class}__icon--checked`:`${Ve.class}__icon--unchecked`},m=u&&`${Ve.class}--disabled`,y=g=>{u||(p(b=>!b),i&&i(g))};return ee.useEffect(()=>{f&&p(o)},[o,f]),B.jsxs("label",{className:[Ve.class,m,e&&e].join(" "),htmlFor:r||t,children:[B.jsx("input",{checked:_,className:`${Ve.class}__input`,"data-testid":s,id:r||t,name:t,onChange:y,ref:l,type:"checkbox"}),B.jsx(Ie,{className:`${Ve.class}__icon ${v.class}`,fill:!0,image:v.image,size:"xxl",testId:`${s}-icon`}),(a||n)&&B.jsxs("div",{className:`${Ve.class}__label`,children:[n&&B.jsx("label",{className:`${Ve.class}__label-title`,htmlFor:r||t,children:n}),a&&B.jsx("label",{className:`${Ve.class}__label-description`,htmlFor:r||t,children:a})]})]})});Oa.propTypes={label:C.oneOfType([C.string,C.node]),name:C.string,className:C.string,testId:C.string,description:C.oneOfType([C.string,C.node]),checked:C.bool,disabled:C.bool},Oa.displayName="DsCheckbox";const Ia={Heading1:"heading-1",Heading2:"heading-2",Heading3:"heading-3",Heading4:"heading-4",Heading5:"heading-5",Heading6:"heading-6"},$r={class:"ds-heading",props:{type:{default:Ia.Heading1,options:Object.values(Ia)}}},At=({children:r,testId:e="ds-heading-test",type:t=$r.props.type.default,className:s})=>{const n={"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6"},a=$r.props.type.options.find(u=>u===t)&&`${$r.class}--${t}`,o=n[t];return B.jsx(o,{className:[$r.class,a,s&&s].filter(u=>u).join(" "),"data-testid":e,children:r})};At.propTypes={className:C.string,testId:C.string,type:C.oneOf($r.props.type.options)},At.displayName="DsHeading";const Da={None:"",Dashed:"dashed",Dotted:"dotted"},Ma={None:"",Small:"small",Large:"large"},Wt={class:"ds-hr",props:{borderStyle:{type:String,default:Da.None,options:Object.values(Da)},size:{type:String,default:Ma.None,options:Object.values(Ma)}}};function Fa(r,e,t){const s=t.props[r];return s.options&&s.options.some(n=>n===e)?`${t.class}--${e}`:""}const Us=({size:r=Wt.props.size.default,borderStyle:e=Wt.props.borderStyle.default})=>{const t=Fa("size",r,Wt),s=Fa("borderStyle",e,Wt);return B.jsx("hr",{className:`${Wt.class} ${t} ${s}`.trim()})};Us.propTypes={size:C.oneOf(Wt.props.size.options),borderStyle:C.oneOf(Wt.props.borderStyle.options)},Us.displayName="DsHR";function Bt(r){return typeof r=="string"||r instanceof String}function Ra(r){var e;return typeof r=="object"&&r!=null&&(r==null||(e=r.constructor)==null?void 0:e.name)==="Object"}function Ba(r,e){return Array.isArray(e)?Ba(r,(t,s)=>e.includes(s)):Object.entries(r).reduce((t,s)=>{let[n,a]=s;return e(a,n)&&(t[n]=a),t},{})}const Z={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Hl(r){switch(r){case Z.LEFT:return Z.FORCE_LEFT;case Z.RIGHT:return Z.FORCE_RIGHT;default:return r}}function qs(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Qr(r,e){if(e===r)return!0;const t=Array.isArray(e),s=Array.isArray(r);let n;if(t&&s){if(e.length!=r.length)return!1;for(n=0;n<e.length;n++)if(!Qr(e[n],r[n]))return!1;return!0}if(t!=s)return!1;if(e&&r&&typeof e=="object"&&typeof r=="object"){const a=e instanceof Date,o=r instanceof Date;if(a&&o)return e.getTime()==r.getTime();if(a!=o)return!1;const u=e instanceof RegExp,c=r instanceof RegExp;if(u&&c)return e.toString()==r.toString();if(u!=c)return!1;const i=Object.keys(e);for(n=0;n<i.length;n++)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=0;n<i.length;n++)if(!Qr(r[i[n]],e[i[n]]))return!1;return!0}else if(e&&r&&typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();return!1}let Ul=class{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?Z.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?Z.RIGHT:Z.LEFT}};function se(r,e){return new se.InputMask(r,e)}function La(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?se.MaskedRegExp:Bt(r)?se.MaskedPattern:r===Date?se.MaskedDate:r===Number?se.MaskedNumber:Array.isArray(r)||r===Array?se.MaskedDynamic:se.Masked&&r.prototype instanceof se.Masked?r:se.Masked&&r instanceof se.Masked?r.constructor:r instanceof Function?se.MaskedFunction:(console.warn("Mask not found for mask",r),se.Masked)}function Sr(r){if(!r)throw new Error("Options in not defined");if(se.Masked){if(r.prototype instanceof se.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof se.Masked?{mask:r}:Ra(r)&&r.mask instanceof se.Masked?r:{};if(e){const s=e.mask;return{...Ba(e,(n,a)=>!a.startsWith("_")),mask:e.constructor,_mask:s,...t}}}return Ra(r)?{...r}:{mask:r}}function Tt(r){if(se.Masked&&r instanceof se.Masked)return r;const e=Sr(r),t=La(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}se.createMask=Tt;let Ks=class{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}};se.MaskElement=Ks;const ja=90,ql=89;let es=class extends Ks{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return(e=(t=(s=this.input).getRootNode)==null?void 0:t.call(s))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===ja&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===ql&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===ja&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};se.HTMLMaskElement=es;class Kl extends es{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}se.HTMLMaskElement=es;let za=class extends es{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s<n?s:n}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s>n?s:n}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);const n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}};se.HTMLContenteditableMaskElement=za;let Va=class Cl{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>Cl.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};Va.MAX_LENGTH=100;let Gl=class{constructor(e,t){this.el=e instanceof Ks?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new za(e):new Kl(e),this.masked=Tt(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Va,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof se.Masked)&&this.masked.constructor===La(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof se.Masked?e:Tt({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const s=this._listeners[e];s&&s.forEach(n=>n(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,s=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,o=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==n;this._unmaskedValue=t,this._value=s,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),o&&this._fireChangeEvents(),!this._historyChanging&&(o||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...s}=e,n=!this.maskEquals(t),a=this.masked.optionsIsChanged(s);n&&(this.mask=t),a&&this.masked.updateOptions(s),(n||a)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Z.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new Ul({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=s===this.masked.rawInputValue?t.removeDirection:Z.NONE;let o=this.masked.nearestInputPos(t.startChangePos+n,a);a!==Z.NONE&&(o=this.masked.nearestInputPos(o,Z.NONE)),this.updateControl(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};se.InputMask=Gl;class ue{static normalize(e){return Array.isArray(e)?e:[e,new ue]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}se.ChangeDetails=ue;class kt{constructor(e,t,s){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class Re{constructor(e){this._value="",this._update({...Re.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new kt(this.extractInput(e,t),e)}appendTail(e){return Bt(e)&&(e=new kt(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new ue({inserted:e,rawInserted:e})):new ue}_appendChar(e,t,s){t===void 0&&(t={});const n=this.state;let a;if([e,a]=this.doPrepareChar(e,t),e&&(a=a.aggregate(this._appendCharRaw(e,t)),!a.rawInserted&&this.autofix==="pad")){const o=this.state;this.state=n;let u=this.pad(t);const c=this._appendCharRaw(e,t);u=u.aggregate(c),c.rawInserted||u.equals(a)?a=u:this.state=o}if(a.inserted){let o,u=this.doValidate(t)!==!1;if(u&&s!=null){const c=this.state;if(this.overwrite===!0){o=s.state;for(let l=0;l<a.rawInserted.length;++l)s.unshift(this.displayValue.length-a.tailShift)}let i=this.appendTail(s);if(u=i.rawInserted.length===s.toString().length,!(u&&i.inserted)&&this.overwrite==="shift"){this.state=c,o=s.state;for(let l=0;l<a.rawInserted.length;++l)s.shift();i=this.appendTail(s),u=i.rawInserted.length===s.toString().length}u&&i.inserted&&(this.state=c)}u||(a=new ue,this.state=n,s&&o&&(s.state=o))}return a}_appendPlaceholder(){return new ue}_appendEager(){return new ue}append(e,t,s){if(!Bt(e))throw new Error("value should be string");const n=Bt(s)?new kt(String(s)):s;t!=null&&t.tail&&(t._beforeTailState=this.state);let a;[e,a]=this.doPrepare(e,t);for(let o=0;o<e.length;++o){const u=this._appendChar(e[o],t,n);if(!u.rawInserted&&!this.doSkipInvalid(e[o],t,n))break;a.aggregate(u)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new ue}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,s=this.value,n=e();return this.rawInputValue=t,this.value&&this.value!==s&&s.indexOf(this.value)===0&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),ue.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),ue.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,n,a){s===void 0&&(s=""),n===void 0&&(n=Z.NONE),a===void 0&&(a={input:!0});const o=e+t,u=this.extractTail(o),c=this.eager===!0||this.eager==="remove";let i;c&&(n=Hl(n),i=this.extractInput(0,o,{raw:!0}));let l=e;const f=new ue;if(n!==Z.NONE&&(l=this.nearestInputPos(e,t>1&&e!==0&&!c?Z.NONE:n),f.tailShift=l-e),f.aggregate(this.remove(l)),c&&n!==Z.NONE&&i===this.rawInputValue)if(n===Z.FORCE_LEFT){let h;for(;i===this.rawInputValue&&(h=this.displayValue.length);)f.aggregate(new ue({tailShift:-1})).aggregate(this.remove(h-1))}else n===Z.FORCE_RIGHT&&u.unshift();return f.aggregate(this.append(s,a,u))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!Qr(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||Re.EMPTY_VALUES.includes(e)&&Re.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new ue}}Re.DEFAULTS={skipInvalid:!0},Re.EMPTY_VALUES=[void 0,null,""],se.Masked=Re;class Xt{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=Bt(e)?new kt(String(e)):e;const t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof kt)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof Xt){if(e.stop==null){let n;for(;e.chunks.length&&e.chunks[0].stop==null;)n=e.chunks.shift(),n.from+=e.from,this.extend(n)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof se.MaskedPattern))return new kt(this.toString()).appendTo(e);const t=new ue;for(let s=0;s<this.chunks.length;++s){const n=this.chunks[s],a=e._mapPosToBlock(e.displayValue.length),o=n.stop;let u;if(o!=null&&(!a||a.index<=o)&&((n instanceof Xt||e._stops.indexOf(o)>=0)&&t.aggregate(e._appendPlaceholder(o)),u=n instanceof Xt&&e._blocks[o]),u){const c=u.appendTail(n);t.aggregate(c);const i=n.toString().slice(c.rawInserted.length);i&&t.aggregate(e.append(i,{tail:!0}))}else t.aggregate(e.append(n.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(n=>{const a="chunks"in n?new Xt:new kt;return a.state=n,a})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let s=0;for(;s<this.chunks.length;){const n=this.chunks[s],a=n.unshift(t);if(n.toString()){if(!a)break;++s}else this.chunks.splice(s,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}class Wl{constructor(e,t){this.masked=e,this._log=[];const{offset:s,index:n}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Z.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Z.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Z.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Z.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Z.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Z.NONE),!0})}}let Ha=class{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new ue}nearestInputPos(e,t){t===void 0&&(t=Z.NONE);const s=0,n=this._value.length;switch(t){case Z.LEFT:case Z.FORCE_LEFT:return s;case Z.NONE:case Z.RIGHT:case Z.FORCE_RIGHT:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),s===void 0&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new ue;const s=this.eager===!0||this.eager==="append",n=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,a=new ue({inserted:this.char,rawInserted:n?this.char:""});return this._value=this.char,this._isRawInput=n&&(t.raw||t.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new ue;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new kt("")}appendTail(e){return Bt(e)&&(e=new kt(String(e))),e.appendTo(this)}append(e,t,s){const n=this._appendChar(e[0],t);return s!=null&&(n.tailShift+=this.appendTail(s).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}},ts=class{constructor(e){const{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:o,eager:u,...c}=e;this.masked=Tt(c),Object.assign(this,{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:o,eager:u})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new ue}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new ue;const s=this.masked.state;let n=this.masked._appendChar(e,this.currentMaskFlags(t));return n.inserted&&this.doValidate(t)===!1&&(n=new ue,this.masked.state=s),!n.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new ue:(this.isFilled=!0,new ue({inserted:this.placeholderChar}))}_appendEager(){return new ue}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){t===void 0&&(t=Z.NONE);const s=0,n=this.value.length,a=Math.min(Math.max(e,s),n);switch(t){case Z.LEFT:case Z.FORCE_LEFT:return this.isComplete?a:s;case Z.RIGHT:case Z.FORCE_RIGHT:return this.isComplete?a:n;case Z.NONE:default:return a}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new ue}};ts.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Xl extends Re{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=s=>s.search(t)>=0),super._update(e)}}se.MaskedRegExp=Xl;class Be extends Re{constructor(e){super({...Be.DEFAULTS,...e,definitions:Object.assign({},ts.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let s=!1,n=!1;for(let a=0;a<t.length;++a){if(this.blocks){const i=t.slice(a),l=Object.keys(this.blocks).filter(h=>i.indexOf(h)===0);l.sort((h,_)=>_.length-h.length);const f=l[0];if(f){const{expose:h,repeat:_,...p}=Sr(this.blocks[f]),v={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...p,repeat:_,parent:this},m=_!=null?new se.RepeatBlock(v):Tt(v);m&&(this._blocks.push(m),h&&(this.exposeBlock=m),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),a+=f.length-1;continue}}let o=t[a],u=o in e;if(o===Be.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(o==="{"||o==="}"){s=!s;continue}if(o==="["||o==="]"){n=!n;continue}if(o===Be.ESCAPE_CHAR){if(++a,o=t[a],!o)break;u=!1}const c=u?new ts({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Sr(e[o]),parent:this}):new Ha({char:o,eager:this.eager,isUnmasking:s});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...s}=e;this._blocks.forEach((n,a)=>n.state=t[a]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new ue;let s=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(s==null)return t;this._blocks[s].isFilled&&++s;for(let n=s;n<this._blocks.length;++n){const a=this._blocks[n]._appendEager();if(!a.inserted)break;t.aggregate(a)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._mapPosToBlock(this.displayValue.length),n=new ue;if(!s)return n;for(let o=s.index,u;u=this._blocks[o];++o){var a;const c=u._appendChar(e,{...t,_beforeTailState:(a=t._beforeTailState)==null||(a=a._blocks)==null?void 0:a[o]});if(n.aggregate(c),c.consumed)break}return n}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=new Xt;return e===t||this._forEachBlocksInRange(e,t,(n,a,o,u)=>{const c=n.extractTail(o,u);c.stop=this._findStopBefore(a),c.from=this._blockStartPos(a),c instanceof Xt&&(c.blockIndex=a),s.extend(c)}),s}extractInput(e,t,s){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),s===void 0&&(s={}),e===t)return"";let n="";return this._forEachBlocksInRange(e,t,(a,o,u,c)=>{n+=a.extractInput(u,c,s)}),n}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){const n=this._stops[s];if(n<=e)t=n;else break}return t}_appendPlaceholder(e){const t=new ue;if(this.lazy&&e==null)return t;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;const n=s.index,a=e??this._blocks.length;return this._blocks.slice(n,a).forEach(o=>{if(!o.lazy||e!=null){var u;t.aggregate(o._appendPlaceholder((u=o._blocks)==null?void 0:u.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){const n=this._blocks[s],a=t.length;if(t+=n.displayValue,e<=t.length)return{index:s,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,s)=>t+=s.displayValue.length,0)}_forEachBlocksInRange(e,t,s){t===void 0&&(t=this.displayValue.length);const n=this._mapPosToBlock(e);if(n){const a=this._mapPosToBlock(t),o=a&&n.index===a.index,u=n.offset,c=a&&o?a.offset:this._blocks[n.index].displayValue.length;if(s(this._blocks[n.index],n.index,u,c),a&&!o){for(let i=n.index+1;i<a.index;++i)s(this._blocks[i],i,0,this._blocks[i].displayValue.length);s(this._blocks[a.index],a.index,0,a.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(n,a,o,u)=>{s.aggregate(n.remove(o,u))}),s}nearestInputPos(e,t){if(t===void 0&&(t=Z.NONE),!this._blocks.length)return 0;const s=new Wl(this,e);if(t===Z.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===Z.LEFT||t===Z.FORCE_LEFT){if(t===Z.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===Z.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===Z.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return t===Z.RIGHT||t===Z.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:t===Z.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,Z.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(n,a,o,u)=>{s+=n.totalInputPositions(o,u)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(s=>this._blocks[s]):[]}pad(e){const t=new ue;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}}Be.DEFAULTS={...Re.DEFAULTS,lazy:!0,placeholderChar:"_"},Be.STOP_CHAR="`",Be.ESCAPE_CHAR="\\",Be.InputDefinition=ts,Be.FixedDefinition=Ha,se.MaskedPattern=Be;let rs=class extends Be{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:s=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix,...o}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,n),this.autofix=a;const u=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0");let i=0;for(;i<c.length&&c[i]===u[i];)++i;o.mask=c.slice(0,i).replace(/0/g,"\\0")+"0".repeat(this.maxLength-i),super._update(o)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="";const[,n,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(t="0".repeat(n.length)+a,s="9".repeat(n.length)+a),t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9"),[t,s]}doPrepareChar(e,t){t===void 0&&(t={});let s;return[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const s=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,o]=this.boundaries(this.value+e);return Number(o)<this.from?super._appendCharRaw(s[this.value.length],t):Number(a)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(n[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[s,n]=this.boundaries(t);return this.from<=Number(n)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){const t=new ue;if(this.value.length===this.maxLength)return t;const s=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(a=>this._appendCharRaw(a))}return t}};se.MaskedRange=rs;let Gs=class wr extends Be{static extractPatternOptions(e){const{mask:t,pattern:s,...n}=e;return{...n,mask:Bt(t)?t:s}}constructor(e){super(wr.extractPatternOptions({...wr.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:n,...a}={...wr.DEFAULTS,...e},o=Object.assign({},wr.GET_DEFAULT_BLOCKS());e.min&&(o.Y.from=e.min.getFullYear()),e.max&&(o.Y.to=e.max.getFullYear()),e.min&&e.max&&o.Y.from===o.Y.to&&(o.m.from=e.min.getMonth()+1,o.m.to=e.max.getMonth()+1,o.m.from===o.m.to&&(o.d.from=e.min.getDate(),o.d.to=e.max.getDate())),Object.assign(o,this.blocks,n),super._update({...a,mask:Bt(t)?t:s,blocks:o})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(wr.extractPatternOptions(e))}};Gs.GET_DEFAULT_BLOCKS=()=>({d:{mask:rs,from:1,to:31,maxLength:2},m:{mask:rs,from:1,to:12,maxLength:2},Y:{mask:rs,from:1900,to:9999}}),Gs.DEFAULTS={...Be.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(r,e)=>{if(!r)return"";const t=String(r.getDate()).padStart(2,"0"),s=String(r.getMonth()+1).padStart(2,"0"),n=r.getFullYear();return[t,s,n].join(".")},parse:(r,e)=>{const[t,s,n]=r.split(".").map(Number);return new Date(n,s-1,t)}},se.MaskedDate=Gs;let Ua=class xl extends Re{constructor(e){super({...xl.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:s,...n}=Sr(t),a=Tt({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return s&&(this.exposeMask=a),a}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){e===void 0&&(e=""),t===void 0&&(t={}),s===void 0&&(s="");const n=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,a=this.rawInputValue,o=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:a,u=a.slice(o.length),c=this.currentMask,i=new ue,l=c==null?void 0:c.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==c?(this.currentMask.reset(),o&&(this.currentMask.append(o,{raw:!0}),i.tailShift=this.currentMask.value.length-n.length),u&&(i.tailShift+=this.currentMask.append(u,{raw:!0,tail:!0}).tailShift)):l&&(this.currentMask.state=l)),i}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new ue;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)==null?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return t===void 0&&(t={}),s===void 0&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[s,n]=super.doPrepare(e,t);if(this.currentMask){let a;[s,a]=super.doPrepare(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}doPrepareChar(e,t){t===void 0&&(t={});let[s,n]=super.doPrepareChar(e,t);if(this.currentMask){let a;[s,a]=super.doPrepareChar(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const s=new ue;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:s,currentMask:n,...a}=e;t&&this.compiledMasks.forEach((o,u)=>o.state=t[u]),s!=null&&(this.currentMask=s,this.currentMask.state=n),super.state=a}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;const{mask:n,...a}=e[s];return Qr(t,a)&&t.maskEquals(n)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}};Ua.DEFAULTS={...Re.DEFAULTS,dispatch:(r,e,t,s)=>{if(!e.compiledMasks.length)return;const n=e.rawInputValue,a=e.compiledMasks.map((o,u)=>{const c=e.currentMask===o,i=c?o.displayValue.length:o.nearestInputPos(o.displayValue.length,Z.FORCE_LEFT);return o.rawInputValue!==n?(o.reset(),o.append(n,{raw:!0})):c||o.remove(i),o.append(r,e.currentMaskFlags(t)),o.appendTail(s),{index:u,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(i,o.nearestInputPos(o.displayValue.length,Z.FORCE_LEFT)))}});return a.sort((o,u)=>u.weight-o.weight||u.totalInputPositions-o.totalInputPositions),e.compiledMasks[a[0].index]}},se.MaskedDynamic=Ua;class ss extends Be{constructor(e){super({...ss.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...s}=e;if(t){const n=t.map(u=>u.length),a=Math.min(...n),o=Math.max(...n)-a;s.mask="*".repeat(a),o&&(s.mask+="["+"*".repeat(o)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){t===void 0&&(t={});const s=Math.min(this.nearestInputPos(0,Z.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+e,s));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(o,u)=>{const c=n[0][u];u>=this.value.length||c===o.value||(o.reset(),o._appendChar(c,t))});const a=super._appendCharRaw(n[0][this.value.length],t);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(o=>a.aggregate(super._appendCharRaw(o))),a}return new ue({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new kt("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new ue;const s=Math.min(super.nearestInputPos(0,Z.FORCE_RIGHT),this.value.length);let n;for(n=e;n>=0&&!(this.enum.filter(o=>this.matchValue(o,this.value.slice(s,n),s)).length>1);--n);const a=super.remove(n,t);return a.tailShift+=n-e,a}get isComplete(){return this.enum.indexOf(this.value)>=0}}ss.DEFAULTS={...Be.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t},se.MaskedEnum=ss;let Yl=class extends Re{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};se.MaskedFunction=Yl;var qa;class st extends Re{constructor(e){super({...st.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",s=(this.scale?"("+qs(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+s),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(qs).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(qs(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[s,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(n.skip=!0),s&&!this.allowPositive&&!this.value&&s!=="-"&&n.aggregate(this._appendChar("-")),[s,n]}_separatorsCount(e,t){t===void 0&&(t=!1);let s=0;for(let n=0;n<e;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){t===void 0&&(t={});const s=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const a=this._value;this._value+=e;const o=this.number;let u=!isNaN(o),c=!1;if(u){let h;this.min!=null&&this.min<0&&this.number<this.min&&(h=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(h=this.max),h!=null&&(this.autofix?(this._value=this.format(h,this).replace(st.UNMASKED_RADIX,this.radix),c||(c=a===this._value&&!t.tail)):u=!1),u&&(u=!!this._value.match(this._numberRegExp))}let i;u?i=new ue({inserted:this._value.slice(a.length),rawInserted:c?"":e,skip:c}):(this._value=a,i=new ue),this._value=this._insertThousandsSeparators(this._value);const l=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,f=this._separatorsCountFromSlice(l);return i.tailShift+=(f-n)*this.thousandsSeparator.length,i}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,t){const s=this._findSeparatorAround(e);s>=0&&(e=s);const n=this._findSeparatorAround(t);return n>=0&&(t=n+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const s=this.value.slice(0,e),n=this.value.slice(t),a=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+n));const o=this._separatorsCountFromSlice(s);return new ue({tailShift:(o-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case Z.NONE:case Z.LEFT:case Z.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const n=s+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===Z.FORCE_LEFT)return s}break}case Z.RIGHT:case Z.FORCE_RIGHT:{const s=this._findSeparatorAround(e);if(s>=0)return s+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(s,n,a,o)=>n+o),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){t===void 0&&(t={});const n=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===st.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,st.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(st.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||st.EMPTY_VALUES.includes(e)&&st.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}qa=st,st.UNMASKED_RADIX=".",st.EMPTY_VALUES=[...Re.EMPTY_VALUES,0],st.DEFAULTS={...Re.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[qa.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},se.MaskedNumber=st;const Ws={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Ka(r,e,t){e===void 0&&(e=Ws.MASKED),t===void 0&&(t=Ws.MASKED);const s=Tt(r);return n=>s.runIsolated(a=>(a[e]=n,a[t]))}function Jl(r,e,t,s){return Ka(e,t,s)(r)}se.PIPE_TYPE=Ws,se.createPipe=Ka,se.pipe=Jl;let Zl=class extends Be{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,n;const{repeat:a,...o}=Sr(e);this._blockOpts=Object.assign({},this._blockOpts,o);const u=Tt(this._blockOpts);this.repeat=(t=(s=a??u.repeat)!=null?s:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:u},eager:u.eager,overwrite:u.overwrite,skipInvalid:u.skipInvalid,lazy:u.lazy,placeholderChar:u.placeholderChar,displayChar:u.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Tt(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const s=new ue;for(let c=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),i,l;i=(o=this._blocks[c])!=null?o:l=!l&&this._allocateBlock(c);++c){var n,a,o,u;const f=i._appendChar(e,{...t,_beforeTailState:(u=t._beforeTailState)==null||(u=u._blocks)==null?void 0:u[c]});if(f.skip&&l){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(f),f.consumed)break}return s}_trimEmptyTail(e,t){var s,n;e===void 0&&(e=0);const a=Math.max(((s=this._mapPosToBlock(e))==null?void 0:s.index)||0,this.repeatFrom,0);let o;t!=null&&(o=(n=this._mapPosToBlock(t))==null?void 0:n.index),o==null&&(o=this._blocks.length-1);let u=0;for(let c=o;a<=c&&!this._blocks[c].unmaskedValue;--c,++u);u&&(this._blocks.splice(o-u+1,u),this.mask=this.mask.slice(u))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};se.RepeatBlock=Zl;try{globalThis.IMask=se}catch{}const Ga={mask:C.oneOfType([C.array,C.func,C.string,C.instanceOf(RegExp),C.oneOf([Date,Number,se.Masked]),C.instanceOf(se.Masked)]),value:C.any,unmask:C.oneOfType([C.bool,C.oneOf(["typed"])]),prepare:C.func,prepareChar:C.func,validate:C.func,commit:C.func,overwrite:C.oneOfType([C.bool,C.oneOf(["shift"])]),eager:C.oneOfType([C.bool,C.oneOf(["append","remove"])]),skipInvalid:C.bool,onAccept:C.func,onComplete:C.func,placeholderChar:C.string,displayChar:C.string,lazy:C.bool,definitions:C.object,blocks:C.object,enum:C.arrayOf(C.string),maxLength:C.number,from:C.number,to:C.number,pattern:C.string,format:C.func,parse:C.func,autofix:C.oneOfType([C.bool,C.oneOf(["pad"])]),radix:C.string,thousandsSeparator:C.string,mapToRadix:C.arrayOf(C.string),scale:C.number,normalizeZeros:C.bool,padFractionalZeros:C.bool,min:C.oneOfType([C.number,C.instanceOf(Date)]),max:C.oneOfType([C.number,C.instanceOf(Date)]),dispatch:C.func,inputRef:C.oneOfType([C.func,C.shape({current:C.object})])},Wa=Object.keys(Ga).filter(r=>r!=="value"),Ql=["value","unmask","onAccept","onComplete","inputRef"],ec=Wa.filter(r=>Ql.indexOf(r)<0);function tc(r){var e;const t=(e=class extends ee.Component{constructor(n){super(n),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const n=this.props,a=this._extractMaskOptionsFromProps(n);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in n&&n.value!==void 0&&(this.maskValue=n.value)):this.initMask(a);else if(this.destroyMask(),"value"in n&&n.value!==void 0){var o;(o=this.element)!=null&&o.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=n.value:this.element.value=n.value}}componentWillUnmount(){this.destroyMask()}_inputRef(n){this.element=n,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=n:this.props.inputRef(n))}initMask(n){n===void 0&&(n=this._extractMaskOptionsFromProps(this.props)),this.maskRef=se(this.element,n).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(n){const{...a}=n;return Object.keys(a).filter(o=>ec.indexOf(o)<0).forEach(o=>{delete a[o]}),a}_extractNonMaskProps(n){const{...a}=n;return Wa.forEach(o=>{o!=="maxLength"&&delete a[o]}),"defaultValue"in a||(a.defaultValue=n.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(n){this.maskRef&&(n=n==null&&this.props.unmask!=="typed"?"":n,this.props.unmask==="typed"?this.maskRef.typedValue=n:this.props.unmask?this.maskRef.unmaskedValue=n:this.maskRef.value=n)}_onAccept(n){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,n)}_onComplete(n){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,n)}render(){return ee.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),s=r.displayName||r.name||"Component";return t.displayName="IMask("+s+")",t.propTypes=Ga,ee.forwardRef((n,a)=>ee.createElement(t,{...n,ref:a}))}const rc=tc(r=>{let{inputRef:e,...t}=r;return ee.createElement("input",{...t,ref:e})}),sc=(r,e)=>ee.createElement(rc,{...r,ref:e});ee.forwardRef(sc);function nc(r,e){let{onAccept:t,onComplete:s,ref:n=ee.useRef(null),defaultValue:a,defaultUnmaskedValue:o,defaultTypedValue:u}=e===void 0?{}:e;const c=ee.useRef(null),[i,l]=ee.useState({}),[f,h]=ee.useState(""),[_,p]=ee.useState(""),[v,m]=ee.useState(),y=ee.useCallback(()=>{var E;(E=c.current)==null||E.destroy(),c.current=null},[]),g=ee.useCallback(()=>{const E=c.current;E&&(l({value:E.value,unmaskedValue:E.unmaskedValue,typedValue:E.typedValue}),m(E.typedValue),p(E.unmaskedValue),h(E.value))},[]),b=ee.useCallback(E=>{const T=c.current;T&&(g(),t==null||t(T.value,T,E))},[t]),w=ee.useCallback(E=>c.current&&(s==null?void 0:s(c.current.value,c.current,E)),[s]);return ee.useEffect(()=>{const{value:E,...T}=i,D=c.current;!D||f===void 0||(E!==f&&(D.value=f,D.value!==f&&b()),l(T))},[f]),ee.useEffect(()=>{const{unmaskedValue:E,...T}=i,D=c.current;!D||_===void 0||(E!==_&&(D.unmaskedValue=_,D.unmaskedValue!==_&&b()),l(T))},[_]),ee.useEffect(()=>{const{typedValue:E,...T}=i,D=c.current;!D||v===void 0||(E!==v&&(D.typedValue=v,D.masked.typedValueEquals(v)||b()),l(T))},[v]),ee.useEffect(()=>{const E=n.current;if(!E||!(r!=null&&r.mask))return y();const T=c.current;T?T==null||T.updateOptions(r):E&&r!=null&&r.mask&&(c.current=se(E,r),g(),a!==void 0&&h(a),o!==void 0&&p(o),u!==void 0&&m(u))},[r,y,b]),ee.useEffect(()=>{if(!c.current)return;const E=c.current;return E.on("accept",b),E.on("complete",w),()=>{E.off("accept",b),E.off("complete",w)}},[b,w]),ee.useEffect(()=>y,[y]),{ref:n,maskRef:c,value:f,setValue:h,unmaskedValue:_,setUnmaskedValue:p,typedValue:v,setTypedValue:m}}const Xa={Text:"text",Password:"password",Email:"email",Date:"date",Number:"number"},Ya={Small:"small",Medium:"medium",Large:"large"},Ja={Default:"",Error:"error",Success:"success"},ac={Center:"center"},oc={Top:"top"},be={class:"ds-input",props:{testId:{default:"ds-input-test"},type:{default:Xa.Text,options:Object.values(Xa)},animated:{default:!0},disabled:{default:!1},size:{default:Ya.Medium,options:Object.values(Ya)},status:{default:Ja.Default,options:Object.values(Ja)},hasFeedback:{default:!0},noMargin:{default:!1},icon:{default:""},tooltip:{default:""},tooltipPlacement:{default:ac.Center},tooltipPosition:{default:oc.Top},onChangeHandler:{default:()=>({})}}},Za={currency:{mask:"currency",blocks:{currency:{mask:"R$ num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:".",padFractionalZeros:!0,normalizeZeros:!1,radix:",",mapToRadix:[",","."]}}}}},document:{mask:[{mask:"000.000.000-00",startsWith:/[0-9]/,maxLength:14},{mask:"00.000.000/0000-00",startsWith:/[0-9]/,maxLength:18}]},"phone-br":{mask:[{mask:"(00) 0000-0000"},{mask:"(00) 00000-0000"}],dispatch:(r,e)=>(e.value+r).replace(/\D/g,"").length<=10?e.compiledMasks[0]:e.compiledMasks[1]}},Qa={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},eo={Center:"center",End:"end",Initial:"initial"},Pt={class:"ds-tooltip",props:{position:{default:Qa.Top,options:Object.values(Qa)},placement:{default:eo.Center,options:Object.values(eo)},text:{default:""}}},Cr=({children:r,position:e=Pt.props.position.default,placement:t=Pt.props.placement.default,text:s=Pt.props.text.default,className:n})=>{const a=ee.useRef(null),[o,u]=ee.useState(0),[c,i]=ee.useState(0),[l,f]=ee.useState(!1),h=e&&Pt.props.position.options.find(y=>y===e)&&`${Pt.class}--${e}`,_=t&&Pt.props.placement.options.find(y=>y===t)&&`${Pt.class}--${t}`;let p;ee.useLayoutEffect(()=>{var y,g;a.current&&(u((y=a==null?void 0:a.current)==null?void 0:y.offsetHeight),i((g=a==null?void 0:a.current)==null?void 0:g.offsetWidth))},[]),ee.useEffect(()=>(document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}),[]);const v=9;switch(e){case"top":t==="initial"?p={bottom:o+v,left:-9}:t==="end"?p={bottom:o+v,right:-9}:p={bottom:o+v,left:"50%",transform:"translateX(-50%)"};break;case"bottom":t==="initial"?p={top:o+v,left:-9}:t==="end"?p={top:o+v,right:-9}:p={top:o+v,left:"50%",transform:"translateX(-50%)"};break;case"left":t==="initial"?p={right:c+v,top:-9}:t==="end"?p={right:c+v,bottom:-9}:p={right:c+v,top:"50%",transform:"translateY(-50%)"};break;case"right":t==="initial"?p={left:c+v,top:-9}:t==="end"?p={left:c+v,bottom:-9}:p={left:c+v,top:"50%",transform:"translateY(-50%)"};break}const m=({target:y})=>{a.current&&a.current.contains(y)||f(!1)};return B.jsxs("span",{className:[Pt.class,n].join(" "),"data-testid":"ds-tooltip",onClick:()=>f(!l),ref:a,children:[r,l&&B.jsx("span",{className:[h,_].filter(y=>y).join(" "),children:B.jsx("span",{className:`${Pt.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:p,children:s})})]})};Cr.propTypes={position:C.string,placement:C.string,text:C.oneOfType([C.string,C.node])},Cr.displayName="DsTooltip";const to=ee.forwardRef(({name:r,testId:e=be.props.testId.default,type:t=be.props.type.default,animated:s=be.props.animated.default,size:n=be.props.size.default,label:a,placeholder:o,value:u,min:c,max:i,tooltip:l=be.props.tooltip.default,tooltipPosition:f=be.props.tooltipPosition.default,tooltipPlacement:h=be.props.tooltipPlacement.default,icon:_=be.props.icon.default,status:p=be.props.status.default,feedback:v,hasFeedback:m=be.props.hasFeedback.default,noMargin:y=be.props.noMargin.default,disabled:g=be.props.disabled.default,className:b,mask:w,onChangeHandler:E=be.props.onChangeHandler.default,onBlurHandler:T,onKeyDownHandler:D,onFocusHandler:R},L)=>{const[I,A]=ee.useState(!1),[M,F]=ee.useState(!1),V=!!E&&!!w,G=(H,K,ne)=>{if(V&&ne){const q={...ne,target:{...ne.target,name:r,maskedValue:H,value:K.unmaskedValue,type:"text"}};E(q)}},X=ee.useMemo(()=>typeof w=="object"?{lazy:!0,...w}:Za[w]?{...Za[w],min:c,max:i,lazy:!0}:{mask:w||"",min:c,max:i,lazy:!0},[w]),{ref:re,setUnmaskedValue:te}=nc(X,{onAccept:G}),oe=H=>{E&&!V&&E(H)},P=H=>{D&&D(H)},k=H=>{A(!1),T&&T(H)},x=H=>{A(!0),R&&R(H)},S=()=>{F(H=>!H)},d=ee.useMemo(()=>M&&t==="password"?"text":t,[M,t]),$=()=>{const H=[`${be.class}`];return n&&H.push(`${be.class}--${n}`),s&&H.push(`${be.class}--animated`),y&&H.push(`${be.class}--no-margin`),_&&H.push(`${be.class}--with-icon`),p&&H.push(`${be.class}--${p}`),b&&H.push(b),H.join(" ")},N=ee.useMemo(()=>{const H=[`${be.class}__label`];return(I||u)&&H.push(`${be.class}__label--active`),H.join(" ")},[u,I]),z=()=>!s&&o?o:"",j=()=>p&&p==="error"?"info":"check_circle";return ee.useEffect(()=>{w&&te(u||"")},[u,w,te]),B.jsxs("div",{className:$(),ref:L,children:[m&&B.jsx("div",{className:"ds-input__feedback",children:v&&B.jsxs(B.Fragment,{children:[B.jsx(Ie,{image:j()}),v]})}),B.jsx("input",{className:"ds-input__input","data-testid":e,disabled:g,id:r,max:i,min:c,name:r,onBlur:k,onChange:oe,onFocus:x,onInput:oe,onKeyDown:P,placeholder:z(),ref:re,type:d,...!w&&{value:u||""}}),B.jsxs("label",{className:N,htmlFor:r,children:[a,l&&B.jsx(Cr,{className:"ds-input__tooltip",placement:h,position:f,text:l,children:B.jsx(Ie,{className:"ds-input__icon",image:"info"})})]}),_&&B.jsx(Ie,{className:"ds-input__icon",image:_}),t==="password"&&B.jsx(Ie,{className:"ds-input__password-icon",image:M?"visibility_off":"visibility",onClick:S,size:"xl"})]})});to.propTypes={name:C.string,testId:C.string,type:C.oneOf(be.props.type.options),animated:C.bool,size:C.oneOf(be.props.size.options),label:C.string,placeholder:C.string,value:C.oneOfType([C.string]),min:C.string,max:C.string,tooltip:C.string,tooltipPosition:C.string,tooltipPlacement:C.string,icon:C.string,status:C.oneOf(be.props.status.options),feedback:C.string,hasFeedback:C.bool,noMargin:C.bool,disabled:C.bool,mask:C.oneOfType([C.string,C.object]),onChangeHandler:C.func,onFocusHandler:C.func},to.displayName="DsInput";const ic={Small:"small",Medium:"medium",Large:"large"},uc={props:{size:{options:Object.values(ic)}}};C.string,C.string,C.oneOf(uc.props.size.options),C.bool,C.bool,C.string,C.string,C.string,C.string,C.oneOfType([C.string,C.node]),C.oneOfType([C.string,C.number]),C.string,C.bool,C.bool,C.func;const ro={Default:"",Large:"large",Small:"small"},ns={class:"ds-paragraph",props:{type:{default:ro.Default,options:Object.values(ro)}}},Lt=({children:r,className:e,testId:t="ds-paragraph-test",type:s=ns.props.type.default})=>{const n=s&&`${ns.class}--${s}`;return B.jsx("p",{className:[ns.class,n,e&&e].filter(a=>a).join(" "),"data-testid":t,children:r})};Lt.propTypes={className:C.string,testId:C.string,type:C.oneOf(ns.props.type.options)},Lt.displayName="DsParagraph";const Xs={class:"ds-flex-element",props:{flex:{default:"0 1 auto"},className:{default:""}}},$e=({children:r,flex:e=Xs.props.flex.default,className:t=Xs.props.className.default})=>{const s=()=>[Xs.class,t].join(" "),n=()=>({flex:e});return B.jsx("div",{className:s(),style:n(),children:r})};$e.propTypes={className:C.string,flex:C.string},$e.displayName="DsFlexElement";const lc={Stretch:"stretch"},cc={Stretch:"stretch"},dc={Row:"row"},hc={Wrap:"wrap"},Yt={class:"ds-flex-layout",props:{justifyContent:{default:lc.Stretch},alignItems:{default:cc.Stretch},flexDirection:{default:dc.Row},flexWrap:{default:hc.Wrap},width:{default:"100%"}}},mt=({children:r,className:e,justifyContent:t=Yt.props.justifyContent.default,alignItems:s=Yt.props.alignItems.default,flexDirection:n=Yt.props.flexDirection.default,flexWrap:a=Yt.props.flexWrap.default,width:o=Yt.props.width.default,height:u,gap:c})=>{const i=()=>{const f=[Yt.class,e];return c&&f.push(`${Yt.class}--gap-${c}`),f.join(" ")},l=()=>({display:"flex",justifyContent:t,alignItems:s,flexDirection:n,flexWrap:a,width:o,height:u,gap:c});return B.jsx("div",{className:i(),style:l(),children:r})};mt.propTypes={className:C.string,justifyContent:C.string,alignItems:C.string,flexDirection:C.string,flexWrap:C.string,width:C.string,height:C.string,gap:C.string},mt.displayName="DsFlexLayout";const as={None:"none",Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm"},xr={class:"ds-spacer",props:{vertical:{default:as.None,options:Object.values(as)},horizontal:{default:as.None,options:Object.values(as)}}},nt=({vertical:r=xr.props.vertical.default,horizontal:e=xr.props.horizontal.default})=>{const t=r&&`ds-spacer__vertical--${r}`,s=e&&`ds-spacer__horizontal--${e}`;return B.jsx("div",{className:[xr.class,t,s].filter(n=>n).join(" "),"data-testid":"ds-spacer"})};nt.propTypes={vertical:C.oneOf(xr.props.vertical.options),horizontal:C.oneOf(xr.props.horizontal.options)},nt.displayName="DsSpacer",C.string,C.number,C.string;const so={Small:"sm",Medium:"md",Large:"lg"},no={Default:"",Error:"error",Success:"success"},fc={Initial:"initial"},pc={Top:"top"},we={class:"ds-select",props:{animated:{default:!0},disabled:{default:!1},multiple:{default:!1},testId:{default:"ds-select-test"},size:{options:Object.values(so),default:so.Medium},status:{default:no.Default,options:Object.values(no)},tooltipPlacement:{default:fc.Initial},tooltipPosition:{default:pc.Top}}},ao=ee.forwardRef(({label:r,className:e,disabled:t=we.props.disabled.default,animated:s=we.props.animated.default,multiple:n=we.props.multiple.default,testId:a=we.props.testId.default,name:o,options:u,value:c,placeholder:i,onChange:l,onChangeHandler:f,size:h=we.props.size.default,status:_=we.props.status.default,tooltip:p,tooltipPosition:v=we.props.tooltipPosition.default,tooltipPlacement:m=we.props.tooltipPlacement.default,feedback:y,...g},b)=>{const[w,E]=ee.useState(!1),T=L=>{E(!1),l&&l(L,L.target.value),f&&f(L,L.target.value)},D=()=>{const L=[we.class,"select-placeholder"];return L.push(`${we.class}--${h}`),_&&L.push(`${we.class}--${_}`),w&&L.push(`${we.class}--active`),t&&L.push(`${we.class}--disabled`),e&&L.push(e),L.join(" ")},R=ee.useMemo(()=>{const L=[`${we.class}__label`];return!s&&L.push(`${we.class}__label--not-animated`),c&&L.push(`${we.class}__label--has-value`),s&&!c&&!p&&L.push(`${we.class}__label--hidden`),L.join(" ")},[c]);return B.jsxs("div",{className:D(),"data-testid":"ds-select-component",children:[B.jsxs("label",{className:R,"data-testid":"ds-label-id",htmlFor:o,children:[r,p&&B.jsx(Cr,{className:`${we.class}__tooltip`,placement:m,position:v,text:p,children:B.jsx(Ie,{className:`${we.class}__icon`,image:"info"})})]}),B.jsxs("select",{"data-testid":a,disabled:t,id:o,multiple:n,name:o,onChange:L=>T(L),value:c||"",...g,onBlur:()=>E(!1),onFocus:()=>E(!0),ref:b,required:!0,children:[(i||s)&&B.jsx("option",{disabled:!0,value:"",children:i??r}),u==null?void 0:u.map((L,I)=>{var A;return"options"in L?B.jsx("optgroup",{label:L.label,children:(A=L.options)==null?void 0:A.map((M,F)=>B.jsx("option",{className:`${we.class}__option-select`,value:M.value,children:M.label||M.value},F))},I):B.jsx("option",{className:`${we.class}__option-select`,value:L.value,children:L.label||L.value},I)})]}),y&&B.jsxs("div",{className:"ds-select__feedback-container",children:[B.jsx(Ie,{className:"ds-select__icon",image:_==="success"?"check_circle":"info"}),B.jsx("span",{className:"ds-select__feedback",children:y})]})]})});ao.propTypes={label:C.string.isRequired,className:C.string,disabled:C.bool,animated:C.bool,multiple:C.bool,name:C.string,testId:C.string,options:C.array.isRequired,placeholder:C.string,onChange:C.func,onChangeHandler:C.func,value:C.oneOfType([C.string,C.number]),size:C.oneOf(we.props.size.options),status:C.oneOf(we.props.status.options),tooltip:C.string,tooltipPosition:C.string,tooltipPlacement:C.string,feedback:C.string},ao.displayName="DsSelect";const oo={Small:"small",Medium:"medium",Large:"large"},mc={Text:"text"},io={None:"",Error:"error",Success:"success"},uo={None:"none",Both:"both",Horizontal:"horizontal",Vertical:"vertical",Block:"block",Inline:"inline"},Te={class:"ds-textarea",props:{testId:{default:"ds-textarea-test"},type:{options:Object.values(mc)},animated:{default:!0},disabled:{default:!1},size:{default:oo.Medium,options:Object.values(oo)},rows:{default:1},status:{default:io.None,options:Object.values(io)},resize:{default:uo.None,options:Object.values(uo)}}},lo=ee.forwardRef(({name:r,testId:e=Te.props.testId.default,animated:t=Te.props.animated.default,size:s=Te.props.size.default,label:n,placeholder:a,value:o,minLength:u,maxLength:c,tooltip:i,icon:l,status:f=Te.props.status.default,feedback:h,disabled:_=Te.props.disabled.default,required:p,className:v,resize:m=Te.props.resize.default,onChangeHandler:y,onBlurHandler:g,onKeyDownHandler:b,onFocusHandler:w,rows:E=Te.props.rows.default,cols:T,description:D,style:R},L)=>{const[I,A]=ee.useState(!1),[M,F]=ee.useState(0),[V,G]=ee.useState(Math.random());ee.useEffect(()=>{o==null&&G(Math.random())},[o]);const X=$=>{F($.target.value.length),y&&y($)},re=$=>{b&&b($)},te=$=>{A(!1),g&&g($)},oe=$=>{A(!0),w&&w($)},P=()=>{const $=[`${Te.class}`];return s&&$.push(`${Te.class}--${s}`),t&&$.push(`${Te.class}--animated`),i&&$.push(`${Te.class}--with-icon`),f&&$.push(`${Te.class}--${f}`),v&&$.push(v),$.join(" ")},k=ee.useMemo(()=>{const $=[`${Te.class}__label`];return(I||o)&&$.push(`${Te.class}__label--active`),$.join(" ")},[o,I]),x=()=>!t&&a?a:"",S=()=>f&&f==="error"?"info":"check_circle",d={resize:m,...R||{}};return B.jsxs("div",{className:P(),children:[D&&B.jsx("span",{className:"ds-textarea__description",children:D}),h&&B.jsxs("div",{className:"ds-textarea__feedback",children:[B.jsx(Ie,{image:S()}),h]}),B.jsx("textarea",{className:"ds-textarea__textarea",cols:T,"data-testid":e,defaultValue:o||"",disabled:_,id:r,maxLength:c,minLength:u,name:r,onBlur:te,onChange:X,onFocus:oe,onKeyDown:re,placeholder:x(),ref:L,required:p,rows:E,style:d}),B.jsx("label",{className:k,htmlFor:r,children:n}),c&&B.jsxs("span",{className:"ds-textarea__count",children:[M,"/",c]}),i&&B.jsx(Cr,{className:"ds-textarea__tooltip",placement:"end",text:i,children:B.jsx(Ie,{className:"ds-textarea__icon",image:l})})]},V)});lo.propTypes={name:C.string,testId:C.string,type:C.oneOf(Te.props.type.options),animated:C.bool,size:C.oneOf(Te.props.size.options),label:C.string,placeholder:C.string,value:C.oneOfType([C.string]),tooltip:C.string,icon:C.string,status:C.oneOf(Te.props.status.options),feedback:C.string,minLength:C.number,maxLength:C.number,rows:C.number,cols:C.number,disabled:C.bool,required:C.bool,onChangeHandler:C.func,onBlur:C.func,onKeyDown:C.func,onFocus:C.func,resize:C.oneOf(Te.props.resize.options).isRequired,description:C.string,style:C.object},lo.displayName="DsTextArea",C.node,C.bool,C.string,C.object,C.string;const gc={Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},co={Start:"start",End:"end",Center:"center",Stretch:"stretch",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},Ys={props:{gap:{options:Object.values(gc)},horizontalAlign:{options:Object.values(co)},verticalAlign:{options:Object.values(co)}}};C.oneOfType([C.arrayOf(C.node),C.node,C.func]),C.string,C.oneOf(Ys.props.gap.options),C.bool,C.bool,C.string,C.string,C.oneOf(Ys.props.horizontalAlign.options),C.oneOf(Ys.props.verticalAlign.options),C.bool,C.oneOfType([C.element,C.string]),C.oneOfType([C.element,C.string]),C.bool,C.array,C.number,C.string;const yc=[1,2,3,4],vc={Squared:"squared",Rounded:"rounded"},ho={props:{elevation:{options:yc},variant:{options:Object.values(vc)}}};C.string,C.string,C.string,C.oneOf(ho.props.variant.options),C.oneOf(ho.props.elevation.options),C.bool,C.node,C.node,C.func,C.array,C.string,C.string,C.string,C.node.isRequired,C.string;const _c={TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right"},bc={props:{position:{options:Object.values(_c)}}};C.oneOf(bc.props.position.options),C.bool,C.array,C.func,C.node,C.node,C.node,C.node;const kc=({categories:r=[],onClick:e,title:t="Categorias"})=>{const s=o=>{e(o)},[n,a]=ee.useState(null);return B.jsxs("div",{className:"category-cards","data-testid":"category-cards",children:[B.jsx(nt,{vertical:"xxs"}),B.jsx(At,{type:"heading-5",className:"color__neutral--90",children:t}),B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"category-cards__grid",children:B.jsx(mt,{gap:"xxxs",children:r.map(o=>B.jsx($e,{flex:"0 0 32%",children:B.jsx("div",{className:`category-cards__card ${n===o.id?"category-cards__card--hovered":""}`,"data-testid":`category-card-${o.id}`,onClick:()=>s(o.id),onMouseEnter:()=>a(o.id),onMouseLeave:()=>a(null),role:"button",tabIndex:0,children:B.jsxs(Er,{className:"category-card",testId:`category-card-item-${o.id}`,elevation:n===o.id?0:2,backgroundColor:n===o.id?"secondary-lightest":"neutral-00",children:[B.jsx(nt,{vertical:"nano"}),B.jsxs(mt,{alignItems:"center",flexDirection:"column",gap:"nano",children:[B.jsx($e,{children:B.jsx(Ie,{color:"secondary-dark","data-testid":`category-card-icon-${o.id}`,image:o.attributes.icon,size:"xxxl"})}),B.jsx($e,{children:B.jsx(At,{className:"color__neutral--80","data-testid":`category-card-title-${o.id}`,type:"heading-6",children:o.attributes.name})})]}),B.jsx(nt,{vertical:"nano"})]})})},o.id))})})]})};/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:fo,setPrototypeOf:po,isFrozen:wc,getPrototypeOf:Ec,getOwnPropertyDescriptor:$c}=Object;let{freeze:He,seal:it,create:mo}=Object,{apply:Js,construct:Zs}=typeof Reflect<"u"&&Reflect;He||(He=function(e){return e}),it||(it=function(e){return e}),Js||(Js=function(e,t,s){return e.apply(t,s)}),Zs||(Zs=function(e,t){return new e(...t)});const os=qe(Array.prototype.forEach),Sc=qe(Array.prototype.lastIndexOf),go=qe(Array.prototype.pop),Ar=qe(Array.prototype.push),Cc=qe(Array.prototype.splice),is=qe(String.prototype.toLowerCase),Qs=qe(String.prototype.toString),yo=qe(String.prototype.match),Tr=qe(String.prototype.replace),xc=qe(String.prototype.indexOf),Ac=qe(String.prototype.trim),gt=qe(Object.prototype.hasOwnProperty),Ue=qe(RegExp.prototype.test),Pr=Tc(TypeError);function qe(r){return function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return Js(r,e,s)}}function Tc(r){return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return Zs(r,t)}}function he(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:is;po&&po(r,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const a=t(n);a!==n&&(wc(e)||(e[s]=a),n=a)}r[n]=!0}return r}function Pc(r){for(let e=0;e<r.length;e++)gt(r,e)||(r[e]=null);return r}function Jt(r){const e=mo(null);for(const[t,s]of fo(r))gt(r,t)&&(Array.isArray(s)?e[t]=Pc(s):s&&typeof s=="object"&&s.constructor===Object?e[t]=Jt(s):e[t]=s);return e}function Nr(r,e){for(;r!==null;){const s=$c(r,e);if(s){if(s.get)return qe(s.get);if(typeof s.value=="function")return qe(s.value)}r=Ec(r)}function t(){return null}return t}const vo=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),en=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tn=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Nc=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rn=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Oc=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_o=He(["#text"]),bo=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),sn=He(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ko=He(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),us=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ic=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dc=it(/<%[\w\W]*|[\w\W]*%>/gm),Mc=it(/\$\{[\w\W]*/gm),Fc=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rc=it(/^aria-[\-\w]+$/),wo=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bc=it(/^(?:\w+script|data):/i),Lc=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Eo=it(/^html$/i),jc=it(/^[a-z][.\w]*(-[.\w]+)+$/i);var $o=Object.freeze({__proto__:null,ARIA_ATTR:Rc,ATTR_WHITESPACE:Lc,CUSTOM_ELEMENT:jc,DATA_ATTR:Fc,DOCTYPE_NAME:Eo,ERB_EXPR:Dc,IS_ALLOWED_URI:wo,IS_SCRIPT_OR_DATA:Bc,MUSTACHE_EXPR:Ic,TMPLIT_EXPR:Mc});const Or={element:1,text:3,progressingInstruction:7,comment:8,document:9},zc=function(){return typeof window>"u"?null:window},Vc=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(s=t.getAttribute(n));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},So=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Co(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zc();const e=Q=>Co(Q);if(e.version="3.2.4",e.removed=[],!r||!r.document||r.document.nodeType!==Or.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const s=t,n=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:u,Element:c,NodeFilter:i,NamedNodeMap:l=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:_}=r,p=c.prototype,v=Nr(p,"cloneNode"),m=Nr(p,"remove"),y=Nr(p,"nextSibling"),g=Nr(p,"childNodes"),b=Nr(p,"parentNode");if(typeof o=="function"){const Q=t.createElement("template");Q.content&&Q.content.ownerDocument&&(t=Q.content.ownerDocument)}let w,E="";const{implementation:T,createNodeIterator:D,createDocumentFragment:R,getElementsByTagName:L}=t,{importNode:I}=s;let A=So();e.isSupported=typeof fo=="function"&&typeof b=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:F,TMPLIT_EXPR:V,DATA_ATTR:G,ARIA_ATTR:X,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:oe}=$o;let{IS_ALLOWED_URI:P}=$o,k=null;const x=he({},[...vo,...en,...tn,...rn,..._o]);let S=null;const d=he({},[...bo,...sn,...ko,...us]);let $=Object.seal(mo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),N=null,z=null,j=!0,H=!0,K=!1,ne=!0,q=!1,ye=!0,me=!1,Ge=!1,at=!1,We=!1,et=!1,lt=!1,ct=!0,Ne=!1;const Oe="user-content-";let je=!0,tt=!1,ot={},xe=null;const dt=he({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let or=null;const qt=he({},["audio","video","img","source","image","track"]);let Kt=null;const Dt=he({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ct="http://www.w3.org/1998/Math/MathML",_r="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let Mt=ht,Gr=!1,Wr=null;const Os=he({},[Ct,_r,ht],Qs);let br=he({},["mi","mo","mn","ms","mtext"]),ir=he({},["annotation-xml"]);const ha=he({},["title","style","font","a","script"]);let Gt=null;const fa=["application/xhtml+xml","text/html"],pa="text/html";let Se=null,Ft=null;const ma=t.createElement("form"),Is=function(O){return O instanceof RegExp||O instanceof Function},kr=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ft&&Ft===O)){if((!O||typeof O!="object")&&(O={}),O=Jt(O),Gt=fa.indexOf(O.PARSER_MEDIA_TYPE)===-1?pa:O.PARSER_MEDIA_TYPE,Se=Gt==="application/xhtml+xml"?Qs:is,k=gt(O,"ALLOWED_TAGS")?he({},O.ALLOWED_TAGS,Se):x,S=gt(O,"ALLOWED_ATTR")?he({},O.ALLOWED_ATTR,Se):d,Wr=gt(O,"ALLOWED_NAMESPACES")?he({},O.ALLOWED_NAMESPACES,Qs):Os,Kt=gt(O,"ADD_URI_SAFE_ATTR")?he(Jt(Dt),O.ADD_URI_SAFE_ATTR,Se):Dt,or=gt(O,"ADD_DATA_URI_TAGS")?he(Jt(qt),O.ADD_DATA_URI_TAGS,Se):qt,xe=gt(O,"FORBID_CONTENTS")?he({},O.FORBID_CONTENTS,Se):dt,N=gt(O,"FORBID_TAGS")?he({},O.FORBID_TAGS,Se):{},z=gt(O,"FORBID_ATTR")?he({},O.FORBID_ATTR,Se):{},ot=gt(O,"USE_PROFILES")?O.USE_PROFILES:!1,j=O.ALLOW_ARIA_ATTR!==!1,H=O.ALLOW_DATA_ATTR!==!1,K=O.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,q=O.SAFE_FOR_TEMPLATES||!1,ye=O.SAFE_FOR_XML!==!1,me=O.WHOLE_DOCUMENT||!1,We=O.RETURN_DOM||!1,et=O.RETURN_DOM_FRAGMENT||!1,lt=O.RETURN_TRUSTED_TYPE||!1,at=O.FORCE_BODY||!1,ct=O.SANITIZE_DOM!==!1,Ne=O.SANITIZE_NAMED_PROPS||!1,je=O.KEEP_CONTENT!==!1,tt=O.IN_PLACE||!1,P=O.ALLOWED_URI_REGEXP||wo,Mt=O.NAMESPACE||ht,br=O.MATHML_TEXT_INTEGRATION_POINTS||br,ir=O.HTML_INTEGRATION_POINTS||ir,$=O.CUSTOM_ELEMENT_HANDLING||{},O.CUSTOM_ELEMENT_HANDLING&&Is(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&Is(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(H=!1),et&&(We=!0),ot&&(k=he({},_o),S=[],ot.html===!0&&(he(k,vo),he(S,bo)),ot.svg===!0&&(he(k,en),he(S,sn),he(S,us)),ot.svgFilters===!0&&(he(k,tn),he(S,sn),he(S,us)),ot.mathMl===!0&&(he(k,rn),he(S,ko),he(S,us))),O.ADD_TAGS&&(k===x&&(k=Jt(k)),he(k,O.ADD_TAGS,Se)),O.ADD_ATTR&&(S===d&&(S=Jt(S)),he(S,O.ADD_ATTR,Se)),O.ADD_URI_SAFE_ATTR&&he(Kt,O.ADD_URI_SAFE_ATTR,Se),O.FORBID_CONTENTS&&(xe===dt&&(xe=Jt(xe)),he(xe,O.FORBID_CONTENTS,Se)),je&&(k["#text"]=!0),me&&he(k,["html","head","body"]),k.table&&(he(k,["tbody"]),delete N.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=O.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else w===void 0&&(w=Vc(_,n)),w!==null&&typeof E=="string"&&(E=w.createHTML(""));He&&He(O),Ft=O}},Ds=he({},[...en,...tn,...Nc]),Xr=he({},[...rn,...Oc]),Xe=function(O){let U=b(O);(!U||!U.tagName)&&(U={namespaceURI:Mt,tagName:"template"});const Y=is(O.tagName),ke=is(U.tagName);return Wr[O.namespaceURI]?O.namespaceURI===_r?U.namespaceURI===ht?Y==="svg":U.namespaceURI===Ct?Y==="svg"&&(ke==="annotation-xml"||br[ke]):!!Ds[Y]:O.namespaceURI===Ct?U.namespaceURI===ht?Y==="math":U.namespaceURI===_r?Y==="math"&&ir[ke]:!!Xr[Y]:O.namespaceURI===ht?U.namespaceURI===_r&&!ir[ke]||U.namespaceURI===Ct&&!br[ke]?!1:!Xr[Y]&&(ha[Y]||!Ds[Y]):!!(Gt==="application/xhtml+xml"&&Wr[O.namespaceURI]):!1},Ae=function(O){Ar(e.removed,{element:O});try{b(O).removeChild(O)}catch{m(O)}},ur=function(O,U){try{Ar(e.removed,{attribute:U.getAttributeNode(O),from:U})}catch{Ar(e.removed,{attribute:null,from:U})}if(U.removeAttribute(O),O==="is")if(We||et)try{Ae(U)}catch{}else try{U.setAttribute(O,"")}catch{}},Ms=function(O){let U=null,Y=null;if(at)O="<remove></remove>"+O;else{const Fe=yo(O,/^[\r\n\t ]+/);Y=Fe&&Fe[0]}Gt==="application/xhtml+xml"&&Mt===ht&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const ke=w?w.createHTML(O):O;if(Mt===ht)try{U=new h().parseFromString(ke,Gt)}catch{}if(!U||!U.documentElement){U=T.createDocument(Mt,"template",null);try{U.documentElement.innerHTML=Gr?E:ke}catch{}}const ze=U.body||U.documentElement;return O&&Y&&ze.insertBefore(t.createTextNode(Y),ze.childNodes[0]||null),Mt===ht?L.call(U,me?"html":"body")[0]:me?U.documentElement:ze},vl=function(O){return D.call(O.ownerDocument||O,O,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT|i.SHOW_PROCESSING_INSTRUCTION|i.SHOW_CDATA_SECTION,null)},ga=function(O){return O instanceof f&&(typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||!(O.attributes instanceof l)||typeof O.removeAttribute!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function")},_l=function(O){return typeof u=="function"&&O instanceof u};function Rt(Q,O,U){os(Q,Y=>{Y.call(e,O,U,Ft)})}const bl=function(O){let U=null;if(Rt(A.beforeSanitizeElements,O,null),ga(O))return Ae(O),!0;const Y=Se(O.nodeName);if(Rt(A.uponSanitizeElement,O,{tagName:Y,allowedTags:k}),O.hasChildNodes()&&!_l(O.firstElementChild)&&Ue(/<[/\w]/g,O.innerHTML)&&Ue(/<[/\w]/g,O.textContent)||O.nodeType===Or.progressingInstruction||ye&&O.nodeType===Or.comment&&Ue(/<[/\w]/g,O.data))return Ae(O),!0;if(!k[Y]||N[Y]){if(!N[Y]&&wl(Y)&&($.tagNameCheck instanceof RegExp&&Ue($.tagNameCheck,Y)||$.tagNameCheck instanceof Function&&$.tagNameCheck(Y)))return!1;if(je&&!xe[Y]){const ke=b(O)||O.parentNode,ze=g(O)||O.childNodes;if(ze&&ke){const Fe=ze.length;for(let rt=Fe-1;rt>=0;--rt){const xt=v(ze[rt],!0);xt.__removalCount=(O.__removalCount||0)+1,ke.insertBefore(xt,y(O))}}}return Ae(O),!0}return O instanceof c&&!Xe(O)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&Ue(/<\/no(script|embed|frames)/i,O.innerHTML)?(Ae(O),!0):(q&&O.nodeType===Or.text&&(U=O.textContent,os([M,F,V],ke=>{U=Tr(U,ke," ")}),O.textContent!==U&&(Ar(e.removed,{element:O.cloneNode()}),O.textContent=U)),Rt(A.afterSanitizeElements,O,null),!1)},kl=function(O,U,Y){if(ct&&(U==="id"||U==="name")&&(Y in t||Y in ma))return!1;if(!(H&&!z[U]&&Ue(G,U))){if(!(j&&Ue(X,U))){if(!S[U]||z[U]){if(!(wl(O)&&($.tagNameCheck instanceof RegExp&&Ue($.tagNameCheck,O)||$.tagNameCheck instanceof Function&&$.tagNameCheck(O))&&($.attributeNameCheck instanceof RegExp&&Ue($.attributeNameCheck,U)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(U))||U==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Ue($.tagNameCheck,Y)||$.tagNameCheck instanceof Function&&$.tagNameCheck(Y))))return!1}else if(!Kt[U]){if(!Ue(P,Tr(Y,te,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&O!=="script"&&xc(Y,"data:")===0&&or[O])){if(!(K&&!Ue(re,Tr(Y,te,"")))){if(Y)return!1}}}}}}return!0},wl=function(O){return O!=="annotation-xml"&&yo(O,oe)},El=function(O){Rt(A.beforeSanitizeAttributes,O,null);const{attributes:U}=O;if(!U||ga(O))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S,forceKeepAttr:void 0};let ke=U.length;for(;ke--;){const ze=U[ke],{name:Fe,namespaceURI:rt,value:xt}=ze,Yr=Se(Fe);let Ye=Fe==="value"?xt:Ac(xt);if(Y.attrName=Yr,Y.attrValue=Ye,Y.keepAttr=!0,Y.forceKeepAttr=void 0,Rt(A.uponSanitizeAttribute,O,Y),Ye=Y.attrValue,Ne&&(Yr==="id"||Yr==="name")&&(ur(Fe,O),Ye=Oe+Ye),ye&&Ue(/((--!?|])>)|<\/(style|title)/i,Ye)){ur(Fe,O);continue}if(Y.forceKeepAttr||(ur(Fe,O),!Y.keepAttr))continue;if(!ne&&Ue(/\/>/i,Ye)){ur(Fe,O);continue}q&&os([M,F,V],Sl=>{Ye=Tr(Ye,Sl," ")});const $l=Se(O.nodeName);if(kl($l,Yr,Ye)){if(w&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!rt)switch(_.getAttributeType($l,Yr)){case"TrustedHTML":{Ye=w.createHTML(Ye);break}case"TrustedScriptURL":{Ye=w.createScriptURL(Ye);break}}try{rt?O.setAttributeNS(rt,Fe,Ye):O.setAttribute(Fe,Ye),ga(O)?Ae(O):go(e.removed)}catch{}}}Rt(A.afterSanitizeAttributes,O,null)},g1=function Q(O){let U=null;const Y=vl(O);for(Rt(A.beforeSanitizeShadowDOM,O,null);U=Y.nextNode();)Rt(A.uponSanitizeShadowNode,U,null),bl(U),El(U),U.content instanceof a&&Q(U.content);Rt(A.afterSanitizeShadowDOM,O,null)};return e.sanitize=function(Q){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,Y=null,ke=null,ze=null;if(Gr=!Q,Gr&&(Q="<!-->"),typeof Q!="string"&&!_l(Q))if(typeof Q.toString=="function"){if(Q=Q.toString(),typeof Q!="string")throw Pr("dirty is not a string, aborting")}else throw Pr("toString is not a function");if(!e.isSupported)return Q;if(Ge||kr(O),e.removed=[],typeof Q=="string"&&(tt=!1),tt){if(Q.nodeName){const xt=Se(Q.nodeName);if(!k[xt]||N[xt])throw Pr("root node is forbidden and cannot be sanitized in-place")}}else if(Q instanceof u)U=Ms("<!---->"),Y=U.ownerDocument.importNode(Q,!0),Y.nodeType===Or.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?U=Y:U.appendChild(Y);else{if(!We&&!q&&!me&&Q.indexOf("<")===-1)return w&&lt?w.createHTML(Q):Q;if(U=Ms(Q),!U)return We?null:lt?E:""}U&&at&&Ae(U.firstChild);const Fe=vl(tt?Q:U);for(;ke=Fe.nextNode();)bl(ke),El(ke),ke.content instanceof a&&g1(ke.content);if(tt)return Q;if(We){if(et)for(ze=R.call(U.ownerDocument);U.firstChild;)ze.appendChild(U.firstChild);else ze=U;return(S.shadowroot||S.shadowrootmode)&&(ze=I.call(s,ze,!0)),ze}let rt=me?U.outerHTML:U.innerHTML;return me&&k["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&Ue(Eo,U.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
21
+ `+rt),q&&os([M,F,V],xt=>{rt=Tr(rt,xt," ")}),w&&lt?w.createHTML(rt):rt},e.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kr(Q),Ge=!0},e.clearConfig=function(){Ft=null,Ge=!1},e.isValidAttribute=function(Q,O,U){Ft||kr({});const Y=Se(Q),ke=Se(O);return kl(Y,ke,U)},e.addHook=function(Q,O){typeof O=="function"&&Ar(A[Q],O)},e.removeHook=function(Q,O){if(O!==void 0){const U=Sc(A[Q],O);return U===-1?void 0:Cc(A[Q],U,1)[0]}return go(A[Q])},e.removeHooks=function(Q){A[Q]=[]},e.removeAllHooks=function(){A=So()},e}var nn=Co(),ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hc(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return r[s]}})}),t}var an={exports:{}},xo={},yt={},lr={},Ir={},le={},Dr={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class e{}r._CodeOrName=e,r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(g){if(super(),!r.IDENTIFIER.test(g))throw new Error("CodeGen: name must be a valid identifier");this.str=g}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=t;class s extends e{constructor(g){super(),this._items=typeof g=="string"?[g]:g}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const g=this._items[0];return g===""||g==='""'}get str(){var g;return(g=this._str)!==null&&g!==void 0?g:this._str=this._items.reduce((b,w)=>`${b}${w}`,"")}get names(){var g;return(g=this._names)!==null&&g!==void 0?g:this._names=this._items.reduce((b,w)=>(w instanceof t&&(b[w.str]=(b[w.str]||0)+1),b),{})}}r._Code=s,r.nil=new s("");function n(y,...g){const b=[y[0]];let w=0;for(;w<g.length;)u(b,g[w]),b.push(y[++w]);return new s(b)}r._=n;const a=new s("+");function o(y,...g){const b=[_(y[0])];let w=0;for(;w<g.length;)b.push(a),u(b,g[w]),b.push(a,_(y[++w]));return c(b),new s(b)}r.str=o;function u(y,g){g instanceof s?y.push(...g._items):g instanceof t?y.push(g):y.push(f(g))}r.addCodeArg=u;function c(y){let g=1;for(;g<y.length-1;){if(y[g]===a){const b=i(y[g-1],y[g+1]);if(b!==void 0){y.splice(g-1,3,b);continue}y[g++]="+"}g++}}function i(y,g){if(g==='""')return y;if(y==='""')return g;if(typeof y=="string")return g instanceof t||y[y.length-1]!=='"'?void 0:typeof g!="string"?`${y.slice(0,-1)}${g}"`:g[0]==='"'?y.slice(0,-1)+g.slice(1):void 0;if(typeof g=="string"&&g[0]==='"'&&!(y instanceof t))return`"${y}${g.slice(1)}`}function l(y,g){return g.emptyStr()?y:y.emptyStr()?g:o`${y}${g}`}r.strConcat=l;function f(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:_(Array.isArray(y)?y.join(","):y)}function h(y){return new s(_(y))}r.stringify=h;function _(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=_;function p(y){return typeof y=="string"&&r.IDENTIFIER.test(y)?new s(`.${y}`):n`[${y}]`}r.getProperty=p;function v(y){if(typeof y=="string"&&r.IDENTIFIER.test(y))return new s(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}r.getEsmExportName=v;function m(y){return new s(y.toString())}r.regexpCode=m})(Dr);var on={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const e=Dr;class t extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}}var s;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(s||(r.UsedValueState=s={})),r.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class n{constructor({prefixes:i,parent:l}={}){this._names={},this._prefixes=i,this._parent=l}toName(i){return i instanceof e.Name?i:this.name(i)}name(i){return new e.Name(this._newName(i))}_newName(i){const l=this._names[i]||this._nameGroup(i);return`${i}${l.index++}`}_nameGroup(i){var l,f;if(!((f=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||f===void 0)&&f.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}}r.Scope=n;class a extends e.Name{constructor(i,l){super(l),this.prefix=i}setValue(i,{property:l,itemIndex:f}){this.value=i,this.scopePath=(0,e._)`.${new e.Name(l)}[${f}]`}}r.ValueScopeName=a;const o=(0,e._)`\n`;class u extends n{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts={...i,_n:i.lines?o:e.nil}}get(){return this._scope}name(i){return new a(i,this._newName(i))}value(i,l){var f;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(i),{prefix:_}=h,p=(f=l.key)!==null&&f!==void 0?f:l.ref;let v=this._values[_];if(v){const g=v.get(p);if(g)return g}else v=this._values[_]=new Map;v.set(p,h);const m=this._scope[_]||(this._scope[_]=[]),y=m.length;return m[y]=l.ref,h.setValue(l,{property:_,itemIndex:y}),h}getValue(i,l){const f=this._values[i];if(f)return f.get(l)}scopeRefs(i,l=this._values){return this._reduceValues(l,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,e._)`${i}${f.scopePath}`})}scopeCode(i=this._values,l,f){return this._reduceValues(i,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},l,f)}_reduceValues(i,l,f={},h){let _=e.nil;for(const p in i){const v=i[p];if(!v)continue;const m=f[p]=f[p]||new Map;v.forEach(y=>{if(m.has(y))return;m.set(y,s.Started);let g=l(y);if(g){const b=this.opts.es5?r.varKinds.var:r.varKinds.const;_=(0,e._)`${_}${b} ${y} = ${g};${this.opts._n}`}else if(g=h==null?void 0:h(y))_=(0,e._)`${_}${g}${this.opts._n}`;else throw new t(y);m.set(y,s.Completed)})}return _}}r.ValueScope=u})(on),function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const e=Dr,t=on;var s=Dr;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(r,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(r,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(r,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return s.Name}});var n=on;Object.defineProperty(r,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(r,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(r,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(r,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),r.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class a{optimizeNodes(){return this}optimizeNames(d,$){return this}}class o extends a{constructor(d,$,N){super(),this.varKind=d,this.name=$,this.rhs=N}render({es5:d,_n:$}){const N=d?t.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${z};`+$}optimizeNames(d,$){if(d[this.name.str])return this.rhs&&(this.rhs=V(this.rhs,d,$)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(d,$,N){super(),this.lhs=d,this.rhs=$,this.sideEffects=N}render({_n:d}){return`${this.lhs} = ${this.rhs};`+d}optimizeNames(d,$){if(!(this.lhs instanceof e.Name&&!d[this.lhs.str]&&!this.sideEffects))return this.rhs=V(this.rhs,d,$),this}get names(){const d=this.lhs instanceof e.Name?{}:{...this.lhs.names};return F(d,this.rhs)}}class c extends u{constructor(d,$,N,z){super(d,N,z),this.op=$}render({_n:d}){return`${this.lhs} ${this.op}= ${this.rhs};`+d}}class i extends a{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`${this.label}:`+d}}class l extends a{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`break${this.label?` ${this.label}`:""};`+d}}class f extends a{constructor(d){super(),this.error=d}render({_n:d}){return`throw ${this.error};`+d}get names(){return this.error.names}}class h extends a{constructor(d){super(),this.code=d}render({_n:d}){return`${this.code};`+d}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(d,$){return this.code=V(this.code,d,$),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class _ extends a{constructor(d=[]){super(),this.nodes=d}render(d){return this.nodes.reduce(($,N)=>$+N.render(d),"")}optimizeNodes(){const{nodes:d}=this;let $=d.length;for(;$--;){const N=d[$].optimizeNodes();Array.isArray(N)?d.splice($,1,...N):N?d[$]=N:d.splice($,1)}return d.length>0?this:void 0}optimizeNames(d,$){const{nodes:N}=this;let z=N.length;for(;z--;){const j=N[z];j.optimizeNames(d,$)||(G(d,j.names),N.splice(z,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((d,$)=>M(d,$.names),{})}}class p extends _{render(d){return"{"+d._n+super.render(d)+"}"+d._n}}class v extends _{}class m extends p{}m.kind="else";class y extends p{constructor(d,$){super($),this.condition=d}render(d){let $=`if(${this.condition})`+super.render(d);return this.else&&($+="else "+this.else.render(d)),$}optimizeNodes(){super.optimizeNodes();const d=this.condition;if(d===!0)return this.nodes;let $=this.else;if($){const N=$.optimizeNodes();$=this.else=Array.isArray(N)?new m(N):N}if($)return d===!1?$ instanceof y?$:$.nodes:this.nodes.length?this:new y(X(d),$ instanceof y?[$]:$.nodes);if(!(d===!1||!this.nodes.length))return this}optimizeNames(d,$){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(d,$),!!(super.optimizeNames(d,$)||this.else))return this.condition=V(this.condition,d,$),this}get names(){const d=super.names;return F(d,this.condition),this.else&&M(d,this.else.names),d}}y.kind="if";class g extends p{}g.kind="for";class b extends g{constructor(d){super(),this.iteration=d}render(d){return`for(${this.iteration})`+super.render(d)}optimizeNames(d,$){if(super.optimizeNames(d,$))return this.iteration=V(this.iteration,d,$),this}get names(){return M(super.names,this.iteration.names)}}class w extends g{constructor(d,$,N,z){super(),this.varKind=d,this.name=$,this.from=N,this.to=z}render(d){const $=d.es5?t.varKinds.var:this.varKind,{name:N,from:z,to:j}=this;return`for(${$} ${N}=${z}; ${N}<${j}; ${N}++)`+super.render(d)}get names(){const d=F(super.names,this.from);return F(d,this.to)}}class E extends g{constructor(d,$,N,z){super(),this.loop=d,this.varKind=$,this.name=N,this.iterable=z}render(d){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(d)}optimizeNames(d,$){if(super.optimizeNames(d,$))return this.iterable=V(this.iterable,d,$),this}get names(){return M(super.names,this.iterable.names)}}class T extends p{constructor(d,$,N){super(),this.name=d,this.args=$,this.async=N}render(d){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(d)}}T.kind="func";class D extends _{render(d){return"return "+super.render(d)}}D.kind="return";class R extends p{render(d){let $="try"+super.render(d);return this.catch&&($+=this.catch.render(d)),this.finally&&($+=this.finally.render(d)),$}optimizeNodes(){var d,$;return super.optimizeNodes(),(d=this.catch)===null||d===void 0||d.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(d,$){var N,z;return super.optimizeNames(d,$),(N=this.catch)===null||N===void 0||N.optimizeNames(d,$),(z=this.finally)===null||z===void 0||z.optimizeNames(d,$),this}get names(){const d=super.names;return this.catch&&M(d,this.catch.names),this.finally&&M(d,this.finally.names),d}}class L extends p{constructor(d){super(),this.error=d}render(d){return`catch(${this.error})`+super.render(d)}}L.kind="catch";class I extends p{render(d){return"finally"+super.render(d)}}I.kind="finally";class A{constructor(d,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
22
+ `:""},this._extScope=d,this._scope=new t.Scope({parent:d}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(d){return this._scope.name(d)}scopeName(d){return this._extScope.name(d)}scopeValue(d,$){const N=this._extScope.value(d,$);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(d,$){return this._extScope.getValue(d,$)}scopeRefs(d){return this._extScope.scopeRefs(d,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(d,$,N,z){const j=this._scope.toName($);return N!==void 0&&z&&(this._constants[j.str]=N),this._leafNode(new o(d,j,N)),j}const(d,$,N){return this._def(t.varKinds.const,d,$,N)}let(d,$,N){return this._def(t.varKinds.let,d,$,N)}var(d,$,N){return this._def(t.varKinds.var,d,$,N)}assign(d,$,N){return this._leafNode(new u(d,$,N))}add(d,$){return this._leafNode(new c(d,r.operators.ADD,$))}code(d){return typeof d=="function"?d():d!==e.nil&&this._leafNode(new h(d)),this}object(...d){const $=["{"];for(const[N,z]of d)$.length>1&&$.push(","),$.push(N),(N!==z||this.opts.es5)&&($.push(":"),(0,e.addCodeArg)($,z));return $.push("}"),new e._Code($)}if(d,$,N){if(this._blockNode(new y(d)),$&&N)this.code($).else().code(N).endIf();else if($)this.code($).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(d){return this._elseNode(new y(d))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(y,m)}_for(d,$){return this._blockNode(d),$&&this.code($).endFor(),this}for(d,$){return this._for(new b(d),$)}forRange(d,$,N,z,j=this.opts.es5?t.varKinds.var:t.varKinds.let){const H=this._scope.toName(d);return this._for(new w(j,H,$,N),()=>z(H))}forOf(d,$,N,z=t.varKinds.const){const j=this._scope.toName(d);if(this.opts.es5){const H=$ instanceof e.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,e._)`${H}.length`,K=>{this.var(j,(0,e._)`${H}[${K}]`),N(j)})}return this._for(new E("of",z,j,$),()=>N(j))}forIn(d,$,N,z=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(d,(0,e._)`Object.keys(${$})`,N);const j=this._scope.toName(d);return this._for(new E("in",z,j,$),()=>N(j))}endFor(){return this._endBlockNode(g)}label(d){return this._leafNode(new i(d))}break(d){return this._leafNode(new l(d))}return(d){const $=new D;if(this._blockNode($),this.code(d),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(D)}try(d,$,N){if(!$&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new R;if(this._blockNode(z),this.code(d),$){const j=this.name("e");this._currNode=z.catch=new L(j),$(j)}return N&&(this._currNode=z.finally=new I,this.code(N)),this._endBlockNode(L,I)}throw(d){return this._leafNode(new f(d))}block(d,$){return this._blockStarts.push(this._nodes.length),d&&this.code(d).endBlock($),this}endBlock(d){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-$;if(N<0||d!==void 0&&N!==d)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${d} expected`);return this._nodes.length=$,this}func(d,$=e.nil,N,z){return this._blockNode(new T(d,$,N)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(d=1){for(;d-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(d){return this._currNode.nodes.push(d),this}_blockNode(d){this._currNode.nodes.push(d),this._nodes.push(d)}_endBlockNode(d,$){const N=this._currNode;if(N instanceof d||$&&N instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${d.kind}/${$.kind}`:d.kind}"`)}_elseNode(d){const $=this._currNode;if(!($ instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=d,this}get _root(){return this._nodes[0]}get _currNode(){const d=this._nodes;return d[d.length-1]}set _currNode(d){const $=this._nodes;$[$.length-1]=d}}r.CodeGen=A;function M(S,d){for(const $ in d)S[$]=(S[$]||0)+(d[$]||0);return S}function F(S,d){return d instanceof e._CodeOrName?M(S,d.names):S}function V(S,d,$){if(S instanceof e.Name)return N(S);if(!z(S))return S;return new e._Code(S._items.reduce((j,H)=>(H instanceof e.Name&&(H=N(H)),H instanceof e._Code?j.push(...H._items):j.push(H),j),[]));function N(j){const H=$[j.str];return H===void 0||d[j.str]!==1?j:(delete d[j.str],H)}function z(j){return j instanceof e._Code&&j._items.some(H=>H instanceof e.Name&&d[H.str]===1&&$[H.str]!==void 0)}}function G(S,d){for(const $ in d)S[$]=(S[$]||0)-(d[$]||0)}function X(S){return typeof S=="boolean"||typeof S=="number"||S===null?!S:(0,e._)`!${x(S)}`}r.not=X;const re=k(r.operators.AND);function te(...S){return S.reduce(re)}r.and=te;const oe=k(r.operators.OR);function P(...S){return S.reduce(oe)}r.or=P;function k(S){return(d,$)=>d===e.nil?$:$===e.nil?d:(0,e._)`${x(d)} ${S} ${x($)}`}function x(S){return S instanceof e.Name?S:(0,e._)`(${S})`}}(le);var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.checkStrictMode=W.getErrorPath=W.Type=W.useFunc=W.setEvaluated=W.evaluatedPropsToName=W.mergeEvaluated=W.eachItem=W.unescapeJsonPointer=W.escapeJsonPointer=W.escapeFragment=W.unescapeFragment=W.schemaRefOrVal=W.schemaHasRulesButRef=W.schemaHasRules=W.checkUnknownRules=W.alwaysValidSchema=W.toHash=void 0;const ve=le,Uc=Dr;function qc(r){const e={};for(const t of r)e[t]=!0;return e}W.toHash=qc;function Kc(r,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Ao(r,e),!To(e,r.self.RULES.all))}W.alwaysValidSchema=Kc;function Ao(r,e=r.schema){const{opts:t,self:s}=r;if(!t.strictSchema||typeof e=="boolean")return;const n=s.RULES.keywords;for(const a in e)n[a]||Do(r,`unknown keyword: "${a}"`)}W.checkUnknownRules=Ao;function To(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(e[t])return!0;return!1}W.schemaHasRules=To;function Gc(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(t!=="$ref"&&e.all[t])return!0;return!1}W.schemaHasRulesButRef=Gc;function Wc({topSchemaRef:r,schemaPath:e},t,s,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,ve._)`${t}`}return(0,ve._)`${r}${e}${(0,ve.getProperty)(s)}`}W.schemaRefOrVal=Wc;function Xc(r){return Po(decodeURIComponent(r))}W.unescapeFragment=Xc;function Yc(r){return encodeURIComponent(un(r))}W.escapeFragment=Yc;function un(r){return typeof r=="number"?`${r}`:r.replace(/~/g,"~0").replace(/\//g,"~1")}W.escapeJsonPointer=un;function Po(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}W.unescapeJsonPointer=Po;function Jc(r,e){if(Array.isArray(r))for(const t of r)e(t);else e(r)}W.eachItem=Jc;function No({mergeNames:r,mergeToName:e,mergeValues:t,resultToName:s}){return(n,a,o,u)=>{const c=o===void 0?a:o instanceof ve.Name?(a instanceof ve.Name?r(n,a,o):e(n,a,o),o):a instanceof ve.Name?(e(n,o,a),a):t(a,o);return u===ve.Name&&!(c instanceof ve.Name)?s(n,c):c}}W.mergeEvaluated={props:No({mergeNames:(r,e,t)=>r.if((0,ve._)`${t} !== true && ${e} !== undefined`,()=>{r.if((0,ve._)`${e} === true`,()=>r.assign(t,!0),()=>r.assign(t,(0,ve._)`${t} || {}`).code((0,ve._)`Object.assign(${t}, ${e})`))}),mergeToName:(r,e,t)=>r.if((0,ve._)`${t} !== true`,()=>{e===!0?r.assign(t,!0):(r.assign(t,(0,ve._)`${t} || {}`),ln(r,t,e))}),mergeValues:(r,e)=>r===!0?!0:{...r,...e},resultToName:Oo}),items:No({mergeNames:(r,e,t)=>r.if((0,ve._)`${t} !== true && ${e} !== undefined`,()=>r.assign(t,(0,ve._)`${e} === true ? true : ${t} > ${e} ? ${t} : ${e}`)),mergeToName:(r,e,t)=>r.if((0,ve._)`${t} !== true`,()=>r.assign(t,e===!0?!0:(0,ve._)`${t} > ${e} ? ${t} : ${e}`)),mergeValues:(r,e)=>r===!0?!0:Math.max(r,e),resultToName:(r,e)=>r.var("items",e)})};function Oo(r,e){if(e===!0)return r.var("props",!0);const t=r.var("props",(0,ve._)`{}`);return e!==void 0&&ln(r,t,e),t}W.evaluatedPropsToName=Oo;function ln(r,e,t){Object.keys(t).forEach(s=>r.assign((0,ve._)`${e}${(0,ve.getProperty)(s)}`,!0))}W.setEvaluated=ln;const Io={};function Zc(r,e){return r.scopeValue("func",{ref:e,code:Io[e.code]||(Io[e.code]=new Uc._Code(e.code))})}W.useFunc=Zc;var cn;(function(r){r[r.Num=0]="Num",r[r.Str=1]="Str"})(cn||(W.Type=cn={}));function Qc(r,e,t){if(r instanceof ve.Name){const s=e===cn.Num;return t?s?(0,ve._)`"[" + ${r} + "]"`:(0,ve._)`"['" + ${r} + "']"`:s?(0,ve._)`"/" + ${r}`:(0,ve._)`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,ve.getProperty)(r).toString():"/"+un(r)}W.getErrorPath=Qc;function Do(r,e,t=r.opts.strictSchema){if(t){if(e=`strict mode: ${e}`,t===!0)throw new Error(e);r.self.logger.warn(e)}}W.checkStrictMode=Do;var wt={};Object.defineProperty(wt,"__esModule",{value:!0});const Le=le,ed={data:new Le.Name("data"),valCxt:new Le.Name("valCxt"),instancePath:new Le.Name("instancePath"),parentData:new Le.Name("parentData"),parentDataProperty:new Le.Name("parentDataProperty"),rootData:new Le.Name("rootData"),dynamicAnchors:new Le.Name("dynamicAnchors"),vErrors:new Le.Name("vErrors"),errors:new Le.Name("errors"),this:new Le.Name("this"),self:new Le.Name("self"),scope:new Le.Name("scope"),json:new Le.Name("json"),jsonPos:new Le.Name("jsonPos"),jsonLen:new Le.Name("jsonLen"),jsonPart:new Le.Name("jsonPart")};wt.default=ed,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const e=le,t=W,s=wt;r.keywordError={message:({keyword:m})=>(0,e.str)`must pass "${m}" keyword validation`},r.keyword$DataError={message:({keyword:m,schemaType:y})=>y?(0,e.str)`"${m}" keyword must be ${y} ($data)`:(0,e.str)`"${m}" keyword is invalid ($data)`};function n(m,y=r.keywordError,g,b){const{it:w}=m,{gen:E,compositeRule:T,allErrors:D}=w,R=f(m,y,g);b??(T||D)?c(E,R):i(w,(0,e._)`[${R}]`)}r.reportError=n;function a(m,y=r.keywordError,g){const{it:b}=m,{gen:w,compositeRule:E,allErrors:T}=b,D=f(m,y,g);c(w,D),E||T||i(b,s.default.vErrors)}r.reportExtraError=a;function o(m,y){m.assign(s.default.errors,y),m.if((0,e._)`${s.default.vErrors} !== null`,()=>m.if(y,()=>m.assign((0,e._)`${s.default.vErrors}.length`,y),()=>m.assign(s.default.vErrors,null)))}r.resetErrorsCount=o;function u({gen:m,keyword:y,schemaValue:g,data:b,errsCount:w,it:E}){if(w===void 0)throw new Error("ajv implementation error");const T=m.name("err");m.forRange("i",w,s.default.errors,D=>{m.const(T,(0,e._)`${s.default.vErrors}[${D}]`),m.if((0,e._)`${T}.instancePath === undefined`,()=>m.assign((0,e._)`${T}.instancePath`,(0,e.strConcat)(s.default.instancePath,E.errorPath))),m.assign((0,e._)`${T}.schemaPath`,(0,e.str)`${E.errSchemaPath}/${y}`),E.opts.verbose&&(m.assign((0,e._)`${T}.schema`,g),m.assign((0,e._)`${T}.data`,b))})}r.extendErrors=u;function c(m,y){const g=m.const("err",y);m.if((0,e._)`${s.default.vErrors} === null`,()=>m.assign(s.default.vErrors,(0,e._)`[${g}]`),(0,e._)`${s.default.vErrors}.push(${g})`),m.code((0,e._)`${s.default.errors}++`)}function i(m,y){const{gen:g,validateName:b,schemaEnv:w}=m;w.$async?g.throw((0,e._)`new ${m.ValidationError}(${y})`):(g.assign((0,e._)`${b}.errors`,y),g.return(!1))}const l={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function f(m,y,g){const{createErrors:b}=m.it;return b===!1?(0,e._)`{}`:h(m,y,g)}function h(m,y,g={}){const{gen:b,it:w}=m,E=[_(w,g),p(m,g)];return v(m,y,E),b.object(...E)}function _({errorPath:m},{instancePath:y}){const g=y?(0,e.str)`${m}${(0,t.getErrorPath)(y,t.Type.Str)}`:m;return[s.default.instancePath,(0,e.strConcat)(s.default.instancePath,g)]}function p({keyword:m,it:{errSchemaPath:y}},{schemaPath:g,parentSchema:b}){let w=b?y:(0,e.str)`${y}/${m}`;return g&&(w=(0,e.str)`${w}${(0,t.getErrorPath)(g,t.Type.Str)}`),[l.schemaPath,w]}function v(m,{params:y,message:g},b){const{keyword:w,data:E,schemaValue:T,it:D}=m,{opts:R,propertyName:L,topSchemaRef:I,schemaPath:A}=D;b.push([l.keyword,w],[l.params,typeof y=="function"?y(m):y||(0,e._)`{}`]),R.messages&&b.push([l.message,typeof g=="function"?g(m):g]),R.verbose&&b.push([l.schema,T],[l.parentSchema,(0,e._)`${I}${A}`],[s.default.data,E]),L&&b.push([l.propertyName,L])}}(Ir),Object.defineProperty(lr,"__esModule",{value:!0}),lr.boolOrEmptySchema=lr.topBoolOrEmptySchema=void 0;const td=Ir,rd=le,sd=wt,nd={message:"boolean schema is false"};function ad(r){const{gen:e,schema:t,validateName:s}=r;t===!1?Mo(r,!1):typeof t=="object"&&t.$async===!0?e.return(sd.default.data):(e.assign((0,rd._)`${s}.errors`,null),e.return(!0))}lr.topBoolOrEmptySchema=ad;function od(r,e){const{gen:t,schema:s}=r;s===!1?(t.var(e,!1),Mo(r)):t.var(e,!0)}lr.boolOrEmptySchema=od;function Mo(r,e){const{gen:t,data:s}=r,n={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,td.reportError)(n,nd,void 0,e)}var Ce={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.getRules=Zt.isJSONType=void 0;const id=["string","number","integer","boolean","null","object","array"],ud=new Set(id);function ld(r){return typeof r=="string"&&ud.has(r)}Zt.isJSONType=ld;function cd(){const r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...r,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}Zt.getRules=cd;var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.shouldUseRule=Nt.shouldUseGroup=Nt.schemaHasRulesForType=void 0;function dd({schema:r,self:e},t){const s=e.RULES.types[t];return s&&s!==!0&&Fo(r,s)}Nt.schemaHasRulesForType=dd;function Fo(r,e){return e.rules.some(t=>Ro(r,t))}Nt.shouldUseGroup=Fo;function Ro(r,e){var t;return r[e.keyword]!==void 0||((t=e.definition.implements)===null||t===void 0?void 0:t.some(s=>r[s]!==void 0))}Nt.shouldUseRule=Ro,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.reportTypeError=Ce.checkDataTypes=Ce.checkDataType=Ce.coerceAndCheckDataType=Ce.getJSONTypes=Ce.getSchemaTypes=Ce.DataType=void 0;const hd=Zt,fd=Nt,pd=Ir,ie=le,Bo=W;var cr;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(cr||(Ce.DataType=cr={}));function md(r){const e=Lo(r.type);if(e.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&e.push("null")}return e}Ce.getSchemaTypes=md;function Lo(r){const e=Array.isArray(r)?r:r?[r]:[];if(e.every(hd.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ce.getJSONTypes=Lo;function gd(r,e){const{gen:t,data:s,opts:n}=r,a=yd(e,n.coerceTypes),o=e.length>0&&!(a.length===0&&e.length===1&&(0,fd.schemaHasRulesForType)(r,e[0]));if(o){const u=hn(e,s,n.strictNumbers,cr.Wrong);t.if(u,()=>{a.length?vd(r,e,a):fn(r)})}return o}Ce.coerceAndCheckDataType=gd;const jo=new Set(["string","number","integer","boolean","null"]);function yd(r,e){return e?r.filter(t=>jo.has(t)||e==="array"&&t==="array"):[]}function vd(r,e,t){const{gen:s,data:n,opts:a}=r,o=s.let("dataType",(0,ie._)`typeof ${n}`),u=s.let("coerced",(0,ie._)`undefined`);a.coerceTypes==="array"&&s.if((0,ie._)`${o} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,ie._)`${n}[0]`).assign(o,(0,ie._)`typeof ${n}`).if(hn(e,n,a.strictNumbers),()=>s.assign(u,n))),s.if((0,ie._)`${u} !== undefined`);for(const i of t)(jo.has(i)||i==="array"&&a.coerceTypes==="array")&&c(i);s.else(),fn(r),s.endIf(),s.if((0,ie._)`${u} !== undefined`,()=>{s.assign(n,u),_d(r,u)});function c(i){switch(i){case"string":s.elseIf((0,ie._)`${o} == "number" || ${o} == "boolean"`).assign(u,(0,ie._)`"" + ${n}`).elseIf((0,ie._)`${n} === null`).assign(u,(0,ie._)`""`);return;case"number":s.elseIf((0,ie._)`${o} == "boolean" || ${n} === null
23
+ || (${o} == "string" && ${n} && ${n} == +${n})`).assign(u,(0,ie._)`+${n}`);return;case"integer":s.elseIf((0,ie._)`${o} === "boolean" || ${n} === null
24
+ || (${o} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(u,(0,ie._)`+${n}`);return;case"boolean":s.elseIf((0,ie._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(u,!1).elseIf((0,ie._)`${n} === "true" || ${n} === 1`).assign(u,!0);return;case"null":s.elseIf((0,ie._)`${n} === "" || ${n} === 0 || ${n} === false`),s.assign(u,null);return;case"array":s.elseIf((0,ie._)`${o} === "string" || ${o} === "number"
25
+ || ${o} === "boolean" || ${n} === null`).assign(u,(0,ie._)`[${n}]`)}}}function _d({gen:r,parentData:e,parentDataProperty:t},s){r.if((0,ie._)`${e} !== undefined`,()=>r.assign((0,ie._)`${e}[${t}]`,s))}function dn(r,e,t,s=cr.Correct){const n=s===cr.Correct?ie.operators.EQ:ie.operators.NEQ;let a;switch(r){case"null":return(0,ie._)`${e} ${n} null`;case"array":a=(0,ie._)`Array.isArray(${e})`;break;case"object":a=(0,ie._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=o((0,ie._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=o();break;default:return(0,ie._)`typeof ${e} ${n} ${r}`}return s===cr.Correct?a:(0,ie.not)(a);function o(u=ie.nil){return(0,ie.and)((0,ie._)`typeof ${e} == "number"`,u,t?(0,ie._)`isFinite(${e})`:ie.nil)}}Ce.checkDataType=dn;function hn(r,e,t,s){if(r.length===1)return dn(r[0],e,t,s);let n;const a=(0,Bo.toHash)(r);if(a.array&&a.object){const o=(0,ie._)`typeof ${e} != "object"`;n=a.null?o:(0,ie._)`!${e} || ${o}`,delete a.null,delete a.array,delete a.object}else n=ie.nil;a.number&&delete a.integer;for(const o in a)n=(0,ie.and)(n,dn(o,e,t,s));return n}Ce.checkDataTypes=hn;const bd={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:e})=>typeof r=="string"?(0,ie._)`{type: ${r}}`:(0,ie._)`{type: ${e}}`};function fn(r){const e=kd(r);(0,pd.reportError)(e,bd)}Ce.reportTypeError=fn;function kd(r){const{gen:e,data:t,schema:s}=r,n=(0,Bo.schemaRefOrVal)(r,s,"type");return{gen:e,keyword:"type",data:t,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:r}}var ls={};Object.defineProperty(ls,"__esModule",{value:!0}),ls.assignDefaults=void 0;const dr=le,wd=W;function Ed(r,e){const{properties:t,items:s}=r.schema;if(e==="object"&&t)for(const n in t)zo(r,n,t[n].default);else e==="array"&&Array.isArray(s)&&s.forEach((n,a)=>zo(r,a,n.default))}ls.assignDefaults=Ed;function zo(r,e,t){const{gen:s,compositeRule:n,data:a,opts:o}=r;if(t===void 0)return;const u=(0,dr._)`${a}${(0,dr.getProperty)(e)}`;if(n){(0,wd.checkStrictMode)(r,`default is ignored for: ${u}`);return}let c=(0,dr._)`${u} === undefined`;o.useDefaults==="empty"&&(c=(0,dr._)`${c} || ${u} === null || ${u} === ""`),s.if(c,(0,dr._)`${u} = ${(0,dr.stringify)(t)}`)}var Et={},de={};Object.defineProperty(de,"__esModule",{value:!0}),de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;const _e=le,pn=W,jt=wt,$d=W;function Sd(r,e){const{gen:t,data:s,it:n}=r;t.if(gn(t,s,e,n.opts.ownProperties),()=>{r.setParams({missingProperty:(0,_e._)`${e}`},!0),r.error()})}de.checkReportMissingProp=Sd;function Cd({gen:r,data:e,it:{opts:t}},s,n){return(0,_e.or)(...s.map(a=>(0,_e.and)(gn(r,e,a,t.ownProperties),(0,_e._)`${n} = ${a}`)))}de.checkMissingProp=Cd;function xd(r,e){r.setParams({missingProperty:e},!0),r.error()}de.reportMissingProp=xd;function Vo(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,_e._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=Vo;function mn(r,e,t){return(0,_e._)`${Vo(r)}.call(${e}, ${t})`}de.isOwnProperty=mn;function Ad(r,e,t,s){const n=(0,_e._)`${e}${(0,_e.getProperty)(t)} !== undefined`;return s?(0,_e._)`${n} && ${mn(r,e,t)}`:n}de.propertyInData=Ad;function gn(r,e,t,s){const n=(0,_e._)`${e}${(0,_e.getProperty)(t)} === undefined`;return s?(0,_e.or)(n,(0,_e.not)(mn(r,e,t))):n}de.noPropertyInData=gn;function Ho(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=Ho;function Td(r,e){return Ho(e).filter(t=>!(0,pn.alwaysValidSchema)(r,e[t]))}de.schemaProperties=Td;function Pd({schemaCode:r,data:e,it:{gen:t,topSchemaRef:s,schemaPath:n,errorPath:a},it:o},u,c,i){const l=i?(0,_e._)`${r}, ${e}, ${s}${n}`:e,f=[[jt.default.instancePath,(0,_e.strConcat)(jt.default.instancePath,a)],[jt.default.parentData,o.parentData],[jt.default.parentDataProperty,o.parentDataProperty],[jt.default.rootData,jt.default.rootData]];o.opts.dynamicRef&&f.push([jt.default.dynamicAnchors,jt.default.dynamicAnchors]);const h=(0,_e._)`${l}, ${t.object(...f)}`;return c!==_e.nil?(0,_e._)`${u}.call(${c}, ${h})`:(0,_e._)`${u}(${h})`}de.callValidateCode=Pd;const Nd=(0,_e._)`new RegExp`;function Od({gen:r,it:{opts:e}},t){const s=e.unicodeRegExp?"u":"",{regExp:n}=e.code,a=n(t,s);return r.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,_e._)`${n.code==="new RegExp"?Nd:(0,$d.useFunc)(r,n)}(${t}, ${s})`})}de.usePattern=Od;function Id(r){const{gen:e,data:t,keyword:s,it:n}=r,a=e.name("valid");if(n.allErrors){const u=e.let("valid",!0);return o(()=>e.assign(u,!1)),u}return e.var(a,!0),o(()=>e.break()),a;function o(u){const c=e.const("len",(0,_e._)`${t}.length`);e.forRange("i",0,c,i=>{r.subschema({keyword:s,dataProp:i,dataPropType:pn.Type.Num},a),e.if((0,_e.not)(a),u)})}}de.validateArray=Id;function Dd(r){const{gen:e,schema:t,keyword:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(u=>(0,pn.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;const a=e.let("valid",!1),o=e.name("_valid");e.block(()=>t.forEach((u,c)=>{const i=r.subschema({keyword:s,schemaProp:c,compositeRule:!0},o);e.assign(a,(0,_e._)`${a} || ${o}`),r.mergeValidEvaluated(i,o)||e.if((0,_e.not)(a))})),r.result(a,()=>r.reset(),()=>r.error(!0))}de.validateUnion=Dd,Object.defineProperty(Et,"__esModule",{value:!0}),Et.validateKeywordUsage=Et.validSchemaType=Et.funcKeywordCode=Et.macroKeywordCode=void 0;const Ke=le,Qt=wt,Md=de,Fd=Ir;function Rd(r,e){const{gen:t,keyword:s,schema:n,parentSchema:a,it:o}=r,u=e.macro.call(o.self,n,a,o),c=qo(t,s,u);o.opts.validateSchema!==!1&&o.self.validateSchema(u,!0);const i=t.name("valid");r.subschema({schema:u,schemaPath:Ke.nil,errSchemaPath:`${o.errSchemaPath}/${s}`,topSchemaRef:c,compositeRule:!0},i),r.pass(i,()=>r.error(!0))}Et.macroKeywordCode=Rd;function Bd(r,e){var t;const{gen:s,keyword:n,schema:a,parentSchema:o,$data:u,it:c}=r;jd(c,e);const i=!u&&e.compile?e.compile.call(c.self,a,o,c):e.validate,l=qo(s,n,i),f=s.let("valid");r.block$data(f,h),r.ok((t=e.valid)!==null&&t!==void 0?t:f);function h(){if(e.errors===!1)v(),e.modifying&&Uo(r),m(()=>r.error());else{const y=e.async?_():p();e.modifying&&Uo(r),m(()=>Ld(r,y))}}function _(){const y=s.let("ruleErrs",null);return s.try(()=>v((0,Ke._)`await `),g=>s.assign(f,!1).if((0,Ke._)`${g} instanceof ${c.ValidationError}`,()=>s.assign(y,(0,Ke._)`${g}.errors`),()=>s.throw(g))),y}function p(){const y=(0,Ke._)`${l}.errors`;return s.assign(y,null),v(Ke.nil),y}function v(y=e.async?(0,Ke._)`await `:Ke.nil){const g=c.opts.passContext?Qt.default.this:Qt.default.self,b=!("compile"in e&&!u||e.schema===!1);s.assign(f,(0,Ke._)`${y}${(0,Md.callValidateCode)(r,l,g,b)}`,e.modifying)}function m(y){var g;s.if((0,Ke.not)((g=e.valid)!==null&&g!==void 0?g:f),y)}}Et.funcKeywordCode=Bd;function Uo(r){const{gen:e,data:t,it:s}=r;e.if(s.parentData,()=>e.assign(t,(0,Ke._)`${s.parentData}[${s.parentDataProperty}]`))}function Ld(r,e){const{gen:t}=r;t.if((0,Ke._)`Array.isArray(${e})`,()=>{t.assign(Qt.default.vErrors,(0,Ke._)`${Qt.default.vErrors} === null ? ${e} : ${Qt.default.vErrors}.concat(${e})`).assign(Qt.default.errors,(0,Ke._)`${Qt.default.vErrors}.length`),(0,Fd.extendErrors)(r)},()=>r.error())}function jd({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function qo(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Ke.stringify)(t)})}function zd(r,e,t=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(r):s==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==s||t&&typeof r>"u")}Et.validSchemaType=zd;function Vd({schema:r,opts:e,self:t,errSchemaPath:s},n,a){if(Array.isArray(n.keyword)?!n.keyword.includes(a):n.keyword!==a)throw new Error("ajv implementation error");const o=n.dependencies;if(o!=null&&o.some(u=>!Object.prototype.hasOwnProperty.call(r,u)))throw new Error(`parent schema must have dependencies of ${a}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(r[a])){const u=`keyword "${a}" value is invalid at path "${s}": `+t.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(u);else throw new Error(u)}}Et.validateKeywordUsage=Vd;var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.extendSubschemaMode=zt.extendSubschemaData=zt.getSubschema=void 0;const $t=le,Ko=W;function Hd(r,{keyword:e,schemaProp:t,schema:s,schemaPath:n,errSchemaPath:a,topSchemaRef:o}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const u=r.schema[e];return t===void 0?{schema:u,schemaPath:(0,$t._)`${r.schemaPath}${(0,$t.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:u[t],schemaPath:(0,$t._)`${r.schemaPath}${(0,$t.getProperty)(e)}${(0,$t.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,Ko.escapeFragment)(t)}`}}if(s!==void 0){if(n===void 0||a===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:n,topSchemaRef:o,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}zt.getSubschema=Hd;function Ud(r,e,{dataProp:t,dataPropType:s,data:n,dataTypes:a,propertyName:o}){if(n!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=e;if(t!==void 0){const{errorPath:i,dataPathArr:l,opts:f}=e,h=u.let("data",(0,$t._)`${e.data}${(0,$t.getProperty)(t)}`,!0);c(h),r.errorPath=(0,$t.str)`${i}${(0,Ko.getErrorPath)(t,s,f.jsPropertySyntax)}`,r.parentDataProperty=(0,$t._)`${t}`,r.dataPathArr=[...l,r.parentDataProperty]}if(n!==void 0){const i=n instanceof $t.Name?n:u.let("data",n,!0);c(i),o!==void 0&&(r.propertyName=o)}a&&(r.dataTypes=a);function c(i){r.data=i,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,i]}}zt.extendSubschemaData=Ud;function qd(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:s,createErrors:n,allErrors:a}){s!==void 0&&(r.compositeRule=s),n!==void 0&&(r.createErrors=n),a!==void 0&&(r.allErrors=a),r.jtdDiscriminator=e,r.jtdMetadata=t}zt.extendSubschemaMode=qd;var De={},Go=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var s,n,a;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!r(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),s=a.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=s;n--!==0;){var o=a[n];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t},Wo={exports:{}},Vt=Wo.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var s=typeof t=="function"?t:t.pre||function(){},n=t.post||function(){};cs(e,s,n,r,"",r)};Vt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},Vt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Vt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Vt.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 cs(r,e,t,s,n,a,o,u,c,i){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,a,o,u,c,i);for(var l in s){var f=s[l];if(Array.isArray(f)){if(l in Vt.arrayKeywords)for(var h=0;h<f.length;h++)cs(r,e,t,f[h],n+"/"+l+"/"+h,a,n,l,s,h)}else if(l in Vt.propsKeywords){if(f&&typeof f=="object")for(var _ in f)cs(r,e,t,f[_],n+"/"+l+"/"+Kd(_),a,n,l,s,_)}else(l in Vt.keywords||r.allKeys&&!(l in Vt.skipKeywords))&&cs(r,e,t,f,n+"/"+l,a,n,l,s)}t(s,n,a,o,u,c,i)}}function Kd(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var Gd=Wo.exports;Object.defineProperty(De,"__esModule",{value:!0}),De.getSchemaRefs=De.resolveUrl=De.normalizeId=De._getFullPath=De.getFullPath=De.inlineRef=void 0;const Wd=W,Xd=Go,Yd=Gd,Jd=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Zd(r,e=!0){return typeof r=="boolean"?!0:e===!0?!yn(r):e?Xo(r)<=e:!1}De.inlineRef=Zd;const Qd=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function yn(r){for(const e in r){if(Qd.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(yn)||typeof t=="object"&&yn(t))return!0}return!1}function Xo(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!Jd.has(t)&&(typeof r[t]=="object"&&(0,Wd.eachItem)(r[t],s=>e+=Xo(s)),e===1/0)))return 1/0;return e}function Yo(r,e="",t){t!==!1&&(e=hr(e));const s=r.parse(e);return Jo(r,s)}De.getFullPath=Yo;function Jo(r,e){return r.serialize(e).split("#")[0]+"#"}De._getFullPath=Jo;const eh=/#\/?$/;function hr(r){return r?r.replace(eh,""):""}De.normalizeId=hr;function th(r,e,t){return t=hr(t),r.resolve(e,t)}De.resolveUrl=th;const rh=/^[a-z_][-a-z0-9._]*$/i;function sh(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:s}=this.opts,n=hr(r[t]||e),a={"":n},o=Yo(s,n,!1),u={},c=new Set;return Yd(r,{allKeys:!0},(f,h,_,p)=>{if(p===void 0)return;const v=o+h;let m=a[p];typeof f[t]=="string"&&(m=y.call(this,f[t])),g.call(this,f.$anchor),g.call(this,f.$dynamicAnchor),a[h]=m;function y(b){const w=this.opts.uriResolver.resolve;if(b=hr(m?w(m,b):b),c.has(b))throw l(b);c.add(b);let E=this.refs[b];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?i(f,E.schema,b):b!==hr(v)&&(b[0]==="#"?(i(f,u[b],b),u[b]=f):this.refs[b]=v),b}function g(b){if(typeof b=="string"){if(!rh.test(b))throw new Error(`invalid anchor "${b}"`);y.call(this,`#${b}`)}}}),u;function i(f,h,_){if(h!==void 0&&!Xd(f,h))throw l(_)}function l(f){return new Error(`reference "${f}" resolves to more than one schema`)}}De.getSchemaRefs=sh,Object.defineProperty(yt,"__esModule",{value:!0}),yt.getData=yt.KeywordCxt=yt.validateFunctionCode=void 0;const Zo=lr,Qo=Ce,vn=Nt,ds=Ce,nh=ls,Mr=Et,_n=zt,J=le,ae=wt,ah=De,Ot=W,Fr=Ir;function oh(r){if(si(r)&&(ni(r),ri(r))){lh(r);return}ei(r,()=>(0,Zo.topBoolOrEmptySchema)(r))}yt.validateFunctionCode=oh;function ei({gen:r,validateName:e,schema:t,schemaEnv:s,opts:n},a){n.code.es5?r.func(e,(0,J._)`${ae.default.data}, ${ae.default.valCxt}`,s.$async,()=>{r.code((0,J._)`"use strict"; ${ti(t,n)}`),uh(r,n),r.code(a)}):r.func(e,(0,J._)`${ae.default.data}, ${ih(n)}`,s.$async,()=>r.code(ti(t,n)).code(a))}function ih(r){return(0,J._)`{${ae.default.instancePath}="", ${ae.default.parentData}, ${ae.default.parentDataProperty}, ${ae.default.rootData}=${ae.default.data}${r.dynamicRef?(0,J._)`, ${ae.default.dynamicAnchors}={}`:J.nil}}={}`}function uh(r,e){r.if(ae.default.valCxt,()=>{r.var(ae.default.instancePath,(0,J._)`${ae.default.valCxt}.${ae.default.instancePath}`),r.var(ae.default.parentData,(0,J._)`${ae.default.valCxt}.${ae.default.parentData}`),r.var(ae.default.parentDataProperty,(0,J._)`${ae.default.valCxt}.${ae.default.parentDataProperty}`),r.var(ae.default.rootData,(0,J._)`${ae.default.valCxt}.${ae.default.rootData}`),e.dynamicRef&&r.var(ae.default.dynamicAnchors,(0,J._)`${ae.default.valCxt}.${ae.default.dynamicAnchors}`)},()=>{r.var(ae.default.instancePath,(0,J._)`""`),r.var(ae.default.parentData,(0,J._)`undefined`),r.var(ae.default.parentDataProperty,(0,J._)`undefined`),r.var(ae.default.rootData,ae.default.data),e.dynamicRef&&r.var(ae.default.dynamicAnchors,(0,J._)`{}`)})}function lh(r){const{schema:e,opts:t,gen:s}=r;ei(r,()=>{t.$comment&&e.$comment&&oi(r),ph(r),s.let(ae.default.vErrors,null),s.let(ae.default.errors,0),t.unevaluated&&ch(r),ai(r),yh(r)})}function ch(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,J._)`${t}.evaluated`),e.if((0,J._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,J._)`${r.evaluated}.props`,(0,J._)`undefined`)),e.if((0,J._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,J._)`${r.evaluated}.items`,(0,J._)`undefined`))}function ti(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,J._)`/*# sourceURL=${t} */`:J.nil}function dh(r,e){if(si(r)&&(ni(r),ri(r))){hh(r,e);return}(0,Zo.boolOrEmptySchema)(r,e)}function ri({schema:r,self:e}){if(typeof r=="boolean")return!r;for(const t in r)if(e.RULES.all[t])return!0;return!1}function si(r){return typeof r.schema!="boolean"}function hh(r,e){const{schema:t,gen:s,opts:n}=r;n.$comment&&t.$comment&&oi(r),mh(r),gh(r);const a=s.const("_errs",ae.default.errors);ai(r,a),s.var(e,(0,J._)`${a} === ${ae.default.errors}`)}function ni(r){(0,Ot.checkUnknownRules)(r),fh(r)}function ai(r,e){if(r.opts.jtd)return ii(r,[],!1,e);const t=(0,Qo.getSchemaTypes)(r.schema),s=(0,Qo.coerceAndCheckDataType)(r,t);ii(r,t,!s,e)}function fh(r){const{schema:e,errSchemaPath:t,opts:s,self:n}=r;e.$ref&&s.ignoreKeywordsWithRef&&(0,Ot.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function ph(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,Ot.checkStrictMode)(r,"default is ignored in the schema root")}function mh(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,ah.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function gh(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function oi({gen:r,schemaEnv:e,schema:t,errSchemaPath:s,opts:n}){const a=t.$comment;if(n.$comment===!0)r.code((0,J._)`${ae.default.self}.logger.log(${a})`);else if(typeof n.$comment=="function"){const o=(0,J.str)`${s}/$comment`,u=r.scopeValue("root",{ref:e.root});r.code((0,J._)`${ae.default.self}.opts.$comment(${a}, ${o}, ${u}.schema)`)}}function yh(r){const{gen:e,schemaEnv:t,validateName:s,ValidationError:n,opts:a}=r;t.$async?e.if((0,J._)`${ae.default.errors} === 0`,()=>e.return(ae.default.data),()=>e.throw((0,J._)`new ${n}(${ae.default.vErrors})`)):(e.assign((0,J._)`${s}.errors`,ae.default.vErrors),a.unevaluated&&vh(r),e.return((0,J._)`${ae.default.errors} === 0`))}function vh({gen:r,evaluated:e,props:t,items:s}){t instanceof J.Name&&r.assign((0,J._)`${e}.props`,t),s instanceof J.Name&&r.assign((0,J._)`${e}.items`,s)}function ii(r,e,t,s){const{gen:n,schema:a,data:o,allErrors:u,opts:c,self:i}=r,{RULES:l}=i;if(a.$ref&&(c.ignoreKeywordsWithRef||!(0,Ot.schemaHasRulesButRef)(a,l))){n.block(()=>di(r,"$ref",l.all.$ref.definition));return}c.jtd||_h(r,e),n.block(()=>{for(const h of l.rules)f(h);f(l.post)});function f(h){(0,vn.shouldUseGroup)(a,h)&&(h.type?(n.if((0,ds.checkDataType)(h.type,o,c.strictNumbers)),ui(r,h),e.length===1&&e[0]===h.type&&t&&(n.else(),(0,ds.reportTypeError)(r)),n.endIf()):ui(r,h),u||n.if((0,J._)`${ae.default.errors} === ${s||0}`))}}function ui(r,e){const{gen:t,schema:s,opts:{useDefaults:n}}=r;n&&(0,nh.assignDefaults)(r,e.type),t.block(()=>{for(const a of e.rules)(0,vn.shouldUseRule)(s,a)&&di(r,a.keyword,a.definition,e.type)})}function _h(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(bh(r,e),r.opts.allowUnionTypes||kh(r,e),wh(r,r.dataTypes))}function bh(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{li(r.dataTypes,t)||bn(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),$h(r,e)}}function kh(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&bn(r,"use allowUnionTypes to allow union type keyword")}function wh(r,e){const t=r.self.RULES.all;for(const s in t){const n=t[s];if(typeof n=="object"&&(0,vn.shouldUseRule)(r.schema,n)){const{type:a}=n.definition;a.length&&!a.some(o=>Eh(e,o))&&bn(r,`missing type "${a.join(",")}" for keyword "${s}"`)}}}function Eh(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function li(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function $h(r,e){const t=[];for(const s of r.dataTypes)li(e,s)?t.push(s):e.includes("integer")&&s==="number"&&t.push("integer");r.dataTypes=t}function bn(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,Ot.checkStrictMode)(r,e,r.opts.strictTypes)}class ci{constructor(e,t,s){if((0,Mr.validateKeywordUsage)(e,t,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ot.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",hi(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Mr.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ae.default.errors))}result(e,t,s){this.failResult((0,J.not)(e),t,s)}failResult(e,t,s){this.gen.if(e),s?s():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,J.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,J._)`${t} !== undefined && (${(0,J.or)(this.invalid$data(),e)})`)}error(e,t,s){if(t){this.setParams(t),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,t){(e?Fr.reportExtraError:Fr.reportError)(this,this.def.error,t)}$dataError(){(0,Fr.reportError)(this,this.def.$dataError||Fr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Fr.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,s=J.nil){this.gen.block(()=>{this.check$data(e,s),t()})}check$data(e=J.nil,t=J.nil){if(!this.$data)return;const{gen:s,schemaCode:n,schemaType:a,def:o}=this;s.if((0,J.or)((0,J._)`${n} === undefined`,t)),e!==J.nil&&s.assign(e,!0),(a.length||o.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==J.nil&&s.assign(e,!1)),s.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:s,def:n,it:a}=this;return(0,J.or)(o(),u());function o(){if(s.length){if(!(t instanceof J.Name))throw new Error("ajv implementation error");const c=Array.isArray(s)?s:[s];return(0,J._)`${(0,ds.checkDataTypes)(c,t,a.opts.strictNumbers,ds.DataType.Wrong)}`}return J.nil}function u(){if(n.validateSchema){const c=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,J._)`!${c}(${t})`}return J.nil}}subschema(e,t){const s=(0,_n.getSubschema)(this.it,e);(0,_n.extendSubschemaData)(s,this.it,e),(0,_n.extendSubschemaMode)(s,e);const n={...this.it,...s,items:void 0,props:void 0};return dh(n,t),n}mergeEvaluated(e,t){const{it:s,gen:n}=this;s.opts.unevaluated&&(s.props!==!0&&e.props!==void 0&&(s.props=Ot.mergeEvaluated.props(n,e.props,s.props,t)),s.items!==!0&&e.items!==void 0&&(s.items=Ot.mergeEvaluated.items(n,e.items,s.items,t)))}mergeValidEvaluated(e,t){const{it:s,gen:n}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return n.if(t,()=>this.mergeEvaluated(e,J.Name)),!0}}yt.KeywordCxt=ci;function di(r,e,t,s){const n=new ci(r,t,e);"code"in t?t.code(n,s):n.$data&&t.validate?(0,Mr.funcKeywordCode)(n,t):"macro"in t?(0,Mr.macroKeywordCode)(n,t):(t.compile||t.validate)&&(0,Mr.funcKeywordCode)(n,t)}const Sh=/^\/(?:[^~]|~0|~1)*$/,Ch=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function hi(r,{dataLevel:e,dataNames:t,dataPathArr:s}){let n,a;if(r==="")return ae.default.rootData;if(r[0]==="/"){if(!Sh.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);n=r,a=ae.default.rootData}else{const i=Ch.exec(r);if(!i)throw new Error(`Invalid JSON-pointer: ${r}`);const l=+i[1];if(n=i[2],n==="#"){if(l>=e)throw new Error(c("property/index",l));return s[e-l]}if(l>e)throw new Error(c("data",l));if(a=t[e-l],!n)return a}let o=a;const u=n.split("/");for(const i of u)i&&(a=(0,J._)`${a}${(0,J.getProperty)((0,Ot.unescapeJsonPointer)(i))}`,o=(0,J._)`${o} && ${a}`);return o;function c(i,l){return`Cannot access ${i} ${l} levels up, current level is ${e}`}}yt.getData=hi;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});class xh extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Rr.default=xh;var fr={};Object.defineProperty(fr,"__esModule",{value:!0});const kn=De;class Ah extends Error{constructor(e,t,s,n){super(n||`can't resolve reference ${s} from id ${t}`),this.missingRef=(0,kn.resolveUrl)(e,t,s),this.missingSchema=(0,kn.normalizeId)((0,kn.getFullPath)(e,this.missingRef))}}fr.default=Ah;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;const vt=le,Th=Rr,er=wt,_t=De,fi=W,Ph=yt;class hs{constructor(e){var t;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,_t.normalizeId)(s==null?void 0:s[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s==null?void 0:s.$async,this.refs={}}}Ze.SchemaEnv=hs;function wn(r){const e=pi.call(this,r);if(e)return e;const t=(0,_t.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:s,lines:n}=this.opts.code,{ownProperties:a}=this.opts,o=new vt.CodeGen(this.scope,{es5:s,lines:n,ownProperties:a});let u;r.$async&&(u=o.scopeValue("Error",{ref:Th.default,code:(0,vt._)`require("ajv/dist/runtime/validation_error").default`}));const c=o.scopeName("validate");r.validateName=c;const i={gen:o,allErrors:this.opts.allErrors,data:er.default.data,parentData:er.default.parentData,parentDataProperty:er.default.parentDataProperty,dataNames:[er.default.data],dataPathArr:[vt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,vt.stringify)(r.schema)}:{ref:r.schema}),validateName:c,ValidationError:u,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:vt.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vt._)`""`,opts:this.opts,self:this};let l;try{this._compilations.add(r),(0,Ph.validateFunctionCode)(i),o.optimize(this.opts.code.optimize);const f=o.toString();l=`${o.scopeRefs(er.default.scope)}return ${f}`,this.opts.code.process&&(l=this.opts.code.process(l,r));const h=new Function(`${er.default.self}`,`${er.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=r.schema,h.schemaEnv=r,r.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:o._values}),this.opts.unevaluated){const{props:_,items:p}=i;h.evaluated={props:_ instanceof vt.Name?void 0:_,items:p instanceof vt.Name?void 0:p,dynamicProps:_ instanceof vt.Name,dynamicItems:p instanceof vt.Name},h.source&&(h.source.evaluated=(0,vt.stringify)(h.evaluated))}return r.validate=h,r}catch(f){throw delete r.validate,delete r.validateName,l&&this.logger.error("Error compiling schema, function code:",l),f}finally{this._compilations.delete(r)}}Ze.compileSchema=wn;function Nh(r,e,t){var s;t=(0,_t.resolveUrl)(this.opts.uriResolver,e,t);const n=r.refs[t];if(n)return n;let a=Dh.call(this,r,t);if(a===void 0){const o=(s=r.localRefs)===null||s===void 0?void 0:s[t],{schemaId:u}=this.opts;o&&(a=new hs({schema:o,schemaId:u,root:r,baseId:e}))}if(a!==void 0)return r.refs[t]=Oh.call(this,a)}Ze.resolveRef=Nh;function Oh(r){return(0,_t.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:wn.call(this,r)}function pi(r){for(const e of this._compilations)if(Ih(e,r))return e}Ze.getCompilingSchema=pi;function Ih(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function Dh(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||fs.call(this,r,e)}function fs(r,e){const t=this.opts.uriResolver.parse(e),s=(0,_t._getFullPath)(this.opts.uriResolver,t);let n=(0,_t.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&s===n)return En.call(this,t,r);const a=(0,_t.normalizeId)(s),o=this.refs[a]||this.schemas[a];if(typeof o=="string"){const u=fs.call(this,r,o);return typeof(u==null?void 0:u.schema)!="object"?void 0:En.call(this,t,u)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||wn.call(this,o),a===(0,_t.normalizeId)(e)){const{schema:u}=o,{schemaId:c}=this.opts,i=u[c];return i&&(n=(0,_t.resolveUrl)(this.opts.uriResolver,n,i)),new hs({schema:u,schemaId:c,root:r,baseId:n})}return En.call(this,t,o)}}Ze.resolveSchema=fs;const Mh=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function En(r,{baseId:e,schema:t,root:s}){var n;if(((n=r.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const u of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const c=t[(0,fi.unescapeFragment)(u)];if(c===void 0)return;t=c;const i=typeof t=="object"&&t[this.opts.schemaId];!Mh.has(u)&&i&&(e=(0,_t.resolveUrl)(this.opts.uriResolver,e,i))}let a;if(typeof t!="boolean"&&t.$ref&&!(0,fi.schemaHasRulesButRef)(t,this.RULES)){const u=(0,_t.resolveUrl)(this.opts.uriResolver,e,t.$ref);a=fs.call(this,s,u)}const{schemaId:o}=this.opts;if(a=a||new hs({schema:t,schemaId:o,root:s,baseId:e}),a.schema!==a.root.schema)return a}const Fh="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Rh="Meta-schema for $data reference (JSON AnySchema extension proposal)",Bh="object",Lh=["$data"],jh={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},zh=!1,Vh={$id:Fh,description:Rh,type:Bh,required:Lh,properties:jh,additionalProperties:zh};var $n={},ps={exports:{}},Hh={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}};const{HEX:Uh}=Hh;function mi(r){if(vi(r,".")<3)return{host:r,isIPV4:!1};const e=r.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[t]=e;return t?{host:Kh(t,"."),isIPV4:!0}:{host:r,isIPV4:!1}}function gi(r,e=!1){let t="",s=!0;for(const n of r){if(Uh[n]===void 0)return;n!=="0"&&s===!0&&(s=!1),s||(t+=n)}return e&&t.length===0&&(t="0"),t}function qh(r){let e=0;const t={error:!1,address:"",zone:""},s=[],n=[];let a=!1,o=!1,u=!1;function c(){if(n.length){if(a===!1){const i=gi(n);if(i!==void 0)s.push(i);else return t.error=!0,!1}n.length=0}return!0}for(let i=0;i<r.length;i++){const l=r[i];if(!(l==="["||l==="]"))if(l===":"){if(o===!0&&(u=!0),!c())break;if(e++,s.push(":"),e>7){t.error=!0;break}i-1>=0&&r[i-1]===":"&&(o=!0);continue}else if(l==="%"){if(!c())break;a=!0}else{n.push(l);continue}}return n.length&&(a?t.zone=n.join(""):u?s.push(n.join("")):s.push(gi(n))),t.address=s.join(""),t}function yi(r,e={}){if(vi(r,":")<2)return{host:r,isIPV6:!1};const t=qh(r);if(t.error)return{host:r,isIPV6:!1};{let s=t.address,n=t.address;return t.zone&&(s+="%"+t.zone,n+="%25"+t.zone),{host:s,escapedHost:n,isIPV6:!0}}}function Kh(r,e){let t="",s=!0;const n=r.length;for(let a=0;a<n;a++){const o=r[a];o==="0"&&s?(a+1<=n&&r[a+1]===e||a+1===n)&&(t+=o,s=!1):(o===e?s=!0:s=!1,t+=o)}return t}function vi(r,e){let t=0;for(let s=0;s<r.length;s++)r[s]===e&&t++;return t}const _i=/^\.\.?\//u,bi=/^\/\.(?:\/|$)/u,ki=/^\/\.\.(?:\/|$)/u,Gh=/^\/?(?:.|\n)*?(?=\/|$)/u;function Wh(r){const e=[];for(;r.length;)if(r.match(_i))r=r.replace(_i,"");else if(r.match(bi))r=r.replace(bi,"/");else if(r.match(ki))r=r.replace(ki,"/"),e.pop();else if(r==="."||r==="..")r="";else{const t=r.match(Gh);if(t){const s=t[0];r=r.slice(s.length),e.push(s)}else throw new Error("Unexpected dot segment condition")}return e.join("")}function Xh(r,e){const t=e!==!0?escape:unescape;return r.scheme!==void 0&&(r.scheme=t(r.scheme)),r.userinfo!==void 0&&(r.userinfo=t(r.userinfo)),r.host!==void 0&&(r.host=t(r.host)),r.path!==void 0&&(r.path=t(r.path)),r.query!==void 0&&(r.query=t(r.query)),r.fragment!==void 0&&(r.fragment=t(r.fragment)),r}function Yh(r,e){const t=[];if(r.userinfo!==void 0&&(t.push(r.userinfo),t.push("@")),r.host!==void 0){let s=unescape(r.host);const n=mi(s);if(n.isIPV4)s=n.host;else{const a=yi(n.host,{});a.isIPV6===!0?s=`[${a.escapedHost}]`:s=r.host}t.push(s)}return(typeof r.port=="number"||typeof r.port=="string")&&(t.push(":"),t.push(String(r.port))),t.length?t.join(""):void 0}var Jh={recomposeAuthority:Yh,normalizeComponentEncoding:Xh,removeDotSegments:Wh,normalizeIPv4:mi,normalizeIPv6:yi};const Zh=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Qh=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function wi(r){return typeof r.secure=="boolean"?r.secure:String(r.scheme).toLowerCase()==="wss"}function Ei(r){return r.host||(r.error=r.error||"HTTP URIs must have a host."),r}function $i(r){const e=String(r.scheme).toLowerCase()==="https";return(r.port===(e?443:80)||r.port==="")&&(r.port=void 0),r.path||(r.path="/"),r}function ef(r){return r.secure=wi(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r}function tf(r){if((r.port===(wi(r)?443:80)||r.port==="")&&(r.port=void 0),typeof r.secure=="boolean"&&(r.scheme=r.secure?"wss":"ws",r.secure=void 0),r.resourceName){const[e,t]=r.resourceName.split("?");r.path=e&&e!=="/"?e:void 0,r.query=t,r.resourceName=void 0}return r.fragment=void 0,r}function rf(r,e){if(!r.path)return r.error="URN can not be parsed",r;const t=r.path.match(Qh);if(t){const s=e.scheme||r.scheme||"urn";r.nid=t[1].toLowerCase(),r.nss=t[2];const n=`${s}:${e.nid||r.nid}`,a=Sn[n];r.path=void 0,a&&(r=a.parse(r,e))}else r.error=r.error||"URN can not be parsed.";return r}function sf(r,e){const t=e.scheme||r.scheme||"urn",s=r.nid.toLowerCase(),n=`${t}:${e.nid||s}`,a=Sn[n];a&&(r=a.serialize(r,e));const o=r,u=r.nss;return o.path=`${s||e.nid}:${u}`,e.skipEscape=!0,o}function nf(r,e){const t=r;return t.uuid=t.nss,t.nss=void 0,!e.tolerant&&(!t.uuid||!Zh.test(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function af(r){const e=r;return e.nss=(r.uuid||"").toLowerCase(),e}const Si={scheme:"http",domainHost:!0,parse:Ei,serialize:$i},of={scheme:"https",domainHost:Si.domainHost,parse:Ei,serialize:$i},ms={scheme:"ws",domainHost:!0,parse:ef,serialize:tf},uf={scheme:"wss",domainHost:ms.domainHost,parse:ms.parse,serialize:ms.serialize},lf={scheme:"urn",parse:rf,serialize:sf,skipNormalize:!0},cf={scheme:"urn:uuid",parse:nf,serialize:af,skipNormalize:!0},Sn={http:Si,https:of,ws:ms,wss:uf,urn:lf,"urn:uuid":cf};var df=Sn;const{normalizeIPv6:hf,normalizeIPv4:ff,removeDotSegments:Br,recomposeAuthority:pf,normalizeComponentEncoding:gs}=Jh,Cn=df;function mf(r,e){return typeof r=="string"?r=St(It(r,e),e):typeof r=="object"&&(r=It(St(r,e),e)),r}function gf(r,e,t){const s=Object.assign({scheme:"null"},t),n=Ci(It(r,s),It(e,s),s,!0);return St(n,{...s,skipEscape:!0})}function Ci(r,e,t,s){const n={};return s||(r=It(St(r,t),t),e=It(St(e,t),t)),t=t||{},!t.tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Br(e.path||""),n.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Br(e.path||""),n.query=e.query):(e.path?(e.path.charAt(0)==="/"?n.path=Br(e.path):((r.userinfo!==void 0||r.host!==void 0||r.port!==void 0)&&!r.path?n.path="/"+e.path:r.path?n.path=r.path.slice(0,r.path.lastIndexOf("/")+1)+e.path:n.path=e.path,n.path=Br(n.path)),n.query=e.query):(n.path=r.path,e.query!==void 0?n.query=e.query:n.query=r.query),n.userinfo=r.userinfo,n.host=r.host,n.port=r.port),n.scheme=r.scheme),n.fragment=e.fragment,n}function yf(r,e,t){return typeof r=="string"?(r=unescape(r),r=St(gs(It(r,t),!0),{...t,skipEscape:!0})):typeof r=="object"&&(r=St(gs(r,!0),{...t,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=St(gs(It(e,t),!0),{...t,skipEscape:!0})):typeof e=="object"&&(e=St(gs(e,!0),{...t,skipEscape:!0})),r.toLowerCase()===e.toLowerCase()}function St(r,e){const t={host:r.host,scheme:r.scheme,userinfo:r.userinfo,port:r.port,path:r.path,query:r.query,nid:r.nid,nss:r.nss,uuid:r.uuid,fragment:r.fragment,reference:r.reference,resourceName:r.resourceName,secure:r.secure,error:""},s=Object.assign({},e),n=[],a=Cn[(s.scheme||t.scheme||"").toLowerCase()];a&&a.serialize&&a.serialize(t,s),t.path!==void 0&&(s.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),s.reference!=="suffix"&&t.scheme&&n.push(t.scheme,":");const o=pf(t,s);if(o!==void 0&&(s.reference!=="suffix"&&n.push("//"),n.push(o),t.path&&t.path.charAt(0)!=="/"&&n.push("/")),t.path!==void 0){let u=t.path;!s.absolutePath&&(!a||!a.absolutePath)&&(u=Br(u)),o===void 0&&(u=u.replace(/^\/\//u,"/%2F")),n.push(u)}return t.query!==void 0&&n.push("?",t.query),t.fragment!==void 0&&n.push("#",t.fragment),n.join("")}const vf=Array.from({length:127},(r,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function _f(r){let e=0;for(let t=0,s=r.length;t<s;++t)if(e=r.charCodeAt(t),e>126||vf[e])return!0;return!1}const bf=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function It(r,e){const t=Object.assign({},e),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=r.indexOf("%")!==-1;let a=!1;t.reference==="suffix"&&(r=(t.scheme?t.scheme+":":"")+"//"+r);const o=r.match(bf);if(o){if(s.scheme=o[1],s.userinfo=o[3],s.host=o[4],s.port=parseInt(o[5],10),s.path=o[6]||"",s.query=o[7],s.fragment=o[8],isNaN(s.port)&&(s.port=o[5]),s.host){const c=ff(s.host);if(c.isIPV4===!1){const i=hf(c.host,{isIPV4:!1});s.host=i.host.toLowerCase(),a=i.isIPV6}else s.host=c.host,a=!0}s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&!s.path&&s.query===void 0?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==s.reference&&(s.error=s.error||"URI is not a "+t.reference+" reference.");const u=Cn[(t.scheme||s.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!u||!u.unicodeSupport)&&s.host&&(t.domainHost||u&&u.domainHost)&&a===!1&&_f(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(c){s.error=s.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(n&&s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),n&&s.host!==void 0&&(s.host=unescape(s.host)),s.path!==void 0&&s.path.length&&(s.path=escape(unescape(s.path))),s.fragment!==void 0&&s.fragment.length&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),u&&u.parse&&u.parse(s,t)}else s.error=s.error||"URI can not be parsed.";return s}const xn={SCHEMES:Cn,normalize:mf,resolve:gf,resolveComponents:Ci,equal:yf,serialize:St,parse:It};ps.exports=xn,ps.exports.default=xn,ps.exports.fastUri=xn;var kf=ps.exports;Object.defineProperty($n,"__esModule",{value:!0});const xi=kf;xi.code='require("ajv/dist/runtime/uri").default',$n.default=xi,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var e=yt;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=le;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const s=Rr,n=fr,a=Zt,o=Ze,u=le,c=De,i=Ce,l=W,f=Vh,h=$n,_=(P,k)=>new RegExp(P,k);_.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},g=200;function b(P){var k,x,S,d,$,N,z,j,H,K,ne,q,ye,me,Ge,at,We,et,lt,ct,Ne,Oe,je,tt,ot;const xe=P.strict,dt=(k=P.code)===null||k===void 0?void 0:k.optimize,or=dt===!0||dt===void 0?1:dt||0,qt=(S=(x=P.code)===null||x===void 0?void 0:x.regExp)!==null&&S!==void 0?S:_,Kt=(d=P.uriResolver)!==null&&d!==void 0?d:h.default;return{strictSchema:(N=($=P.strictSchema)!==null&&$!==void 0?$:xe)!==null&&N!==void 0?N:!0,strictNumbers:(j=(z=P.strictNumbers)!==null&&z!==void 0?z:xe)!==null&&j!==void 0?j:!0,strictTypes:(K=(H=P.strictTypes)!==null&&H!==void 0?H:xe)!==null&&K!==void 0?K:"log",strictTuples:(q=(ne=P.strictTuples)!==null&&ne!==void 0?ne:xe)!==null&&q!==void 0?q:"log",strictRequired:(me=(ye=P.strictRequired)!==null&&ye!==void 0?ye:xe)!==null&&me!==void 0?me:!1,code:P.code?{...P.code,optimize:or,regExp:qt}:{optimize:or,regExp:qt},loopRequired:(Ge=P.loopRequired)!==null&&Ge!==void 0?Ge:g,loopEnum:(at=P.loopEnum)!==null&&at!==void 0?at:g,meta:(We=P.meta)!==null&&We!==void 0?We:!0,messages:(et=P.messages)!==null&&et!==void 0?et:!0,inlineRefs:(lt=P.inlineRefs)!==null&&lt!==void 0?lt:!0,schemaId:(ct=P.schemaId)!==null&&ct!==void 0?ct:"$id",addUsedSchema:(Ne=P.addUsedSchema)!==null&&Ne!==void 0?Ne:!0,validateSchema:(Oe=P.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(je=P.validateFormats)!==null&&je!==void 0?je:!0,unicodeRegExp:(tt=P.unicodeRegExp)!==null&&tt!==void 0?tt:!0,int32range:(ot=P.int32range)!==null&&ot!==void 0?ot:!0,uriResolver:Kt}}class w{constructor(k={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,...b(k)};const{es5:x,lines:S}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:x,lines:S}),this.logger=M(k.logger);const d=k.validateFormats;k.validateFormats=!1,this.RULES=(0,a.getRules)(),E.call(this,m,k,"NOT SUPPORTED"),E.call(this,y,k,"DEPRECATED","warn"),this._metaOpts=I.call(this),k.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&L.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),D.call(this),k.validateFormats=d}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:x,schemaId:S}=this.opts;let d=f;S==="id"&&(d={...f},d.id=d.$id,delete d.$id),x&&k&&this.addMetaSchema(d,d[S],!1)}defaultMeta(){const{meta:k,schemaId:x}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[x]||k:void 0}validate(k,x){let S;if(typeof k=="string"){if(S=this.getSchema(k),!S)throw new Error(`no schema with key or ref "${k}"`)}else S=this.compile(k);const d=S(x);return"$async"in S||(this.errors=S.errors),d}compile(k,x){const S=this._addSchema(k,x);return S.validate||this._compileSchemaEnv(S)}compileAsync(k,x){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:S}=this.opts;return d.call(this,k,x);async function d(K,ne){await $.call(this,K.$schema);const q=this._addSchema(K,ne);return q.validate||N.call(this,q)}async function $(K){K&&!this.getSchema(K)&&await d.call(this,{$ref:K},!0)}async function N(K){try{return this._compileSchemaEnv(K)}catch(ne){if(!(ne instanceof n.default))throw ne;return z.call(this,ne),await j.call(this,ne.missingSchema),N.call(this,K)}}function z({missingSchema:K,missingRef:ne}){if(this.refs[K])throw new Error(`AnySchema ${K} is loaded but ${ne} cannot be resolved`)}async function j(K){const ne=await H.call(this,K);this.refs[K]||await $.call(this,ne.$schema),this.refs[K]||this.addSchema(ne,K,x)}async function H(K){const ne=this._loading[K];if(ne)return ne;try{return await(this._loading[K]=S(K))}finally{delete this._loading[K]}}}addSchema(k,x,S,d=this.opts.validateSchema){if(Array.isArray(k)){for(const N of k)this.addSchema(N,void 0,S,d);return this}let $;if(typeof k=="object"){const{schemaId:N}=this.opts;if($=k[N],$!==void 0&&typeof $!="string")throw new Error(`schema ${N} must be string`)}return x=(0,c.normalizeId)(x||$),this._checkUnique(x),this.schemas[x]=this._addSchema(k,S,x,d,!0),this}addMetaSchema(k,x,S=this.opts.validateSchema){return this.addSchema(k,x,!0,S),this}validateSchema(k,x){if(typeof k=="boolean")return!0;let S;if(S=k.$schema,S!==void 0&&typeof S!="string")throw new Error("$schema must be a string");if(S=S||this.opts.defaultMeta||this.defaultMeta(),!S)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const d=this.validate(S,k);if(!d&&x){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return d}getSchema(k){let x;for(;typeof(x=T.call(this,k))=="string";)k=x;if(x===void 0){const{schemaId:S}=this.opts,d=new o.SchemaEnv({schema:{},schemaId:S});if(x=o.resolveSchema.call(this,d,k),!x)return;this.refs[k]=x}return x.validate||this._compileSchemaEnv(x)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const x=T.call(this,k);return typeof x=="object"&&this._cache.delete(x.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{const x=k;this._cache.delete(x);let S=k[this.opts.schemaId];return S&&(S=(0,c.normalizeId)(S),delete this.schemas[S],delete this.refs[S]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(k){for(const x of k)this.addKeyword(x);return this}addKeyword(k,x){let S;if(typeof k=="string")S=k,typeof x=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),x.keyword=S);else if(typeof k=="object"&&x===void 0){if(x=k,S=x.keyword,Array.isArray(S)&&!S.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(V.call(this,S,x),!x)return(0,l.eachItem)(S,$=>G.call(this,$)),this;re.call(this,x);const d={...x,type:(0,i.getJSONTypes)(x.type),schemaType:(0,i.getJSONTypes)(x.schemaType)};return(0,l.eachItem)(S,d.type.length===0?$=>G.call(this,$,d):$=>d.type.forEach(N=>G.call(this,$,d,N))),this}getKeyword(k){const x=this.RULES.all[k];return typeof x=="object"?x.definition:!!x}removeKeyword(k){const{RULES:x}=this;delete x.keywords[k],delete x.all[k];for(const S of x.rules){const d=S.rules.findIndex($=>$.keyword===k);d>=0&&S.rules.splice(d,1)}return this}addFormat(k,x){return typeof x=="string"&&(x=new RegExp(x)),this.formats[k]=x,this}errorsText(k=this.errors,{separator:x=", ",dataVar:S="data"}={}){return!k||k.length===0?"No errors":k.map(d=>`${S}${d.instancePath} ${d.message}`).reduce((d,$)=>d+x+$)}$dataMetaSchema(k,x){const S=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const d of x){const $=d.split("/").slice(1);let N=k;for(const z of $)N=N[z];for(const z in S){const j=S[z];if(typeof j!="object")continue;const{$data:H}=j.definition,K=N[z];H&&K&&(N[z]=oe(K))}}return k}_removeAllSchemas(k,x){for(const S in k){const d=k[S];(!x||x.test(S))&&(typeof d=="string"?delete k[S]:d&&!d.meta&&(this._cache.delete(d.schema),delete k[S]))}}_addSchema(k,x,S,d=this.opts.validateSchema,$=this.opts.addUsedSchema){let N;const{schemaId:z}=this.opts;if(typeof k=="object")N=k[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let j=this._cache.get(k);if(j!==void 0)return j;S=(0,c.normalizeId)(N||S);const H=c.getSchemaRefs.call(this,k,S);return j=new o.SchemaEnv({schema:k,schemaId:z,meta:x,baseId:S,localRefs:H}),this._cache.set(j.schema,j),$&&!S.startsWith("#")&&(S&&this._checkUnique(S),this.refs[S]=j),d&&this.validateSchema(k,!0),j}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):o.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){const x=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,k)}finally{this.opts=x}}}w.ValidationError=s.default,w.MissingRefError=n.default,r.default=w;function E(P,k,x,S="error"){for(const d in P){const $=d;$ in k&&this.logger[S](`${x}: option ${d}. ${P[$]}`)}}function T(P){return P=(0,c.normalizeId)(P),this.schemas[P]||this.refs[P]}function D(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const k in P)this.addSchema(P[k],k)}function R(){for(const P in this.opts.formats){const k=this.opts.formats[P];k&&this.addFormat(P,k)}}function L(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const k in P){const x=P[k];x.keyword||(x.keyword=k),this.addKeyword(x)}}function I(){const P={...this.opts};for(const k of p)delete P[k];return P}const A={log(){},warn(){},error(){}};function M(P){if(P===!1)return A;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function V(P,k){const{RULES:x}=this;if((0,l.eachItem)(P,S=>{if(x.keywords[S])throw new Error(`Keyword ${S} is already defined`);if(!F.test(S))throw new Error(`Keyword ${S} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function G(P,k,x){var S;const d=k==null?void 0:k.post;if(x&&d)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let N=d?$.post:$.rules.find(({type:j})=>j===x);if(N||(N={type:x,rules:[]},$.rules.push(N)),$.keywords[P]=!0,!k)return;const z={keyword:P,definition:{...k,type:(0,i.getJSONTypes)(k.type),schemaType:(0,i.getJSONTypes)(k.schemaType)}};k.before?X.call(this,N,z,k.before):N.rules.push(z),$.all[P]=z,(S=k.implements)===null||S===void 0||S.forEach(j=>this.addKeyword(j))}function X(P,k,x){const S=P.rules.findIndex(d=>d.keyword===x);S>=0?P.rules.splice(S,0,k):(P.rules.push(k),this.logger.warn(`rule ${x} is not defined`))}function re(P){let{metaSchema:k}=P;k!==void 0&&(P.$data&&this.opts.$data&&(k=oe(k)),P.validateSchema=this.compile(k,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function oe(P){return{anyOf:[P,te]}}}(xo);var An={},Tn={},Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const wf={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Pn.default=wf;var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.callRef=tr.getValidate=void 0;const Ef=fr,Ai=de,Qe=le,pr=wt,Ti=Ze,ys=W,$f={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:s}=r,{baseId:n,schemaEnv:a,validateName:o,opts:u,self:c}=s,{root:i}=a;if((t==="#"||t==="#/")&&n===i.baseId)return f();const l=Ti.resolveRef.call(c,i,n,t);if(l===void 0)throw new Ef.default(s.opts.uriResolver,n,t);if(l instanceof Ti.SchemaEnv)return h(l);return _(l);function f(){if(a===i)return vs(r,o,a,a.$async);const p=e.scopeValue("root",{ref:i});return vs(r,(0,Qe._)`${p}.validate`,i,i.$async)}function h(p){const v=Pi(r,p);vs(r,v,p,p.$async)}function _(p){const v=e.scopeValue("schema",u.code.source===!0?{ref:p,code:(0,Qe.stringify)(p)}:{ref:p}),m=e.name("valid"),y=r.subschema({schema:p,dataTypes:[],schemaPath:Qe.nil,topSchemaRef:v,errSchemaPath:t},m);r.mergeEvaluated(y),r.ok(m)}}};function Pi(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Qe._)`${t.scopeValue("wrapper",{ref:e})}.validate`}tr.getValidate=Pi;function vs(r,e,t,s){const{gen:n,it:a}=r,{allErrors:o,schemaEnv:u,opts:c}=a,i=c.passContext?pr.default.this:Qe.nil;s?l():f();function l(){if(!u.$async)throw new Error("async schema referenced by sync schema");const p=n.let("valid");n.try(()=>{n.code((0,Qe._)`await ${(0,Ai.callValidateCode)(r,e,i)}`),_(e),o||n.assign(p,!0)},v=>{n.if((0,Qe._)`!(${v} instanceof ${a.ValidationError})`,()=>n.throw(v)),h(v),o||n.assign(p,!1)}),r.ok(p)}function f(){r.result((0,Ai.callValidateCode)(r,e,i),()=>_(e),()=>h(e))}function h(p){const v=(0,Qe._)`${p}.errors`;n.assign(pr.default.vErrors,(0,Qe._)`${pr.default.vErrors} === null ? ${v} : ${pr.default.vErrors}.concat(${v})`),n.assign(pr.default.errors,(0,Qe._)`${pr.default.vErrors}.length`)}function _(p){var v;if(!a.opts.unevaluated)return;const m=(v=t==null?void 0:t.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(m&&!m.dynamicProps)m.props!==void 0&&(a.props=ys.mergeEvaluated.props(n,m.props,a.props));else{const y=n.var("props",(0,Qe._)`${p}.evaluated.props`);a.props=ys.mergeEvaluated.props(n,y,a.props,Qe.Name)}if(a.items!==!0)if(m&&!m.dynamicItems)m.items!==void 0&&(a.items=ys.mergeEvaluated.items(n,m.items,a.items));else{const y=n.var("items",(0,Qe._)`${p}.evaluated.items`);a.items=ys.mergeEvaluated.items(n,y,a.items,Qe.Name)}}}tr.callRef=vs,tr.default=$f,Object.defineProperty(Tn,"__esModule",{value:!0});const Sf=Pn,Cf=tr,xf=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Sf.default,Cf.default];Tn.default=xf;var Nn={},On={};Object.defineProperty(On,"__esModule",{value:!0});const _s=le,Ht=_s.operators,bs={maximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},minimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},exclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},exclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},Af={message:({keyword:r,schemaCode:e})=>(0,_s.str)`must be ${bs[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,_s._)`{comparison: ${bs[r].okStr}, limit: ${e}}`},Tf={keyword:Object.keys(bs),type:"number",schemaType:"number",$data:!0,error:Af,code(r){const{keyword:e,data:t,schemaCode:s}=r;r.fail$data((0,_s._)`${t} ${bs[e].fail} ${s} || isNaN(${t})`)}};On.default=Tf;var In={};Object.defineProperty(In,"__esModule",{value:!0});const Lr=le,Pf={message:({schemaCode:r})=>(0,Lr.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,Lr._)`{multipleOf: ${r}}`},Nf={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Pf,code(r){const{gen:e,data:t,schemaCode:s,it:n}=r,a=n.opts.multipleOfPrecision,o=e.let("res"),u=a?(0,Lr._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${a}`:(0,Lr._)`${o} !== parseInt(${o})`;r.fail$data((0,Lr._)`(${s} === 0 || (${o} = ${t}/${s}, ${u}))`)}};In.default=Nf;var Dn={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});function Ni(r){const e=r.length;let t=0,s=0,n;for(;s<e;)t++,n=r.charCodeAt(s++),n>=55296&&n<=56319&&s<e&&(n=r.charCodeAt(s),(n&64512)===56320&&s++);return t}Mn.default=Ni,Ni.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(Dn,"__esModule",{value:!0});const rr=le,Of=W,If=Mn,Df={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,rr.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,rr._)`{limit: ${r}}`},Mf={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Df,code(r){const{keyword:e,data:t,schemaCode:s,it:n}=r,a=e==="maxLength"?rr.operators.GT:rr.operators.LT,o=n.opts.unicode===!1?(0,rr._)`${t}.length`:(0,rr._)`${(0,Of.useFunc)(r.gen,If.default)}(${t})`;r.fail$data((0,rr._)`${o} ${a} ${s}`)}};Dn.default=Mf;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});const Ff=de,ks=le,Rf={message:({schemaCode:r})=>(0,ks.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,ks._)`{pattern: ${r}}`},Bf={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Rf,code(r){const{data:e,$data:t,schema:s,schemaCode:n,it:a}=r,o=a.opts.unicodeRegExp?"u":"",u=t?(0,ks._)`(new RegExp(${n}, ${o}))`:(0,Ff.usePattern)(r,s);r.fail$data((0,ks._)`!${u}.test(${e})`)}};Fn.default=Bf;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});const jr=le,Lf={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,jr.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,jr._)`{limit: ${r}}`},jf={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Lf,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxProperties"?jr.operators.GT:jr.operators.LT;r.fail$data((0,jr._)`Object.keys(${t}).length ${n} ${s}`)}};Rn.default=jf;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const zr=de,Vr=le,zf=W,Vf={message:({params:{missingProperty:r}})=>(0,Vr.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,Vr._)`{missingProperty: ${r}}`},Hf={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Vf,code(r){const{gen:e,schema:t,schemaCode:s,data:n,$data:a,it:o}=r,{opts:u}=o;if(!a&&t.length===0)return;const c=t.length>=u.loopRequired;if(o.allErrors?i():l(),u.strictRequired){const _=r.parentSchema.properties,{definedProperties:p}=r.it;for(const v of t)if((_==null?void 0:_[v])===void 0&&!p.has(v)){const m=o.schemaEnv.baseId+o.errSchemaPath,y=`required property "${v}" is not defined at "${m}" (strictRequired)`;(0,zf.checkStrictMode)(o,y,o.opts.strictRequired)}}function i(){if(c||a)r.block$data(Vr.nil,f);else for(const _ of t)(0,zr.checkReportMissingProp)(r,_)}function l(){const _=e.let("missing");if(c||a){const p=e.let("valid",!0);r.block$data(p,()=>h(_,p)),r.ok(p)}else e.if((0,zr.checkMissingProp)(r,t,_)),(0,zr.reportMissingProp)(r,_),e.else()}function f(){e.forOf("prop",s,_=>{r.setParams({missingProperty:_}),e.if((0,zr.noPropertyInData)(e,n,_,u.ownProperties),()=>r.error())})}function h(_,p){r.setParams({missingProperty:_}),e.forOf(_,s,()=>{e.assign(p,(0,zr.propertyInData)(e,n,_,u.ownProperties)),e.if((0,Vr.not)(p),()=>{r.error(),e.break()})},Vr.nil)}}};Bn.default=Hf;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Hr=le,Uf={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,Hr.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,Hr._)`{limit: ${r}}`},qf={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Uf,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxItems"?Hr.operators.GT:Hr.operators.LT;r.fail$data((0,Hr._)`${t}.length ${n} ${s}`)}};Ln.default=qf;var jn={},Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});const Oi=Go;Oi.code='require("ajv/dist/runtime/equal").default',Ur.default=Oi,Object.defineProperty(jn,"__esModule",{value:!0});const zn=Ce,Me=le,Kf=W,Gf=Ur,Wf={message:({params:{i:r,j:e}})=>(0,Me.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,Me._)`{i: ${r}, j: ${e}}`},Xf={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Wf,code(r){const{gen:e,data:t,$data:s,schema:n,parentSchema:a,schemaCode:o,it:u}=r;if(!s&&!n)return;const c=e.let("valid"),i=a.items?(0,zn.getSchemaTypes)(a.items):[];r.block$data(c,l,(0,Me._)`${o} === false`),r.ok(c);function l(){const p=e.let("i",(0,Me._)`${t}.length`),v=e.let("j");r.setParams({i:p,j:v}),e.assign(c,!0),e.if((0,Me._)`${p} > 1`,()=>(f()?h:_)(p,v))}function f(){return i.length>0&&!i.some(p=>p==="object"||p==="array")}function h(p,v){const m=e.name("item"),y=(0,zn.checkDataTypes)(i,m,u.opts.strictNumbers,zn.DataType.Wrong),g=e.const("indices",(0,Me._)`{}`);e.for((0,Me._)`;${p}--;`,()=>{e.let(m,(0,Me._)`${t}[${p}]`),e.if(y,(0,Me._)`continue`),i.length>1&&e.if((0,Me._)`typeof ${m} == "string"`,(0,Me._)`${m} += "_"`),e.if((0,Me._)`typeof ${g}[${m}] == "number"`,()=>{e.assign(v,(0,Me._)`${g}[${m}]`),r.error(),e.assign(c,!1).break()}).code((0,Me._)`${g}[${m}] = ${p}`)})}function _(p,v){const m=(0,Kf.useFunc)(e,Gf.default),y=e.name("outer");e.label(y).for((0,Me._)`;${p}--;`,()=>e.for((0,Me._)`${v} = ${p}; ${v}--;`,()=>e.if((0,Me._)`${m}(${t}[${p}], ${t}[${v}])`,()=>{r.error(),e.assign(c,!1).break(y)})))}}};jn.default=Xf;var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});const Hn=le,Yf=W,Jf=Ur,Zf={message:"must be equal to constant",params:({schemaCode:r})=>(0,Hn._)`{allowedValue: ${r}}`},Qf={keyword:"const",$data:!0,error:Zf,code(r){const{gen:e,data:t,$data:s,schemaCode:n,schema:a}=r;s||a&&typeof a=="object"?r.fail$data((0,Hn._)`!${(0,Yf.useFunc)(e,Jf.default)}(${t}, ${n})`):r.fail((0,Hn._)`${a} !== ${t}`)}};Vn.default=Qf;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});const qr=le,ep=W,tp=Ur,rp={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,qr._)`{allowedValues: ${r}}`},sp={keyword:"enum",schemaType:"array",$data:!0,error:rp,code(r){const{gen:e,data:t,$data:s,schema:n,schemaCode:a,it:o}=r;if(!s&&n.length===0)throw new Error("enum must have non-empty array");const u=n.length>=o.opts.loopEnum;let c;const i=()=>c??(c=(0,ep.useFunc)(e,tp.default));let l;if(u||s)l=e.let("valid"),r.block$data(l,f);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const _=e.const("vSchema",a);l=(0,qr.or)(...n.map((p,v)=>h(_,v)))}r.pass(l);function f(){e.assign(l,!1),e.forOf("v",a,_=>e.if((0,qr._)`${i()}(${t}, ${_})`,()=>e.assign(l,!0).break()))}function h(_,p){const v=n[p];return typeof v=="object"&&v!==null?(0,qr._)`${i()}(${t}, ${_}[${p}])`:(0,qr._)`${t} === ${v}`}}};Un.default=sp,Object.defineProperty(Nn,"__esModule",{value:!0});const np=On,ap=In,op=Dn,ip=Fn,up=Rn,lp=Bn,cp=Ln,dp=jn,hp=Vn,fp=Un,pp=[np.default,ap.default,op.default,ip.default,up.default,lp.default,cp.default,dp.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hp.default,fp.default];Nn.default=pp;var qn={},mr={};Object.defineProperty(mr,"__esModule",{value:!0}),mr.validateAdditionalItems=void 0;const sr=le,Kn=W,mp={message:({params:{len:r}})=>(0,sr.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,sr._)`{limit: ${r}}`},gp={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:mp,code(r){const{parentSchema:e,it:t}=r,{items:s}=e;if(!Array.isArray(s)){(0,Kn.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ii(r,s)}};function Ii(r,e){const{gen:t,schema:s,data:n,keyword:a,it:o}=r;o.items=!0;const u=t.const("len",(0,sr._)`${n}.length`);if(s===!1)r.setParams({len:e.length}),r.pass((0,sr._)`${u} <= ${e.length}`);else if(typeof s=="object"&&!(0,Kn.alwaysValidSchema)(o,s)){const i=t.var("valid",(0,sr._)`${u} <= ${e.length}`);t.if((0,sr.not)(i),()=>c(i)),r.ok(i)}function c(i){t.forRange("i",e.length,u,l=>{r.subschema({keyword:a,dataProp:l,dataPropType:Kn.Type.Num},i),o.allErrors||t.if((0,sr.not)(i),()=>t.break())})}}mr.validateAdditionalItems=Ii,mr.default=gp;var Gn={},gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateTuple=void 0;const Di=le,ws=W,yp=de,vp={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return Mi(r,"additionalItems",e);t.items=!0,!(0,ws.alwaysValidSchema)(t,e)&&r.ok((0,yp.validateArray)(r))}};function Mi(r,e,t=r.schema){const{gen:s,parentSchema:n,data:a,keyword:o,it:u}=r;l(n),u.opts.unevaluated&&t.length&&u.items!==!0&&(u.items=ws.mergeEvaluated.items(s,t.length,u.items));const c=s.name("valid"),i=s.const("len",(0,Di._)`${a}.length`);t.forEach((f,h)=>{(0,ws.alwaysValidSchema)(u,f)||(s.if((0,Di._)`${i} > ${h}`,()=>r.subschema({keyword:o,schemaProp:h,dataProp:h},c)),r.ok(c))});function l(f){const{opts:h,errSchemaPath:_}=u,p=t.length,v=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(h.strictTuples&&!v){const m=`"${o}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${_}"`;(0,ws.checkStrictMode)(u,m,h.strictTuples)}}}gr.validateTuple=Mi,gr.default=vp,Object.defineProperty(Gn,"__esModule",{value:!0});const _p=gr,bp={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,_p.validateTuple)(r,"items")};Gn.default=bp;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});const Fi=le,kp=W,wp=de,Ep=mr,$p={message:({params:{len:r}})=>(0,Fi.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Fi._)`{limit: ${r}}`},Sp={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:$p,code(r){const{schema:e,parentSchema:t,it:s}=r,{prefixItems:n}=t;s.items=!0,!(0,kp.alwaysValidSchema)(s,e)&&(n?(0,Ep.validateAdditionalItems)(r,n):r.ok((0,wp.validateArray)(r)))}};Wn.default=Sp;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const ut=le,Es=W,Cp={message:({params:{min:r,max:e}})=>e===void 0?(0,ut.str)`must contain at least ${r} valid item(s)`:(0,ut.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,ut._)`{minContains: ${r}}`:(0,ut._)`{minContains: ${r}, maxContains: ${e}}`},xp={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Cp,code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;let o,u;const{minContains:c,maxContains:i}=s;a.opts.next?(o=c===void 0?1:c,u=i):o=1;const l=e.const("len",(0,ut._)`${n}.length`);if(r.setParams({min:o,max:u}),u===void 0&&o===0){(0,Es.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&o>u){(0,Es.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,Es.alwaysValidSchema)(a,t)){let v=(0,ut._)`${l} >= ${o}`;u!==void 0&&(v=(0,ut._)`${v} && ${l} <= ${u}`),r.pass(v);return}a.items=!0;const f=e.name("valid");u===void 0&&o===1?_(f,()=>e.if(f,()=>e.break())):o===0?(e.let(f,!0),u!==void 0&&e.if((0,ut._)`${n}.length > 0`,h)):(e.let(f,!1),h()),r.result(f,()=>r.reset());function h(){const v=e.name("_valid"),m=e.let("count",0);_(v,()=>e.if(v,()=>p(m)))}function _(v,m){e.forRange("i",0,l,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:Es.Type.Num,compositeRule:!0},v),m()})}function p(v){e.code((0,ut._)`${v}++`),u===void 0?e.if((0,ut._)`${v} >= ${o}`,()=>e.assign(f,!0).break()):(e.if((0,ut._)`${v} > ${u}`,()=>e.assign(f,!1).break()),o===1?e.assign(f,!0):e.if((0,ut._)`${v} >= ${o}`,()=>e.assign(f,!0)))}}};Xn.default=xp;var Ri={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=le,t=W,s=de;r.error={message:({params:{property:c,depsCount:i,deps:l}})=>{const f=i===1?"property":"properties";return(0,e.str)`must have ${f} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:i,deps:l,missingProperty:f}})=>(0,e._)`{property: ${c},
26
26
  missingProperty: ${f},
27
- depsCount: ${o},
28
- deps: ${l}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[o,l]=a(c);i(c,o),u(c,l)}};function a({schema:c}){const o={},l={};for(const f in c){if(f==="__proto__")continue;const h=Array.isArray(c[f])?o:l;h[f]=c[f]}return[o,l]}function i(c,o=c.schema){const{gen:l,data:f,it:h}=c;if(Object.keys(o).length===0)return;const _=l.let("missing");for(const p in o){const v=o[p];if(v.length===0)continue;const m=(0,s.propertyInData)(l,f,p,h.opts.ownProperties);c.setParams({property:p,depsCount:v.length,deps:v.join(", ")}),h.allErrors?l.if(m,()=>{for(const y of v)(0,s.checkReportMissingProp)(c,y)}):(l.if((0,e._)`${m} && (${(0,s.checkMissingProp)(c,v,_)})`),(0,s.reportMissingProp)(c,_),l.else())}}r.validatePropertyDeps=i;function u(c,o=c.schema){const{gen:l,data:f,keyword:h,it:_}=c,p=l.name("valid");for(const v in o)(0,t.alwaysValidSchema)(_,o[v])||(l.if((0,s.propertyInData)(l,f,v,_.opts.ownProperties),()=>{const m=c.subschema({keyword:h,schemaProp:v},p);c.mergeValidEvaluated(m,p)},()=>l.var(p,!0)),c.ok(p))}r.validateSchemaDeps=u,r.default=n})(Ri);var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Bi=le,Ap=W,Tp={message:"property name must be valid",params:({params:r})=>(0,Bi._)`{propertyName: ${r.propertyName}}`},Pp={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Tp,code(r){const{gen:e,schema:t,data:s,it:n}=r;if((0,Ap.alwaysValidSchema)(n,t))return;const a=e.name("valid");e.forIn("key",s,i=>{r.setParams({propertyName:i}),r.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),e.if((0,Bi.not)(a),()=>{r.error(!0),n.allErrors||e.break()})}),r.ok(a)}};Yn.default=Pp;var $s={};Object.defineProperty($s,"__esModule",{value:!0});const Ss=de,bt=le,Np=wt,xs=W,Op={message:"must NOT have additional properties",params:({params:r})=>(0,bt._)`{additionalProperty: ${r.additionalProperty}}`},Ip={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Op,code(r){const{gen:e,schema:t,parentSchema:s,data:n,errsCount:a,it:i}=r;if(!a)throw new Error("ajv implementation error");const{allErrors:u,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,xs.alwaysValidSchema)(i,t))return;const o=(0,Ss.allSchemaProperties)(s.properties),l=(0,Ss.allSchemaProperties)(s.patternProperties);f(),r.ok((0,bt._)`${a} === ${Np.default.errors}`);function f(){e.forIn("key",n,m=>{!o.length&&!l.length?p(m):e.if(h(m),()=>p(m))})}function h(m){let y;if(o.length>8){const g=(0,xs.schemaRefOrVal)(i,s.properties,"properties");y=(0,Ss.isOwnProperty)(e,g,m)}else o.length?y=(0,bt.or)(...o.map(g=>(0,bt._)`${m} === ${g}`)):y=bt.nil;return l.length&&(y=(0,bt.or)(y,...l.map(g=>(0,bt._)`${(0,Ss.usePattern)(r,g)}.test(${m})`))),(0,bt.not)(y)}function _(m){e.code((0,bt._)`delete ${n}[${m}]`)}function p(m){if(c.removeAdditional==="all"||c.removeAdditional&&t===!1){_(m);return}if(t===!1){r.setParams({additionalProperty:m}),r.error(),u||e.break();return}if(typeof t=="object"&&!(0,xs.alwaysValidSchema)(i,t)){const y=e.name("valid");c.removeAdditional==="failing"?(v(m,y,!1),e.if((0,bt.not)(y),()=>{r.reset(),_(m)})):(v(m,y),u||e.if((0,bt.not)(y),()=>e.break()))}}function v(m,y,g){const b={keyword:"additionalProperties",dataProp:m,dataPropType:xs.Type.Str};g===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(b,y)}}};$s.default=Ip;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});const Dp=yt,Li=de,Zn=W,ji=$s,Mp={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;a.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&ji.default.code(new Dp.KeywordCxt(a,ji.default,"additionalProperties"));const i=(0,Li.allSchemaProperties)(t);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Zn.mergeEvaluated.props(e,(0,Zn.toHash)(i),a.props));const u=i.filter(f=>!(0,Zn.alwaysValidSchema)(a,t[f]));if(u.length===0)return;const c=e.name("valid");for(const f of u)o(f)?l(f):(e.if((0,Li.propertyInData)(e,n,f,a.opts.ownProperties)),l(f),a.allErrors||e.else().var(c,!0),e.endIf()),r.it.definedProperties.add(f),r.ok(c);function o(f){return a.opts.useDefaults&&!a.compositeRule&&t[f].default!==void 0}function l(f){r.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};Jn.default=Mp;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const zi=de,Cs=le,Vi=W,Hi=W,Fp={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:s,parentSchema:n,it:a}=r,{opts:i}=a,u=(0,zi.allSchemaProperties)(t),c=u.filter(v=>(0,Vi.alwaysValidSchema)(a,t[v]));if(u.length===0||c.length===u.length&&(!a.opts.unevaluated||a.props===!0))return;const o=i.strictSchema&&!i.allowMatchingProperties&&n.properties,l=e.name("valid");a.props!==!0&&!(a.props instanceof Cs.Name)&&(a.props=(0,Hi.evaluatedPropsToName)(e,a.props));const{props:f}=a;h();function h(){for(const v of u)o&&_(v),a.allErrors?p(v):(e.var(l,!0),p(v),e.if(l))}function _(v){for(const m in o)new RegExp(v).test(m)&&(0,Vi.checkStrictMode)(a,`property ${m} matches pattern ${v} (use allowMatchingProperties)`)}function p(v){e.forIn("key",s,m=>{e.if((0,Cs._)`${(0,zi.usePattern)(r,v)}.test(${m})`,()=>{const y=c.includes(v);y||r.subschema({keyword:"patternProperties",schemaProp:v,dataProp:m,dataPropType:Hi.Type.Str},l),a.opts.unevaluated&&f!==!0?e.assign((0,Cs._)`${f}[${m}]`,!0):!y&&!a.allErrors&&e.if((0,Cs.not)(l),()=>e.break())})})}}};Qn.default=Fp;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});const Rp=W,Bp={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:s}=r;if((0,Rp.alwaysValidSchema)(s,t)){r.fail();return}const n=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),r.failResult(n,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};ea.default=Bp;var ta={};Object.defineProperty(ta,"__esModule",{value:!0});const Lp=de,jp={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Lp.validateUnion,error:{message:"must match a schema in anyOf"}};ta.default=jp;var ra={};Object.defineProperty(ra,"__esModule",{value:!0});const As=le,zp=W,Vp={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,As._)`{passingSchemas: ${r.passing}}`},Hp={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Vp,code(r){const{gen:e,schema:t,parentSchema:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(n.opts.discriminator&&s.discriminator)return;const a=t,i=e.let("valid",!1),u=e.let("passing",null),c=e.name("_valid");r.setParams({passing:u}),e.block(o),r.result(i,()=>r.reset(),()=>r.error(!0));function o(){a.forEach((l,f)=>{let h;(0,zp.alwaysValidSchema)(n,l)?e.var(c,!0):h=r.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,As._)`${c} && ${i}`).assign(i,!1).assign(u,(0,As._)`[${u}, ${f}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(u,f),h&&r.mergeEvaluated(h,As.Name)})})}}};ra.default=Hp;var sa={};Object.defineProperty(sa,"__esModule",{value:!0});const Up=W,qp={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:s}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const n=e.name("valid");t.forEach((a,i)=>{if((0,Up.alwaysValidSchema)(s,a))return;const u=r.subschema({keyword:"allOf",schemaProp:i},n);r.ok(n),r.mergeEvaluated(u)})}};sa.default=qp;var na={};Object.defineProperty(na,"__esModule",{value:!0});const Ts=le,Ui=W,Kp={message:({params:r})=>(0,Ts.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Ts._)`{failingKeyword: ${r.ifClause}}`},Gp={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Kp,code(r){const{gen:e,parentSchema:t,it:s}=r;t.then===void 0&&t.else===void 0&&(0,Ui.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const n=qi(s,"then"),a=qi(s,"else");if(!n&&!a)return;const i=e.let("valid",!0),u=e.name("_valid");if(c(),r.reset(),n&&a){const l=e.let("ifClause");r.setParams({ifClause:l}),e.if(u,o("then",l),o("else",l))}else n?e.if(u,o("then")):e.if((0,Ts.not)(u),o("else"));r.pass(i,()=>r.error(!0));function c(){const l=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);r.mergeEvaluated(l)}function o(l,f){return()=>{const h=r.subschema({keyword:l},u);e.assign(i,u),r.mergeValidEvaluated(h,i),f?e.assign(f,(0,Ts._)`${l}`):r.setParams({ifClause:l})}}}};function qi(r,e){const t=r.schema[e];return t!==void 0&&!(0,Ui.alwaysValidSchema)(r,t)}na.default=Gp;var aa={};Object.defineProperty(aa,"__esModule",{value:!0});const Wp=W,Xp={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,Wp.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};aa.default=Xp,Object.defineProperty(qn,"__esModule",{value:!0});const Yp=mr,Jp=Gn,Zp=gr,Qp=Wn,e0=Xn,t0=Ri,r0=Yn,s0=$s,n0=Jn,a0=Qn,o0=ea,i0=ta,u0=ra,l0=sa,c0=na,d0=aa;function h0(r=!1){const e=[o0.default,i0.default,u0.default,l0.default,c0.default,d0.default,r0.default,s0.default,t0.default,n0.default,a0.default];return r?e.push(Jp.default,Qp.default):e.push(Yp.default,Zp.default),e.push(e0.default),e}qn.default=h0;var oa={},ia={};Object.defineProperty(ia,"__esModule",{value:!0});const Ee=le,f0={message:({schemaCode:r})=>(0,Ee.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Ee._)`{format: ${r}}`},p0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:f0,code(r,e){const{gen:t,data:s,$data:n,schema:a,schemaCode:i,it:u}=r,{opts:c,errSchemaPath:o,schemaEnv:l,self:f}=u;if(!c.validateFormats)return;n?h():_();function h(){const p=t.scopeValue("formats",{ref:f.formats,code:c.code.formats}),v=t.const("fDef",(0,Ee._)`${p}[${i}]`),m=t.let("fType"),y=t.let("format");t.if((0,Ee._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>t.assign(m,(0,Ee._)`${v}.type || "string"`).assign(y,(0,Ee._)`${v}.validate`),()=>t.assign(m,(0,Ee._)`"string"`).assign(y,v)),r.fail$data((0,Ee.or)(g(),b()));function g(){return c.strictSchema===!1?Ee.nil:(0,Ee._)`${i} && !${y}`}function b(){const w=l.$async?(0,Ee._)`(${v}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,Ee._)`${y}(${s})`,E=(0,Ee._)`(typeof ${y} == "function" ? ${w} : ${y}.test(${s}))`;return(0,Ee._)`${y} && ${y} !== true && ${m} === ${e} && !${E}`}}function _(){const p=f.formats[a];if(!p){g();return}if(p===!0)return;const[v,m,y]=b(p);v===e&&r.pass(w());function g(){if(c.strictSchema===!1){f.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${a}" ignored in schema at path "${o}"`}}function b(E){const T=E instanceof RegExp?(0,Ee.regexpCode)(E):c.code.formats?(0,Ee._)`${c.code.formats}${(0,Ee.getProperty)(a)}`:void 0,D=t.scopeValue("formats",{key:a,ref:E,code:T});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,Ee._)`${D}.validate`]:["string",E,D]}function w(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Ee._)`await ${y}(${s})`}return typeof m=="function"?(0,Ee._)`${y}(${s})`:(0,Ee._)`${y}.test(${s})`}}}};ia.default=p0,Object.defineProperty(oa,"__esModule",{value:!0});const m0=ia,g0=[m0.default];oa.default=g0;var yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.contentVocabulary=yr.metadataVocabulary=void 0,yr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],yr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(An,"__esModule",{value:!0});const y0=Tn,v0=Nn,_0=qn,b0=oa,Ki=yr,k0=[y0.default,v0.default,(0,_0.default)(),b0.default,Ki.metadataVocabulary,Ki.contentVocabulary];An.default=k0;var ua={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.DiscrError=void 0;var Gi;(function(r){r.Tag="tag",r.Mapping="mapping"})(Gi||(Ps.DiscrError=Gi={})),Object.defineProperty(ua,"__esModule",{value:!0});const vr=le,la=Ps,Wi=Ze,w0=fr,E0=W,$0={message:({params:{discrError:r,tagName:e}})=>r===la.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,vr._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},S0={keyword:"discriminator",type:"object",schemaType:"object",error:$0,code(r){const{gen:e,data:t,schema:s,parentSchema:n,it:a}=r,{oneOf:i}=n;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=s.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),o=e.const("tag",(0,vr._)`${t}${(0,vr.getProperty)(u)}`);e.if((0,vr._)`typeof ${o} == "string"`,()=>l(),()=>r.error(!1,{discrError:la.DiscrError.Tag,tag:o,tagName:u})),r.ok(c);function l(){const _=h();e.if(!1);for(const p in _)e.elseIf((0,vr._)`${o} === ${p}`),e.assign(c,f(_[p]));e.else(),r.error(!1,{discrError:la.DiscrError.Mapping,tag:o,tagName:u}),e.endIf()}function f(_){const p=e.name("valid"),v=r.subschema({keyword:"oneOf",schemaProp:_},p);return r.mergeEvaluated(v,vr.Name),p}function h(){var _;const p={},v=y(n);let m=!0;for(let w=0;w<i.length;w++){let E=i[w];if(E!=null&&E.$ref&&!(0,E0.schemaHasRulesButRef)(E,a.self.RULES)){const D=E.$ref;if(E=Wi.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,D),E instanceof Wi.SchemaEnv&&(E=E.schema),E===void 0)throw new w0.default(a.opts.uriResolver,a.baseId,D)}const T=(_=E==null?void 0:E.properties)===null||_===void 0?void 0:_[u];if(typeof T!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);m=m&&(v||y(E)),g(T,w)}if(!m)throw new Error(`discriminator: "${u}" must be required`);return p;function y({required:w}){return Array.isArray(w)&&w.includes(u)}function g(w,E){if(w.const)b(w.const,E);else if(w.enum)for(const T of w.enum)b(T,E);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function b(w,E){if(typeof w!="string"||w in p)throw new Error(`discriminator: "${u}" values must be unique strings`);p[w]=E}}}};ua.default=S0;const x0="http://json-schema.org/draft-07/schema#",C0="http://json-schema.org/draft-07/schema#",A0="Core schema meta-schema",T0={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:[]}},P0=["object","boolean"],N0={$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:"#"}},O0={$schema:x0,$id:C0,title:A0,definitions:T0,type:P0,properties:N0,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const t=Co,s=An,n=ua,a=O0,i=["/properties"],u="http://json-schema.org/draft-07/schema";class c extends t.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(p,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.Ajv=c,r.exports=e=c,r.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var o=yt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var l=le;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var f=Rr;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=fr;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(an,an.exports);var I0=an.exports,Xi={exports:{}},Yi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0;function e(A,M){return{validate:A,compare:M}}r.fullFormats={date:e(a,i),time:e(c(!0),o),"date-time":e(h(!0),_),"iso-time":e(c(),l),"iso-date-time":e(h(),p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:y,"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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:I,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:b,int32:{type:"number",validate:T},int64:{type:"number",validate:D},float:{type:"number",validate:R},double:{type:"number",validate:R},password:!0,binary:!0},r.fastFormats={...r.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,o),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":e(/^\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,p),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},r.formatNames=Object.keys(r.fullFormats);function t(A){return A%4===0&&(A%100!==0||A%400===0)}const s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(A){const M=s.exec(A);if(!M)return!1;const F=+M[1],V=+M[2],G=+M[3];return V>=1&&V<=12&&G>=1&&G<=(V===2&&t(F)?29:n[V])}function i(A,M){if(A&&M)return A>M?1:A<M?-1:0}const u=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(A){return function(M){const F=u.exec(M);if(!F)return!1;const V=+F[1],G=+F[2],X=+F[3],re=F[4],te=F[5]==="-"?-1:1,oe=+(F[6]||0),P=+(F[7]||0);if(oe>23||P>59||A&&!re)return!1;if(V<=23&&G<=59&&X<60)return!0;const k=G-P*te,C=V-oe*te-(k<0?1:0);return(C===23||C===-1)&&(k===59||k===-1)&&X<61}}function o(A,M){if(!(A&&M))return;const F=new Date("2020-01-01T"+A).valueOf(),V=new Date("2020-01-01T"+M).valueOf();if(F&&V)return F-V}function l(A,M){if(!(A&&M))return;const F=u.exec(A),V=u.exec(M);if(F&&V)return A=F[1]+F[2]+F[3],M=V[1]+V[2]+V[3],A>M?1:A<M?-1:0}const f=/t|\s/i;function h(A){const M=c(A);return function(F){const V=F.split(f);return V.length===2&&a(V[0])&&M(V[1])}}function _(A,M){if(!(A&&M))return;const F=new Date(A).valueOf(),V=new Date(M).valueOf();if(F&&V)return F-V}function p(A,M){if(!(A&&M))return;const[F,V]=A.split(f),[G,X]=M.split(f),re=i(F,G);if(re!==void 0)return re||o(V,X)}const v=/\/|:/,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 y(A){return v.test(A)&&m.test(A)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(A){return g.lastIndex=0,g.test(A)}const w=-2147483648,E=2**31-1;function T(A){return Number.isInteger(A)&&A<=E&&A>=w}function D(A){return Number.isInteger(A)}function R(){return!0}const L=/[^\\]\\Z/;function I(A){if(L.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Yi);var Ji={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=I0,t=le,s=t.operators,n={formatMaximum:{okStr:"<=",ok:s.LTE,fail:s.GT},formatMinimum:{okStr:">=",ok:s.GTE,fail:s.LT},formatExclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},formatExclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},a={message:({keyword:u,schemaCode:c})=>(0,t.str)`should be ${n[u].okStr} ${c}`,params:({keyword:u,schemaCode:c})=>(0,t._)`{comparison: ${n[u].okStr}, limit: ${c}}`};r.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:a,code(u){const{gen:c,data:o,schemaCode:l,keyword:f,it:h}=u,{opts:_,self:p}=h;if(!_.validateFormats)return;const v=new e.KeywordCxt(h,p.RULES.all.format.definition,"format");v.$data?m():y();function m(){const b=c.scopeValue("formats",{ref:p.formats,code:_.code.formats}),w=c.const("fmt",(0,t._)`${b}[${v.schemaCode}]`);u.fail$data((0,t.or)((0,t._)`typeof ${w} != "object"`,(0,t._)`${w} instanceof RegExp`,(0,t._)`typeof ${w}.compare != "function"`,g(w)))}function y(){const b=v.schema,w=p.formats[b];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${f}": format "${b}" does not define "compare" function`);const E=c.scopeValue("formats",{key:b,ref:w,code:_.code.formats?(0,t._)`${_.code.formats}${(0,t.getProperty)(b)}`:void 0});u.fail$data(g(E))}function g(b){return(0,t._)`${b}.compare(${o}, ${l}) ${n[f].fail} 0`}},dependencies:["format"]};const i=u=>(u.addKeyword(r.formatLimitDefinition),u);r.default=i})(Ji),function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Yi,s=Ji,n=le,a=new n.Name("fullFormats"),i=new n.Name("fastFormats"),u=(o,l={keywords:!0})=>{if(Array.isArray(l))return c(o,l,t.fullFormats,a),o;const[f,h]=l.mode==="fast"?[t.fastFormats,i]:[t.fullFormats,a],_=l.formats||t.formatNames;return c(o,_,f,h),l.keywords&&(0,s.default)(o),o};u.get=(o,l="full")=>{const f=(l==="fast"?t.fastFormats:t.fullFormats)[o];if(!f)throw new Error(`Unknown format "${o}"`);return f};function c(o,l,f,h){var _,p;(_=(p=o.opts.code).formats)!==null&&_!==void 0||(p.formats=(0,n._)`require("ajv-formats/dist/formats").${h}`);for(const v of l)o.addFormat(v,f[v])}r.exports=e=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u}(Xi,Xi.exports);function Zi(r,e={format:"iso"}){if(e.format==="localized")return new Intl.DateTimeFormat("pt-BR",{day:"numeric",month:"short",year:"numeric"}).format(r);const t=r.getFullYear(),s=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0");return`${t}-${s}-${n}`}const D0={},M0=Object.freeze(Object.defineProperty({__proto__:null,default:D0},Symbol.toStringTag,{value:"Module"}));var F0={exports:{}};function R0(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Qi={exports:{}};const B0=Hc(M0);var eu;function fe(){return eu||(eu=1,function(r,e){(function(t,s){r.exports=s()})(ce,function(){var t=t||function(s,n){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof ce<"u"&&ce.crypto&&(a=ce.crypto),!a&&typeof R0=="function")try{a=B0}catch{}var i=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function g(){}return function(b){var w;return g.prototype=b,w=new g,g.prototype=null,w}}(),c={},o=c.lib={},l=o.Base=function(){return{extend:function(g){var b=u(this);return g&&b.mixIn(g),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var b in g)g.hasOwnProperty(b)&&(this[b]=g[b]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=o.WordArray=l.extend({init:function(g,b){g=this.words=g||[],b!=n?this.sigBytes=b:this.sigBytes=g.length*4},toString:function(g){return(g||_).stringify(this)},concat:function(g){var b=this.words,w=g.words,E=this.sigBytes,T=g.sigBytes;if(this.clamp(),E%4)for(var D=0;D<T;D++){var R=w[D>>>2]>>>24-D%4*8&255;b[E+D>>>2]|=R<<24-(E+D)%4*8}else for(var L=0;L<T;L+=4)b[E+L>>>2]=w[L>>>2];return this.sigBytes+=T,this},clamp:function(){var g=this.words,b=this.sigBytes;g[b>>>2]&=4294967295<<32-b%4*8,g.length=s.ceil(b/4)},clone:function(){var g=l.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var b=[],w=0;w<g;w+=4)b.push(i());return new f.init(b,g)}}),h=c.enc={},_=h.Hex={stringify:function(g){for(var b=g.words,w=g.sigBytes,E=[],T=0;T<w;T++){var D=b[T>>>2]>>>24-T%4*8&255;E.push((D>>>4).toString(16)),E.push((D&15).toString(16))}return E.join("")},parse:function(g){for(var b=g.length,w=[],E=0;E<b;E+=2)w[E>>>3]|=parseInt(g.substr(E,2),16)<<24-E%8*4;return new f.init(w,b/2)}},p=h.Latin1={stringify:function(g){for(var b=g.words,w=g.sigBytes,E=[],T=0;T<w;T++){var D=b[T>>>2]>>>24-T%4*8&255;E.push(String.fromCharCode(D))}return E.join("")},parse:function(g){for(var b=g.length,w=[],E=0;E<b;E++)w[E>>>2]|=(g.charCodeAt(E)&255)<<24-E%4*8;return new f.init(w,b)}},v=h.Utf8={stringify:function(g){try{return decodeURIComponent(escape(p.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return p.parse(unescape(encodeURIComponent(g)))}},m=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=v.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var b,w=this._data,E=w.words,T=w.sigBytes,D=this.blockSize,R=D*4,L=T/R;g?L=s.ceil(L):L=s.max((L|0)-this._minBufferSize,0);var I=L*D,A=s.min(I*4,T);if(I){for(var M=0;M<I;M+=D)this._doProcessBlock(E,M);b=E.splice(0,I),w.sigBytes-=A}return new f.init(b,A)},clone:function(){var g=l.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});o.Hasher=m.extend({cfg:l.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(g){return function(b,w){return new g.init(w).finalize(b)}},_createHmacHelper:function(g){return function(b,w){return new y.HMAC.init(g,w).finalize(b)}}});var y=c.algo={};return c}(Math);return t})}(Qi)),Qi.exports}var tu={exports:{}},ru;function Ns(){return ru||(ru=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.Base,u=a.WordArray,c=n.x64={};c.Word=i.extend({init:function(o,l){this.high=o,this.low=l}}),c.WordArray=i.extend({init:function(o,l){o=this.words=o||[],l!=s?this.sigBytes=l:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,l=o.length,f=[],h=0;h<l;h++){var _=o[h];f.push(_.high),f.push(_.low)}return u.create(f,this.sigBytes)},clone:function(){for(var o=i.clone.call(this),l=o.words=this.words.slice(0),f=l.length,h=0;h<f;h++)l[h]=l[h].clone();return o}})}(),t})}(tu)),tu.exports}var su={exports:{}},nu;function L0(){return nu||(nu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var s=t,n=s.lib,a=n.WordArray,i=a.init,u=a.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var o=c.byteLength,l=[],f=0;f<o;f++)l[f>>>2]|=c[f]<<24-f%4*8;i.call(this,l,o)}else i.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(su)),su.exports}var au={exports:{}},ou;function j0(){return ou||(ou=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Utf16=i.Utf16BE={stringify:function(c){for(var o=c.words,l=c.sigBytes,f=[],h=0;h<l;h+=2){var _=o[h>>>2]>>>16-h%4*8&65535;f.push(String.fromCharCode(_))}return f.join("")},parse:function(c){for(var o=c.length,l=[],f=0;f<o;f++)l[f>>>1]|=c.charCodeAt(f)<<16-f%2*16;return a.create(l,o*2)}},i.Utf16LE={stringify:function(c){for(var o=c.words,l=c.sigBytes,f=[],h=0;h<l;h+=2){var _=u(o[h>>>2]>>>16-h%4*8&65535);f.push(String.fromCharCode(_))}return f.join("")},parse:function(c){for(var o=c.length,l=[],f=0;f<o;f++)l[f>>>1]|=u(c.charCodeAt(f)<<16-f%2*16);return a.create(l,o*2)}};function u(c){return c<<8&4278255360|c>>>8&16711935}}(),t.enc.Utf16})}(au)),au.exports}var iu={exports:{}},uu;function nr(){return uu||(uu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64={stringify:function(c){var o=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var h=[],_=0;_<l;_+=3)for(var p=o[_>>>2]>>>24-_%4*8&255,v=o[_+1>>>2]>>>24-(_+1)%4*8&255,m=o[_+2>>>2]>>>24-(_+2)%4*8&255,y=p<<16|v<<8|m,g=0;g<4&&_+g*.75<l;g++)h.push(f.charAt(y>>>6*(3-g)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(c){var o=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<l.length;h++)f[l.charCodeAt(h)]=h}var _=l.charAt(64);if(_){var p=c.indexOf(_);p!==-1&&(o=p)}return u(c,o,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(c,o,l){for(var f=[],h=0,_=0;_<o;_++)if(_%4){var p=l[c.charCodeAt(_-1)]<<_%4*2,v=l[c.charCodeAt(_)]>>>6-_%4*2,m=p|v;f[h>>>2]|=m<<24-h%4*8,h++}return a.create(f,h)}}(),t.enc.Base64})}(iu)),iu.exports}var lu={exports:{}},cu;function z0(){return cu||(cu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64url={stringify:function(c,o){o===void 0&&(o=!0);var l=c.words,f=c.sigBytes,h=o?this._safe_map:this._map;c.clamp();for(var _=[],p=0;p<f;p+=3)for(var v=l[p>>>2]>>>24-p%4*8&255,m=l[p+1>>>2]>>>24-(p+1)%4*8&255,y=l[p+2>>>2]>>>24-(p+2)%4*8&255,g=v<<16|m<<8|y,b=0;b<4&&p+b*.75<f;b++)_.push(h.charAt(g>>>6*(3-b)&63));var w=h.charAt(64);if(w)for(;_.length%4;)_.push(w);return _.join("")},parse:function(c,o){o===void 0&&(o=!0);var l=c.length,f=o?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var _=0;_<f.length;_++)h[f.charCodeAt(_)]=_}var p=f.charAt(64);if(p){var v=c.indexOf(p);v!==-1&&(l=v)}return u(c,l,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(c,o,l){for(var f=[],h=0,_=0;_<o;_++)if(_%4){var p=l[c.charCodeAt(_-1)]<<_%4*2,v=l[c.charCodeAt(_)]>>>6-_%4*2,m=p|v;f[h>>>2]|=m<<24-h%4*8,h++}return a.create(f,h)}}(),t.enc.Base64url})}(lu)),lu.exports}var du={exports:{}},hu;function ar(){return hu||(hu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.algo,o=[];(function(){for(var v=0;v<64;v++)o[v]=s.abs(s.sin(v+1))*4294967296|0})();var l=c.MD5=u.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,m){for(var y=0;y<16;y++){var g=m+y,b=v[g];v[g]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var w=this._hash.words,E=v[m+0],T=v[m+1],D=v[m+2],R=v[m+3],L=v[m+4],I=v[m+5],A=v[m+6],M=v[m+7],F=v[m+8],V=v[m+9],G=v[m+10],X=v[m+11],re=v[m+12],te=v[m+13],oe=v[m+14],P=v[m+15],k=w[0],C=w[1],S=w[2],d=w[3];k=f(k,C,S,d,E,7,o[0]),d=f(d,k,C,S,T,12,o[1]),S=f(S,d,k,C,D,17,o[2]),C=f(C,S,d,k,R,22,o[3]),k=f(k,C,S,d,L,7,o[4]),d=f(d,k,C,S,I,12,o[5]),S=f(S,d,k,C,A,17,o[6]),C=f(C,S,d,k,M,22,o[7]),k=f(k,C,S,d,F,7,o[8]),d=f(d,k,C,S,V,12,o[9]),S=f(S,d,k,C,G,17,o[10]),C=f(C,S,d,k,X,22,o[11]),k=f(k,C,S,d,re,7,o[12]),d=f(d,k,C,S,te,12,o[13]),S=f(S,d,k,C,oe,17,o[14]),C=f(C,S,d,k,P,22,o[15]),k=h(k,C,S,d,T,5,o[16]),d=h(d,k,C,S,A,9,o[17]),S=h(S,d,k,C,X,14,o[18]),C=h(C,S,d,k,E,20,o[19]),k=h(k,C,S,d,I,5,o[20]),d=h(d,k,C,S,G,9,o[21]),S=h(S,d,k,C,P,14,o[22]),C=h(C,S,d,k,L,20,o[23]),k=h(k,C,S,d,V,5,o[24]),d=h(d,k,C,S,oe,9,o[25]),S=h(S,d,k,C,R,14,o[26]),C=h(C,S,d,k,F,20,o[27]),k=h(k,C,S,d,te,5,o[28]),d=h(d,k,C,S,D,9,o[29]),S=h(S,d,k,C,M,14,o[30]),C=h(C,S,d,k,re,20,o[31]),k=_(k,C,S,d,I,4,o[32]),d=_(d,k,C,S,F,11,o[33]),S=_(S,d,k,C,X,16,o[34]),C=_(C,S,d,k,oe,23,o[35]),k=_(k,C,S,d,T,4,o[36]),d=_(d,k,C,S,L,11,o[37]),S=_(S,d,k,C,M,16,o[38]),C=_(C,S,d,k,G,23,o[39]),k=_(k,C,S,d,te,4,o[40]),d=_(d,k,C,S,E,11,o[41]),S=_(S,d,k,C,R,16,o[42]),C=_(C,S,d,k,A,23,o[43]),k=_(k,C,S,d,V,4,o[44]),d=_(d,k,C,S,re,11,o[45]),S=_(S,d,k,C,P,16,o[46]),C=_(C,S,d,k,D,23,o[47]),k=p(k,C,S,d,E,6,o[48]),d=p(d,k,C,S,M,10,o[49]),S=p(S,d,k,C,oe,15,o[50]),C=p(C,S,d,k,I,21,o[51]),k=p(k,C,S,d,re,6,o[52]),d=p(d,k,C,S,R,10,o[53]),S=p(S,d,k,C,G,15,o[54]),C=p(C,S,d,k,T,21,o[55]),k=p(k,C,S,d,F,6,o[56]),d=p(d,k,C,S,P,10,o[57]),S=p(S,d,k,C,A,15,o[58]),C=p(C,S,d,k,te,21,o[59]),k=p(k,C,S,d,L,6,o[60]),d=p(d,k,C,S,X,10,o[61]),S=p(S,d,k,C,D,15,o[62]),C=p(C,S,d,k,V,21,o[63]),w[0]=w[0]+k|0,w[1]=w[1]+C|0,w[2]=w[2]+S|0,w[3]=w[3]+d|0},_doFinalize:function(){var v=this._data,m=v.words,y=this._nDataBytes*8,g=v.sigBytes*8;m[g>>>5]|=128<<24-g%32;var b=s.floor(y/4294967296),w=y;m[(g+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m[(g+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,v.sigBytes=(m.length+1)*4,this._process();for(var E=this._hash,T=E.words,D=0;D<4;D++){var R=T[D];T[D]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return E},clone:function(){var v=u.clone.call(this);return v._hash=this._hash.clone(),v}});function f(v,m,y,g,b,w,E){var T=v+(m&y|~m&g)+b+E;return(T<<w|T>>>32-w)+m}function h(v,m,y,g,b,w,E){var T=v+(m&g|y&~g)+b+E;return(T<<w|T>>>32-w)+m}function _(v,m,y,g,b,w,E){var T=v+(m^y^g)+b+E;return(T<<w|T>>>32-w)+m}function p(v,m,y,g,b,w,E){var T=v+(y^(m|~g))+b+E;return(T<<w|T>>>32-w)+m}n.MD5=u._createHelper(l),n.HmacMD5=u._createHmacHelper(l)}(Math),t.MD5})}(du)),du.exports}var fu={exports:{}},pu;function mu(){return pu||(pu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.Hasher,u=s.algo,c=[],o=u.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var h=this._hash.words,_=h[0],p=h[1],v=h[2],m=h[3],y=h[4],g=0;g<80;g++){if(g<16)c[g]=l[f+g]|0;else{var b=c[g-3]^c[g-8]^c[g-14]^c[g-16];c[g]=b<<1|b>>>31}var w=(_<<5|_>>>27)+y+c[g];g<20?w+=(p&v|~p&m)+1518500249:g<40?w+=(p^v^m)+1859775393:g<60?w+=(p&v|p&m|v&m)-1894007588:w+=(p^v^m)-899497514,y=m,m=v,v=p<<30|p>>>2,p=_,_=w}h[0]=h[0]+_|0,h[1]=h[1]+p|0,h[2]=h[2]+v|0,h[3]=h[3]+m|0,h[4]=h[4]+y|0},_doFinalize:function(){var l=this._data,f=l.words,h=this._nDataBytes*8,_=l.sigBytes*8;return f[_>>>5]|=128<<24-_%32,f[(_+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(_+64>>>9<<4)+15]=h,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=i.clone.call(this);return l._hash=this._hash.clone(),l}});s.SHA1=i._createHelper(o),s.HmacSHA1=i._createHmacHelper(o)}(),t.SHA1})}(fu)),fu.exports}var gu={exports:{}},yu;function ca(){return yu||(yu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.algo,o=[],l=[];(function(){function _(y){for(var g=s.sqrt(y),b=2;b<=g;b++)if(!(y%b))return!1;return!0}function p(y){return(y-(y|0))*4294967296|0}for(var v=2,m=0;m<64;)_(v)&&(m<8&&(o[m]=p(s.pow(v,1/2))),l[m]=p(s.pow(v,1/3)),m++),v++})();var f=[],h=c.SHA256=u.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(_,p){for(var v=this._hash.words,m=v[0],y=v[1],g=v[2],b=v[3],w=v[4],E=v[5],T=v[6],D=v[7],R=0;R<64;R++){if(R<16)f[R]=_[p+R]|0;else{var L=f[R-15],I=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,A=f[R-2],M=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;f[R]=I+f[R-7]+M+f[R-16]}var F=w&E^~w&T,V=m&y^m&g^y&g,G=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),X=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),re=D+X+F+l[R]+f[R],te=G+V;D=T,T=E,E=w,w=b+re|0,b=g,g=y,y=m,m=re+te|0}v[0]=v[0]+m|0,v[1]=v[1]+y|0,v[2]=v[2]+g|0,v[3]=v[3]+b|0,v[4]=v[4]+w|0,v[5]=v[5]+E|0,v[6]=v[6]+T|0,v[7]=v[7]+D|0},_doFinalize:function(){var _=this._data,p=_.words,v=this._nDataBytes*8,m=_.sigBytes*8;return p[m>>>5]|=128<<24-m%32,p[(m+64>>>9<<4)+14]=s.floor(v/4294967296),p[(m+64>>>9<<4)+15]=v,_.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var _=u.clone.call(this);return _._hash=this._hash.clone(),_}});n.SHA256=u._createHelper(h),n.HmacSHA256=u._createHmacHelper(h)}(Math),t.SHA256})}(gu)),gu.exports}var vu={exports:{}},_u;function V0(){return _u||(_u=1,function(r,e){(function(t,s,n){r.exports=s(fe(),ca())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.algo,u=i.SHA256,c=i.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=u._doFinalize.call(this);return o.sigBytes-=4,o}});s.SHA224=u._createHelper(c),s.HmacSHA224=u._createHmacHelper(c)}(),t.SHA224})}(vu)),vu.exports}var bu={exports:{}},ku;function wu(){return ku||(ku=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ns())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Hasher,i=s.x64,u=i.Word,c=i.WordArray,o=s.algo;function l(){return u.create.apply(u,arguments)}var f=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],h=[];(function(){for(var p=0;p<80;p++)h[p]=l()})();var _=o.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(p,v){for(var m=this._hash.words,y=m[0],g=m[1],b=m[2],w=m[3],E=m[4],T=m[5],D=m[6],R=m[7],L=y.high,I=y.low,A=g.high,M=g.low,F=b.high,V=b.low,G=w.high,X=w.low,re=E.high,te=E.low,oe=T.high,P=T.low,k=D.high,C=D.low,S=R.high,d=R.low,$=L,N=I,z=A,j=M,H=F,K=V,ne=G,q=X,ye=re,me=te,Ge=oe,at=P,We=k,et=C,lt=S,ct=d,Ne=0;Ne<80;Ne++){var Oe,je,tt=h[Ne];if(Ne<16)je=tt.high=p[v+Ne*2]|0,Oe=tt.low=p[v+Ne*2+1]|0;else{var ot=h[Ne-15],Ce=ot.high,dt=ot.low,or=(Ce>>>1|dt<<31)^(Ce>>>8|dt<<24)^Ce>>>7,qt=(dt>>>1|Ce<<31)^(dt>>>8|Ce<<24)^(dt>>>7|Ce<<25),Kt=h[Ne-2],It=Kt.high,xt=Kt.low,_r=(It>>>19|xt<<13)^(It<<3|xt>>>29)^It>>>6,ht=(xt>>>19|It<<13)^(xt<<3|It>>>29)^(xt>>>6|It<<26),Dt=h[Ne-7],Gr=Dt.high,Wr=Dt.low,Os=h[Ne-16],br=Os.high,ir=Os.low;Oe=qt+Wr,je=or+Gr+(Oe>>>0<qt>>>0?1:0),Oe=Oe+ht,je=je+_r+(Oe>>>0<ht>>>0?1:0),Oe=Oe+ir,je=je+br+(Oe>>>0<ir>>>0?1:0),tt.high=je,tt.low=Oe}var ha=ye&Ge^~ye&We,Gt=me&at^~me&et,fa=$&z^$&H^z&H,pa=N&j^N&K^j&K,Se=($>>>28|N<<4)^($<<30|N>>>2)^($<<25|N>>>7),Mt=(N>>>28|$<<4)^(N<<30|$>>>2)^(N<<25|$>>>7),ma=(ye>>>14|me<<18)^(ye>>>18|me<<14)^(ye<<23|me>>>9),Is=(me>>>14|ye<<18)^(me>>>18|ye<<14)^(me<<23|ye>>>9),kr=f[Ne],Ds=kr.high,Xr=kr.low,Xe=ct+Is,Ae=lt+ma+(Xe>>>0<ct>>>0?1:0),Xe=Xe+Gt,Ae=Ae+ha+(Xe>>>0<Gt>>>0?1:0),Xe=Xe+Xr,Ae=Ae+Ds+(Xe>>>0<Xr>>>0?1:0),Xe=Xe+Oe,Ae=Ae+je+(Xe>>>0<Oe>>>0?1:0),ur=Mt+pa,Ms=Se+fa+(ur>>>0<Mt>>>0?1:0);lt=We,ct=et,We=Ge,et=at,Ge=ye,at=me,me=q+Xe|0,ye=ne+Ae+(me>>>0<q>>>0?1:0)|0,ne=H,q=K,H=z,K=j,z=$,j=N,N=Xe+ur|0,$=Ae+Ms+(N>>>0<Xe>>>0?1:0)|0}I=y.low=I+N,y.high=L+$+(I>>>0<N>>>0?1:0),M=g.low=M+j,g.high=A+z+(M>>>0<j>>>0?1:0),V=b.low=V+K,b.high=F+H+(V>>>0<K>>>0?1:0),X=w.low=X+q,w.high=G+ne+(X>>>0<q>>>0?1:0),te=E.low=te+me,E.high=re+ye+(te>>>0<me>>>0?1:0),P=T.low=P+at,T.high=oe+Ge+(P>>>0<at>>>0?1:0),C=D.low=C+et,D.high=k+We+(C>>>0<et>>>0?1:0),d=R.low=d+ct,R.high=S+lt+(d>>>0<ct>>>0?1:0)},_doFinalize:function(){var p=this._data,v=p.words,m=this._nDataBytes*8,y=p.sigBytes*8;v[y>>>5]|=128<<24-y%32,v[(y+128>>>10<<5)+30]=Math.floor(m/4294967296),v[(y+128>>>10<<5)+31]=m,p.sigBytes=v.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});s.SHA512=a._createHelper(_),s.HmacSHA512=a._createHmacHelper(_)}(),t.SHA512})}(bu)),bu.exports}var Eu={exports:{}},$u;function H0(){return $u||($u=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ns(),wu())})(ce,function(t){return function(){var s=t,n=s.x64,a=n.Word,i=n.WordArray,u=s.algo,c=u.SHA512,o=u.SHA384=c.extend({_doReset:function(){this._hash=new i.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var l=c._doFinalize.call(this);return l.sigBytes-=16,l}});s.SHA384=c._createHelper(o),s.HmacSHA384=c._createHmacHelper(o)}(),t.SHA384})}(Eu)),Eu.exports}var Su={exports:{}},xu;function U0(){return xu||(xu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ns())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.x64,o=c.Word,l=n.algo,f=[],h=[],_=[];(function(){for(var m=1,y=0,g=0;g<24;g++){f[m+5*y]=(g+1)*(g+2)/2%64;var b=y%5,w=(2*m+3*y)%5;m=b,y=w}for(var m=0;m<5;m++)for(var y=0;y<5;y++)h[m+5*y]=y+(2*m+3*y)%5*5;for(var E=1,T=0;T<24;T++){for(var D=0,R=0,L=0;L<7;L++){if(E&1){var I=(1<<L)-1;I<32?R^=1<<I:D^=1<<I-32}E&128?E=E<<1^113:E<<=1}_[T]=o.create(D,R)}})();var p=[];(function(){for(var m=0;m<25;m++)p[m]=o.create()})();var v=l.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var m=this._state=[],y=0;y<25;y++)m[y]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(m,y){for(var g=this._state,b=this.blockSize/2,w=0;w<b;w++){var E=m[y+2*w],T=m[y+2*w+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var D=g[w];D.high^=T,D.low^=E}for(var R=0;R<24;R++){for(var L=0;L<5;L++){for(var I=0,A=0,M=0;M<5;M++){var D=g[L+5*M];I^=D.high,A^=D.low}var F=p[L];F.high=I,F.low=A}for(var L=0;L<5;L++)for(var V=p[(L+4)%5],G=p[(L+1)%5],X=G.high,re=G.low,I=V.high^(X<<1|re>>>31),A=V.low^(re<<1|X>>>31),M=0;M<5;M++){var D=g[L+5*M];D.high^=I,D.low^=A}for(var te=1;te<25;te++){var I,A,D=g[te],oe=D.high,P=D.low,k=f[te];k<32?(I=oe<<k|P>>>32-k,A=P<<k|oe>>>32-k):(I=P<<k-32|oe>>>64-k,A=oe<<k-32|P>>>64-k);var C=p[h[te]];C.high=I,C.low=A}var S=p[0],d=g[0];S.high=d.high,S.low=d.low;for(var L=0;L<5;L++)for(var M=0;M<5;M++){var te=L+5*M,D=g[te],$=p[te],N=p[(L+1)%5+5*M],z=p[(L+2)%5+5*M];D.high=$.high^~N.high&z.high,D.low=$.low^~N.low&z.low}var D=g[0],j=_[R];D.high^=j.high,D.low^=j.low}},_doFinalize:function(){var m=this._data,y=m.words;this._nDataBytes*8;var g=m.sigBytes*8,b=this.blockSize*32;y[g>>>5]|=1<<24-g%32,y[(s.ceil((g+1)/b)*b>>>5)-1]|=128,m.sigBytes=y.length*4,this._process();for(var w=this._state,E=this.cfg.outputLength/8,T=E/8,D=[],R=0;R<T;R++){var L=w[R],I=L.high,A=L.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,D.push(A),D.push(I)}return new i.init(D,E)},clone:function(){for(var m=u.clone.call(this),y=m._state=this._state.slice(0),g=0;g<25;g++)y[g]=y[g].clone();return m}});n.SHA3=u._createHelper(v),n.HmacSHA3=u._createHmacHelper(v)}(Math),t.SHA3})}(Su)),Su.exports}var Cu={exports:{}},Au;function q0(){return Au||(Au=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){/** @preserve
27
+ depsCount: ${i},
28
+ deps: ${l}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[i,l]=a(c);o(c,i),u(c,l)}};function a({schema:c}){const i={},l={};for(const f in c){if(f==="__proto__")continue;const h=Array.isArray(c[f])?i:l;h[f]=c[f]}return[i,l]}function o(c,i=c.schema){const{gen:l,data:f,it:h}=c;if(Object.keys(i).length===0)return;const _=l.let("missing");for(const p in i){const v=i[p];if(v.length===0)continue;const m=(0,s.propertyInData)(l,f,p,h.opts.ownProperties);c.setParams({property:p,depsCount:v.length,deps:v.join(", ")}),h.allErrors?l.if(m,()=>{for(const y of v)(0,s.checkReportMissingProp)(c,y)}):(l.if((0,e._)`${m} && (${(0,s.checkMissingProp)(c,v,_)})`),(0,s.reportMissingProp)(c,_),l.else())}}r.validatePropertyDeps=o;function u(c,i=c.schema){const{gen:l,data:f,keyword:h,it:_}=c,p=l.name("valid");for(const v in i)(0,t.alwaysValidSchema)(_,i[v])||(l.if((0,s.propertyInData)(l,f,v,_.opts.ownProperties),()=>{const m=c.subschema({keyword:h,schemaProp:v},p);c.mergeValidEvaluated(m,p)},()=>l.var(p,!0)),c.ok(p))}r.validateSchemaDeps=u,r.default=n})(Ri);var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Bi=le,Ap=W,Tp={message:"property name must be valid",params:({params:r})=>(0,Bi._)`{propertyName: ${r.propertyName}}`},Pp={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Tp,code(r){const{gen:e,schema:t,data:s,it:n}=r;if((0,Ap.alwaysValidSchema)(n,t))return;const a=e.name("valid");e.forIn("key",s,o=>{r.setParams({propertyName:o}),r.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},a),e.if((0,Bi.not)(a),()=>{r.error(!0),n.allErrors||e.break()})}),r.ok(a)}};Yn.default=Pp;var $s={};Object.defineProperty($s,"__esModule",{value:!0});const Ss=de,bt=le,Np=wt,Cs=W,Op={message:"must NOT have additional properties",params:({params:r})=>(0,bt._)`{additionalProperty: ${r.additionalProperty}}`},Ip={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Op,code(r){const{gen:e,schema:t,parentSchema:s,data:n,errsCount:a,it:o}=r;if(!a)throw new Error("ajv implementation error");const{allErrors:u,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,Cs.alwaysValidSchema)(o,t))return;const i=(0,Ss.allSchemaProperties)(s.properties),l=(0,Ss.allSchemaProperties)(s.patternProperties);f(),r.ok((0,bt._)`${a} === ${Np.default.errors}`);function f(){e.forIn("key",n,m=>{!i.length&&!l.length?p(m):e.if(h(m),()=>p(m))})}function h(m){let y;if(i.length>8){const g=(0,Cs.schemaRefOrVal)(o,s.properties,"properties");y=(0,Ss.isOwnProperty)(e,g,m)}else i.length?y=(0,bt.or)(...i.map(g=>(0,bt._)`${m} === ${g}`)):y=bt.nil;return l.length&&(y=(0,bt.or)(y,...l.map(g=>(0,bt._)`${(0,Ss.usePattern)(r,g)}.test(${m})`))),(0,bt.not)(y)}function _(m){e.code((0,bt._)`delete ${n}[${m}]`)}function p(m){if(c.removeAdditional==="all"||c.removeAdditional&&t===!1){_(m);return}if(t===!1){r.setParams({additionalProperty:m}),r.error(),u||e.break();return}if(typeof t=="object"&&!(0,Cs.alwaysValidSchema)(o,t)){const y=e.name("valid");c.removeAdditional==="failing"?(v(m,y,!1),e.if((0,bt.not)(y),()=>{r.reset(),_(m)})):(v(m,y),u||e.if((0,bt.not)(y),()=>e.break()))}}function v(m,y,g){const b={keyword:"additionalProperties",dataProp:m,dataPropType:Cs.Type.Str};g===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(b,y)}}};$s.default=Ip;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});const Dp=yt,Li=de,Zn=W,ji=$s,Mp={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;a.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&ji.default.code(new Dp.KeywordCxt(a,ji.default,"additionalProperties"));const o=(0,Li.allSchemaProperties)(t);for(const f of o)a.definedProperties.add(f);a.opts.unevaluated&&o.length&&a.props!==!0&&(a.props=Zn.mergeEvaluated.props(e,(0,Zn.toHash)(o),a.props));const u=o.filter(f=>!(0,Zn.alwaysValidSchema)(a,t[f]));if(u.length===0)return;const c=e.name("valid");for(const f of u)i(f)?l(f):(e.if((0,Li.propertyInData)(e,n,f,a.opts.ownProperties)),l(f),a.allErrors||e.else().var(c,!0),e.endIf()),r.it.definedProperties.add(f),r.ok(c);function i(f){return a.opts.useDefaults&&!a.compositeRule&&t[f].default!==void 0}function l(f){r.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};Jn.default=Mp;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const zi=de,xs=le,Vi=W,Hi=W,Fp={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:s,parentSchema:n,it:a}=r,{opts:o}=a,u=(0,zi.allSchemaProperties)(t),c=u.filter(v=>(0,Vi.alwaysValidSchema)(a,t[v]));if(u.length===0||c.length===u.length&&(!a.opts.unevaluated||a.props===!0))return;const i=o.strictSchema&&!o.allowMatchingProperties&&n.properties,l=e.name("valid");a.props!==!0&&!(a.props instanceof xs.Name)&&(a.props=(0,Hi.evaluatedPropsToName)(e,a.props));const{props:f}=a;h();function h(){for(const v of u)i&&_(v),a.allErrors?p(v):(e.var(l,!0),p(v),e.if(l))}function _(v){for(const m in i)new RegExp(v).test(m)&&(0,Vi.checkStrictMode)(a,`property ${m} matches pattern ${v} (use allowMatchingProperties)`)}function p(v){e.forIn("key",s,m=>{e.if((0,xs._)`${(0,zi.usePattern)(r,v)}.test(${m})`,()=>{const y=c.includes(v);y||r.subschema({keyword:"patternProperties",schemaProp:v,dataProp:m,dataPropType:Hi.Type.Str},l),a.opts.unevaluated&&f!==!0?e.assign((0,xs._)`${f}[${m}]`,!0):!y&&!a.allErrors&&e.if((0,xs.not)(l),()=>e.break())})})}}};Qn.default=Fp;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});const Rp=W,Bp={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:s}=r;if((0,Rp.alwaysValidSchema)(s,t)){r.fail();return}const n=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),r.failResult(n,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};ea.default=Bp;var ta={};Object.defineProperty(ta,"__esModule",{value:!0});const Lp=de,jp={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Lp.validateUnion,error:{message:"must match a schema in anyOf"}};ta.default=jp;var ra={};Object.defineProperty(ra,"__esModule",{value:!0});const As=le,zp=W,Vp={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,As._)`{passingSchemas: ${r.passing}}`},Hp={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Vp,code(r){const{gen:e,schema:t,parentSchema:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(n.opts.discriminator&&s.discriminator)return;const a=t,o=e.let("valid",!1),u=e.let("passing",null),c=e.name("_valid");r.setParams({passing:u}),e.block(i),r.result(o,()=>r.reset(),()=>r.error(!0));function i(){a.forEach((l,f)=>{let h;(0,zp.alwaysValidSchema)(n,l)?e.var(c,!0):h=r.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,As._)`${c} && ${o}`).assign(o,!1).assign(u,(0,As._)`[${u}, ${f}]`).else(),e.if(c,()=>{e.assign(o,!0),e.assign(u,f),h&&r.mergeEvaluated(h,As.Name)})})}}};ra.default=Hp;var sa={};Object.defineProperty(sa,"__esModule",{value:!0});const Up=W,qp={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:s}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const n=e.name("valid");t.forEach((a,o)=>{if((0,Up.alwaysValidSchema)(s,a))return;const u=r.subschema({keyword:"allOf",schemaProp:o},n);r.ok(n),r.mergeEvaluated(u)})}};sa.default=qp;var na={};Object.defineProperty(na,"__esModule",{value:!0});const Ts=le,Ui=W,Kp={message:({params:r})=>(0,Ts.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Ts._)`{failingKeyword: ${r.ifClause}}`},Gp={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Kp,code(r){const{gen:e,parentSchema:t,it:s}=r;t.then===void 0&&t.else===void 0&&(0,Ui.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const n=qi(s,"then"),a=qi(s,"else");if(!n&&!a)return;const o=e.let("valid",!0),u=e.name("_valid");if(c(),r.reset(),n&&a){const l=e.let("ifClause");r.setParams({ifClause:l}),e.if(u,i("then",l),i("else",l))}else n?e.if(u,i("then")):e.if((0,Ts.not)(u),i("else"));r.pass(o,()=>r.error(!0));function c(){const l=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);r.mergeEvaluated(l)}function i(l,f){return()=>{const h=r.subschema({keyword:l},u);e.assign(o,u),r.mergeValidEvaluated(h,o),f?e.assign(f,(0,Ts._)`${l}`):r.setParams({ifClause:l})}}}};function qi(r,e){const t=r.schema[e];return t!==void 0&&!(0,Ui.alwaysValidSchema)(r,t)}na.default=Gp;var aa={};Object.defineProperty(aa,"__esModule",{value:!0});const Wp=W,Xp={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,Wp.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};aa.default=Xp,Object.defineProperty(qn,"__esModule",{value:!0});const Yp=mr,Jp=Gn,Zp=gr,Qp=Wn,e0=Xn,t0=Ri,r0=Yn,s0=$s,n0=Jn,a0=Qn,o0=ea,i0=ta,u0=ra,l0=sa,c0=na,d0=aa;function h0(r=!1){const e=[o0.default,i0.default,u0.default,l0.default,c0.default,d0.default,r0.default,s0.default,t0.default,n0.default,a0.default];return r?e.push(Jp.default,Qp.default):e.push(Yp.default,Zp.default),e.push(e0.default),e}qn.default=h0;var oa={},ia={};Object.defineProperty(ia,"__esModule",{value:!0});const Ee=le,f0={message:({schemaCode:r})=>(0,Ee.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Ee._)`{format: ${r}}`},p0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:f0,code(r,e){const{gen:t,data:s,$data:n,schema:a,schemaCode:o,it:u}=r,{opts:c,errSchemaPath:i,schemaEnv:l,self:f}=u;if(!c.validateFormats)return;n?h():_();function h(){const p=t.scopeValue("formats",{ref:f.formats,code:c.code.formats}),v=t.const("fDef",(0,Ee._)`${p}[${o}]`),m=t.let("fType"),y=t.let("format");t.if((0,Ee._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>t.assign(m,(0,Ee._)`${v}.type || "string"`).assign(y,(0,Ee._)`${v}.validate`),()=>t.assign(m,(0,Ee._)`"string"`).assign(y,v)),r.fail$data((0,Ee.or)(g(),b()));function g(){return c.strictSchema===!1?Ee.nil:(0,Ee._)`${o} && !${y}`}function b(){const w=l.$async?(0,Ee._)`(${v}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,Ee._)`${y}(${s})`,E=(0,Ee._)`(typeof ${y} == "function" ? ${w} : ${y}.test(${s}))`;return(0,Ee._)`${y} && ${y} !== true && ${m} === ${e} && !${E}`}}function _(){const p=f.formats[a];if(!p){g();return}if(p===!0)return;const[v,m,y]=b(p);v===e&&r.pass(w());function g(){if(c.strictSchema===!1){f.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${a}" ignored in schema at path "${i}"`}}function b(E){const T=E instanceof RegExp?(0,Ee.regexpCode)(E):c.code.formats?(0,Ee._)`${c.code.formats}${(0,Ee.getProperty)(a)}`:void 0,D=t.scopeValue("formats",{key:a,ref:E,code:T});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,Ee._)`${D}.validate`]:["string",E,D]}function w(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Ee._)`await ${y}(${s})`}return typeof m=="function"?(0,Ee._)`${y}(${s})`:(0,Ee._)`${y}.test(${s})`}}}};ia.default=p0,Object.defineProperty(oa,"__esModule",{value:!0});const m0=ia,g0=[m0.default];oa.default=g0;var yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.contentVocabulary=yr.metadataVocabulary=void 0,yr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],yr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(An,"__esModule",{value:!0});const y0=Tn,v0=Nn,_0=qn,b0=oa,Ki=yr,k0=[y0.default,v0.default,(0,_0.default)(),b0.default,Ki.metadataVocabulary,Ki.contentVocabulary];An.default=k0;var ua={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.DiscrError=void 0;var Gi;(function(r){r.Tag="tag",r.Mapping="mapping"})(Gi||(Ps.DiscrError=Gi={})),Object.defineProperty(ua,"__esModule",{value:!0});const vr=le,la=Ps,Wi=Ze,w0=fr,E0=W,$0={message:({params:{discrError:r,tagName:e}})=>r===la.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,vr._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},S0={keyword:"discriminator",type:"object",schemaType:"object",error:$0,code(r){const{gen:e,data:t,schema:s,parentSchema:n,it:a}=r,{oneOf:o}=n;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=s.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),i=e.const("tag",(0,vr._)`${t}${(0,vr.getProperty)(u)}`);e.if((0,vr._)`typeof ${i} == "string"`,()=>l(),()=>r.error(!1,{discrError:la.DiscrError.Tag,tag:i,tagName:u})),r.ok(c);function l(){const _=h();e.if(!1);for(const p in _)e.elseIf((0,vr._)`${i} === ${p}`),e.assign(c,f(_[p]));e.else(),r.error(!1,{discrError:la.DiscrError.Mapping,tag:i,tagName:u}),e.endIf()}function f(_){const p=e.name("valid"),v=r.subschema({keyword:"oneOf",schemaProp:_},p);return r.mergeEvaluated(v,vr.Name),p}function h(){var _;const p={},v=y(n);let m=!0;for(let w=0;w<o.length;w++){let E=o[w];if(E!=null&&E.$ref&&!(0,E0.schemaHasRulesButRef)(E,a.self.RULES)){const D=E.$ref;if(E=Wi.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,D),E instanceof Wi.SchemaEnv&&(E=E.schema),E===void 0)throw new w0.default(a.opts.uriResolver,a.baseId,D)}const T=(_=E==null?void 0:E.properties)===null||_===void 0?void 0:_[u];if(typeof T!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);m=m&&(v||y(E)),g(T,w)}if(!m)throw new Error(`discriminator: "${u}" must be required`);return p;function y({required:w}){return Array.isArray(w)&&w.includes(u)}function g(w,E){if(w.const)b(w.const,E);else if(w.enum)for(const T of w.enum)b(T,E);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function b(w,E){if(typeof w!="string"||w in p)throw new Error(`discriminator: "${u}" values must be unique strings`);p[w]=E}}}};ua.default=S0;const C0="http://json-schema.org/draft-07/schema#",x0="http://json-schema.org/draft-07/schema#",A0="Core schema meta-schema",T0={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:[]}},P0=["object","boolean"],N0={$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:"#"}},O0={$schema:C0,$id:x0,title:A0,definitions:T0,type:P0,properties:N0,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const t=xo,s=An,n=ua,a=O0,o=["/properties"],u="http://json-schema.org/draft-07/schema";class c extends t.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(a,o):a;this.addMetaSchema(p,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.Ajv=c,r.exports=e=c,r.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var i=yt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var l=le;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var f=Rr;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=fr;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(an,an.exports);var I0=an.exports,Xi={exports:{}},Yi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0;function e(A,M){return{validate:A,compare:M}}r.fullFormats={date:e(a,o),time:e(c(!0),i),"date-time":e(h(!0),_),"iso-time":e(c(),l),"iso-date-time":e(h(),p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:y,"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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:I,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:b,int32:{type:"number",validate:T},int64:{type:"number",validate:D},float:{type:"number",validate:R},double:{type:"number",validate:R},password:!0,binary:!0},r.fastFormats={...r.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,i),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":e(/^\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,p),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},r.formatNames=Object.keys(r.fullFormats);function t(A){return A%4===0&&(A%100!==0||A%400===0)}const s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(A){const M=s.exec(A);if(!M)return!1;const F=+M[1],V=+M[2],G=+M[3];return V>=1&&V<=12&&G>=1&&G<=(V===2&&t(F)?29:n[V])}function o(A,M){if(A&&M)return A>M?1:A<M?-1:0}const u=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(A){return function(M){const F=u.exec(M);if(!F)return!1;const V=+F[1],G=+F[2],X=+F[3],re=F[4],te=F[5]==="-"?-1:1,oe=+(F[6]||0),P=+(F[7]||0);if(oe>23||P>59||A&&!re)return!1;if(V<=23&&G<=59&&X<60)return!0;const k=G-P*te,x=V-oe*te-(k<0?1:0);return(x===23||x===-1)&&(k===59||k===-1)&&X<61}}function i(A,M){if(!(A&&M))return;const F=new Date("2020-01-01T"+A).valueOf(),V=new Date("2020-01-01T"+M).valueOf();if(F&&V)return F-V}function l(A,M){if(!(A&&M))return;const F=u.exec(A),V=u.exec(M);if(F&&V)return A=F[1]+F[2]+F[3],M=V[1]+V[2]+V[3],A>M?1:A<M?-1:0}const f=/t|\s/i;function h(A){const M=c(A);return function(F){const V=F.split(f);return V.length===2&&a(V[0])&&M(V[1])}}function _(A,M){if(!(A&&M))return;const F=new Date(A).valueOf(),V=new Date(M).valueOf();if(F&&V)return F-V}function p(A,M){if(!(A&&M))return;const[F,V]=A.split(f),[G,X]=M.split(f),re=o(F,G);if(re!==void 0)return re||i(V,X)}const v=/\/|:/,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 y(A){return v.test(A)&&m.test(A)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(A){return g.lastIndex=0,g.test(A)}const w=-2147483648,E=2**31-1;function T(A){return Number.isInteger(A)&&A<=E&&A>=w}function D(A){return Number.isInteger(A)}function R(){return!0}const L=/[^\\]\\Z/;function I(A){if(L.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Yi);var Ji={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=I0,t=le,s=t.operators,n={formatMaximum:{okStr:"<=",ok:s.LTE,fail:s.GT},formatMinimum:{okStr:">=",ok:s.GTE,fail:s.LT},formatExclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},formatExclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},a={message:({keyword:u,schemaCode:c})=>(0,t.str)`should be ${n[u].okStr} ${c}`,params:({keyword:u,schemaCode:c})=>(0,t._)`{comparison: ${n[u].okStr}, limit: ${c}}`};r.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:a,code(u){const{gen:c,data:i,schemaCode:l,keyword:f,it:h}=u,{opts:_,self:p}=h;if(!_.validateFormats)return;const v=new e.KeywordCxt(h,p.RULES.all.format.definition,"format");v.$data?m():y();function m(){const b=c.scopeValue("formats",{ref:p.formats,code:_.code.formats}),w=c.const("fmt",(0,t._)`${b}[${v.schemaCode}]`);u.fail$data((0,t.or)((0,t._)`typeof ${w} != "object"`,(0,t._)`${w} instanceof RegExp`,(0,t._)`typeof ${w}.compare != "function"`,g(w)))}function y(){const b=v.schema,w=p.formats[b];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${f}": format "${b}" does not define "compare" function`);const E=c.scopeValue("formats",{key:b,ref:w,code:_.code.formats?(0,t._)`${_.code.formats}${(0,t.getProperty)(b)}`:void 0});u.fail$data(g(E))}function g(b){return(0,t._)`${b}.compare(${i}, ${l}) ${n[f].fail} 0`}},dependencies:["format"]};const o=u=>(u.addKeyword(r.formatLimitDefinition),u);r.default=o})(Ji),function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Yi,s=Ji,n=le,a=new n.Name("fullFormats"),o=new n.Name("fastFormats"),u=(i,l={keywords:!0})=>{if(Array.isArray(l))return c(i,l,t.fullFormats,a),i;const[f,h]=l.mode==="fast"?[t.fastFormats,o]:[t.fullFormats,a],_=l.formats||t.formatNames;return c(i,_,f,h),l.keywords&&(0,s.default)(i),i};u.get=(i,l="full")=>{const f=(l==="fast"?t.fastFormats:t.fullFormats)[i];if(!f)throw new Error(`Unknown format "${i}"`);return f};function c(i,l,f,h){var _,p;(_=(p=i.opts.code).formats)!==null&&_!==void 0||(p.formats=(0,n._)`require("ajv-formats/dist/formats").${h}`);for(const v of l)i.addFormat(v,f[v])}r.exports=e=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u}(Xi,Xi.exports);function Zi(r,e={format:"iso"}){if(e.format==="localized")return new Intl.DateTimeFormat("pt-BR",{day:"numeric",month:"short",year:"numeric"}).format(r);const t=r.getFullYear(),s=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0");return`${t}-${s}-${n}`}const D0={},M0=Object.freeze(Object.defineProperty({__proto__:null,default:D0},Symbol.toStringTag,{value:"Module"}));var F0={exports:{}};function R0(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Qi={exports:{}};const B0=Hc(M0);var eu;function fe(){return eu||(eu=1,function(r,e){(function(t,s){r.exports=s()})(ce,function(){var t=t||function(s,n){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof ce<"u"&&ce.crypto&&(a=ce.crypto),!a&&typeof R0=="function")try{a=B0}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function g(){}return function(b){var w;return g.prototype=b,w=new g,g.prototype=null,w}}(),c={},i=c.lib={},l=i.Base=function(){return{extend:function(g){var b=u(this);return g&&b.mixIn(g),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var b in g)g.hasOwnProperty(b)&&(this[b]=g[b]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=i.WordArray=l.extend({init:function(g,b){g=this.words=g||[],b!=n?this.sigBytes=b:this.sigBytes=g.length*4},toString:function(g){return(g||_).stringify(this)},concat:function(g){var b=this.words,w=g.words,E=this.sigBytes,T=g.sigBytes;if(this.clamp(),E%4)for(var D=0;D<T;D++){var R=w[D>>>2]>>>24-D%4*8&255;b[E+D>>>2]|=R<<24-(E+D)%4*8}else for(var L=0;L<T;L+=4)b[E+L>>>2]=w[L>>>2];return this.sigBytes+=T,this},clamp:function(){var g=this.words,b=this.sigBytes;g[b>>>2]&=4294967295<<32-b%4*8,g.length=s.ceil(b/4)},clone:function(){var g=l.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var b=[],w=0;w<g;w+=4)b.push(o());return new f.init(b,g)}}),h=c.enc={},_=h.Hex={stringify:function(g){for(var b=g.words,w=g.sigBytes,E=[],T=0;T<w;T++){var D=b[T>>>2]>>>24-T%4*8&255;E.push((D>>>4).toString(16)),E.push((D&15).toString(16))}return E.join("")},parse:function(g){for(var b=g.length,w=[],E=0;E<b;E+=2)w[E>>>3]|=parseInt(g.substr(E,2),16)<<24-E%8*4;return new f.init(w,b/2)}},p=h.Latin1={stringify:function(g){for(var b=g.words,w=g.sigBytes,E=[],T=0;T<w;T++){var D=b[T>>>2]>>>24-T%4*8&255;E.push(String.fromCharCode(D))}return E.join("")},parse:function(g){for(var b=g.length,w=[],E=0;E<b;E++)w[E>>>2]|=(g.charCodeAt(E)&255)<<24-E%4*8;return new f.init(w,b)}},v=h.Utf8={stringify:function(g){try{return decodeURIComponent(escape(p.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return p.parse(unescape(encodeURIComponent(g)))}},m=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=v.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var b,w=this._data,E=w.words,T=w.sigBytes,D=this.blockSize,R=D*4,L=T/R;g?L=s.ceil(L):L=s.max((L|0)-this._minBufferSize,0);var I=L*D,A=s.min(I*4,T);if(I){for(var M=0;M<I;M+=D)this._doProcessBlock(E,M);b=E.splice(0,I),w.sigBytes-=A}return new f.init(b,A)},clone:function(){var g=l.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});i.Hasher=m.extend({cfg:l.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(g){return function(b,w){return new g.init(w).finalize(b)}},_createHmacHelper:function(g){return function(b,w){return new y.HMAC.init(g,w).finalize(b)}}});var y=c.algo={};return c}(Math);return t})}(Qi)),Qi.exports}var tu={exports:{}},ru;function Ns(){return ru||(ru=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,o=a.Base,u=a.WordArray,c=n.x64={};c.Word=o.extend({init:function(i,l){this.high=i,this.low=l}}),c.WordArray=o.extend({init:function(i,l){i=this.words=i||[],l!=s?this.sigBytes=l:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,l=i.length,f=[],h=0;h<l;h++){var _=i[h];f.push(_.high),f.push(_.low)}return u.create(f,this.sigBytes)},clone:function(){for(var i=o.clone.call(this),l=i.words=this.words.slice(0),f=l.length,h=0;h<f;h++)l[h]=l[h].clone();return i}})}(),t})}(tu)),tu.exports}var su={exports:{}},nu;function L0(){return nu||(nu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var s=t,n=s.lib,a=n.WordArray,o=a.init,u=a.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var i=c.byteLength,l=[],f=0;f<i;f++)l[f>>>2]|=c[f]<<24-f%4*8;o.call(this,l,i)}else o.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(su)),su.exports}var au={exports:{}},ou;function j0(){return ou||(ou=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,o=s.enc;o.Utf16=o.Utf16BE={stringify:function(c){for(var i=c.words,l=c.sigBytes,f=[],h=0;h<l;h+=2){var _=i[h>>>2]>>>16-h%4*8&65535;f.push(String.fromCharCode(_))}return f.join("")},parse:function(c){for(var i=c.length,l=[],f=0;f<i;f++)l[f>>>1]|=c.charCodeAt(f)<<16-f%2*16;return a.create(l,i*2)}},o.Utf16LE={stringify:function(c){for(var i=c.words,l=c.sigBytes,f=[],h=0;h<l;h+=2){var _=u(i[h>>>2]>>>16-h%4*8&65535);f.push(String.fromCharCode(_))}return f.join("")},parse:function(c){for(var i=c.length,l=[],f=0;f<i;f++)l[f>>>1]|=u(c.charCodeAt(f)<<16-f%2*16);return a.create(l,i*2)}};function u(c){return c<<8&4278255360|c>>>8&16711935}}(),t.enc.Utf16})}(au)),au.exports}var iu={exports:{}},uu;function nr(){return uu||(uu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,o=s.enc;o.Base64={stringify:function(c){var i=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var h=[],_=0;_<l;_+=3)for(var p=i[_>>>2]>>>24-_%4*8&255,v=i[_+1>>>2]>>>24-(_+1)%4*8&255,m=i[_+2>>>2]>>>24-(_+2)%4*8&255,y=p<<16|v<<8|m,g=0;g<4&&_+g*.75<l;g++)h.push(f.charAt(y>>>6*(3-g)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(c){var i=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<l.length;h++)f[l.charCodeAt(h)]=h}var _=l.charAt(64);if(_){var p=c.indexOf(_);p!==-1&&(i=p)}return u(c,i,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(c,i,l){for(var f=[],h=0,_=0;_<i;_++)if(_%4){var p=l[c.charCodeAt(_-1)]<<_%4*2,v=l[c.charCodeAt(_)]>>>6-_%4*2,m=p|v;f[h>>>2]|=m<<24-h%4*8,h++}return a.create(f,h)}}(),t.enc.Base64})}(iu)),iu.exports}var lu={exports:{}},cu;function z0(){return cu||(cu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,o=s.enc;o.Base64url={stringify:function(c,i){i===void 0&&(i=!0);var l=c.words,f=c.sigBytes,h=i?this._safe_map:this._map;c.clamp();for(var _=[],p=0;p<f;p+=3)for(var v=l[p>>>2]>>>24-p%4*8&255,m=l[p+1>>>2]>>>24-(p+1)%4*8&255,y=l[p+2>>>2]>>>24-(p+2)%4*8&255,g=v<<16|m<<8|y,b=0;b<4&&p+b*.75<f;b++)_.push(h.charAt(g>>>6*(3-b)&63));var w=h.charAt(64);if(w)for(;_.length%4;)_.push(w);return _.join("")},parse:function(c,i){i===void 0&&(i=!0);var l=c.length,f=i?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var _=0;_<f.length;_++)h[f.charCodeAt(_)]=_}var p=f.charAt(64);if(p){var v=c.indexOf(p);v!==-1&&(l=v)}return u(c,l,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(c,i,l){for(var f=[],h=0,_=0;_<i;_++)if(_%4){var p=l[c.charCodeAt(_-1)]<<_%4*2,v=l[c.charCodeAt(_)]>>>6-_%4*2,m=p|v;f[h>>>2]|=m<<24-h%4*8,h++}return a.create(f,h)}}(),t.enc.Base64url})}(lu)),lu.exports}var du={exports:{}},hu;function ar(){return hu||(hu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,o=a.WordArray,u=a.Hasher,c=n.algo,i=[];(function(){for(var v=0;v<64;v++)i[v]=s.abs(s.sin(v+1))*4294967296|0})();var l=c.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,m){for(var y=0;y<16;y++){var g=m+y,b=v[g];v[g]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var w=this._hash.words,E=v[m+0],T=v[m+1],D=v[m+2],R=v[m+3],L=v[m+4],I=v[m+5],A=v[m+6],M=v[m+7],F=v[m+8],V=v[m+9],G=v[m+10],X=v[m+11],re=v[m+12],te=v[m+13],oe=v[m+14],P=v[m+15],k=w[0],x=w[1],S=w[2],d=w[3];k=f(k,x,S,d,E,7,i[0]),d=f(d,k,x,S,T,12,i[1]),S=f(S,d,k,x,D,17,i[2]),x=f(x,S,d,k,R,22,i[3]),k=f(k,x,S,d,L,7,i[4]),d=f(d,k,x,S,I,12,i[5]),S=f(S,d,k,x,A,17,i[6]),x=f(x,S,d,k,M,22,i[7]),k=f(k,x,S,d,F,7,i[8]),d=f(d,k,x,S,V,12,i[9]),S=f(S,d,k,x,G,17,i[10]),x=f(x,S,d,k,X,22,i[11]),k=f(k,x,S,d,re,7,i[12]),d=f(d,k,x,S,te,12,i[13]),S=f(S,d,k,x,oe,17,i[14]),x=f(x,S,d,k,P,22,i[15]),k=h(k,x,S,d,T,5,i[16]),d=h(d,k,x,S,A,9,i[17]),S=h(S,d,k,x,X,14,i[18]),x=h(x,S,d,k,E,20,i[19]),k=h(k,x,S,d,I,5,i[20]),d=h(d,k,x,S,G,9,i[21]),S=h(S,d,k,x,P,14,i[22]),x=h(x,S,d,k,L,20,i[23]),k=h(k,x,S,d,V,5,i[24]),d=h(d,k,x,S,oe,9,i[25]),S=h(S,d,k,x,R,14,i[26]),x=h(x,S,d,k,F,20,i[27]),k=h(k,x,S,d,te,5,i[28]),d=h(d,k,x,S,D,9,i[29]),S=h(S,d,k,x,M,14,i[30]),x=h(x,S,d,k,re,20,i[31]),k=_(k,x,S,d,I,4,i[32]),d=_(d,k,x,S,F,11,i[33]),S=_(S,d,k,x,X,16,i[34]),x=_(x,S,d,k,oe,23,i[35]),k=_(k,x,S,d,T,4,i[36]),d=_(d,k,x,S,L,11,i[37]),S=_(S,d,k,x,M,16,i[38]),x=_(x,S,d,k,G,23,i[39]),k=_(k,x,S,d,te,4,i[40]),d=_(d,k,x,S,E,11,i[41]),S=_(S,d,k,x,R,16,i[42]),x=_(x,S,d,k,A,23,i[43]),k=_(k,x,S,d,V,4,i[44]),d=_(d,k,x,S,re,11,i[45]),S=_(S,d,k,x,P,16,i[46]),x=_(x,S,d,k,D,23,i[47]),k=p(k,x,S,d,E,6,i[48]),d=p(d,k,x,S,M,10,i[49]),S=p(S,d,k,x,oe,15,i[50]),x=p(x,S,d,k,I,21,i[51]),k=p(k,x,S,d,re,6,i[52]),d=p(d,k,x,S,R,10,i[53]),S=p(S,d,k,x,G,15,i[54]),x=p(x,S,d,k,T,21,i[55]),k=p(k,x,S,d,F,6,i[56]),d=p(d,k,x,S,P,10,i[57]),S=p(S,d,k,x,A,15,i[58]),x=p(x,S,d,k,te,21,i[59]),k=p(k,x,S,d,L,6,i[60]),d=p(d,k,x,S,X,10,i[61]),S=p(S,d,k,x,D,15,i[62]),x=p(x,S,d,k,V,21,i[63]),w[0]=w[0]+k|0,w[1]=w[1]+x|0,w[2]=w[2]+S|0,w[3]=w[3]+d|0},_doFinalize:function(){var v=this._data,m=v.words,y=this._nDataBytes*8,g=v.sigBytes*8;m[g>>>5]|=128<<24-g%32;var b=s.floor(y/4294967296),w=y;m[(g+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m[(g+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,v.sigBytes=(m.length+1)*4,this._process();for(var E=this._hash,T=E.words,D=0;D<4;D++){var R=T[D];T[D]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return E},clone:function(){var v=u.clone.call(this);return v._hash=this._hash.clone(),v}});function f(v,m,y,g,b,w,E){var T=v+(m&y|~m&g)+b+E;return(T<<w|T>>>32-w)+m}function h(v,m,y,g,b,w,E){var T=v+(m&g|y&~g)+b+E;return(T<<w|T>>>32-w)+m}function _(v,m,y,g,b,w,E){var T=v+(m^y^g)+b+E;return(T<<w|T>>>32-w)+m}function p(v,m,y,g,b,w,E){var T=v+(y^(m|~g))+b+E;return(T<<w|T>>>32-w)+m}n.MD5=u._createHelper(l),n.HmacMD5=u._createHmacHelper(l)}(Math),t.MD5})}(du)),du.exports}var fu={exports:{}},pu;function mu(){return pu||(pu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,o=n.Hasher,u=s.algo,c=[],i=u.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var h=this._hash.words,_=h[0],p=h[1],v=h[2],m=h[3],y=h[4],g=0;g<80;g++){if(g<16)c[g]=l[f+g]|0;else{var b=c[g-3]^c[g-8]^c[g-14]^c[g-16];c[g]=b<<1|b>>>31}var w=(_<<5|_>>>27)+y+c[g];g<20?w+=(p&v|~p&m)+1518500249:g<40?w+=(p^v^m)+1859775393:g<60?w+=(p&v|p&m|v&m)-1894007588:w+=(p^v^m)-899497514,y=m,m=v,v=p<<30|p>>>2,p=_,_=w}h[0]=h[0]+_|0,h[1]=h[1]+p|0,h[2]=h[2]+v|0,h[3]=h[3]+m|0,h[4]=h[4]+y|0},_doFinalize:function(){var l=this._data,f=l.words,h=this._nDataBytes*8,_=l.sigBytes*8;return f[_>>>5]|=128<<24-_%32,f[(_+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(_+64>>>9<<4)+15]=h,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});s.SHA1=o._createHelper(i),s.HmacSHA1=o._createHmacHelper(i)}(),t.SHA1})}(fu)),fu.exports}var gu={exports:{}},yu;function ca(){return yu||(yu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,o=a.WordArray,u=a.Hasher,c=n.algo,i=[],l=[];(function(){function _(y){for(var g=s.sqrt(y),b=2;b<=g;b++)if(!(y%b))return!1;return!0}function p(y){return(y-(y|0))*4294967296|0}for(var v=2,m=0;m<64;)_(v)&&(m<8&&(i[m]=p(s.pow(v,1/2))),l[m]=p(s.pow(v,1/3)),m++),v++})();var f=[],h=c.SHA256=u.extend({_doReset:function(){this._hash=new o.init(i.slice(0))},_doProcessBlock:function(_,p){for(var v=this._hash.words,m=v[0],y=v[1],g=v[2],b=v[3],w=v[4],E=v[5],T=v[6],D=v[7],R=0;R<64;R++){if(R<16)f[R]=_[p+R]|0;else{var L=f[R-15],I=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,A=f[R-2],M=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;f[R]=I+f[R-7]+M+f[R-16]}var F=w&E^~w&T,V=m&y^m&g^y&g,G=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),X=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),re=D+X+F+l[R]+f[R],te=G+V;D=T,T=E,E=w,w=b+re|0,b=g,g=y,y=m,m=re+te|0}v[0]=v[0]+m|0,v[1]=v[1]+y|0,v[2]=v[2]+g|0,v[3]=v[3]+b|0,v[4]=v[4]+w|0,v[5]=v[5]+E|0,v[6]=v[6]+T|0,v[7]=v[7]+D|0},_doFinalize:function(){var _=this._data,p=_.words,v=this._nDataBytes*8,m=_.sigBytes*8;return p[m>>>5]|=128<<24-m%32,p[(m+64>>>9<<4)+14]=s.floor(v/4294967296),p[(m+64>>>9<<4)+15]=v,_.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var _=u.clone.call(this);return _._hash=this._hash.clone(),_}});n.SHA256=u._createHelper(h),n.HmacSHA256=u._createHmacHelper(h)}(Math),t.SHA256})}(gu)),gu.exports}var vu={exports:{}},_u;function V0(){return _u||(_u=1,function(r,e){(function(t,s,n){r.exports=s(fe(),ca())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,o=s.algo,u=o.SHA256,c=o.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=u._doFinalize.call(this);return i.sigBytes-=4,i}});s.SHA224=u._createHelper(c),s.HmacSHA224=u._createHmacHelper(c)}(),t.SHA224})}(vu)),vu.exports}var bu={exports:{}},ku;function wu(){return ku||(ku=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ns())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Hasher,o=s.x64,u=o.Word,c=o.WordArray,i=s.algo;function l(){return u.create.apply(u,arguments)}var f=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],h=[];(function(){for(var p=0;p<80;p++)h[p]=l()})();var _=i.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(p,v){for(var m=this._hash.words,y=m[0],g=m[1],b=m[2],w=m[3],E=m[4],T=m[5],D=m[6],R=m[7],L=y.high,I=y.low,A=g.high,M=g.low,F=b.high,V=b.low,G=w.high,X=w.low,re=E.high,te=E.low,oe=T.high,P=T.low,k=D.high,x=D.low,S=R.high,d=R.low,$=L,N=I,z=A,j=M,H=F,K=V,ne=G,q=X,ye=re,me=te,Ge=oe,at=P,We=k,et=x,lt=S,ct=d,Ne=0;Ne<80;Ne++){var Oe,je,tt=h[Ne];if(Ne<16)je=tt.high=p[v+Ne*2]|0,Oe=tt.low=p[v+Ne*2+1]|0;else{var ot=h[Ne-15],xe=ot.high,dt=ot.low,or=(xe>>>1|dt<<31)^(xe>>>8|dt<<24)^xe>>>7,qt=(dt>>>1|xe<<31)^(dt>>>8|xe<<24)^(dt>>>7|xe<<25),Kt=h[Ne-2],Dt=Kt.high,Ct=Kt.low,_r=(Dt>>>19|Ct<<13)^(Dt<<3|Ct>>>29)^Dt>>>6,ht=(Ct>>>19|Dt<<13)^(Ct<<3|Dt>>>29)^(Ct>>>6|Dt<<26),Mt=h[Ne-7],Gr=Mt.high,Wr=Mt.low,Os=h[Ne-16],br=Os.high,ir=Os.low;Oe=qt+Wr,je=or+Gr+(Oe>>>0<qt>>>0?1:0),Oe=Oe+ht,je=je+_r+(Oe>>>0<ht>>>0?1:0),Oe=Oe+ir,je=je+br+(Oe>>>0<ir>>>0?1:0),tt.high=je,tt.low=Oe}var ha=ye&Ge^~ye&We,Gt=me&at^~me&et,fa=$&z^$&H^z&H,pa=N&j^N&K^j&K,Se=($>>>28|N<<4)^($<<30|N>>>2)^($<<25|N>>>7),Ft=(N>>>28|$<<4)^(N<<30|$>>>2)^(N<<25|$>>>7),ma=(ye>>>14|me<<18)^(ye>>>18|me<<14)^(ye<<23|me>>>9),Is=(me>>>14|ye<<18)^(me>>>18|ye<<14)^(me<<23|ye>>>9),kr=f[Ne],Ds=kr.high,Xr=kr.low,Xe=ct+Is,Ae=lt+ma+(Xe>>>0<ct>>>0?1:0),Xe=Xe+Gt,Ae=Ae+ha+(Xe>>>0<Gt>>>0?1:0),Xe=Xe+Xr,Ae=Ae+Ds+(Xe>>>0<Xr>>>0?1:0),Xe=Xe+Oe,Ae=Ae+je+(Xe>>>0<Oe>>>0?1:0),ur=Ft+pa,Ms=Se+fa+(ur>>>0<Ft>>>0?1:0);lt=We,ct=et,We=Ge,et=at,Ge=ye,at=me,me=q+Xe|0,ye=ne+Ae+(me>>>0<q>>>0?1:0)|0,ne=H,q=K,H=z,K=j,z=$,j=N,N=Xe+ur|0,$=Ae+Ms+(N>>>0<Xe>>>0?1:0)|0}I=y.low=I+N,y.high=L+$+(I>>>0<N>>>0?1:0),M=g.low=M+j,g.high=A+z+(M>>>0<j>>>0?1:0),V=b.low=V+K,b.high=F+H+(V>>>0<K>>>0?1:0),X=w.low=X+q,w.high=G+ne+(X>>>0<q>>>0?1:0),te=E.low=te+me,E.high=re+ye+(te>>>0<me>>>0?1:0),P=T.low=P+at,T.high=oe+Ge+(P>>>0<at>>>0?1:0),x=D.low=x+et,D.high=k+We+(x>>>0<et>>>0?1:0),d=R.low=d+ct,R.high=S+lt+(d>>>0<ct>>>0?1:0)},_doFinalize:function(){var p=this._data,v=p.words,m=this._nDataBytes*8,y=p.sigBytes*8;v[y>>>5]|=128<<24-y%32,v[(y+128>>>10<<5)+30]=Math.floor(m/4294967296),v[(y+128>>>10<<5)+31]=m,p.sigBytes=v.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});s.SHA512=a._createHelper(_),s.HmacSHA512=a._createHmacHelper(_)}(),t.SHA512})}(bu)),bu.exports}var Eu={exports:{}},$u;function H0(){return $u||($u=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ns(),wu())})(ce,function(t){return function(){var s=t,n=s.x64,a=n.Word,o=n.WordArray,u=s.algo,c=u.SHA512,i=u.SHA384=c.extend({_doReset:function(){this._hash=new o.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var l=c._doFinalize.call(this);return l.sigBytes-=16,l}});s.SHA384=c._createHelper(i),s.HmacSHA384=c._createHmacHelper(i)}(),t.SHA384})}(Eu)),Eu.exports}var Su={exports:{}},Cu;function U0(){return Cu||(Cu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ns())})(ce,function(t){return function(s){var n=t,a=n.lib,o=a.WordArray,u=a.Hasher,c=n.x64,i=c.Word,l=n.algo,f=[],h=[],_=[];(function(){for(var m=1,y=0,g=0;g<24;g++){f[m+5*y]=(g+1)*(g+2)/2%64;var b=y%5,w=(2*m+3*y)%5;m=b,y=w}for(var m=0;m<5;m++)for(var y=0;y<5;y++)h[m+5*y]=y+(2*m+3*y)%5*5;for(var E=1,T=0;T<24;T++){for(var D=0,R=0,L=0;L<7;L++){if(E&1){var I=(1<<L)-1;I<32?R^=1<<I:D^=1<<I-32}E&128?E=E<<1^113:E<<=1}_[T]=i.create(D,R)}})();var p=[];(function(){for(var m=0;m<25;m++)p[m]=i.create()})();var v=l.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var m=this._state=[],y=0;y<25;y++)m[y]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(m,y){for(var g=this._state,b=this.blockSize/2,w=0;w<b;w++){var E=m[y+2*w],T=m[y+2*w+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var D=g[w];D.high^=T,D.low^=E}for(var R=0;R<24;R++){for(var L=0;L<5;L++){for(var I=0,A=0,M=0;M<5;M++){var D=g[L+5*M];I^=D.high,A^=D.low}var F=p[L];F.high=I,F.low=A}for(var L=0;L<5;L++)for(var V=p[(L+4)%5],G=p[(L+1)%5],X=G.high,re=G.low,I=V.high^(X<<1|re>>>31),A=V.low^(re<<1|X>>>31),M=0;M<5;M++){var D=g[L+5*M];D.high^=I,D.low^=A}for(var te=1;te<25;te++){var I,A,D=g[te],oe=D.high,P=D.low,k=f[te];k<32?(I=oe<<k|P>>>32-k,A=P<<k|oe>>>32-k):(I=P<<k-32|oe>>>64-k,A=oe<<k-32|P>>>64-k);var x=p[h[te]];x.high=I,x.low=A}var S=p[0],d=g[0];S.high=d.high,S.low=d.low;for(var L=0;L<5;L++)for(var M=0;M<5;M++){var te=L+5*M,D=g[te],$=p[te],N=p[(L+1)%5+5*M],z=p[(L+2)%5+5*M];D.high=$.high^~N.high&z.high,D.low=$.low^~N.low&z.low}var D=g[0],j=_[R];D.high^=j.high,D.low^=j.low}},_doFinalize:function(){var m=this._data,y=m.words;this._nDataBytes*8;var g=m.sigBytes*8,b=this.blockSize*32;y[g>>>5]|=1<<24-g%32,y[(s.ceil((g+1)/b)*b>>>5)-1]|=128,m.sigBytes=y.length*4,this._process();for(var w=this._state,E=this.cfg.outputLength/8,T=E/8,D=[],R=0;R<T;R++){var L=w[R],I=L.high,A=L.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,D.push(A),D.push(I)}return new o.init(D,E)},clone:function(){for(var m=u.clone.call(this),y=m._state=this._state.slice(0),g=0;g<25;g++)y[g]=y[g].clone();return m}});n.SHA3=u._createHelper(v),n.HmacSHA3=u._createHmacHelper(v)}(Math),t.SHA3})}(Su)),Su.exports}var xu={exports:{}},Au;function q0(){return Au||(Au=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){/** @preserve
29
29
  (c) 2012 by Cédric Mesnil. All rights reserved.
30
30
 
31
31
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -34,8 +34,8 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=ne(z,K,d,$,N+"."+K
34
34
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
35
35
 
36
36
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
- */return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.algo,o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_=i.create([0,1518500249,1859775393,2400959708,2840853838]),p=i.create([1352829926,1548603684,1836072691,2053994217,0]),v=c.RIPEMD160=u.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,D){for(var R=0;R<16;R++){var L=D+R,I=T[L];T[L]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var A=this._hash.words,M=_.words,F=p.words,V=o.words,G=l.words,X=f.words,re=h.words,te,oe,P,k,C,S,d,$,N,z;S=te=A[0],d=oe=A[1],$=P=A[2],N=k=A[3],z=C=A[4];for(var j,R=0;R<80;R+=1)j=te+T[D+V[R]]|0,R<16?j+=m(oe,P,k)+M[0]:R<32?j+=y(oe,P,k)+M[1]:R<48?j+=g(oe,P,k)+M[2]:R<64?j+=b(oe,P,k)+M[3]:j+=w(oe,P,k)+M[4],j=j|0,j=E(j,X[R]),j=j+C|0,te=C,C=k,k=E(P,10),P=oe,oe=j,j=S+T[D+G[R]]|0,R<16?j+=w(d,$,N)+F[0]:R<32?j+=b(d,$,N)+F[1]:R<48?j+=g(d,$,N)+F[2]:R<64?j+=y(d,$,N)+F[3]:j+=m(d,$,N)+F[4],j=j|0,j=E(j,re[R]),j=j+z|0,S=z,z=N,N=E($,10),$=d,d=j;j=A[1]+P+N|0,A[1]=A[2]+k+z|0,A[2]=A[3]+C+S|0,A[3]=A[4]+te+d|0,A[4]=A[0]+oe+$|0,A[0]=j},_doFinalize:function(){var T=this._data,D=T.words,R=this._nDataBytes*8,L=T.sigBytes*8;D[L>>>5]|=128<<24-L%32,D[(L+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,T.sigBytes=(D.length+1)*4,this._process();for(var I=this._hash,A=I.words,M=0;M<5;M++){var F=A[M];A[M]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}return I},clone:function(){var T=u.clone.call(this);return T._hash=this._hash.clone(),T}});function m(T,D,R){return T^D^R}function y(T,D,R){return T&D|~T&R}function g(T,D,R){return(T|~D)^R}function b(T,D,R){return T&R|D&~R}function w(T,D,R){return T^(D|~R)}function E(T,D){return T<<D|T>>>32-D}n.RIPEMD160=u._createHelper(v),n.HmacRIPEMD160=u._createHmacHelper(v)}(),t.RIPEMD160})}(Cu)),Cu.exports}var Tu={exports:{}},Pu;function da(){return Pu||(Pu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){(function(){var s=t,n=s.lib,a=n.Base,i=s.enc,u=i.Utf8,c=s.algo;c.HMAC=a.extend({init:function(o,l){o=this._hasher=new o.init,typeof l=="string"&&(l=u.parse(l));var f=o.blockSize,h=f*4;l.sigBytes>h&&(l=o.finalize(l)),l.clamp();for(var _=this._oKey=l.clone(),p=this._iKey=l.clone(),v=_.words,m=p.words,y=0;y<f;y++)v[y]^=1549556828,m[y]^=909522486;_.sigBytes=p.sigBytes=h,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var l=this._hasher,f=l.finalize(o);l.reset();var h=l.finalize(this._oKey.clone().concat(f));return h}})})()})}(Tu)),Tu.exports}var Nu={exports:{}},Ou;function K0(){return Ou||(Ou=1,function(r,e){(function(t,s,n){r.exports=s(fe(),ca(),da())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,u=s.algo,c=u.SHA256,o=u.HMAC,l=u.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,h){for(var _=this.cfg,p=o.create(_.hasher,f),v=i.create(),m=i.create([1]),y=v.words,g=m.words,b=_.keySize,w=_.iterations;y.length<b;){var E=p.update(h).finalize(m);p.reset();for(var T=E.words,D=T.length,R=E,L=1;L<w;L++){R=p.finalize(R),p.reset();for(var I=R.words,A=0;A<D;A++)T[A]^=I[A]}v.concat(E),g[0]++}return v.sigBytes=b*4,v}});s.PBKDF2=function(f,h,_){return l.create(_).compute(f,h)}}(),t.PBKDF2})}(Nu)),Nu.exports}var Iu={exports:{}},Du;function Ut(){return Du||(Du=1,function(r,e){(function(t,s,n){r.exports=s(fe(),mu(),da())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,u=s.algo,c=u.MD5,o=u.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var h,_=this.cfg,p=_.hasher.create(),v=i.create(),m=v.words,y=_.keySize,g=_.iterations;m.length<y;){h&&p.update(h),h=p.update(l).finalize(f),p.reset();for(var b=1;b<g;b++)h=p.finalize(h),p.reset();v.concat(h)}return v.sigBytes=y*4,v}});s.EvpKDF=function(l,f,h){return o.create(h).compute(l,f)}}(),t.EvpKDF})}(Iu)),Iu.exports}var Mu={exports:{}},Fu;function Pe(){return Fu||(Fu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ut())})(ce,function(t){t.lib.Cipher||function(s){var n=t,a=n.lib,i=a.Base,u=a.WordArray,c=a.BufferedBlockAlgorithm,o=n.enc;o.Utf8;var l=o.Base64,f=n.algo,h=f.EvpKDF,_=a.Cipher=c.extend({cfg:i.extend(),createEncryptor:function(I,A){return this.create(this._ENC_XFORM_MODE,I,A)},createDecryptor:function(I,A){return this.create(this._DEC_XFORM_MODE,I,A)},init:function(I,A,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=A,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(A){return typeof A=="string"?L:T}return function(A){return{encrypt:function(M,F,V){return I(F).encrypt(A,M,F,V)},decrypt:function(M,F,V){return I(F).decrypt(A,M,F,V)}}}}()});a.StreamCipher=_.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var p=n.mode={},v=a.BlockCipherMode=i.extend({createEncryptor:function(I,A){return this.Encryptor.create(I,A)},createDecryptor:function(I,A){return this.Decryptor.create(I,A)},init:function(I,A){this._cipher=I,this._iv=A}}),m=p.CBC=function(){var I=v.extend();I.Encryptor=I.extend({processBlock:function(M,F){var V=this._cipher,G=V.blockSize;A.call(this,M,F,G),V.encryptBlock(M,F),this._prevBlock=M.slice(F,F+G)}}),I.Decryptor=I.extend({processBlock:function(M,F){var V=this._cipher,G=V.blockSize,X=M.slice(F,F+G);V.decryptBlock(M,F),A.call(this,M,F,G),this._prevBlock=X}});function A(M,F,V){var G,X=this._iv;X?(G=X,this._iv=s):G=this._prevBlock;for(var re=0;re<V;re++)M[F+re]^=G[re]}return I}(),y=n.pad={},g=y.Pkcs7={pad:function(I,A){for(var M=A*4,F=M-I.sigBytes%M,V=F<<24|F<<16|F<<8|F,G=[],X=0;X<F;X+=4)G.push(V);var re=u.create(G,F);I.concat(re)},unpad:function(I){var A=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=A}};a.BlockCipher=_.extend({cfg:_.cfg.extend({mode:m,padding:g}),reset:function(){var I;_.reset.call(this);var A=this.cfg,M=A.iv,F=A.mode;this._xformMode==this._ENC_XFORM_MODE?I=F.createEncryptor:(I=F.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,M&&M.words):(this._mode=I.call(F,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,A){this._mode.processBlock(I,A)},_doFinalize:function(){var I,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),A.unpad(I)),I},blockSize:128/32});var b=a.CipherParams=i.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),w=n.format={},E=w.OpenSSL={stringify:function(I){var A,M=I.ciphertext,F=I.salt;return F?A=u.create([1398893684,1701076831]).concat(F).concat(M):A=M,A.toString(l)},parse:function(I){var A,M=l.parse(I),F=M.words;return F[0]==1398893684&&F[1]==1701076831&&(A=u.create(F.slice(2,4)),F.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:A})}},T=a.SerializableCipher=i.extend({cfg:i.extend({format:E}),encrypt:function(I,A,M,F){F=this.cfg.extend(F);var V=I.createEncryptor(M,F),G=V.finalize(A),X=V.cfg;return b.create({ciphertext:G,key:M,iv:X.iv,algorithm:I,mode:X.mode,padding:X.padding,blockSize:I.blockSize,formatter:F.format})},decrypt:function(I,A,M,F){F=this.cfg.extend(F),A=this._parse(A,F.format);var V=I.createDecryptor(M,F).finalize(A.ciphertext);return V},_parse:function(I,A){return typeof I=="string"?A.parse(I,this):I}}),D=n.kdf={},R=D.OpenSSL={execute:function(I,A,M,F,V){if(F||(F=u.random(64/8)),V)var G=h.create({keySize:A+M,hasher:V}).compute(I,F);else var G=h.create({keySize:A+M}).compute(I,F);var X=u.create(G.words.slice(A),M*4);return G.sigBytes=A*4,b.create({key:G,iv:X,salt:F})}},L=a.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:R}),encrypt:function(I,A,M,F){F=this.cfg.extend(F);var V=F.kdf.execute(M,I.keySize,I.ivSize,F.salt,F.hasher);F.iv=V.iv;var G=T.encrypt.call(this,I,A,V.key,F);return G.mixIn(V),G},decrypt:function(I,A,M,F){F=this.cfg.extend(F),A=this._parse(A,F.format);var V=F.kdf.execute(M,I.keySize,I.ivSize,A.salt,F.hasher);F.iv=V.iv;var G=T.decrypt.call(this,I,A,V.key,F);return G}})}()})}(Mu)),Mu.exports}var Ru={exports:{}},Bu;function G0(){return Bu||(Bu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.CFB=function(){var s=t.lib.BlockCipherMode.extend();s.Encryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize;n.call(this,a,i,c,u),this._prevBlock=a.slice(i,i+c)}}),s.Decryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize,o=a.slice(i,i+c);n.call(this,a,i,c,u),this._prevBlock=o}});function n(a,i,u,c){var o,l=this._iv;l?(o=l.slice(0),this._iv=void 0):o=this._prevBlock,c.encryptBlock(o,0);for(var f=0;f<u;f++)a[i+f]^=o[f]}return s}(),t.mode.CFB})}(Ru)),Ru.exports}var Lu={exports:{}},ju;function W0(){return ju||(ju=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.CTR=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize,o=this._iv,l=this._counter;o&&(l=this._counter=o.slice(0),this._iv=void 0);var f=l.slice(0);u.encryptBlock(f,0),l[c-1]=l[c-1]+1|0;for(var h=0;h<c;h++)a[i+h]^=f[h]}});return s.Decryptor=n,s}(),t.mode.CTR})}(Lu)),Lu.exports}var zu={exports:{}},Vu;function X0(){return Vu||(Vu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){/** @preserve
37
+ */return function(s){var n=t,a=n.lib,o=a.WordArray,u=a.Hasher,c=n.algo,i=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_=o.create([0,1518500249,1859775393,2400959708,2840853838]),p=o.create([1352829926,1548603684,1836072691,2053994217,0]),v=c.RIPEMD160=u.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,D){for(var R=0;R<16;R++){var L=D+R,I=T[L];T[L]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var A=this._hash.words,M=_.words,F=p.words,V=i.words,G=l.words,X=f.words,re=h.words,te,oe,P,k,x,S,d,$,N,z;S=te=A[0],d=oe=A[1],$=P=A[2],N=k=A[3],z=x=A[4];for(var j,R=0;R<80;R+=1)j=te+T[D+V[R]]|0,R<16?j+=m(oe,P,k)+M[0]:R<32?j+=y(oe,P,k)+M[1]:R<48?j+=g(oe,P,k)+M[2]:R<64?j+=b(oe,P,k)+M[3]:j+=w(oe,P,k)+M[4],j=j|0,j=E(j,X[R]),j=j+x|0,te=x,x=k,k=E(P,10),P=oe,oe=j,j=S+T[D+G[R]]|0,R<16?j+=w(d,$,N)+F[0]:R<32?j+=b(d,$,N)+F[1]:R<48?j+=g(d,$,N)+F[2]:R<64?j+=y(d,$,N)+F[3]:j+=m(d,$,N)+F[4],j=j|0,j=E(j,re[R]),j=j+z|0,S=z,z=N,N=E($,10),$=d,d=j;j=A[1]+P+N|0,A[1]=A[2]+k+z|0,A[2]=A[3]+x+S|0,A[3]=A[4]+te+d|0,A[4]=A[0]+oe+$|0,A[0]=j},_doFinalize:function(){var T=this._data,D=T.words,R=this._nDataBytes*8,L=T.sigBytes*8;D[L>>>5]|=128<<24-L%32,D[(L+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,T.sigBytes=(D.length+1)*4,this._process();for(var I=this._hash,A=I.words,M=0;M<5;M++){var F=A[M];A[M]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}return I},clone:function(){var T=u.clone.call(this);return T._hash=this._hash.clone(),T}});function m(T,D,R){return T^D^R}function y(T,D,R){return T&D|~T&R}function g(T,D,R){return(T|~D)^R}function b(T,D,R){return T&R|D&~R}function w(T,D,R){return T^(D|~R)}function E(T,D){return T<<D|T>>>32-D}n.RIPEMD160=u._createHelper(v),n.HmacRIPEMD160=u._createHmacHelper(v)}(),t.RIPEMD160})}(xu)),xu.exports}var Tu={exports:{}},Pu;function da(){return Pu||(Pu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){(function(){var s=t,n=s.lib,a=n.Base,o=s.enc,u=o.Utf8,c=s.algo;c.HMAC=a.extend({init:function(i,l){i=this._hasher=new i.init,typeof l=="string"&&(l=u.parse(l));var f=i.blockSize,h=f*4;l.sigBytes>h&&(l=i.finalize(l)),l.clamp();for(var _=this._oKey=l.clone(),p=this._iKey=l.clone(),v=_.words,m=p.words,y=0;y<f;y++)v[y]^=1549556828,m[y]^=909522486;_.sigBytes=p.sigBytes=h,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var l=this._hasher,f=l.finalize(i);l.reset();var h=l.finalize(this._oKey.clone().concat(f));return h}})})()})}(Tu)),Tu.exports}var Nu={exports:{}},Ou;function K0(){return Ou||(Ou=1,function(r,e){(function(t,s,n){r.exports=s(fe(),ca(),da())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,o=n.WordArray,u=s.algo,c=u.SHA256,i=u.HMAC,l=u.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,h){for(var _=this.cfg,p=i.create(_.hasher,f),v=o.create(),m=o.create([1]),y=v.words,g=m.words,b=_.keySize,w=_.iterations;y.length<b;){var E=p.update(h).finalize(m);p.reset();for(var T=E.words,D=T.length,R=E,L=1;L<w;L++){R=p.finalize(R),p.reset();for(var I=R.words,A=0;A<D;A++)T[A]^=I[A]}v.concat(E),g[0]++}return v.sigBytes=b*4,v}});s.PBKDF2=function(f,h,_){return l.create(_).compute(f,h)}}(),t.PBKDF2})}(Nu)),Nu.exports}var Iu={exports:{}},Du;function Ut(){return Du||(Du=1,function(r,e){(function(t,s,n){r.exports=s(fe(),mu(),da())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,o=n.WordArray,u=s.algo,c=u.MD5,i=u.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var h,_=this.cfg,p=_.hasher.create(),v=o.create(),m=v.words,y=_.keySize,g=_.iterations;m.length<y;){h&&p.update(h),h=p.update(l).finalize(f),p.reset();for(var b=1;b<g;b++)h=p.finalize(h),p.reset();v.concat(h)}return v.sigBytes=y*4,v}});s.EvpKDF=function(l,f,h){return i.create(h).compute(l,f)}}(),t.EvpKDF})}(Iu)),Iu.exports}var Mu={exports:{}},Fu;function Pe(){return Fu||(Fu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ut())})(ce,function(t){t.lib.Cipher||function(s){var n=t,a=n.lib,o=a.Base,u=a.WordArray,c=a.BufferedBlockAlgorithm,i=n.enc;i.Utf8;var l=i.Base64,f=n.algo,h=f.EvpKDF,_=a.Cipher=c.extend({cfg:o.extend(),createEncryptor:function(I,A){return this.create(this._ENC_XFORM_MODE,I,A)},createDecryptor:function(I,A){return this.create(this._DEC_XFORM_MODE,I,A)},init:function(I,A,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=A,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(A){return typeof A=="string"?L:T}return function(A){return{encrypt:function(M,F,V){return I(F).encrypt(A,M,F,V)},decrypt:function(M,F,V){return I(F).decrypt(A,M,F,V)}}}}()});a.StreamCipher=_.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var p=n.mode={},v=a.BlockCipherMode=o.extend({createEncryptor:function(I,A){return this.Encryptor.create(I,A)},createDecryptor:function(I,A){return this.Decryptor.create(I,A)},init:function(I,A){this._cipher=I,this._iv=A}}),m=p.CBC=function(){var I=v.extend();I.Encryptor=I.extend({processBlock:function(M,F){var V=this._cipher,G=V.blockSize;A.call(this,M,F,G),V.encryptBlock(M,F),this._prevBlock=M.slice(F,F+G)}}),I.Decryptor=I.extend({processBlock:function(M,F){var V=this._cipher,G=V.blockSize,X=M.slice(F,F+G);V.decryptBlock(M,F),A.call(this,M,F,G),this._prevBlock=X}});function A(M,F,V){var G,X=this._iv;X?(G=X,this._iv=s):G=this._prevBlock;for(var re=0;re<V;re++)M[F+re]^=G[re]}return I}(),y=n.pad={},g=y.Pkcs7={pad:function(I,A){for(var M=A*4,F=M-I.sigBytes%M,V=F<<24|F<<16|F<<8|F,G=[],X=0;X<F;X+=4)G.push(V);var re=u.create(G,F);I.concat(re)},unpad:function(I){var A=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=A}};a.BlockCipher=_.extend({cfg:_.cfg.extend({mode:m,padding:g}),reset:function(){var I;_.reset.call(this);var A=this.cfg,M=A.iv,F=A.mode;this._xformMode==this._ENC_XFORM_MODE?I=F.createEncryptor:(I=F.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,M&&M.words):(this._mode=I.call(F,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,A){this._mode.processBlock(I,A)},_doFinalize:function(){var I,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),A.unpad(I)),I},blockSize:128/32});var b=a.CipherParams=o.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),w=n.format={},E=w.OpenSSL={stringify:function(I){var A,M=I.ciphertext,F=I.salt;return F?A=u.create([1398893684,1701076831]).concat(F).concat(M):A=M,A.toString(l)},parse:function(I){var A,M=l.parse(I),F=M.words;return F[0]==1398893684&&F[1]==1701076831&&(A=u.create(F.slice(2,4)),F.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:A})}},T=a.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(I,A,M,F){F=this.cfg.extend(F);var V=I.createEncryptor(M,F),G=V.finalize(A),X=V.cfg;return b.create({ciphertext:G,key:M,iv:X.iv,algorithm:I,mode:X.mode,padding:X.padding,blockSize:I.blockSize,formatter:F.format})},decrypt:function(I,A,M,F){F=this.cfg.extend(F),A=this._parse(A,F.format);var V=I.createDecryptor(M,F).finalize(A.ciphertext);return V},_parse:function(I,A){return typeof I=="string"?A.parse(I,this):I}}),D=n.kdf={},R=D.OpenSSL={execute:function(I,A,M,F,V){if(F||(F=u.random(64/8)),V)var G=h.create({keySize:A+M,hasher:V}).compute(I,F);else var G=h.create({keySize:A+M}).compute(I,F);var X=u.create(G.words.slice(A),M*4);return G.sigBytes=A*4,b.create({key:G,iv:X,salt:F})}},L=a.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:R}),encrypt:function(I,A,M,F){F=this.cfg.extend(F);var V=F.kdf.execute(M,I.keySize,I.ivSize,F.salt,F.hasher);F.iv=V.iv;var G=T.encrypt.call(this,I,A,V.key,F);return G.mixIn(V),G},decrypt:function(I,A,M,F){F=this.cfg.extend(F),A=this._parse(A,F.format);var V=F.kdf.execute(M,I.keySize,I.ivSize,A.salt,F.hasher);F.iv=V.iv;var G=T.decrypt.call(this,I,A,V.key,F);return G}})}()})}(Mu)),Mu.exports}var Ru={exports:{}},Bu;function G0(){return Bu||(Bu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.CFB=function(){var s=t.lib.BlockCipherMode.extend();s.Encryptor=s.extend({processBlock:function(a,o){var u=this._cipher,c=u.blockSize;n.call(this,a,o,c,u),this._prevBlock=a.slice(o,o+c)}}),s.Decryptor=s.extend({processBlock:function(a,o){var u=this._cipher,c=u.blockSize,i=a.slice(o,o+c);n.call(this,a,o,c,u),this._prevBlock=i}});function n(a,o,u,c){var i,l=this._iv;l?(i=l.slice(0),this._iv=void 0):i=this._prevBlock,c.encryptBlock(i,0);for(var f=0;f<u;f++)a[o+f]^=i[f]}return s}(),t.mode.CFB})}(Ru)),Ru.exports}var Lu={exports:{}},ju;function W0(){return ju||(ju=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.CTR=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,o){var u=this._cipher,c=u.blockSize,i=this._iv,l=this._counter;i&&(l=this._counter=i.slice(0),this._iv=void 0);var f=l.slice(0);u.encryptBlock(f,0),l[c-1]=l[c-1]+1|0;for(var h=0;h<c;h++)a[o+h]^=f[h]}});return s.Decryptor=n,s}(),t.mode.CTR})}(Lu)),Lu.exports}var zu={exports:{}},Vu;function X0(){return Vu||(Vu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){/** @preserve
38
38
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
39
39
  * derived from CryptoJS.mode.CTR
40
40
  * Jan Hruby jhruby.web@gmail.com
41
- */return t.mode.CTRGladman=function(){var s=t.lib.BlockCipherMode.extend();function n(u){if((u>>24&255)===255){var c=u>>16&255,o=u>>8&255,l=u&255;c===255?(c=0,o===255?(o=0,l===255?l=0:++l):++o):++c,u=0,u+=c<<16,u+=o<<8,u+=l}else u+=1<<24;return u}function a(u){return(u[0]=n(u[0]))===0&&(u[1]=n(u[1])),u}var i=s.Encryptor=s.extend({processBlock:function(u,c){var o=this._cipher,l=o.blockSize,f=this._iv,h=this._counter;f&&(h=this._counter=f.slice(0),this._iv=void 0),a(h);var _=h.slice(0);o.encryptBlock(_,0);for(var p=0;p<l;p++)u[c+p]^=_[p]}});return s.Decryptor=i,s}(),t.mode.CTRGladman})}(zu)),zu.exports}var Hu={exports:{}},Uu;function Y0(){return Uu||(Uu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.OFB=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize,o=this._iv,l=this._keystream;o&&(l=this._keystream=o.slice(0),this._iv=void 0),u.encryptBlock(l,0);for(var f=0;f<c;f++)a[i+f]^=l[f]}});return s.Decryptor=n,s}(),t.mode.OFB})}(Hu)),Hu.exports}var qu={exports:{}},Ku;function J0(){return Ku||(Ku=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.ECB=function(){var s=t.lib.BlockCipherMode.extend();return s.Encryptor=s.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),s.Decryptor=s.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),s}(),t.mode.ECB})}(qu)),qu.exports}var Gu={exports:{}},Wu;function Z0(){return Wu||(Wu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.AnsiX923={pad:function(s,n){var a=s.sigBytes,i=n*4,u=i-a%i,c=a+u-1;s.clamp(),s.words[c>>>2]|=u<<24-c%4*8,s.sigBytes+=u},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Ansix923})}(Gu)),Gu.exports}var Xu={exports:{}},Yu;function Q0(){return Yu||(Yu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.Iso10126={pad:function(s,n){var a=n*4,i=a-s.sigBytes%a;s.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Iso10126})}(Xu)),Xu.exports}var Ju={exports:{}},Zu;function e1(){return Zu||(Zu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.Iso97971={pad:function(s,n){s.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(s,n)},unpad:function(s){t.pad.ZeroPadding.unpad(s),s.sigBytes--}},t.pad.Iso97971})}(Ju)),Ju.exports}var Qu={exports:{}},el;function t1(){return el||(el=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.ZeroPadding={pad:function(s,n){var a=n*4;s.clamp(),s.sigBytes+=a-(s.sigBytes%a||a)},unpad:function(s){for(var n=s.words,a=s.sigBytes-1,a=s.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){s.sigBytes=a+1;break}}},t.pad.ZeroPadding})}(Qu)),Qu.exports}var tl={exports:{}},rl;function r1(){return rl||(rl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(tl)),tl.exports}var sl={exports:{}},nl;function s1(){return nl||(nl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.CipherParams,u=n.enc,c=u.Hex,o=n.format;o.Hex={stringify:function(l){return l.ciphertext.toString(c)},parse:function(l){var f=c.parse(l);return i.create({ciphertext:f})}}}(),t.format.Hex})}(sl)),sl.exports}var al={exports:{}},ol;function n1(){return ol||(ol=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo,u=[],c=[],o=[],l=[],f=[],h=[],_=[],p=[],v=[],m=[];(function(){for(var b=[],w=0;w<256;w++)w<128?b[w]=w<<1:b[w]=w<<1^283;for(var E=0,T=0,w=0;w<256;w++){var D=T^T<<1^T<<2^T<<3^T<<4;D=D>>>8^D&255^99,u[E]=D,c[D]=E;var R=b[E],L=b[R],I=b[L],A=b[D]*257^D*16843008;o[E]=A<<24|A>>>8,l[E]=A<<16|A>>>16,f[E]=A<<8|A>>>24,h[E]=A;var A=I*16843009^L*65537^R*257^E*16843008;_[D]=A<<24|A>>>8,p[D]=A<<16|A>>>16,v[D]=A<<8|A>>>24,m[D]=A,E?(E=R^b[b[b[I^R]]],T^=b[b[T]]):E=T=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=a.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,E=w.words,T=w.sigBytes/4,D=this._nRounds=T+6,R=(D+1)*4,L=this._keySchedule=[],I=0;I<R;I++)I<T?L[I]=E[I]:(b=L[I-1],I%T?T>6&&I%T==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=y[I/T|0]<<24),L[I]=L[I-T]^b);for(var A=this._invKeySchedule=[],M=0;M<R;M++){var I=R-M;if(M%4)var b=L[I];else var b=L[I-4];M<4||I<=4?A[M]=b:A[M]=_[u[b>>>24]]^p[u[b>>>16&255]]^v[u[b>>>8&255]]^m[u[b&255]]}}},encryptBlock:function(b,w){this._doCryptBlock(b,w,this._keySchedule,o,l,f,h,u)},decryptBlock:function(b,w){var E=b[w+1];b[w+1]=b[w+3],b[w+3]=E,this._doCryptBlock(b,w,this._invKeySchedule,_,p,v,m,c);var E=b[w+1];b[w+1]=b[w+3],b[w+3]=E},_doCryptBlock:function(b,w,E,T,D,R,L,I){for(var A=this._nRounds,M=b[w]^E[0],F=b[w+1]^E[1],V=b[w+2]^E[2],G=b[w+3]^E[3],X=4,re=1;re<A;re++){var te=T[M>>>24]^D[F>>>16&255]^R[V>>>8&255]^L[G&255]^E[X++],oe=T[F>>>24]^D[V>>>16&255]^R[G>>>8&255]^L[M&255]^E[X++],P=T[V>>>24]^D[G>>>16&255]^R[M>>>8&255]^L[F&255]^E[X++],k=T[G>>>24]^D[M>>>16&255]^R[F>>>8&255]^L[V&255]^E[X++];M=te,F=oe,V=P,G=k}var te=(I[M>>>24]<<24|I[F>>>16&255]<<16|I[V>>>8&255]<<8|I[G&255])^E[X++],oe=(I[F>>>24]<<24|I[V>>>16&255]<<16|I[G>>>8&255]<<8|I[M&255])^E[X++],P=(I[V>>>24]<<24|I[G>>>16&255]<<16|I[M>>>8&255]<<8|I[F&255])^E[X++],k=(I[G>>>24]<<24|I[M>>>16&255]<<16|I[F>>>8&255]<<8|I[V&255])^E[X++];b[w]=te,b[w+1]=oe,b[w+2]=P,b[w+3]=k},keySize:256/32});s.AES=a._createHelper(g)}(),t.AES})}(al)),al.exports}var il={exports:{}},ul;function a1(){return ul||(ul=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.BlockCipher,u=s.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=u.DES=i.extend({_doReset:function(){for(var y=this._key,g=y.words,b=[],w=0;w<56;w++){var E=c[w]-1;b[w]=g[E>>>5]>>>31-E%32&1}for(var T=this._subKeys=[],D=0;D<16;D++){for(var R=T[D]=[],L=l[D],w=0;w<24;w++)R[w/6|0]|=b[(o[w]-1+L)%28]<<31-w%6,R[4+(w/6|0)]|=b[28+(o[w+24]-1+L)%28]<<31-w%6;R[0]=R[0]<<1|R[0]>>>31;for(var w=1;w<7;w++)R[w]=R[w]>>>(w-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var I=this._invSubKeys=[],w=0;w<16;w++)I[w]=T[15-w]},encryptBlock:function(y,g){this._doCryptBlock(y,g,this._subKeys)},decryptBlock:function(y,g){this._doCryptBlock(y,g,this._invSubKeys)},_doCryptBlock:function(y,g,b){this._lBlock=y[g],this._rBlock=y[g+1],p.call(this,4,252645135),p.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),p.call(this,1,1431655765);for(var w=0;w<16;w++){for(var E=b[w],T=this._lBlock,D=this._rBlock,R=0,L=0;L<8;L++)R|=f[L][((D^E[L])&h[L])>>>0];this._lBlock=D,this._rBlock=T^R}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,p.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),y[g]=this._lBlock,y[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(y,g){var b=(this._lBlock>>>y^this._rBlock)&g;this._rBlock^=b,this._lBlock^=b<<y}function v(y,g){var b=(this._rBlock>>>y^this._lBlock)&g;this._lBlock^=b,this._rBlock^=b<<y}s.DES=i._createHelper(_);var m=u.TripleDES=i.extend({_doReset:function(){var y=this._key,g=y.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=g.slice(0,2),w=g.length<4?g.slice(0,2):g.slice(2,4),E=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=_.createEncryptor(a.create(b)),this._des2=_.createEncryptor(a.create(w)),this._des3=_.createEncryptor(a.create(E))},encryptBlock:function(y,g){this._des1.encryptBlock(y,g),this._des2.decryptBlock(y,g),this._des3.encryptBlock(y,g)},decryptBlock:function(y,g){this._des3.decryptBlock(y,g),this._des2.encryptBlock(y,g),this._des1.decryptBlock(y,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});s.TripleDES=i._createHelper(m)}(),t.TripleDES})}(il)),il.exports}var ll={exports:{}},cl;function o1(){return cl||(cl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,u=i.RC4=a.extend({_doReset:function(){for(var l=this._key,f=l.words,h=l.sigBytes,_=this._S=[],p=0;p<256;p++)_[p]=p;for(var p=0,v=0;p<256;p++){var m=p%h,y=f[m>>>2]>>>24-m%4*8&255;v=(v+_[p]+y)%256;var g=_[p];_[p]=_[v],_[v]=g}this._i=this._j=0},_doProcessBlock:function(l,f){l[f]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var l=this._S,f=this._i,h=this._j,_=0,p=0;p<4;p++){f=(f+1)%256,h=(h+l[f])%256;var v=l[f];l[f]=l[h],l[h]=v,_|=l[(l[f]+l[h])%256]<<24-p*8}return this._i=f,this._j=h,_}s.RC4=a._createHelper(u);var o=i.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)c.call(this)}});s.RC4Drop=a._createHelper(o)}(),t.RC4})}(ll)),ll.exports}var dl={exports:{}},hl;function i1(){return hl||(hl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,u=[],c=[],o=[],l=i.Rabbit=a.extend({_doReset:function(){for(var h=this._key.words,_=this.cfg.iv,p=0;p<4;p++)h[p]=(h[p]<<8|h[p]>>>24)&16711935|(h[p]<<24|h[p]>>>8)&4278255360;var v=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],m=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)m[p]^=v[p+4&7];if(_){var y=_.words,g=y[0],b=y[1],w=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=w>>>16|E&4294901760,D=E<<16|w&65535;m[0]^=w,m[1]^=T,m[2]^=E,m[3]^=D,m[4]^=w,m[5]^=T,m[6]^=E,m[7]^=D;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(h,_){var p=this._X;f.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,h[_+v]^=u[v]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,_=this._C,p=0;p<8;p++)c[p]=_[p];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var p=0;p<8;p++){var v=h[p]+_[p],m=v&65535,y=v>>>16,g=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[p]=g^b}h[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,h[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,h[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,h[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,h[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,h[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,h[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,h[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.Rabbit=a._createHelper(l)}(),t.Rabbit})}(dl)),dl.exports}var fl={exports:{}},pl;function u1(){return pl||(pl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,u=[],c=[],o=[],l=i.RabbitLegacy=a.extend({_doReset:function(){var h=this._key.words,_=this.cfg.iv,p=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],v=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)f.call(this);for(var m=0;m<8;m++)v[m]^=p[m+4&7];if(_){var y=_.words,g=y[0],b=y[1],w=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=w>>>16|E&4294901760,D=E<<16|w&65535;v[0]^=w,v[1]^=T,v[2]^=E,v[3]^=D,v[4]^=w,v[5]^=T,v[6]^=E,v[7]^=D;for(var m=0;m<4;m++)f.call(this)}},_doProcessBlock:function(h,_){var p=this._X;f.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,h[_+v]^=u[v]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,_=this._C,p=0;p<8;p++)c[p]=_[p];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var p=0;p<8;p++){var v=h[p]+_[p],m=v&65535,y=v>>>16,g=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[p]=g^b}h[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,h[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,h[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,h[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,h[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,h[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,h[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,h[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.RabbitLegacy=a._createHelper(l)}(),t.RabbitLegacy})}(fl)),fl.exports}var ml={exports:{}},gl;function l1(){return gl||(gl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo;const u=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function f(m,y){let g=y>>24&255,b=y>>16&255,w=y>>8&255,E=y&255,T=m.sbox[0][g]+m.sbox[1][b];return T=T^m.sbox[2][w],T=T+m.sbox[3][E],T}function h(m,y,g){let b=y,w=g,E;for(let T=0;T<u;++T)b=b^m.pbox[T],w=f(m,b)^w,E=b,b=w,w=E;return E=b,b=w,w=E,w=w^m.pbox[u],b=b^m.pbox[u+1],{left:b,right:w}}function _(m,y,g){let b=y,w=g,E;for(let T=u+1;T>1;--T)b=b^m.pbox[T],w=f(m,b)^w,E=b,b=w,w=E;return E=b,b=w,w=E,w=w^m.pbox[1],b=b^m.pbox[0],{left:b,right:w}}function p(m,y,g){for(let D=0;D<4;D++){m.sbox[D]=[];for(let R=0;R<256;R++)m.sbox[D][R]=o[D][R]}let b=0;for(let D=0;D<u+2;D++)m.pbox[D]=c[D]^y[b],b++,b>=g&&(b=0);let w=0,E=0,T=0;for(let D=0;D<u+2;D+=2)T=h(m,w,E),w=T.left,E=T.right,m.pbox[D]=w,m.pbox[D+1]=E;for(let D=0;D<4;D++)for(let R=0;R<256;R+=2)T=h(m,w,E),w=T.left,E=T.right,m.sbox[D][R]=w,m.sbox[D][R+1]=E;return!0}var v=i.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var m=this._keyPriorReset=this._key,y=m.words,g=m.sigBytes/4;p(l,y,g)}},encryptBlock:function(m,y){var g=h(l,m[y],m[y+1]);m[y]=g.left,m[y+1]=g.right},decryptBlock:function(m,y){var g=_(l,m[y],m[y+1]);m[y]=g.left,m[y+1]=g.right},blockSize:64/32,keySize:128/32,ivSize:64/32});s.Blowfish=a._createHelper(v)}(),t.Blowfish})}(ml)),ml.exports}(function(r,e){(function(t,s,n){r.exports=s(fe(),Ns(),L0(),j0(),nr(),z0(),ar(),mu(),ca(),V0(),wu(),H0(),U0(),q0(),da(),K0(),Ut(),Pe(),G0(),W0(),X0(),Y0(),J0(),Z0(),Q0(),e1(),t1(),r1(),s1(),n1(),a1(),o1(),i1(),u1(),l1())})(ce,function(t){return t})})(F0);const c1=(r,e={})=>{if(!r)return"";const t=e.maxLength||200,s=document.createElement("div");s.innerHTML=r;const n=(s.textContent||s.innerText||"").replace(/\s+/g," ").trim();return n.length>t?`${n.substring(0,t)}...`:n},d1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span"],h1=["style","src","alt","href","target"],f1=(r,e={})=>{if(!r)return"";const t=e.allowedTags||d1,s=e.allowedAttributes||h1,n={ALLOWED_TAGS:t,ALLOWED_ATTR:s,ADD_ATTR:["target","rel"]};nn.addHook("afterSanitizeAttributes",i=>{i.tagName==="A"&&!i.hasAttribute("target")&&(i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer"))});const a=nn.sanitize(r,n);return nn.removeHook("afterSanitizeAttributes"),a},Kr={props:{userReaction:"",likesCount:0,dislikesCount:0,showTitle:!1,onClick:()=>{}}},yl=({userReaction:r=Kr.props.userReaction,likesCount:e=Kr.props.likesCount,dislikesCount:t=Kr.props.dislikesCount,showTitle:s=Kr.props.showTitle,onClick:n=Kr.props.onClick})=>{const a=i=>{n==null||n(i)};return B.jsxs(mt,{gap:"quark",children:[B.jsx($e,{children:B.jsx(Ie,{className:"reaction-button__like",color:r==="like"?"success-dark":"neutral-80",fill:r==="like",image:"thumb_up",onClick:()=>a("like"),size:"lg"})}),s?B.jsx($e,{children:B.jsx(Lt,{children:"Útil"})}):B.jsx(B.Fragment,{}),B.jsx($e,{children:B.jsxs(Lt,{children:["(",e,")"]})}),B.jsx(nt,{horizontal:"quark"}),B.jsx($e,{children:B.jsx(Ie,{className:"reaction-button__deslike",color:r==="dislike"?"danger-dark":"neutral-80",fill:r==="dislike",image:"thumb_down",onClick:()=>a("dislike"),size:"lg"})}),s?B.jsx($e,{children:B.jsx(Lt,{children:"Não útil"})}):B.jsx(B.Fragment,{}),B.jsx($e,{children:B.jsxs(Lt,{children:["(",t,")"]})})]})},p1=({question:r,onReactionClick:e})=>{const t=f1(r.attributes.faqQuestion.answer);return B.jsx("div",{className:"faq-question-detail",children:B.jsx(Er,{className:"faq-detail",elevation:2,children:B.jsxs(mt,{flexDirection:"column",children:[B.jsx(Rt,{type:"heading-4",children:r.attributes.title}),B.jsxs(Lt,{children:["Última atualização:"," ",Zi(new Date(`${r.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]}),B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"faq-detail__answer",dangerouslySetInnerHTML:{__html:t}}),B.jsx(nt,{vertical:"xxxs"}),B.jsx(Us,{}),B.jsx(nt,{vertical:"xxs"}),B.jsxs(mt,{alignItems:"flex-end",flexDirection:"row",gap:"xs",justifyContent:"space-between",children:[B.jsx($e,{children:B.jsx(Rt,{type:"heading-6",children:"Esse texto foi útil?"})}),B.jsx($e,{children:B.jsx(yl,{dislikesCount:r.attributes.dislikesCount,likesCount:r.attributes.likesCount,onClick:s=>e==null?void 0:e(r.id,s),showTitle:!0,userReaction:r.attributes.userReaction})})]})]})})})},m1=({title:r="",questions:e=[],showReactions:t=!1,collapse:s=!1,onClick:n=()=>{},onReactionClick:a=()=>{}})=>B.jsxs("div",{className:"faq-questions",children:[B.jsx(Rt,{type:"heading-5",children:r}),B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"faq-questions-list",children:B.jsx(mt,{flexDirection:"column",gap:"nano",children:e==null?void 0:e.map(i=>B.jsx($e,{flex:"0 0 32%",children:B.jsx("div",{className:`faq-card__container ${s?"faq-card__container--collapsed":""}`,onClick:s?()=>n(i):void 0,role:"button",tabIndex:s?0:void 0,children:B.jsx(Er,{className:"faq-card",elevation:2,children:B.jsxs(mt,{alignItems:"center",justifyContent:"space-between",children:[B.jsxs($e,{flex:"1 1 0",children:[B.jsx(Rt,{type:"heading-6",children:i.attributes.title}),s?B.jsx(B.Fragment,{}):B.jsxs(B.Fragment,{children:[B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"faq-card__answer",dangerouslySetInnerHTML:{__html:c1(i.attributes.faqQuestion.answer)}}),B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"ds-grid",children:B.jsxs("div",{className:"ds-grid__row align-items--center",children:[B.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:B.jsxs(Lt,{children:["Última atualização:"," ",Zi(new Date(`${i.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]})}),B.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:t?null:B.jsx(yl,{dislikesCount:i.attributes.dislikesCount,likesCount:i.attributes.likesCount,onClick:u=>a(i.id,u),userReaction:i.attributes.userReaction})}),B.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:B.jsxs(mt,{alignItems:"center",gap:"quark",justifyContent:"flex-end",children:[B.jsx($e,{children:B.jsx("div",{className:"faq-card__link",onClick:()=>n(i),role:"button",tabIndex:0,children:"Ler mais"})}),B.jsx($e,{children:B.jsx(Ie,{color:"primary",image:"chevron_right",size:"lg"})})]})})]})})]})]}),s?B.jsx($e,{children:B.jsx(Ie,{image:"chevron_right",size:"lg"})}):B.jsx(B.Fragment,{})]})})})},i.id))})})]}),g1=({items:r=[],onClick:e,activeItem:t})=>B.jsx("div",{className:"sidebar-menu","data-testid":"sidebar-menu",children:B.jsx("div",{className:"sidebar-menu__list",children:r.map(s=>B.jsx("div",{className:`sidebar-menu__item ${t===s.id?"sidebar-menu__item--active":""}`,"data-testid":`sidebar-item-${s.id}`,onClick:()=>e(s.id),role:"button",tabIndex:0,children:B.jsxs(mt,{alignItems:"center",gap:"xs",children:[B.jsx($e,{flex:"1",children:B.jsx(Rt,{type:"heading-6",children:s.attributes.name})}),B.jsx($e,{children:B.jsx(Ie,{color:t===s.id?"primary":"neutral-40","data-testid":`sidebar-icon-${s.id}`,image:"chevron_right",size:"md"})})]})},s.id))})});ft.CategoryCards=kc,ft.QuestionDetail=p1,ft.Questions=m1,ft.SidebarMenuList=g1,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
41
+ */return t.mode.CTRGladman=function(){var s=t.lib.BlockCipherMode.extend();function n(u){if((u>>24&255)===255){var c=u>>16&255,i=u>>8&255,l=u&255;c===255?(c=0,i===255?(i=0,l===255?l=0:++l):++i):++c,u=0,u+=c<<16,u+=i<<8,u+=l}else u+=1<<24;return u}function a(u){return(u[0]=n(u[0]))===0&&(u[1]=n(u[1])),u}var o=s.Encryptor=s.extend({processBlock:function(u,c){var i=this._cipher,l=i.blockSize,f=this._iv,h=this._counter;f&&(h=this._counter=f.slice(0),this._iv=void 0),a(h);var _=h.slice(0);i.encryptBlock(_,0);for(var p=0;p<l;p++)u[c+p]^=_[p]}});return s.Decryptor=o,s}(),t.mode.CTRGladman})}(zu)),zu.exports}var Hu={exports:{}},Uu;function Y0(){return Uu||(Uu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.OFB=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,o){var u=this._cipher,c=u.blockSize,i=this._iv,l=this._keystream;i&&(l=this._keystream=i.slice(0),this._iv=void 0),u.encryptBlock(l,0);for(var f=0;f<c;f++)a[o+f]^=l[f]}});return s.Decryptor=n,s}(),t.mode.OFB})}(Hu)),Hu.exports}var qu={exports:{}},Ku;function J0(){return Ku||(Ku=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.ECB=function(){var s=t.lib.BlockCipherMode.extend();return s.Encryptor=s.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),s.Decryptor=s.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),s}(),t.mode.ECB})}(qu)),qu.exports}var Gu={exports:{}},Wu;function Z0(){return Wu||(Wu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.AnsiX923={pad:function(s,n){var a=s.sigBytes,o=n*4,u=o-a%o,c=a+u-1;s.clamp(),s.words[c>>>2]|=u<<24-c%4*8,s.sigBytes+=u},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Ansix923})}(Gu)),Gu.exports}var Xu={exports:{}},Yu;function Q0(){return Yu||(Yu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.Iso10126={pad:function(s,n){var a=n*4,o=a-s.sigBytes%a;s.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Iso10126})}(Xu)),Xu.exports}var Ju={exports:{}},Zu;function e1(){return Zu||(Zu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.Iso97971={pad:function(s,n){s.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(s,n)},unpad:function(s){t.pad.ZeroPadding.unpad(s),s.sigBytes--}},t.pad.Iso97971})}(Ju)),Ju.exports}var Qu={exports:{}},el;function t1(){return el||(el=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.ZeroPadding={pad:function(s,n){var a=n*4;s.clamp(),s.sigBytes+=a-(s.sigBytes%a||a)},unpad:function(s){for(var n=s.words,a=s.sigBytes-1,a=s.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){s.sigBytes=a+1;break}}},t.pad.ZeroPadding})}(Qu)),Qu.exports}var tl={exports:{}},rl;function r1(){return rl||(rl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(tl)),tl.exports}var sl={exports:{}},nl;function s1(){return nl||(nl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return function(s){var n=t,a=n.lib,o=a.CipherParams,u=n.enc,c=u.Hex,i=n.format;i.Hex={stringify:function(l){return l.ciphertext.toString(c)},parse:function(l){var f=c.parse(l);return o.create({ciphertext:f})}}}(),t.format.Hex})}(sl)),sl.exports}var al={exports:{}},ol;function n1(){return ol||(ol=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,o=s.algo,u=[],c=[],i=[],l=[],f=[],h=[],_=[],p=[],v=[],m=[];(function(){for(var b=[],w=0;w<256;w++)w<128?b[w]=w<<1:b[w]=w<<1^283;for(var E=0,T=0,w=0;w<256;w++){var D=T^T<<1^T<<2^T<<3^T<<4;D=D>>>8^D&255^99,u[E]=D,c[D]=E;var R=b[E],L=b[R],I=b[L],A=b[D]*257^D*16843008;i[E]=A<<24|A>>>8,l[E]=A<<16|A>>>16,f[E]=A<<8|A>>>24,h[E]=A;var A=I*16843009^L*65537^R*257^E*16843008;_[D]=A<<24|A>>>8,p[D]=A<<16|A>>>16,v[D]=A<<8|A>>>24,m[D]=A,E?(E=R^b[b[b[I^R]]],T^=b[b[T]]):E=T=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=a.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,E=w.words,T=w.sigBytes/4,D=this._nRounds=T+6,R=(D+1)*4,L=this._keySchedule=[],I=0;I<R;I++)I<T?L[I]=E[I]:(b=L[I-1],I%T?T>6&&I%T==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=y[I/T|0]<<24),L[I]=L[I-T]^b);for(var A=this._invKeySchedule=[],M=0;M<R;M++){var I=R-M;if(M%4)var b=L[I];else var b=L[I-4];M<4||I<=4?A[M]=b:A[M]=_[u[b>>>24]]^p[u[b>>>16&255]]^v[u[b>>>8&255]]^m[u[b&255]]}}},encryptBlock:function(b,w){this._doCryptBlock(b,w,this._keySchedule,i,l,f,h,u)},decryptBlock:function(b,w){var E=b[w+1];b[w+1]=b[w+3],b[w+3]=E,this._doCryptBlock(b,w,this._invKeySchedule,_,p,v,m,c);var E=b[w+1];b[w+1]=b[w+3],b[w+3]=E},_doCryptBlock:function(b,w,E,T,D,R,L,I){for(var A=this._nRounds,M=b[w]^E[0],F=b[w+1]^E[1],V=b[w+2]^E[2],G=b[w+3]^E[3],X=4,re=1;re<A;re++){var te=T[M>>>24]^D[F>>>16&255]^R[V>>>8&255]^L[G&255]^E[X++],oe=T[F>>>24]^D[V>>>16&255]^R[G>>>8&255]^L[M&255]^E[X++],P=T[V>>>24]^D[G>>>16&255]^R[M>>>8&255]^L[F&255]^E[X++],k=T[G>>>24]^D[M>>>16&255]^R[F>>>8&255]^L[V&255]^E[X++];M=te,F=oe,V=P,G=k}var te=(I[M>>>24]<<24|I[F>>>16&255]<<16|I[V>>>8&255]<<8|I[G&255])^E[X++],oe=(I[F>>>24]<<24|I[V>>>16&255]<<16|I[G>>>8&255]<<8|I[M&255])^E[X++],P=(I[V>>>24]<<24|I[G>>>16&255]<<16|I[M>>>8&255]<<8|I[F&255])^E[X++],k=(I[G>>>24]<<24|I[M>>>16&255]<<16|I[F>>>8&255]<<8|I[V&255])^E[X++];b[w]=te,b[w+1]=oe,b[w+2]=P,b[w+3]=k},keySize:256/32});s.AES=a._createHelper(g)}(),t.AES})}(al)),al.exports}var il={exports:{}},ul;function a1(){return ul||(ul=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,o=n.BlockCipher,u=s.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],i=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=u.DES=o.extend({_doReset:function(){for(var y=this._key,g=y.words,b=[],w=0;w<56;w++){var E=c[w]-1;b[w]=g[E>>>5]>>>31-E%32&1}for(var T=this._subKeys=[],D=0;D<16;D++){for(var R=T[D]=[],L=l[D],w=0;w<24;w++)R[w/6|0]|=b[(i[w]-1+L)%28]<<31-w%6,R[4+(w/6|0)]|=b[28+(i[w+24]-1+L)%28]<<31-w%6;R[0]=R[0]<<1|R[0]>>>31;for(var w=1;w<7;w++)R[w]=R[w]>>>(w-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var I=this._invSubKeys=[],w=0;w<16;w++)I[w]=T[15-w]},encryptBlock:function(y,g){this._doCryptBlock(y,g,this._subKeys)},decryptBlock:function(y,g){this._doCryptBlock(y,g,this._invSubKeys)},_doCryptBlock:function(y,g,b){this._lBlock=y[g],this._rBlock=y[g+1],p.call(this,4,252645135),p.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),p.call(this,1,1431655765);for(var w=0;w<16;w++){for(var E=b[w],T=this._lBlock,D=this._rBlock,R=0,L=0;L<8;L++)R|=f[L][((D^E[L])&h[L])>>>0];this._lBlock=D,this._rBlock=T^R}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,p.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),y[g]=this._lBlock,y[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(y,g){var b=(this._lBlock>>>y^this._rBlock)&g;this._rBlock^=b,this._lBlock^=b<<y}function v(y,g){var b=(this._rBlock>>>y^this._lBlock)&g;this._lBlock^=b,this._rBlock^=b<<y}s.DES=o._createHelper(_);var m=u.TripleDES=o.extend({_doReset:function(){var y=this._key,g=y.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=g.slice(0,2),w=g.length<4?g.slice(0,2):g.slice(2,4),E=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=_.createEncryptor(a.create(b)),this._des2=_.createEncryptor(a.create(w)),this._des3=_.createEncryptor(a.create(E))},encryptBlock:function(y,g){this._des1.encryptBlock(y,g),this._des2.decryptBlock(y,g),this._des3.encryptBlock(y,g)},decryptBlock:function(y,g){this._des3.decryptBlock(y,g),this._des2.encryptBlock(y,g),this._des1.decryptBlock(y,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});s.TripleDES=o._createHelper(m)}(),t.TripleDES})}(il)),il.exports}var ll={exports:{}},cl;function o1(){return cl||(cl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,o=s.algo,u=o.RC4=a.extend({_doReset:function(){for(var l=this._key,f=l.words,h=l.sigBytes,_=this._S=[],p=0;p<256;p++)_[p]=p;for(var p=0,v=0;p<256;p++){var m=p%h,y=f[m>>>2]>>>24-m%4*8&255;v=(v+_[p]+y)%256;var g=_[p];_[p]=_[v],_[v]=g}this._i=this._j=0},_doProcessBlock:function(l,f){l[f]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var l=this._S,f=this._i,h=this._j,_=0,p=0;p<4;p++){f=(f+1)%256,h=(h+l[f])%256;var v=l[f];l[f]=l[h],l[h]=v,_|=l[(l[f]+l[h])%256]<<24-p*8}return this._i=f,this._j=h,_}s.RC4=a._createHelper(u);var i=o.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)c.call(this)}});s.RC4Drop=a._createHelper(i)}(),t.RC4})}(ll)),ll.exports}var dl={exports:{}},hl;function i1(){return hl||(hl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,o=s.algo,u=[],c=[],i=[],l=o.Rabbit=a.extend({_doReset:function(){for(var h=this._key.words,_=this.cfg.iv,p=0;p<4;p++)h[p]=(h[p]<<8|h[p]>>>24)&16711935|(h[p]<<24|h[p]>>>8)&4278255360;var v=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],m=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)m[p]^=v[p+4&7];if(_){var y=_.words,g=y[0],b=y[1],w=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=w>>>16|E&4294901760,D=E<<16|w&65535;m[0]^=w,m[1]^=T,m[2]^=E,m[3]^=D,m[4]^=w,m[5]^=T,m[6]^=E,m[7]^=D;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(h,_){var p=this._X;f.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,h[_+v]^=u[v]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,_=this._C,p=0;p<8;p++)c[p]=_[p];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var p=0;p<8;p++){var v=h[p]+_[p],m=v&65535,y=v>>>16,g=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);i[p]=g^b}h[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,h[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,h[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,h[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,h[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,h[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,h[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,h[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}s.Rabbit=a._createHelper(l)}(),t.Rabbit})}(dl)),dl.exports}var fl={exports:{}},pl;function u1(){return pl||(pl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,o=s.algo,u=[],c=[],i=[],l=o.RabbitLegacy=a.extend({_doReset:function(){var h=this._key.words,_=this.cfg.iv,p=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],v=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)f.call(this);for(var m=0;m<8;m++)v[m]^=p[m+4&7];if(_){var y=_.words,g=y[0],b=y[1],w=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=w>>>16|E&4294901760,D=E<<16|w&65535;v[0]^=w,v[1]^=T,v[2]^=E,v[3]^=D,v[4]^=w,v[5]^=T,v[6]^=E,v[7]^=D;for(var m=0;m<4;m++)f.call(this)}},_doProcessBlock:function(h,_){var p=this._X;f.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,h[_+v]^=u[v]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,_=this._C,p=0;p<8;p++)c[p]=_[p];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var p=0;p<8;p++){var v=h[p]+_[p],m=v&65535,y=v>>>16,g=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);i[p]=g^b}h[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,h[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,h[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,h[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,h[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,h[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,h[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,h[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}s.RabbitLegacy=a._createHelper(l)}(),t.RabbitLegacy})}(fl)),fl.exports}var ml={exports:{}},gl;function l1(){return gl||(gl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nr(),ar(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,o=s.algo;const u=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],i=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function f(m,y){let g=y>>24&255,b=y>>16&255,w=y>>8&255,E=y&255,T=m.sbox[0][g]+m.sbox[1][b];return T=T^m.sbox[2][w],T=T+m.sbox[3][E],T}function h(m,y,g){let b=y,w=g,E;for(let T=0;T<u;++T)b=b^m.pbox[T],w=f(m,b)^w,E=b,b=w,w=E;return E=b,b=w,w=E,w=w^m.pbox[u],b=b^m.pbox[u+1],{left:b,right:w}}function _(m,y,g){let b=y,w=g,E;for(let T=u+1;T>1;--T)b=b^m.pbox[T],w=f(m,b)^w,E=b,b=w,w=E;return E=b,b=w,w=E,w=w^m.pbox[1],b=b^m.pbox[0],{left:b,right:w}}function p(m,y,g){for(let D=0;D<4;D++){m.sbox[D]=[];for(let R=0;R<256;R++)m.sbox[D][R]=i[D][R]}let b=0;for(let D=0;D<u+2;D++)m.pbox[D]=c[D]^y[b],b++,b>=g&&(b=0);let w=0,E=0,T=0;for(let D=0;D<u+2;D+=2)T=h(m,w,E),w=T.left,E=T.right,m.pbox[D]=w,m.pbox[D+1]=E;for(let D=0;D<4;D++)for(let R=0;R<256;R+=2)T=h(m,w,E),w=T.left,E=T.right,m.sbox[D][R]=w,m.sbox[D][R+1]=E;return!0}var v=o.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var m=this._keyPriorReset=this._key,y=m.words,g=m.sigBytes/4;p(l,y,g)}},encryptBlock:function(m,y){var g=h(l,m[y],m[y+1]);m[y]=g.left,m[y+1]=g.right},decryptBlock:function(m,y){var g=_(l,m[y],m[y+1]);m[y]=g.left,m[y+1]=g.right},blockSize:64/32,keySize:128/32,ivSize:64/32});s.Blowfish=a._createHelper(v)}(),t.Blowfish})}(ml)),ml.exports}(function(r,e){(function(t,s,n){r.exports=s(fe(),Ns(),L0(),j0(),nr(),z0(),ar(),mu(),ca(),V0(),wu(),H0(),U0(),q0(),da(),K0(),Ut(),Pe(),G0(),W0(),X0(),Y0(),J0(),Z0(),Q0(),e1(),t1(),r1(),s1(),n1(),a1(),o1(),i1(),u1(),l1())})(ce,function(t){return t})})(F0);const c1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span"],d1=["style","src","alt","href","target"],h1=(r,e={})=>{if(!r)return"";const t=e.allowedTags||c1,s=e.allowedAttributes||d1,n={ALLOWED_TAGS:t,ALLOWED_ATTR:s,ADD_ATTR:["target","rel"]};nn.addHook("afterSanitizeAttributes",o=>{o.tagName==="A"&&!o.hasAttribute("target")&&(o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer"))});const a=nn.sanitize(r,n);return nn.removeHook("afterSanitizeAttributes"),a},Kr={props:{userReaction:"",likesCount:0,dislikesCount:0,showTitle:!1,onClick:()=>{}}},yl=({userReaction:r=Kr.props.userReaction,likesCount:e=Kr.props.likesCount,dislikesCount:t=Kr.props.dislikesCount,showTitle:s=Kr.props.showTitle,onClick:n=Kr.props.onClick})=>{const a=o=>{n==null||n(o)};return B.jsxs(mt,{gap:"quark",children:[B.jsx($e,{children:B.jsx(Ie,{className:"reaction-button__like",color:r==="like"?"success-dark":"neutral-80",fill:r==="like",image:"thumb_up",onClick:()=>a("like"),size:"lg",testId:"like-button"})}),s?B.jsx($e,{children:B.jsx(Lt,{children:"Útil"})}):B.jsx(B.Fragment,{}),B.jsx($e,{children:B.jsxs(Lt,{children:["(",e,")"]})}),B.jsx(nt,{horizontal:"quark"}),B.jsx($e,{children:B.jsx(Ie,{className:"reaction-button__deslike",color:r==="dislike"?"danger-dark":"neutral-80",fill:r==="dislike",image:"thumb_down",onClick:()=>a("dislike"),size:"lg",testId:"dislike-button"})}),s?B.jsx($e,{children:B.jsx(Lt,{children:"Não útil"})}):B.jsx(B.Fragment,{}),B.jsx($e,{children:B.jsxs(Lt,{children:["(",t,")"]})})]})},f1=({question:r,onReactionClick:e})=>{const t=h1(r.attributes.faqQuestion.answer);return B.jsx("div",{className:"faq-question-detail",children:B.jsx(Er,{className:"faq-detail",elevation:2,children:B.jsxs(mt,{flexDirection:"column",children:[B.jsx(At,{type:"heading-5",className:"color__neutral--90",children:r.attributes.title}),B.jsx(nt,{vertical:"quark"}),B.jsxs(Lt,{className:"color__neutral--70",children:["Última atualização:"," ",Zi(new Date(`${r.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]}),B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"faq-detail__answer",dangerouslySetInnerHTML:{__html:t}}),B.jsx(nt,{vertical:"xxxs"}),B.jsx(Us,{}),B.jsx(nt,{vertical:"xxs"}),B.jsxs(mt,{alignItems:"flex-end",flexDirection:"row",gap:"xs",justifyContent:"space-between",children:[B.jsx($e,{children:B.jsx(At,{type:"heading-6",children:"Esse texto foi útil?"})}),B.jsx($e,{children:B.jsx(yl,{dislikesCount:r.attributes.dislikesCount,likesCount:r.attributes.likesCount,onClick:s=>e==null?void 0:e(r.id,s),showTitle:!0,userReaction:r.attributes.userReaction})})]})]})})})},p1=({title:r="",questions:e=[],showReactions:t=!1,collapse:s=!1,onClick:n=()=>{},onReactionClick:a=()=>{}})=>B.jsxs("div",{className:"faq-questions",children:[r&&B.jsx(At,{type:"heading-5",className:"color__neutral--90",children:r}),B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"faq-questions-list",children:B.jsx(mt,{flexDirection:"column",gap:"nano",children:e==null?void 0:e.map(o=>B.jsx($e,{children:B.jsx("div",{className:`faq-card__container ${s?"faq-card__container--collapsed":""}`,onClick:s?()=>n(o):void 0,role:"button",tabIndex:s?0:void 0,children:B.jsx(Er,{className:"faq-card",elevation:2,children:B.jsxs(mt,{alignItems:"center",justifyContent:"space-between",children:[B.jsxs($e,{flex:"1 1 0",children:[B.jsx(At,{type:"heading-6",className:"faq-card__title color__neutral--90",children:o.attributes.title}),s?B.jsx(B.Fragment,{}):B.jsxs(B.Fragment,{children:[B.jsx(nt,{vertical:"xxxs"}),B.jsx("div",{className:"ds-grid",children:B.jsxs("div",{className:"ds-grid__row align-items--center",children:[B.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:B.jsxs(Lt,{children:["Última atualização:"," ",Zi(new Date(`${o.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]})}),B.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:t?B.jsx(yl,{dislikesCount:o.attributes.dislikesCount,likesCount:o.attributes.likesCount,onClick:u=>a(o.id,u),userReaction:o.attributes.userReaction}):null}),B.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:B.jsxs(mt,{alignItems:"center",gap:"quark",justifyContent:"flex-end",children:[B.jsx($e,{children:B.jsx("div",{className:"faq-card__link",onClick:()=>n(o),role:"button",tabIndex:0,children:"Ler mais"})}),B.jsx($e,{children:B.jsx(Ie,{color:"primary",image:"chevron_right",size:"lg"})})]})})]})})]})]}),s?B.jsx($e,{children:B.jsx(Ie,{image:"chevron_right",size:"lg"})}):B.jsx(B.Fragment,{})]})})})},o.id))})})]}),m1=({items:r=[],onClick:e,activeItem:t})=>B.jsx("div",{className:"sidebar-menu","data-testid":"sidebar-menu",children:B.jsx("div",{className:"sidebar-menu__list",children:r.map(s=>B.jsx("div",{className:`sidebar-menu__item ${t===s.id?"sidebar-menu__item--active":""}`,"data-testid":`sidebar-item-${s.id}`,onClick:()=>e(s.id),role:"button",tabIndex:0,children:B.jsxs(mt,{alignItems:"center",gap:"xs",children:[B.jsx($e,{flex:"1",children:B.jsx(At,{type:"heading-6",children:s.attributes.name})}),B.jsx($e,{children:B.jsx(Ie,{color:t===s.id?"primary":"neutral-40","data-testid":`sidebar-icon-${s.id}`,image:"chevron_right",size:"md"})})]})},s.id))})});ft.CategoryCards=kc,ft.QuestionDetail=f1,ft.Questions=p1,ft.SidebarMenuList=m1,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});