@akad/strapi-blocks 0.0.1-beta.8 → 0.0.1-beta.9

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.
Files changed (4) hide show
  1. package/package.json +1 -1
  2. package/styles.css +1 -1
  3. package/ts-lib.js +4837 -5035
  4. package/ts-lib.umd.cjs +12 -12
package/ts-lib.umd.cjs CHANGED
@@ -1,30 +1,30 @@
1
- (function(ot,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],M):(ot=typeof globalThis<"u"?globalThis:ot||self,M(ot["ts-lib"]={},ot.jsxRuntime,ot.React))})(this,function(ot,M,X){"use strict";function Nu(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Rs={exports:{}},js={exports:{}},me={};/** @license React v16.13.1
1
+ (function(at,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],M):(at=typeof globalThis<"u"?globalThis:at||self,M(at["ts-lib"]={},at.jsxRuntime,at.React))})(this,function(at,M,X){"use strict";function ic(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var js={exports:{}},Rs={exports:{}},me={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
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 va;function Iu(){if(va)return me;va=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,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,o=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,g=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,h=r?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case e:switch(S=S.type,S){case d:case o:case s:case a:case n:case p:return S;default:switch(S=S&&S.$$typeof,S){case l:case u:case g:case _:case i:return S;default:return O}}case t:return O}}}function $(S){return b(S)===o}return me.AsyncMode=d,me.ConcurrentMode=o,me.ContextConsumer=l,me.ContextProvider=i,me.Element=e,me.ForwardRef=u,me.Fragment=s,me.Lazy=g,me.Memo=_,me.Portal=t,me.Profiler=a,me.StrictMode=n,me.Suspense=p,me.isAsyncMode=function(S){return $(S)||b(S)===d},me.isConcurrentMode=$,me.isContextConsumer=function(S){return b(S)===l},me.isContextProvider=function(S){return b(S)===i},me.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},me.isForwardRef=function(S){return b(S)===u},me.isFragment=function(S){return b(S)===s},me.isLazy=function(S){return b(S)===g},me.isMemo=function(S){return b(S)===_},me.isPortal=function(S){return b(S)===t},me.isProfiler=function(S){return b(S)===a},me.isStrictMode=function(S){return b(S)===n},me.isSuspense=function(S){return b(S)===p},me.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===s||S===o||S===a||S===n||S===p||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===_||S.$$typeof===i||S.$$typeof===l||S.$$typeof===u||S.$$typeof===m||S.$$typeof===y||S.$$typeof===h||S.$$typeof===v)},me.typeOf=b,me}var ye={};/** @license React v16.13.1
8
+ */var Ea;function lc(){if(Ea)return me;Ea=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,n=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,o=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,h=t?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case e:switch(S=S.type,S){case d:case o:case s:case a:case n:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case u:case g:case _:case i:return S;default:return O}}case r:return O}}}function w(S){return b(S)===o}return me.AsyncMode=d,me.ConcurrentMode=o,me.ContextConsumer=l,me.ContextProvider=i,me.Element=e,me.ForwardRef=u,me.Fragment=s,me.Lazy=g,me.Memo=_,me.Portal=r,me.Profiler=a,me.StrictMode=n,me.Suspense=f,me.isAsyncMode=function(S){return w(S)||b(S)===d},me.isConcurrentMode=w,me.isContextConsumer=function(S){return b(S)===l},me.isContextProvider=function(S){return b(S)===i},me.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},me.isForwardRef=function(S){return b(S)===u},me.isFragment=function(S){return b(S)===s},me.isLazy=function(S){return b(S)===g},me.isMemo=function(S){return b(S)===_},me.isPortal=function(S){return b(S)===r},me.isProfiler=function(S){return b(S)===a},me.isStrictMode=function(S){return b(S)===n},me.isSuspense=function(S){return b(S)===f},me.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===s||S===o||S===a||S===n||S===f||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===_||S.$$typeof===i||S.$$typeof===l||S.$$typeof===u||S.$$typeof===p||S.$$typeof===y||S.$$typeof===h||S.$$typeof===v)},me.typeOf=b,me}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 _a;function Du(){return _a||(_a=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,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,o=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,g=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,h=r?Symbol.for("react.scope"):60119;function b(H){return typeof H=="string"||typeof H=="function"||H===s||H===o||H===a||H===n||H===p||H===f||typeof H=="object"&&H!==null&&(H.$$typeof===g||H.$$typeof===_||H.$$typeof===i||H.$$typeof===l||H.$$typeof===u||H.$$typeof===m||H.$$typeof===y||H.$$typeof===h||H.$$typeof===v)}function $(H){if(typeof H=="object"&&H!==null){var fe=H.$$typeof;switch(fe){case e:var ge=H.type;switch(ge){case d:case o:case s:case a:case n:case p:return ge;default:var Ke=ge&&ge.$$typeof;switch(Ke){case l:case u:case g:case _:case i:return Ke;default:return fe}}case t:return fe}}}var S=d,O=o,N=l,R=i,V=e,I=u,T=s,B=g,j=_,U=t,W=a,K=n,se=p,Z=!1;function ne(H){return Z||(Z=!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(H)||$(H)===d}function P(H){return $(H)===o}function k(H){return $(H)===l}function x(H){return $(H)===i}function E(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function c(H){return $(H)===u}function w(H){return $(H)===s}function C(H){return $(H)===g}function L(H){return $(H)===_}function F(H){return $(H)===t}function z(H){return $(H)===a}function G(H){return $(H)===n}function J(H){return $(H)===p}ye.AsyncMode=S,ye.ConcurrentMode=O,ye.ContextConsumer=N,ye.ContextProvider=R,ye.Element=V,ye.ForwardRef=I,ye.Fragment=T,ye.Lazy=B,ye.Memo=j,ye.Portal=U,ye.Profiler=W,ye.StrictMode=K,ye.Suspense=se,ye.isAsyncMode=ne,ye.isConcurrentMode=P,ye.isContextConsumer=k,ye.isContextProvider=x,ye.isElement=E,ye.isForwardRef=c,ye.isFragment=w,ye.isLazy=C,ye.isMemo=L,ye.isPortal=F,ye.isProfiler=z,ye.isStrictMode=G,ye.isSuspense=J,ye.isValidElementType=b,ye.typeOf=$}()),ye}var ba;function ka(){return ba||(ba=1,process.env.NODE_ENV==="production"?js.exports=Iu():js.exports=Du()),js.exports}/*
15
+ */var Sa;function uc(){return Sa||(Sa=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,n=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,o=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,h=t?Symbol.for("react.scope"):60119;function b(U){return typeof U=="string"||typeof U=="function"||U===s||U===o||U===a||U===n||U===f||U===m||typeof U=="object"&&U!==null&&(U.$$typeof===g||U.$$typeof===_||U.$$typeof===i||U.$$typeof===l||U.$$typeof===u||U.$$typeof===p||U.$$typeof===y||U.$$typeof===h||U.$$typeof===v)}function w(U){if(typeof U=="object"&&U!==null){var fe=U.$$typeof;switch(fe){case e:var _e=U.type;switch(_e){case d:case o:case s:case a:case n:case f:return _e;default:var Te=_e&&_e.$$typeof;switch(Te){case l:case u:case g:case _:case i:return Te;default:return fe}}case r:return fe}}}var S=d,O=o,I=l,j=i,V=e,D=u,T=s,B=g,R=_,H=r,K=a,q=n,se=f,Z=!1;function ne(U){return Z||(Z=!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(U)||w(U)===d}function P(U){return w(U)===o}function k(U){return w(U)===l}function x(U){return w(U)===i}function E(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function c(U){return w(U)===u}function $(U){return w(U)===s}function C(U){return w(U)===g}function L(U){return w(U)===_}function F(U){return w(U)===r}function z(U){return w(U)===a}function G(U){return w(U)===n}function J(U){return w(U)===f}ge.AsyncMode=S,ge.ConcurrentMode=O,ge.ContextConsumer=I,ge.ContextProvider=j,ge.Element=V,ge.ForwardRef=D,ge.Fragment=T,ge.Lazy=B,ge.Memo=R,ge.Portal=H,ge.Profiler=K,ge.StrictMode=q,ge.Suspense=se,ge.isAsyncMode=ne,ge.isConcurrentMode=P,ge.isContextConsumer=k,ge.isContextProvider=x,ge.isElement=E,ge.isForwardRef=c,ge.isFragment=$,ge.isLazy=C,ge.isMemo=L,ge.isPortal=F,ge.isProfiler=z,ge.isStrictMode=G,ge.isSuspense=J,ge.isValidElementType=b,ge.typeOf=w}()),ge}var xa;function Aa(){return xa||(xa=1,process.env.NODE_ENV==="production"?Rs.exports=lc():Rs.exports=uc()),Rs.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var Ls,$a;function Mu(){if($a)return Ls;$a=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={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(d.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(u){o[u]=u}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ls=n()?Object.assign:function(a,i){for(var l,d=s(a),o,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var p in l)e.call(l,p)&&(d[p]=l[p]);if(r){o=r(l);for(var f=0;f<o.length;f++)t.call(l,o[f])&&(d[o[f]]=l[o[f]])}}return d},Ls}var Vs,wa;function zs(){if(wa)return Vs;wa=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vs=r,Vs}var Ea,Sa;function xa(){return Sa||(Sa=1,Ea=Function.call.bind(Object.prototype.hasOwnProperty)),Ea}var Hs,Aa;function Fu(){if(Aa)return Hs;Aa=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=zs(),t={},s=xa();r=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(a,i,l,d,o){if(process.env.NODE_ENV!=="production"){for(var u in a)if(s(a,u)){var p;try{if(typeof a[u]!="function"){var f=Error((d||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=a[u](i,u,d,l,null,e)}catch(g){p=g}if(p&&!(p instanceof Error)&&r((d||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in t)){t[p.message]=!0;var _=o?o():"";r("Failed "+l+" type: "+p.message+(_??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Hs=n,Hs}var Us,Ca;function Bu(){if(Ca)return Us;Ca=1;var r=ka(),e=Mu(),t=zs(),s=xa(),n=Fu(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return Us=function(l,d){var o=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function p(P){var k=P&&(o&&P[o]||P[u]);if(typeof k=="function")return k}var f="<<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:h(),arrayOf:b,element:$(),elementType:S(),instanceOf:O,node:I(),objectOf:R,oneOf:N,oneOfType:V,shape:B,exact:j};function g(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 E(w,C,L,F,z,G,J){if(F=F||f,G=G||L,J!==t){if(d){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=F+":"+L;!k[fe]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+F+"`. 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[fe]=!0,x++)}}return C[L]==null?w?C[L]===null?new v("The "+z+" `"+G+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new v("The "+z+" `"+G+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:P(C,L,F,z,G)}var c=E.bind(null,!1);return c.isRequired=E.bind(null,!0),c}function y(P){function k(x,E,c,w,C,L){var F=x[E],z=K(F);if(z!==P){var G=se(F);return new v("Invalid "+w+" `"+C+"` of type "+("`"+G+"` supplied to `"+c+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return m(k)}function h(){return m(i)}function b(P){function k(x,E,c,w,C){if(typeof P!="function")return new v("Property `"+C+"` of component `"+c+"` has invalid PropType notation inside arrayOf.");var L=x[E];if(!Array.isArray(L)){var F=K(L);return new v("Invalid "+w+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected an array."))}for(var z=0;z<L.length;z++){var G=P(L,z,c,w,C+"["+z+"]",t);if(G instanceof Error)return G}return null}return m(k)}function $(){function P(k,x,E,c,w){var C=k[x];if(!l(C)){var L=K(C);return new v("Invalid "+c+" `"+w+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement."))}return null}return m(P)}function S(){function P(k,x,E,c,w){var C=k[x];if(!r.isValidElementType(C)){var L=K(C);return new v("Invalid "+c+" `"+w+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement type."))}return null}return m(P)}function O(P){function k(x,E,c,w,C){if(!(x[E]instanceof P)){var L=P.name||f,F=ne(x[E]);return new v("Invalid "+w+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected ")+("instance of `"+L+"`."))}return null}return m(k)}function N(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(x,E,c,w,C){for(var L=x[E],F=0;F<P.length;F++)if(g(L,P[F]))return null;var z=JSON.stringify(P,function(G,J){var H=se(J);return H==="symbol"?String(J):J});return new v("Invalid "+w+" `"+C+"` of value `"+String(L)+"` "+("supplied to `"+c+"`, expected one of "+z+"."))}return m(k)}function R(P){function k(x,E,c,w,C){if(typeof P!="function")return new v("Property `"+C+"` of component `"+c+"` has invalid PropType notation inside objectOf.");var L=x[E],F=K(L);if(F!=="object")return new v("Invalid "+w+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected an object."));for(var z in L)if(s(L,z)){var G=P(L,z,c,w,C+"."+z,t);if(G instanceof Error)return G}return null}return m(k)}function V(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 x=P[k];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(x)+" at index "+k+"."),i}function E(c,w,C,L,F){for(var z=[],G=0;G<P.length;G++){var J=P[G],H=J(c,w,C,L,F,t);if(H==null)return null;H.data&&s(H.data,"expectedType")&&z.push(H.data.expectedType)}var fe=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new v("Invalid "+L+" `"+F+"` supplied to "+("`"+C+"`"+fe+"."))}return m(E)}function I(){function P(k,x,E,c,w){return U(k[x])?null:new v("Invalid "+c+" `"+w+"` supplied to "+("`"+E+"`, expected a ReactNode."))}return m(P)}function T(P,k,x,E,c){return new v((P||"React class")+": "+k+" type `"+x+"."+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+c+"`.")}function B(P){function k(x,E,c,w,C){var L=x[E],F=K(L);if(F!=="object")return new v("Invalid "+w+" `"+C+"` of type `"+F+"` "+("supplied to `"+c+"`, expected `object`."));for(var z in P){var G=P[z];if(typeof G!="function")return T(c,w,C,z,se(G));var J=G(L,z,c,w,C+"."+z,t);if(J)return J}return null}return m(k)}function j(P){function k(x,E,c,w,C){var L=x[E],F=K(L);if(F!=="object")return new v("Invalid "+w+" `"+C+"` of type `"+F+"` "+("supplied to `"+c+"`, expected `object`."));var z=e({},x[E],P);for(var G in z){var J=P[G];if(s(P,G)&&typeof J!="function")return T(c,w,C,G,se(J));if(!J)return new v("Invalid "+w+" `"+C+"` key `"+G+"` supplied to `"+c+"`.\nBad object: "+JSON.stringify(x[E],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var H=J(L,G,c,w,C+"."+G,t);if(H)return H}return null}return m(k)}function U(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(U);if(P===null||l(P))return!0;var k=p(P);if(k){var x=k.call(P),E;if(k!==P.entries){for(;!(E=x.next()).done;)if(!U(E.value))return!1}else for(;!(E=x.next()).done;){var c=E.value;if(c&&!U(c[1]))return!1}}else return!1;return!0;default:return!1}}function W(P,k){return P==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function K(P){var k=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":W(k,P)?"symbol":k}function se(P){if(typeof P>"u"||P===null)return""+P;var k=K(P);if(k==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return k}function Z(P){var k=se(P);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function ne(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return _.checkPropTypes=n,_.resetWarningCache=n.resetWarningCache,_.PropTypes=_,_},Us}var Gs,Ta;function Ru(){if(Ta)return Gs;Ta=1;var r=zs();function e(){}function t(){}return t.resetWarningCache=e,Gs=function(){function s(i,l,d,o,u,p){if(p!==r){var f=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 f.name="Invariant Violation",f}}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},Gs}if(process.env.NODE_ENV!=="production"){var ju=ka(),Lu=!0;Rs.exports=Bu()(ju.isElement,Lu)}else Rs.exports=Ru()();var Vu=Rs.exports;const A=Nu(Vu),zu={Primary:"primary",Secondary:"secondary",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Neutral:"neutral"},Hu={Solid:"solid",Outline:"outline",Text:"text"},Uu={Large:"lg",Medium:"md",Small:"sm"},Gu={Right:"right",Left:"left"},Jr={props:{color:{options:Object.values(zu)},variant:{options:Object.values(Hu)},size:{options:Object.values(Uu)},iconPosition:{options:Object.values(Gu)}}},Oa={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:Oa.Neutral90,options:Object.values(Oa)},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:()=>({})}}},qu={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},xe=({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:l=Je.props.onClick.default})=>{const d="material-symbols-rounded",o=e&&Je.props.color.options.find(p=>p===e)&&`${Je.class}__color--${e}`,u=X.useMemo(()=>({fontVariationSettings:`'FILL' ${n?1:0}, 'GRAD' 0,'wght' ${qu[a]}, 'opsz' 48`}),[a,n]);return M.jsx("i",{className:[`${Je.class}--${s}`,Je.class,d,o,t&&t].filter(p=>p).join(" "),"data-testid":i,onClick:l,style:u,translate:"no",children:r})};xe.propTypes={color:A.oneOf(Je.props.color.options),image:A.string,fontVariationSettings:A.object,size:A.oneOf(Je.props.size.options),fill:A.bool,weight:A.oneOf(Je.props.weight.options),onClick:A.func},xe.displayName="DsIcon",A.oneOf(Jr.props.color.options),A.oneOf(Jr.props.variant.options),A.oneOf(Jr.props.size.options),A.bool,A.string,A.bool,A.oneOf(Jr.props.iconPosition.options),A.string,A.string,A.bool,A.node.isRequired,A.string,A.string;const Qr={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"},mt={class:"ds-card",props:{backgroundColor:{default:Qr.None,options:Object.values(Qr)},borderColor:{default:Qr.None,options:Object.values(Qr)},elevation:{default:0,options:[0,1,2,3,4]},testId:{default:"ds-card"}}},ur=({id:r,testId:e=mt.props.testId.default,children:t,className:s,elevation:n=mt.props.elevation.default,backgroundColor:a=mt.props.backgroundColor.default,borderColor:i=mt.props.borderColor.default})=>{const l=n&&`${mt.class}--elevation-${n}`,d=i&&`${mt.class}--border-${i}`,o=a&&`${mt.class}--${a}`;return M.jsx("div",{className:[mt.class,s,l,d,o].filter(u=>u).join(" "),"data-testid":e,id:r,children:t})};ur.propTypes={id:A.string,testId:A.string,backgroundColor:A.oneOf(mt.props.backgroundColor.options),borderColor:A.oneOf(mt.props.borderColor.options),elevation:A.oneOf(mt.props.elevation.options)},ur.displayName="DsCard";const He={class:"ds-checkbox",props:{testId:{default:"ds-checkbox-test"},label:{default:""},description:{default:""},checked:{default:!1},changeByChecked:{default:!1}}},Ia=X.forwardRef(({id:r,className:e,name:t,testId:s=He.props.testId.default,label:n=He.props.label.default,description:a=He.props.description.default,checked:i=He.props.checked.default,disabled:l=He.props.checked.default,changeByChecked:d=He.props.changeByChecked.default,onChangeHandler:o},u)=>{const p=d||!1,f=i||!1,[_,g]=X.useState(f),v={image:_?"check_box":"check_box_outline_blank",class:_?`${He.class}__icon--checked`:`${He.class}__icon--unchecked`},m=l&&`${He.class}--disabled`,y=h=>{l||(g(b=>!b),o&&o(h))};return X.useEffect(()=>{p&&g(i)},[i,p]),M.jsxs("label",{className:[He.class,m,e&&e].join(" "),htmlFor:r||t,children:[M.jsx("input",{checked:_,className:`${He.class}__input`,"data-testid":s,id:r||t,name:t,onChange:y,ref:u,type:"checkbox"}),M.jsx(xe,{className:`${He.class}__icon ${v.class}`,fill:!0,image:v.image,size:"xxl",testId:`${s}-icon`}),(a||n)&&M.jsxs("div",{className:`${He.class}__label`,children:[n&&M.jsx("label",{className:`${He.class}__label-title`,htmlFor:r||t,children:n}),a&&M.jsx("label",{className:`${He.class}__label-description`,htmlFor:r||t,children:a})]})]})});Ia.propTypes={label:A.oneOfType([A.string,A.node]),name:A.string,className:A.string,testId:A.string,description:A.oneOfType([A.string,A.node]),checked:A.bool,disabled:A.bool},Ia.displayName="DsCheckbox";const Da={Heading1:"heading-1",Heading2:"heading-2",Heading3:"heading-3",Heading4:"heading-4",Heading5:"heading-5",Heading6:"heading-6"},Sr={class:"ds-heading",props:{type:{default:Da.Heading1,options:Object.values(Da)}}},kt=({children:r,testId:e="ds-heading-test",type:t=Sr.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=Sr.props.type.options.find(l=>l===t)&&`${Sr.class}--${t}`,i=n[t];return M.jsx(i,{className:[Sr.class,a,s&&s].filter(l=>l).join(" "),"data-testid":e,children:r})};kt.propTypes={className:A.string,testId:A.string,type:A.oneOf(Sr.props.type.options)},kt.displayName="DsHeading";const Ma={None:"",Dashed:"dashed",Dotted:"dotted"},Fa={None:"",Small:"small",Large:"large"},Xt={class:"ds-hr",props:{borderStyle:{type:String,default:Ma.None,options:Object.values(Ma)},size:{type:String,default:Fa.None,options:Object.values(Fa)}}};function Ba(r,e,t){const s=t.props[r];return s.options&&s.options.some(n=>n===e)?`${t.class}--${e}`:""}const qs=({size:r=Xt.props.size.default,borderStyle:e=Xt.props.borderStyle.default})=>{const t=Ba("size",r,Xt),s=Ba("borderStyle",e,Xt);return M.jsx("hr",{className:`${Xt.class} ${t} ${s}`.trim()})};qs.propTypes={size:A.oneOf(Xt.props.size.options),borderStyle:A.oneOf(Xt.props.borderStyle.options)},qs.displayName="DsHR";function jt(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 ja(r,e){return Array.isArray(e)?ja(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 te={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Wu(r){switch(r){case te.LEFT:return te.FORCE_LEFT;case te.RIGHT:return te.FORCE_RIGHT;default:return r}}function Ws(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function es(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(!es(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 l=e instanceof RegExp,d=r instanceof RegExp;if(l&&d)return e.toString()==r.toString();if(l!=d)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(!es(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 Ku=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?te.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?te.RIGHT:te.LEFT}};function ae(r,e){return new ae.InputMask(r,e)}function La(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?ae.MaskedRegExp:jt(r)?ae.MaskedPattern:r===Date?ae.MaskedDate:r===Number?ae.MaskedNumber:Array.isArray(r)||r===Array?ae.MaskedDynamic:ae.Masked&&r.prototype instanceof ae.Masked?r:ae.Masked&&r instanceof ae.Masked?r.constructor:r instanceof Function?ae.MaskedFunction:(console.warn("Mask not found for mask",r),ae.Masked)}function xr(r){if(!r)throw new Error("Options in not defined");if(ae.Masked){if(r.prototype instanceof ae.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof ae.Masked?{mask:r}:Ra(r)&&r.mask instanceof ae.Masked?r:{};if(e){const s=e.mask;return{...ja(e,(n,a)=>!a.startsWith("_")),mask:e.constructor,_mask:s,...t}}}return Ra(r)?{...r}:{mask:r}}function Ot(r){if(ae.Masked&&r instanceof ae.Masked)return r;const e=xr(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)}ae.createMask=Ot;class Ks{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}}ae.MaskElement=Ks;const Va=90,Xu=89;class ts 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===Va&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===Xu&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===Va&&(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={}}}ae.HTMLMaskElement=ts;let Yu=class extends ts{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}};ae.HTMLMaskElement=ts;let za=class extends ts{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}};ae.HTMLContenteditableMaskElement=za;let Ha=class Ou{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>Ou.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}};Ha.MAX_LENGTH=100;class Zu{constructor(e,t){this.el=e instanceof Ks?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new za(e):new Yu(e),this.masked=Ot(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Ha,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 ae.Masked)&&this.masked.constructor===La(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof ae.Masked?e:Ot({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,te.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 Ku({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:te.NONE;let i=this.masked.nearestInputPos(t.startChangePos+n,a);a!==te.NONE&&(i=this.masked.nearestInputPos(i,te.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}}ae.InputMask=Zu;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}}ae.ChangeDetails=ue;class $t{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}}let it=class Bs{constructor(e){this._value="",this._update({...Bs.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 $t(this.extractInput(e,t),e)}appendTail(e){return jt(e)&&(e=new $t(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 l=this.pad(t);const d=this._appendCharRaw(e,t);l=l.aggregate(d),d.rawInserted||l.equals(a)?a=l:this.state=i}if(a.inserted){let i,l=this.doValidate(t)!==!1;if(l&&s!=null){const d=this.state;if(this.overwrite===!0){i=s.state;for(let u=0;u<a.rawInserted.length;++u)s.unshift(this.displayValue.length-a.tailShift)}let o=this.appendTail(s);if(l=o.rawInserted.length===s.toString().length,!(l&&o.inserted)&&this.overwrite==="shift"){this.state=d,i=s.state;for(let u=0;u<a.rawInserted.length;++u)s.shift();o=this.appendTail(s),l=o.rawInserted.length===s.toString().length}l&&o.inserted&&(this.state=d)}l||(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(!jt(e))throw new Error("value should be string");const n=jt(s)?new $t(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 l=this._appendChar(e[i],t,n);if(!l.rawInserted&&!this.doSkipInvalid(e[i],t,n))break;a.aggregate(l)}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=te.NONE),a===void 0&&(a={input:!0});const i=e+t,l=this.extractTail(i),d=this.eager===!0||this.eager==="remove";let o;d&&(n=Wu(n),o=this.extractInput(0,i,{raw:!0}));let u=e;const p=new ue;if(n!==te.NONE&&(u=this.nearestInputPos(e,t>1&&e!==0&&!d?te.NONE:n),p.tailShift=u-e),p.aggregate(this.remove(u)),d&&n!==te.NONE&&o===this.rawInputValue)if(n===te.FORCE_LEFT){let f;for(;o===this.rawInputValue&&(f=this.displayValue.length);)p.aggregate(new ue({tailShift:-1})).aggregate(this.remove(f-1))}else n===te.FORCE_RIGHT&&l.unshift();return p.aggregate(this.append(s,a,l))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!es(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||Bs.EMPTY_VALUES.includes(e)&&Bs.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new ue}};it.DEFAULTS={skipInvalid:!0},it.EMPTY_VALUES=[void 0,null,""],ae.Masked=it;let Ua=class Zr{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=jt(e)?new $t(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 $t)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof Zr){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 ae.MaskedPattern))return new $t(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 l;if(i!=null&&(!a||a.index<=i)&&((n instanceof Zr||e._stops.indexOf(i)>=0)&&t.aggregate(e._appendPlaceholder(i)),l=n instanceof Zr&&e._blocks[i]),l){const d=l.appendTail(n);t.aggregate(d);const o=n.toString().slice(d.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 Zr:new $t;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""}},Ju=class{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,te.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,te.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,te.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,te.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,te.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,te.NONE),!0})}},Ga=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=te.NONE);const s=0,n=this._value.length;switch(t){case te.LEFT:case te.FORCE_LEFT:return s;case te.NONE:case te.RIGHT:case te.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 $t("")}appendTail(e){return jt(e)&&(e=new $t(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()}},rs=class{constructor(e){const{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:l,...d}=e;this.masked=Ot(d),Object.assign(this,{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:l})}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=te.NONE);const s=0,n=this.value.length,a=Math.min(Math.max(e,s),n);switch(t){case te.LEFT:case te.FORCE_LEFT:return this.isComplete?a:s;case te.RIGHT:case te.FORCE_RIGHT:return this.isComplete?a:n;case te.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}};rs.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]/,"*":/./};let Qu=class extends it{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=s=>s.search(t)>=0),super._update(e)}};ae.MaskedRegExp=Qu;class Re extends it{constructor(e){super({...Re.DEFAULTS,...e,definitions:Object.assign({},rs.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),u=Object.keys(this.blocks).filter(f=>o.indexOf(f)===0);u.sort((f,_)=>_.length-f.length);const p=u[0];if(p){const{expose:f,repeat:_,...g}=xr(this.blocks[p]),v={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...g,repeat:_,parent:this},m=_!=null?new ae.RepeatBlock(v):Ot(v);m&&(this._blocks.push(m),f&&(this.exposeBlock=m),this._maskedBlocks[p]||(this._maskedBlocks[p]=[]),this._maskedBlocks[p].push(this._blocks.length-1)),a+=p.length-1;continue}}let i=t[a],l=i in e;if(i===Re.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(i==="{"||i==="}"){s=!s;continue}if(i==="["||i==="]"){n=!n;continue}if(i===Re.ESCAPE_CHAR){if(++a,i=t[a],!i)break;l=!1}const d=l?new rs({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...xr(e[i]),parent:this}):new Ga({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(d)}}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,l;l=this._blocks[i];++i){var a;const d=l._appendChar(e,{...t,_beforeTailState:(a=t._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]});if(n.aggregate(d),d.consumed)break}return n}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=new Ua;return e===t||this._forEachBlocksInRange(e,t,(n,a,i,l)=>{const d=n.extractTail(i,l);d.stop=this._findStopBefore(a),d.from=this._blockStartPos(a),d instanceof Ua&&(d.blockIndex=a),s.extend(d)}),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,l,d)=>{n+=a.extractInput(l,d,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 l;t.aggregate(i._appendPlaceholder((l=i._blocks)==null?void 0:l.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,l=n.offset,d=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(s(this._blocks[n.index],n.index,l,d),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,l)=>{s.aggregate(n.remove(i,l))}),s}nearestInputPos(e,t){if(t===void 0&&(t=te.NONE),!this._blocks.length)return 0;const s=new Ju(this,e);if(t===te.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===te.LEFT||t===te.FORCE_LEFT){if(t===te.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===te.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===te.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return t===te.RIGHT||t===te.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:t===te.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,te.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,l)=>{s+=n.totalInputPositions(i,l)}),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}}Re.DEFAULTS={...it.DEFAULTS,lazy:!0,placeholderChar:"_"},Re.STOP_CHAR="`",Re.ESCAPE_CHAR="\\",Re.InputDefinition=rs,Re.FixedDefinition=Ga,ae.MaskedPattern=Re;let ss=class extends Re{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 l=String(this.from).padStart(this.maxLength,"0"),d=String(this.to).padStart(this.maxLength,"0");let o=0;for(;o<d.length&&d[o]===l[o];)++o;i.mask=d.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}};ae.MaskedRange=ss;class Pt extends Re{static extractPatternOptions(e){const{mask:t,pattern:s,...n}=e;return{...n,mask:jt(t)?t:s}}constructor(e){super(Pt.extractPatternOptions({...Pt.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:n,...a}={...Pt.DEFAULTS,...e},i=Object.assign({},Pt.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:jt(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(Pt.extractPatternOptions(e))}}Pt.GET_DEFAULT_BLOCKS=()=>({d:{mask:ss,from:1,to:31,maxLength:2},m:{mask:ss,from:1,to:12,maxLength:2},Y:{mask:ss,from:1900,to:9999}}),Pt.DEFAULTS={...Re.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)}},ae.MaskedDate=Pt;let qa=class Pu extends it{constructor(e){super({...Pu.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}=xr(t),a=Ot({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,l=a.slice(i.length),d=this.currentMask,o=new ue,u=d==null?void 0:d.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==d?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),o.tailShift=this.currentMask.value.length-n.length),l&&(o.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)):u&&(this.currentMask.state=u)),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,l)=>i.state=t[l]),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 es(t,a)&&t.maskEquals(n)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}};qa.DEFAULTS={...it.DEFAULTS,dispatch:(r,e,t,s)=>{if(!e.compiledMasks.length)return;const n=e.rawInputValue,a=e.compiledMasks.map((i,l)=>{const d=e.currentMask===i,o=d?i.displayValue.length:i.nearestInputPos(i.displayValue.length,te.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):d||i.remove(o),i.append(r,e.currentMaskFlags(t)),i.appendTail(s),{index:l,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(o,i.nearestInputPos(i.displayValue.length,te.FORCE_LEFT)))}});return a.sort((i,l)=>l.weight-i.weight||l.totalInputPositions-i.totalInputPositions),e.compiledMasks[a[0].index]}},ae.MaskedDynamic=qa;class ns extends Re{constructor(e){super({...ns.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...s}=e;if(t){const n=t.map(l=>l.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,te.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,l)=>{const d=n[0][l];l>=this.value.length||d===i.value||(i.reset(),i._appendChar(d,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 $t("",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,te.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}}ns.DEFAULTS={...Re.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t},ae.MaskedEnum=ns;let ec=class extends it{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};ae.MaskedFunction=ec;var Wa;let Ar=class Kt extends it{constructor(e){super({...Kt.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",s=(this.scale?"("+Ws(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+s),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Ws).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Ws(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 l=!isNaN(i),d=!1;if(l){let f;this.min!=null&&this.min<0&&this.number<this.min&&(f=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(f=this.max),f!=null&&(this.autofix?(this._value=this.format(f,this).replace(Kt.UNMASKED_RADIX,this.radix),d||(d=a===this._value&&!t.tail)):l=!1),l&&(l=!!this._value.match(this._numberRegExp))}let o;l?o=new ue({inserted:this._value.slice(a.length),rawInserted:d?"":e,skip:d}):(this._value=a,o=new ue),this._value=this._insertThousandsSeparators(this._value);const u=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,p=this._separatorsCountFromSlice(u);return o.tailShift+=(p-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 te.NONE:case te.LEFT:case te.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===te.FORCE_LEFT)return s}break}case te.RIGHT:case te.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===Kt.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,Kt.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(Kt.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)||Kt.EMPTY_VALUES.includes(e)&&Kt.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}};Wa=Ar,Ar.UNMASKED_RADIX=".",Ar.EMPTY_VALUES=[...it.EMPTY_VALUES,0],Ar.DEFAULTS={...it.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Wa.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})},ae.MaskedNumber=Ar;const Xs={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Ka(r,e,t){e===void 0&&(e=Xs.MASKED),t===void 0&&(t=Xs.MASKED);const s=Ot(r);return n=>s.runIsolated(a=>(a[e]=n,a[t]))}function tc(r,e,t,s){return Ka(e,t,s)(r)}ae.PIPE_TYPE=Xs,ae.createPipe=Ka,ae.pipe=tc;class rc extends Re{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}=xr(e);this._blockOpts=Object.assign({},this._blockOpts,i);const l=Ot(this._blockOpts);this.repeat=(t=(s=a??l.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:l},eager:l.eager,overwrite:l.overwrite,skipInvalid:l.skipInvalid,lazy:l.lazy,placeholderChar:l.placeholderChar,displayChar:l.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(Ot(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const s=new ue;for(let d=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),o,u;o=(i=this._blocks[d])!=null?i:u=!u&&this._allocateBlock(d);++d){var n,a,i,l;const p=o._appendChar(e,{...t,_beforeTailState:(l=t._beforeTailState)==null||(l=l._blocks)==null?void 0:l[d]});if(p.skip&&u){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(p),p.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 l=0;for(let d=i;a<=d&&!this._blocks[d].unmaskedValue;--d,++l);l&&(this._blocks.splice(i-l+1,l),this.mask=this.mask.slice(l))}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}}ae.RepeatBlock=rc;try{globalThis.IMask=ae}catch{}const Xa={mask:A.oneOfType([A.array,A.func,A.string,A.instanceOf(RegExp),A.oneOf([Date,Number,ae.Masked]),A.instanceOf(ae.Masked)]),value:A.any,unmask:A.oneOfType([A.bool,A.oneOf(["typed"])]),prepare:A.func,prepareChar:A.func,validate:A.func,commit:A.func,overwrite:A.oneOfType([A.bool,A.oneOf(["shift"])]),eager:A.oneOfType([A.bool,A.oneOf(["append","remove"])]),skipInvalid:A.bool,onAccept:A.func,onComplete:A.func,placeholderChar:A.string,displayChar:A.string,lazy:A.bool,definitions:A.object,blocks:A.object,enum:A.arrayOf(A.string),maxLength:A.number,from:A.number,to:A.number,pattern:A.string,format:A.func,parse:A.func,autofix:A.oneOfType([A.bool,A.oneOf(["pad"])]),radix:A.string,thousandsSeparator:A.string,mapToRadix:A.arrayOf(A.string),scale:A.number,normalizeZeros:A.bool,padFractionalZeros:A.bool,min:A.oneOfType([A.number,A.instanceOf(Date)]),max:A.oneOfType([A.number,A.instanceOf(Date)]),dispatch:A.func,inputRef:A.oneOfType([A.func,A.shape({current:A.object})])},Ya=Object.keys(Xa).filter(r=>r!=="value"),sc=["value","unmask","onAccept","onComplete","inputRef"],nc=Ya.filter(r=>sc.indexOf(r)<0);function ac(r){var e;const t=(e=class extends X.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=ae(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=>nc.indexOf(i)<0).forEach(i=>{delete a[i]}),a}_extractNonMaskProps(n){const{...a}=n;return Ya.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 X.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=Xa,X.forwardRef((n,a)=>X.createElement(t,{...n,ref:a}))}const oc=ac(r=>{let{inputRef:e,...t}=r;return X.createElement("input",{...t,ref:e})}),ic=(r,e)=>X.createElement(oc,{...r,ref:e});X.forwardRef(ic);function lc(r,e){let{onAccept:t,onComplete:s,ref:n=X.useRef(null),defaultValue:a,defaultUnmaskedValue:i,defaultTypedValue:l}=e===void 0?{}:e;const d=X.useRef(null),[o,u]=X.useState({}),[p,f]=X.useState(""),[_,g]=X.useState(""),[v,m]=X.useState(),y=X.useCallback(()=>{var S;(S=d.current)==null||S.destroy(),d.current=null},[]),h=X.useCallback(()=>{const S=d.current;S&&(u({value:S.value,unmaskedValue:S.unmaskedValue,typedValue:S.typedValue}),m(S.typedValue),g(S.unmaskedValue),f(S.value))},[]),b=X.useCallback(S=>{const O=d.current;O&&(h(),t==null||t(O.value,O,S))},[t]),$=X.useCallback(S=>d.current&&(s==null?void 0:s(d.current.value,d.current,S)),[s]);return X.useEffect(()=>{const{value:S,...O}=o,N=d.current;!N||p===void 0||(S!==p&&(N.value=p,N.value!==p&&b()),u(O))},[p]),X.useEffect(()=>{const{unmaskedValue:S,...O}=o,N=d.current;!N||_===void 0||(S!==_&&(N.unmaskedValue=_,N.unmaskedValue!==_&&b()),u(O))},[_]),X.useEffect(()=>{const{typedValue:S,...O}=o,N=d.current;!N||v===void 0||(S!==v&&(N.typedValue=v,N.masked.typedValueEquals(v)||b()),u(O))},[v]),X.useEffect(()=>{const S=n.current;if(!S||!(r!=null&&r.mask))return y();const O=d.current;O?O==null||O.updateOptions(r):S&&r!=null&&r.mask&&(d.current=ae(S,r),h(),a!==void 0&&f(a),i!==void 0&&g(i),l!==void 0&&m(l))},[r,y,b]),X.useEffect(()=>{if(!d.current)return;const S=d.current;return S.on("accept",b),S.on("complete",$),()=>{S.off("accept",b),S.off("complete",$)}},[b,$]),X.useEffect(()=>y,[y]),{ref:n,maskRef:d,value:p,setValue:f,unmaskedValue:_,setUnmaskedValue:g,typedValue:v,setTypedValue:m}}const Za={Text:"text",Password:"password",Email:"email",Date:"date",Number:"number"},Ja={Small:"small",Medium:"medium",Large:"large"},Qa={Default:"",Error:"error",Success:"success"},uc={Center:"center"},cc={Top:"top"},ke={class:"ds-input",props:{testId:{default:"ds-input-test"},type:{default:Za.Text,options:Object.values(Za)},animated:{default:!0},disabled:{default:!1},size:{default:Ja.Medium,options:Object.values(Ja)},status:{default:Qa.Default,options:Object.values(Qa)},hasFeedback:{default:!0},noMargin:{default:!1},icon:{default:""},tooltip:{default:""},tooltipPlacement:{default:uc.Center},tooltipPosition:{default:cc.Top},onChangeHandler:{default:()=>({})}}},eo={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]}},to={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},ro={Center:"center",End:"end",Initial:"initial"},wt={class:"ds-tooltip",props:{position:{default:to.Top,options:Object.values(to)},placement:{default:ro.Center,options:Object.values(ro)},text:{default:""},testId:{default:"ds-tooltip"}}},Cr=({children:r,position:e=wt.props.position.default,placement:t=wt.props.placement.default,text:s=wt.props.text.default,testId:n=wt.props.testId.default,className:a})=>{const i=X.useRef(null),[l,d]=X.useState(0),[o,u]=X.useState(0),[p,f]=X.useState(!1),_=e&&wt.props.position.options.find(y=>y===e)&&`${wt.class}--${e}`,g=t&&wt.props.placement.options.find(y=>y===t)&&`${wt.class}--${t}`;let v;X.useLayoutEffect(()=>{var y,h;i.current&&(d((y=i==null?void 0:i.current)==null?void 0:y.offsetHeight),u((h=i==null?void 0:i.current)==null?void 0:h.offsetWidth))},[]);const m=9;switch(e){case"top":t==="initial"?v={bottom:l+m,left:-9}:t==="end"?v={bottom:l+m,right:-9}:v={bottom:l+m,left:"50%",transform:"translateX(-50%)"};break;case"bottom":t==="initial"?v={top:l+m,left:-9}:t==="end"?v={top:l+m,right:-9}:v={top:l+m,left:"50%",transform:"translateX(-50%)"};break;case"left":t==="initial"?v={right:o+m,top:-9}:t==="end"?v={right:o+m,bottom:-9}:v={right:o+m,top:"50%",transform:"translateY(-50%)"};break;case"right":t==="initial"?v={left:o+m,top:-9}:t==="end"?v={left:o+m,bottom:-9}:v={left:o+m,top:"50%",transform:"translateY(-50%)"};break}return M.jsxs("div",{className:[wt.class,a].join(" "),"data-testid":n,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),ref:i,role:"tooltip",children:[r,p&&M.jsx("div",{className:[_,g].filter(y=>y).join(" "),children:M.jsx("span",{className:`${wt.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:v,children:s})})]})};Cr.propTypes={position:A.string,placement:A.string,text:A.oneOfType([A.string,A.node]),testId:A.string},Cr.displayName="DsTooltip";const so=X.forwardRef(({name:r,testId:e=ke.props.testId.default,type:t=ke.props.type.default,animated:s=ke.props.animated.default,size:n=ke.props.size.default,label:a,placeholder:i,value:l,min:d,max:o,tooltip:u=ke.props.tooltip.default,tooltipPosition:p=ke.props.tooltipPosition.default,tooltipPlacement:f=ke.props.tooltipPlacement.default,icon:_=ke.props.icon.default,status:g=ke.props.status.default,feedback:v,hasFeedback:m=ke.props.hasFeedback.default,noMargin:y=ke.props.noMargin.default,disabled:h=ke.props.disabled.default,className:b,mask:$,onChangeHandler:S=ke.props.onChangeHandler.default,onBlurHandler:O,onKeyDownHandler:N,onFocusHandler:R},V)=>{const[I,T]=X.useState(!1),[B,j]=X.useState(!1),U=!!S&&!!$,W=(z,G,J)=>{if(U&&J){const H={...J,target:{...J.target,name:r,maskedValue:z,value:G.unmaskedValue,type:"text"}};S(H)}},K=X.useMemo(()=>typeof $=="object"?{lazy:!0,...$}:eo[$]?{...eo[$],min:d,max:o,lazy:!0}:{mask:$||"",min:d,max:o,lazy:!0},[$]),{ref:se,setUnmaskedValue:Z}=lc(K,{onAccept:W}),ne=z=>{S&&!U&&S(z)},P=z=>{N&&N(z)},k=z=>{T(!1),O&&O(z)},x=z=>{T(!0),R&&R(z)},E=()=>{j(z=>!z)},c=X.useMemo(()=>B&&t==="password"?"text":t,[B,t]),w=()=>{const z=[`${ke.class}`];return n&&z.push(`${ke.class}--${n}`),s&&z.push(`${ke.class}--animated`),y&&z.push(`${ke.class}--no-margin`),_&&z.push(`${ke.class}--with-icon`),g&&z.push(`${ke.class}--${g}`),b&&z.push(b),z.join(" ")},C=X.useMemo(()=>{const z=[`${ke.class}__label`];return(I||l)&&z.push(`${ke.class}__label--active`),z.join(" ")},[l,I]),L=()=>!s&&i?i:"",F=()=>g&&g==="error"?"info":"check_circle";return X.useEffect(()=>{$&&Z(l||"")},[l,$,Z]),M.jsxs("div",{className:w(),ref:V,children:[m&&M.jsx("div",{className:"ds-input__feedback",children:v&&M.jsxs(M.Fragment,{children:[M.jsx(xe,{image:F()}),v]})}),M.jsx("input",{className:"ds-input__input","data-testid":e,disabled:h,id:r,max:o,min:d,name:r,onBlur:k,onChange:ne,onFocus:x,onInput:ne,onKeyDown:P,placeholder:L(),ref:se,type:c,...!$&&{value:l||""}}),M.jsxs("label",{className:C,htmlFor:r,children:[a,u&&M.jsx(Cr,{className:"ds-input__tooltip",placement:f,position:p,text:u,children:M.jsx(xe,{className:"ds-input__icon",image:"info"})})]}),_&&M.jsx(xe,{className:"ds-input__icon",image:_}),t==="password"&&M.jsx(xe,{className:"ds-input__password-icon",image:B?"visibility_off":"visibility",onClick:E,size:"xl"})]})});so.propTypes={name:A.string,testId:A.string,type:A.oneOf(ke.props.type.options),animated:A.bool,size:A.oneOf(ke.props.size.options),label:A.string,placeholder:A.string,value:A.oneOfType([A.string]),min:A.string,max:A.string,tooltip:A.string,tooltipPosition:A.string,tooltipPlacement:A.string,icon:A.string,status:A.oneOf(ke.props.status.options),feedback:A.string,hasFeedback:A.bool,noMargin:A.bool,disabled:A.bool,mask:A.oneOfType([A.string,A.object]),onChangeHandler:A.func,onFocusHandler:A.func},so.displayName="DsInput";const dc={Small:"small",Medium:"medium",Large:"large"},hc={props:{size:{options:Object.values(dc)}}};A.string,A.string,A.oneOf(hc.props.size.options),A.bool,A.bool,A.string,A.string,A.string,A.string,A.oneOfType([A.string,A.node]),A.oneOfType([A.string,A.number]),A.string,A.bool,A.bool,A.func;const no={Default:"",Large:"large",Small:"small"},as={class:"ds-paragraph",props:{type:{default:no.Default,options:Object.values(no)}}},Et=({children:r,className:e,testId:t="ds-paragraph-test",type:s=as.props.type.default})=>{const n=s&&`${as.class}--${s}`;return M.jsx("p",{className:[as.class,n,e&&e].filter(a=>a).join(" "),"data-testid":t,children:r})};Et.propTypes={className:A.string,testId:A.string,type:A.oneOf(as.props.type.options)},Et.displayName="DsParagraph";const Ys={class:"ds-flex-element",props:{flex:{default:"0 1 auto"},className:{default:""}}},ve=({children:r,flex:e=Ys.props.flex.default,className:t=Ys.props.className.default})=>{const s=()=>[Ys.class,t].join(" "),n=()=>({flex:e});return M.jsx("div",{className:s(),style:n(),children:r})};ve.propTypes={className:A.string,flex:A.string},ve.displayName="DsFlexElement";const pc={Stretch:"stretch"},fc={Stretch:"stretch"},mc={Row:"row"},gc={Wrap:"wrap"},Yt={class:"ds-flex-layout",props:{justifyContent:{default:pc.Stretch},alignItems:{default:fc.Stretch},flexDirection:{default:mc.Row},flexWrap:{default:gc.Wrap},width:{default:"100%"}}},je=({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:l,gap:d})=>{const o=()=>{const p=[Yt.class,e];return d&&p.push(`${Yt.class}--gap-${d}`),p.join(" ")},u=()=>({display:"flex",justifyContent:t,alignItems:s,flexDirection:n,flexWrap:a,width:i,height:l,gap:d});return M.jsx("div",{className:o(),style:u(),children:r})};je.propTypes={className:A.string,justifyContent:A.string,alignItems:A.string,flexDirection:A.string,flexWrap:A.string,width:A.string,height:A.string,gap:A.string},je.displayName="DsFlexLayout";const os={None:"none",Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm"},Tr={class:"ds-spacer",props:{vertical:{default:os.None,options:Object.values(os)},horizontal:{default:os.None,options:Object.values(os)}}},Oe=({vertical:r=Tr.props.vertical.default,horizontal:e=Tr.props.horizontal.default})=>{const t=r&&`ds-spacer__vertical--${r}`,s=e&&`ds-spacer__horizontal--${e}`;return M.jsx("div",{className:[Tr.class,t,s].filter(n=>n).join(" "),"data-testid":"ds-spacer"})};Oe.propTypes={vertical:A.oneOf(Tr.props.vertical.options),horizontal:A.oneOf(Tr.props.horizontal.options)},Oe.displayName="DsSpacer",A.string,A.number,A.string;const ao={Small:"sm",Medium:"md",Large:"lg"},oo={Default:"",Error:"error",Success:"success"},yc={Initial:"initial"},vc={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(ao),default:ao.Medium},status:{default:oo.Default,options:Object.values(oo)},tooltipPlacement:{default:yc.Initial},tooltipPosition:{default:vc.Top}}},io=X.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:l,value:d,placeholder:o,onChange:u,onChangeHandler:p,size:f=we.props.size.default,status:_=we.props.status.default,tooltip:g,tooltipPosition:v=we.props.tooltipPosition.default,tooltipPlacement:m=we.props.tooltipPlacement.default,feedback:y,...h},b)=>{const[$,S]=X.useState(!1),O=V=>{S(!1),u&&u(V,V.target.value),p&&p(V,V.target.value)},N=()=>{const V=[we.class,"select-placeholder"];return V.push(`${we.class}--${f}`),_&&V.push(`${we.class}--${_}`),$&&V.push(`${we.class}--active`),t&&V.push(`${we.class}--disabled`),e&&V.push(e),V.join(" ")},R=X.useMemo(()=>{const V=[`${we.class}__label`];return!s&&V.push(`${we.class}__label--not-animated`),d&&V.push(`${we.class}__label--has-value`),s&&!d&&!g&&V.push(`${we.class}__label--hidden`),V.join(" ")},[d]);return M.jsxs("div",{className:N(),"data-testid":"ds-select-component",children:[r&&M.jsxs("label",{className:R,"data-testid":"ds-label-id",htmlFor:i,children:[r,g&&M.jsx(Cr,{className:`${we.class}__tooltip`,placement:m,position:v,text:g,children:M.jsx(xe,{className:`${we.class}__icon`,image:"info"})})]}),M.jsxs("select",{"data-testid":a,disabled:t,id:i,multiple:n,name:i,onBlur:()=>S(!1),onChange:V=>O(V),onFocus:()=>S(!0),ref:b,value:d??"",...h,children:[(o||s)&&M.jsx("option",{disabled:!0,value:"",children:o??r}),l==null?void 0:l.map((V,I)=>{var T;return"options"in V?M.jsx("optgroup",{label:V.label,children:(T=V.options)==null?void 0:T.map((B,j)=>M.jsx("option",{className:`${we.class}__option-select`,value:B.value,children:B.label||B.value},j))},I):M.jsx("option",{className:`${we.class}__option-select`,value:V.value,children:V.label||V.value},I)})]}),y&&M.jsxs("div",{className:"ds-select__feedback-container",children:[M.jsx(xe,{className:"ds-select__icon",image:_==="success"?"check_circle":"info"}),M.jsx("span",{className:"ds-select__feedback",children:y})]})]})});io.propTypes={label:A.string.isRequired,className:A.string,disabled:A.bool,animated:A.bool,multiple:A.bool,name:A.string,testId:A.string,options:A.array.isRequired,placeholder:A.string,onChange:A.func,onChangeHandler:A.func,value:A.oneOfType([A.string,A.number]),size:A.oneOf(we.props.size.options),status:A.oneOf(we.props.status.options),tooltip:A.string,tooltipPosition:A.string,tooltipPlacement:A.string,feedback:A.string},io.displayName="DsSelect";const lo={Small:"small",Medium:"medium",Large:"large"},_c={Text:"text"},uo={None:"",Error:"error",Success:"success"},co={None:"none",Both:"both",Horizontal:"horizontal",Vertical:"vertical",Block:"block",Inline:"inline"},Pe={class:"ds-textarea",props:{testId:{default:"ds-textarea-test"},type:{options:Object.values(_c)},animated:{default:!0},disabled:{default:!1},size:{default:lo.Medium,options:Object.values(lo)},rows:{default:1},status:{default:uo.None,options:Object.values(uo)},resize:{default:co.None,options:Object.values(co)}}},ho=X.forwardRef(({name:r,testId:e=Pe.props.testId.default,animated:t=Pe.props.animated.default,size:s=Pe.props.size.default,label:n,placeholder:a,value:i,minLength:l,maxLength:d,tooltip:o,icon:u,status:p=Pe.props.status.default,feedback:f,disabled:_=Pe.props.disabled.default,required:g,className:v,resize:m=Pe.props.resize.default,onChangeHandler:y,onBlurHandler:h,onKeyDownHandler:b,onFocusHandler:$,rows:S=Pe.props.rows.default,cols:O,description:N,style:R},V)=>{const[I,T]=X.useState(!1),[B,j]=X.useState(0),[U,W]=X.useState(Math.random());X.useEffect(()=>{i==null&&W(Math.random())},[i]);const K=w=>{j(w.target.value.length),y&&y(w)},se=w=>{b&&b(w)},Z=w=>{T(!1),h&&h(w)},ne=w=>{T(!0),$&&$(w)},P=()=>{const w=[`${Pe.class}`];return s&&w.push(`${Pe.class}--${s}`),t&&w.push(`${Pe.class}--animated`),o&&w.push(`${Pe.class}--with-icon`),p&&w.push(`${Pe.class}--${p}`),v&&w.push(v),w.join(" ")},k=X.useMemo(()=>{const w=[`${Pe.class}__label`];return(I||i)&&w.push(`${Pe.class}__label--active`),w.join(" ")},[i,I]),x=()=>!t&&a?a:"",E=()=>p&&p==="error"?"info":"check_circle",c={resize:m,...R||{}};return M.jsxs("div",{className:P(),children:[N&&M.jsx("span",{className:"ds-textarea__description",children:N}),f&&M.jsxs("div",{className:"ds-textarea__feedback",children:[M.jsx(xe,{image:E()}),f]}),M.jsx("textarea",{className:"ds-textarea__textarea",cols:O,"data-testid":e,defaultValue:i||"",disabled:_,id:r,maxLength:d,minLength:l,name:r,onBlur:Z,onChange:K,onFocus:ne,onKeyDown:se,placeholder:x(),ref:V,required:g,rows:S,style:c}),M.jsx("label",{className:k,htmlFor:r,children:n}),d&&M.jsxs("span",{className:"ds-textarea__count",children:[B,"/",d]}),o&&M.jsx(Cr,{className:"ds-textarea__tooltip",placement:"end",text:o,children:M.jsx(xe,{className:"ds-textarea__icon",image:u})})]},U)});ho.propTypes={name:A.string,testId:A.string,type:A.oneOf(Pe.props.type.options),animated:A.bool,size:A.oneOf(Pe.props.size.options),label:A.string,placeholder:A.string,value:A.oneOfType([A.string]),tooltip:A.string,icon:A.string,status:A.oneOf(Pe.props.status.options),feedback:A.string,minLength:A.number,maxLength:A.number,rows:A.number,cols:A.number,disabled:A.bool,required:A.bool,onChangeHandler:A.func,onBlur:A.func,onKeyDown:A.func,onFocus:A.func,resize:A.oneOf(Pe.props.resize.options).isRequired,description:A.string,style:A.object},ho.displayName="DsTextArea",A.node,A.bool,A.string,A.object,A.string;const bc={Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},po={Start:"start",End:"end",Center:"center",Stretch:"stretch",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},Zs={props:{gap:{options:Object.values(bc)},horizontalAlign:{options:Object.values(po)},verticalAlign:{options:Object.values(po)}}};A.oneOfType([A.arrayOf(A.node),A.node,A.func]),A.string,A.oneOf(Zs.props.gap.options),A.bool,A.bool,A.string,A.string,A.oneOf(Zs.props.horizontalAlign.options),A.oneOf(Zs.props.verticalAlign.options),A.bool,A.oneOfType([A.element,A.string]),A.oneOfType([A.element,A.string]),A.bool,A.array,A.number,A.arrayOf(A.shape({title:A.string.isRequired,image:A.string.isRequired,description:A.string.isRequired})).isRequired,A.number,A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.string;const kc=[1,2,3,4],$c={Squared:"squared",Rounded:"rounded"},fo={props:{elevation:{options:kc},variant:{options:Object.values($c)}}};A.string,A.string,A.string,A.oneOf(fo.props.variant.options),A.oneOf(fo.props.elevation.options),A.bool,A.node,A.node,A.func,A.array,A.string,A.string,A.string,A.node.isRequired,A.string;const wc={TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right"},Ec={props:{position:{options:Object.values(wc)}}};A.oneOf(Ec.props.position.options),A.bool,A.array,A.func,A.node.isRequired,A.node.isRequired,A.string,A.string,A.bool,A.node,A.node,A.node,A.node;const Sc=({categories:r=[],onClick:e,title:t="Categorias"})=>{const s=i=>{e(i)},[n,a]=X.useState(null);return M.jsxs("div",{className:"category-cards","data-testid":"category-cards",children:[M.jsx(Oe,{vertical:"xxs"}),M.jsx(kt,{type:"heading-5",className:"color__neutral--90",children:t}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"category-cards__grid",children:M.jsx(je,{gap:"xxxs",children:r.map(i=>M.jsx(ve,{flex:"0 0 32%",children:M.jsx("div",{className:`category-cards__card ${n===i.id?"category-cards__card--hovered":""}`,"data-testid":`category-card-${i.id}`,onClick:()=>s(i.id),onMouseEnter:()=>a(i.id),onMouseLeave:()=>a(null),role:"button",tabIndex:0,children:M.jsxs(ur,{className:"category-card",testId:`category-card-item-${i.id}`,elevation:n===i.id?0:2,backgroundColor:n===i.id?"secondary-lightest":"neutral-00",children:[M.jsx(Oe,{vertical:"nano"}),M.jsxs(je,{alignItems:"center",flexDirection:"column",gap:"nano",children:[M.jsx(ve,{children:M.jsx(xe,{color:"secondary-dark","data-testid":`category-card-icon-${i.id}`,image:i.attributes.icon,size:"xxxl"})}),M.jsx(ve,{children:M.jsx(kt,{className:"color__neutral--80","data-testid":`category-card-title-${i.id}`,type:"heading-6",children:i.attributes.name})})]}),M.jsx(Oe,{vertical:"nano"})]})})},i.id))})})]})};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xc(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 Js={exports:{}},mo={},lt={},cr={},dr={},ie={},hr={};(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(h){if(super(),!r.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");this.str=h}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=t;class s extends e{constructor(h){super(),this._items=typeof h=="string"?[h]:h}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const h=this._items[0];return h===""||h==='""'}get str(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce((b,$)=>`${b}${$}`,"")}get names(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce((b,$)=>($ instanceof t&&(b[$.str]=(b[$.str]||0)+1),b),{})}}r._Code=s,r.nil=new s("");function n(y,...h){const b=[y[0]];let $=0;for(;$<h.length;)l(b,h[$]),b.push(y[++$]);return new s(b)}r._=n;const a=new s("+");function i(y,...h){const b=[_(y[0])];let $=0;for(;$<h.length;)b.push(a),l(b,h[$]),b.push(a,_(y[++$]));return d(b),new s(b)}r.str=i;function l(y,h){h instanceof s?y.push(...h._items):h instanceof t?y.push(h):y.push(p(h))}r.addCodeArg=l;function d(y){let h=1;for(;h<y.length-1;){if(y[h]===a){const b=o(y[h-1],y[h+1]);if(b!==void 0){y.splice(h-1,3,b);continue}y[h++]="+"}h++}}function o(y,h){if(h==='""')return y;if(y==='""')return h;if(typeof y=="string")return h instanceof t||y[y.length-1]!=='"'?void 0:typeof h!="string"?`${y.slice(0,-1)}${h}"`:h[0]==='"'?y.slice(0,-1)+h.slice(1):void 0;if(typeof h=="string"&&h[0]==='"'&&!(y instanceof t))return`"${y}${h.slice(1)}`}function u(y,h){return h.emptyStr()?y:y.emptyStr()?h:i`${y}${h}`}r.strConcat=u;function p(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:_(Array.isArray(y)?y.join(","):y)}function f(y){return new s(_(y))}r.stringify=f;function _(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=_;function g(y){return typeof y=="string"&&r.IDENTIFIER.test(y)?new s(`.${y}`):n`[${y}]`}r.getProperty=g;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})(hr);var Qs={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const e=hr;class t extends Error{constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}}var s;(function(d){d[d.Started=0]="Started",d[d.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:u}={}){this._names={},this._prefixes=o,this._parent=u}toName(o){return o instanceof e.Name?o:this.name(o)}name(o){return new e.Name(this._newName(o))}_newName(o){const u=this._names[o]||this._nameGroup(o);return`${o}${u.index++}`}_nameGroup(o){var u,p;if(!((p=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||p===void 0)&&p.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,u){super(u),this.prefix=o}setValue(o,{property:u,itemIndex:p}){this.value=o,this.scopePath=(0,e._)`.${new e.Name(u)}[${p}]`}}r.ValueScopeName=a;const i=(0,e._)`\n`;class l 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,u){var p;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(o),{prefix:_}=f,g=(p=u.key)!==null&&p!==void 0?p:u.ref;let v=this._values[_];if(v){const h=v.get(g);if(h)return h}else v=this._values[_]=new Map;v.set(g,f);const m=this._scope[_]||(this._scope[_]=[]),y=m.length;return m[y]=u.ref,f.setValue(u,{property:_,itemIndex:y}),f}getValue(o,u){const p=this._values[o];if(p)return p.get(u)}scopeRefs(o,u=this._values){return this._reduceValues(u,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,e._)`${o}${p.scopePath}`})}scopeCode(o=this._values,u,p){return this._reduceValues(o,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,p)}_reduceValues(o,u,p={},f){let _=e.nil;for(const g in o){const v=o[g];if(!v)continue;const m=p[g]=p[g]||new Map;v.forEach(y=>{if(m.has(y))return;m.set(y,s.Started);let h=u(y);if(h){const b=this.opts.es5?r.varKinds.var:r.varKinds.const;_=(0,e._)`${_}${b} ${y} = ${h};${this.opts._n}`}else if(h=f==null?void 0:f(y))_=(0,e._)`${_}${h}${this.opts._n}`;else throw new t(y);m.set(y,s.Completed)})}return _}}r.ValueScope=l})(Qs),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=hr,t=Qs;var s=hr;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=Qs;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(c,w){return this}}class i extends a{constructor(c,w,C){super(),this.varKind=c,this.name=w,this.rhs=C}render({es5:c,_n:w}){const C=c?t.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${C} ${this.name}${L};`+w}optimizeNames(c,w){if(c[this.name.str])return this.rhs&&(this.rhs=U(this.rhs,c,w)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class l extends a{constructor(c,w,C){super(),this.lhs=c,this.rhs=w,this.sideEffects=C}render({_n:c}){return`${this.lhs} = ${this.rhs};`+c}optimizeNames(c,w){if(!(this.lhs instanceof e.Name&&!c[this.lhs.str]&&!this.sideEffects))return this.rhs=U(this.rhs,c,w),this}get names(){const c=this.lhs instanceof e.Name?{}:{...this.lhs.names};return j(c,this.rhs)}}class d extends l{constructor(c,w,C,L){super(c,C,L),this.op=w}render({_n:c}){return`${this.lhs} ${this.op}= ${this.rhs};`+c}}class o extends a{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`${this.label}:`+c}}class u extends a{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`break${this.label?` ${this.label}`:""};`+c}}class p extends a{constructor(c){super(),this.error=c}render({_n:c}){return`throw ${this.error};`+c}get names(){return this.error.names}}class f extends a{constructor(c){super(),this.code=c}render({_n:c}){return`${this.code};`+c}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(c,w){return this.code=U(this.code,c,w),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class _ extends a{constructor(c=[]){super(),this.nodes=c}render(c){return this.nodes.reduce((w,C)=>w+C.render(c),"")}optimizeNodes(){const{nodes:c}=this;let w=c.length;for(;w--;){const C=c[w].optimizeNodes();Array.isArray(C)?c.splice(w,1,...C):C?c[w]=C:c.splice(w,1)}return c.length>0?this:void 0}optimizeNames(c,w){const{nodes:C}=this;let L=C.length;for(;L--;){const F=C[L];F.optimizeNames(c,w)||(W(c,F.names),C.splice(L,1))}return C.length>0?this:void 0}get names(){return this.nodes.reduce((c,w)=>B(c,w.names),{})}}class g extends _{render(c){return"{"+c._n+super.render(c)+"}"+c._n}}class v extends _{}class m extends g{}m.kind="else";class y extends g{constructor(c,w){super(w),this.condition=c}render(c){let w=`if(${this.condition})`+super.render(c);return this.else&&(w+="else "+this.else.render(c)),w}optimizeNodes(){super.optimizeNodes();const c=this.condition;if(c===!0)return this.nodes;let w=this.else;if(w){const C=w.optimizeNodes();w=this.else=Array.isArray(C)?new m(C):C}if(w)return c===!1?w instanceof y?w:w.nodes:this.nodes.length?this:new y(K(c),w instanceof y?[w]:w.nodes);if(!(c===!1||!this.nodes.length))return this}optimizeNames(c,w){var C;if(this.else=(C=this.else)===null||C===void 0?void 0:C.optimizeNames(c,w),!!(super.optimizeNames(c,w)||this.else))return this.condition=U(this.condition,c,w),this}get names(){const c=super.names;return j(c,this.condition),this.else&&B(c,this.else.names),c}}y.kind="if";class h extends g{}h.kind="for";class b extends h{constructor(c){super(),this.iteration=c}render(c){return`for(${this.iteration})`+super.render(c)}optimizeNames(c,w){if(super.optimizeNames(c,w))return this.iteration=U(this.iteration,c,w),this}get names(){return B(super.names,this.iteration.names)}}class $ extends h{constructor(c,w,C,L){super(),this.varKind=c,this.name=w,this.from=C,this.to=L}render(c){const w=c.es5?t.varKinds.var:this.varKind,{name:C,from:L,to:F}=this;return`for(${w} ${C}=${L}; ${C}<${F}; ${C}++)`+super.render(c)}get names(){const c=j(super.names,this.from);return j(c,this.to)}}class S extends h{constructor(c,w,C,L){super(),this.loop=c,this.varKind=w,this.name=C,this.iterable=L}render(c){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(c)}optimizeNames(c,w){if(super.optimizeNames(c,w))return this.iterable=U(this.iterable,c,w),this}get names(){return B(super.names,this.iterable.names)}}class O extends g{constructor(c,w,C){super(),this.name=c,this.args=w,this.async=C}render(c){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(c)}}O.kind="func";class N extends _{render(c){return"return "+super.render(c)}}N.kind="return";class R extends g{render(c){let w="try"+super.render(c);return this.catch&&(w+=this.catch.render(c)),this.finally&&(w+=this.finally.render(c)),w}optimizeNodes(){var c,w;return super.optimizeNodes(),(c=this.catch)===null||c===void 0||c.optimizeNodes(),(w=this.finally)===null||w===void 0||w.optimizeNodes(),this}optimizeNames(c,w){var C,L;return super.optimizeNames(c,w),(C=this.catch)===null||C===void 0||C.optimizeNames(c,w),(L=this.finally)===null||L===void 0||L.optimizeNames(c,w),this}get names(){const c=super.names;return this.catch&&B(c,this.catch.names),this.finally&&B(c,this.finally.names),c}}class V extends g{constructor(c){super(),this.error=c}render(c){return`catch(${this.error})`+super.render(c)}}V.kind="catch";class I extends g{render(c){return"finally"+super.render(c)}}I.kind="finally";class T{constructor(c,w={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...w,_n:w.lines?`
21
- `:""},this._extScope=c,this._scope=new t.Scope({parent:c}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(c){return this._scope.name(c)}scopeName(c){return this._extScope.name(c)}scopeValue(c,w){const C=this._extScope.value(c,w);return(this._values[C.prefix]||(this._values[C.prefix]=new Set)).add(C),C}getScopeValue(c,w){return this._extScope.getValue(c,w)}scopeRefs(c){return this._extScope.scopeRefs(c,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(c,w,C,L){const F=this._scope.toName(w);return C!==void 0&&L&&(this._constants[F.str]=C),this._leafNode(new i(c,F,C)),F}const(c,w,C){return this._def(t.varKinds.const,c,w,C)}let(c,w,C){return this._def(t.varKinds.let,c,w,C)}var(c,w,C){return this._def(t.varKinds.var,c,w,C)}assign(c,w,C){return this._leafNode(new l(c,w,C))}add(c,w){return this._leafNode(new d(c,r.operators.ADD,w))}code(c){return typeof c=="function"?c():c!==e.nil&&this._leafNode(new f(c)),this}object(...c){const w=["{"];for(const[C,L]of c)w.length>1&&w.push(","),w.push(C),(C!==L||this.opts.es5)&&(w.push(":"),(0,e.addCodeArg)(w,L));return w.push("}"),new e._Code(w)}if(c,w,C){if(this._blockNode(new y(c)),w&&C)this.code(w).else().code(C).endIf();else if(w)this.code(w).endIf();else if(C)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(c){return this._elseNode(new y(c))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(y,m)}_for(c,w){return this._blockNode(c),w&&this.code(w).endFor(),this}for(c,w){return this._for(new b(c),w)}forRange(c,w,C,L,F=this.opts.es5?t.varKinds.var:t.varKinds.let){const z=this._scope.toName(c);return this._for(new $(F,z,w,C),()=>L(z))}forOf(c,w,C,L=t.varKinds.const){const F=this._scope.toName(c);if(this.opts.es5){const z=w instanceof e.Name?w:this.var("_arr",w);return this.forRange("_i",0,(0,e._)`${z}.length`,G=>{this.var(F,(0,e._)`${z}[${G}]`),C(F)})}return this._for(new S("of",L,F,w),()=>C(F))}forIn(c,w,C,L=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(c,(0,e._)`Object.keys(${w})`,C);const F=this._scope.toName(c);return this._for(new S("in",L,F,w),()=>C(F))}endFor(){return this._endBlockNode(h)}label(c){return this._leafNode(new o(c))}break(c){return this._leafNode(new u(c))}return(c){const w=new N;if(this._blockNode(w),this.code(c),w.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(c,w,C){if(!w&&!C)throw new Error('CodeGen: "try" without "catch" and "finally"');const L=new R;if(this._blockNode(L),this.code(c),w){const F=this.name("e");this._currNode=L.catch=new V(F),w(F)}return C&&(this._currNode=L.finally=new I,this.code(C)),this._endBlockNode(V,I)}throw(c){return this._leafNode(new p(c))}block(c,w){return this._blockStarts.push(this._nodes.length),c&&this.code(c).endBlock(w),this}endBlock(c){const w=this._blockStarts.pop();if(w===void 0)throw new Error("CodeGen: not in self-balancing block");const C=this._nodes.length-w;if(C<0||c!==void 0&&C!==c)throw new Error(`CodeGen: wrong number of nodes: ${C} vs ${c} expected`);return this._nodes.length=w,this}func(c,w=e.nil,C,L){return this._blockNode(new O(c,w,C)),L&&this.code(L).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(c=1){for(;c-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(c){return this._currNode.nodes.push(c),this}_blockNode(c){this._currNode.nodes.push(c),this._nodes.push(c)}_endBlockNode(c,w){const C=this._currNode;if(C instanceof c||w&&C instanceof w)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${w?`${c.kind}/${w.kind}`:c.kind}"`)}_elseNode(c){const w=this._currNode;if(!(w instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=w.else=c,this}get _root(){return this._nodes[0]}get _currNode(){const c=this._nodes;return c[c.length-1]}set _currNode(c){const w=this._nodes;w[w.length-1]=c}}r.CodeGen=T;function B(E,c){for(const w in c)E[w]=(E[w]||0)+(c[w]||0);return E}function j(E,c){return c instanceof e._CodeOrName?B(E,c.names):E}function U(E,c,w){if(E instanceof e.Name)return C(E);if(!L(E))return E;return new e._Code(E._items.reduce((F,z)=>(z instanceof e.Name&&(z=C(z)),z instanceof e._Code?F.push(...z._items):F.push(z),F),[]));function C(F){const z=w[F.str];return z===void 0||c[F.str]!==1?F:(delete c[F.str],z)}function L(F){return F instanceof e._Code&&F._items.some(z=>z instanceof e.Name&&c[z.str]===1&&w[z.str]!==void 0)}}function W(E,c){for(const w in c)E[w]=(E[w]||0)-(c[w]||0)}function K(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,e._)`!${x(E)}`}r.not=K;const se=k(r.operators.AND);function Z(...E){return E.reduce(se)}r.and=Z;const ne=k(r.operators.OR);function P(...E){return E.reduce(ne)}r.or=P;function k(E){return(c,w)=>c===e.nil?w:w===e.nil?c:(0,e._)`${x(c)} ${E} ${x(w)}`}function x(E){return E instanceof e.Name?E:(0,e._)`(${E})`}}(ie);var Y={};Object.defineProperty(Y,"__esModule",{value:!0}),Y.checkStrictMode=Y.getErrorPath=Y.Type=Y.useFunc=Y.setEvaluated=Y.evaluatedPropsToName=Y.mergeEvaluated=Y.eachItem=Y.unescapeJsonPointer=Y.escapeJsonPointer=Y.escapeFragment=Y.unescapeFragment=Y.schemaRefOrVal=Y.schemaHasRulesButRef=Y.schemaHasRules=Y.checkUnknownRules=Y.alwaysValidSchema=Y.toHash=void 0;const _e=ie,Ac=hr;function Cc(r){const e={};for(const t of r)e[t]=!0;return e}Y.toHash=Cc;function Tc(r,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(go(r,e),!yo(e,r.self.RULES.all))}Y.alwaysValidSchema=Tc;function go(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]||$o(r,`unknown keyword: "${a}"`)}Y.checkUnknownRules=go;function yo(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(e[t])return!0;return!1}Y.schemaHasRules=yo;function Oc(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(t!=="$ref"&&e.all[t])return!0;return!1}Y.schemaHasRulesButRef=Oc;function Pc({topSchemaRef:r,schemaPath:e},t,s,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,_e._)`${t}`}return(0,_e._)`${r}${e}${(0,_e.getProperty)(s)}`}Y.schemaRefOrVal=Pc;function Nc(r){return vo(decodeURIComponent(r))}Y.unescapeFragment=Nc;function Ic(r){return encodeURIComponent(en(r))}Y.escapeFragment=Ic;function en(r){return typeof r=="number"?`${r}`:r.replace(/~/g,"~0").replace(/\//g,"~1")}Y.escapeJsonPointer=en;function vo(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}Y.unescapeJsonPointer=vo;function Dc(r,e){if(Array.isArray(r))for(const t of r)e(t);else e(r)}Y.eachItem=Dc;function _o({mergeNames:r,mergeToName:e,mergeValues:t,resultToName:s}){return(n,a,i,l)=>{const d=i===void 0?a:i instanceof _e.Name?(a instanceof _e.Name?r(n,a,i):e(n,a,i),i):a instanceof _e.Name?(e(n,i,a),a):t(a,i);return l===_e.Name&&!(d instanceof _e.Name)?s(n,d):d}}Y.mergeEvaluated={props:_o({mergeNames:(r,e,t)=>r.if((0,_e._)`${t} !== true && ${e} !== undefined`,()=>{r.if((0,_e._)`${e} === true`,()=>r.assign(t,!0),()=>r.assign(t,(0,_e._)`${t} || {}`).code((0,_e._)`Object.assign(${t}, ${e})`))}),mergeToName:(r,e,t)=>r.if((0,_e._)`${t} !== true`,()=>{e===!0?r.assign(t,!0):(r.assign(t,(0,_e._)`${t} || {}`),tn(r,t,e))}),mergeValues:(r,e)=>r===!0?!0:{...r,...e},resultToName:bo}),items:_o({mergeNames:(r,e,t)=>r.if((0,_e._)`${t} !== true && ${e} !== undefined`,()=>r.assign(t,(0,_e._)`${e} === true ? true : ${t} > ${e} ? ${t} : ${e}`)),mergeToName:(r,e,t)=>r.if((0,_e._)`${t} !== true`,()=>r.assign(t,e===!0?!0:(0,_e._)`${t} > ${e} ? ${t} : ${e}`)),mergeValues:(r,e)=>r===!0?!0:Math.max(r,e),resultToName:(r,e)=>r.var("items",e)})};function bo(r,e){if(e===!0)return r.var("props",!0);const t=r.var("props",(0,_e._)`{}`);return e!==void 0&&tn(r,t,e),t}Y.evaluatedPropsToName=bo;function tn(r,e,t){Object.keys(t).forEach(s=>r.assign((0,_e._)`${e}${(0,_e.getProperty)(s)}`,!0))}Y.setEvaluated=tn;const ko={};function Mc(r,e){return r.scopeValue("func",{ref:e,code:ko[e.code]||(ko[e.code]=new Ac._Code(e.code))})}Y.useFunc=Mc;var rn;(function(r){r[r.Num=0]="Num",r[r.Str=1]="Str"})(rn||(Y.Type=rn={}));function Fc(r,e,t){if(r instanceof _e.Name){const s=e===rn.Num;return t?s?(0,_e._)`"[" + ${r} + "]"`:(0,_e._)`"['" + ${r} + "']"`:s?(0,_e._)`"/" + ${r}`:(0,_e._)`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,_e.getProperty)(r).toString():"/"+en(r)}Y.getErrorPath=Fc;function $o(r,e,t=r.opts.strictSchema){if(t){if(e=`strict mode: ${e}`,t===!0)throw new Error(e);r.self.logger.warn(e)}}Y.checkStrictMode=$o;var gt={};Object.defineProperty(gt,"__esModule",{value:!0});const Le=ie,Bc={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")};gt.default=Bc,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=ie,t=Y,s=gt;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,h,b){const{it:$}=m,{gen:S,compositeRule:O,allErrors:N}=$,R=p(m,y,h);b??(O||N)?d(S,R):o($,(0,e._)`[${R}]`)}r.reportError=n;function a(m,y=r.keywordError,h){const{it:b}=m,{gen:$,compositeRule:S,allErrors:O}=b,N=p(m,y,h);d($,N),S||O||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 l({gen:m,keyword:y,schemaValue:h,data:b,errsCount:$,it:S}){if($===void 0)throw new Error("ajv implementation error");const O=m.name("err");m.forRange("i",$,s.default.errors,N=>{m.const(O,(0,e._)`${s.default.vErrors}[${N}]`),m.if((0,e._)`${O}.instancePath === undefined`,()=>m.assign((0,e._)`${O}.instancePath`,(0,e.strConcat)(s.default.instancePath,S.errorPath))),m.assign((0,e._)`${O}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${y}`),S.opts.verbose&&(m.assign((0,e._)`${O}.schema`,h),m.assign((0,e._)`${O}.data`,b))})}r.extendErrors=l;function d(m,y){const h=m.const("err",y);m.if((0,e._)`${s.default.vErrors} === null`,()=>m.assign(s.default.vErrors,(0,e._)`[${h}]`),(0,e._)`${s.default.vErrors}.push(${h})`),m.code((0,e._)`${s.default.errors}++`)}function o(m,y){const{gen:h,validateName:b,schemaEnv:$}=m;$.$async?h.throw((0,e._)`new ${m.ValidationError}(${y})`):(h.assign((0,e._)`${b}.errors`,y),h.return(!1))}const u={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 p(m,y,h){const{createErrors:b}=m.it;return b===!1?(0,e._)`{}`:f(m,y,h)}function f(m,y,h={}){const{gen:b,it:$}=m,S=[_($,h),g(m,h)];return v(m,y,S),b.object(...S)}function _({errorPath:m},{instancePath:y}){const h=y?(0,e.str)`${m}${(0,t.getErrorPath)(y,t.Type.Str)}`:m;return[s.default.instancePath,(0,e.strConcat)(s.default.instancePath,h)]}function g({keyword:m,it:{errSchemaPath:y}},{schemaPath:h,parentSchema:b}){let $=b?y:(0,e.str)`${y}/${m}`;return h&&($=(0,e.str)`${$}${(0,t.getErrorPath)(h,t.Type.Str)}`),[u.schemaPath,$]}function v(m,{params:y,message:h},b){const{keyword:$,data:S,schemaValue:O,it:N}=m,{opts:R,propertyName:V,topSchemaRef:I,schemaPath:T}=N;b.push([u.keyword,$],[u.params,typeof y=="function"?y(m):y||(0,e._)`{}`]),R.messages&&b.push([u.message,typeof h=="function"?h(m):h]),R.verbose&&b.push([u.schema,O],[u.parentSchema,(0,e._)`${I}${T}`],[s.default.data,S]),V&&b.push([u.propertyName,V])}}(dr),Object.defineProperty(cr,"__esModule",{value:!0}),cr.boolOrEmptySchema=cr.topBoolOrEmptySchema=void 0;const Rc=dr,jc=ie,Lc=gt,Vc={message:"boolean schema is false"};function zc(r){const{gen:e,schema:t,validateName:s}=r;t===!1?wo(r,!1):typeof t=="object"&&t.$async===!0?e.return(Lc.default.data):(e.assign((0,jc._)`${s}.errors`,null),e.return(!0))}cr.topBoolOrEmptySchema=zc;function Hc(r,e){const{gen:t,schema:s}=r;s===!1?(t.var(e,!1),wo(r)):t.var(e,!0)}cr.boolOrEmptySchema=Hc;function wo(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,Rc.reportError)(n,Vc,void 0,e)}var Ae={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.getRules=Zt.isJSONType=void 0;const Uc=["string","number","integer","boolean","null","object","array"],Gc=new Set(Uc);function qc(r){return typeof r=="string"&&Gc.has(r)}Zt.isJSONType=qc;function Wc(){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=Wc;var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.shouldUseRule=Nt.shouldUseGroup=Nt.schemaHasRulesForType=void 0;function Kc({schema:r,self:e},t){const s=e.RULES.types[t];return s&&s!==!0&&Eo(r,s)}Nt.schemaHasRulesForType=Kc;function Eo(r,e){return e.rules.some(t=>So(r,t))}Nt.shouldUseGroup=Eo;function So(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=So,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.reportTypeError=Ae.checkDataTypes=Ae.checkDataType=Ae.coerceAndCheckDataType=Ae.getJSONTypes=Ae.getSchemaTypes=Ae.DataType=void 0;const Xc=Zt,Yc=Nt,Zc=dr,le=ie,xo=Y;var pr;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(pr||(Ae.DataType=pr={}));function Jc(r){const e=Ao(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}Ae.getSchemaTypes=Jc;function Ao(r){const e=Array.isArray(r)?r:r?[r]:[];if(e.every(Xc.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ae.getJSONTypes=Ao;function Qc(r,e){const{gen:t,data:s,opts:n}=r,a=ed(e,n.coerceTypes),i=e.length>0&&!(a.length===0&&e.length===1&&(0,Yc.schemaHasRulesForType)(r,e[0]));if(i){const l=nn(e,s,n.strictNumbers,pr.Wrong);t.if(l,()=>{a.length?td(r,e,a):an(r)})}return i}Ae.coerceAndCheckDataType=Qc;const Co=new Set(["string","number","integer","boolean","null"]);function ed(r,e){return e?r.filter(t=>Co.has(t)||e==="array"&&t==="array"):[]}function td(r,e,t){const{gen:s,data:n,opts:a}=r,i=s.let("dataType",(0,le._)`typeof ${n}`),l=s.let("coerced",(0,le._)`undefined`);a.coerceTypes==="array"&&s.if((0,le._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,le._)`${n}[0]`).assign(i,(0,le._)`typeof ${n}`).if(nn(e,n,a.strictNumbers),()=>s.assign(l,n))),s.if((0,le._)`${l} !== undefined`);for(const o of t)(Co.has(o)||o==="array"&&a.coerceTypes==="array")&&d(o);s.else(),an(r),s.endIf(),s.if((0,le._)`${l} !== undefined`,()=>{s.assign(n,l),rd(r,l)});function d(o){switch(o){case"string":s.elseIf((0,le._)`${i} == "number" || ${i} == "boolean"`).assign(l,(0,le._)`"" + ${n}`).elseIf((0,le._)`${n} === null`).assign(l,(0,le._)`""`);return;case"number":s.elseIf((0,le._)`${i} == "boolean" || ${n} === null
19
+ */var Ls,Ca;function cc(){if(Ca)return Ls;Ca=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=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={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(d.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(u){o[u]=u}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ls=n()?Object.assign:function(a,i){for(var l,d=s(a),o,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)e.call(l,f)&&(d[f]=l[f]);if(t){o=t(l);for(var m=0;m<o.length;m++)r.call(l,o[m])&&(d[o[m]]=l[o[m]])}}return d},Ls}var Vs,Ta;function zs(){if(Ta)return Vs;Ta=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vs=t,Vs}var Oa,Pa;function Na(){return Pa||(Pa=1,Oa=Function.call.bind(Object.prototype.hasOwnProperty)),Oa}var Hs,Ia;function dc(){if(Ia)return Hs;Ia=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=zs(),r={},s=Na();t=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(a,i,l,d,o){if(process.env.NODE_ENV!=="production"){for(var u in a)if(s(a,u)){var f;try{if(typeof a[u]!="function"){var m=Error((d||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=a[u](i,u,d,l,null,e)}catch(g){f=g}if(f&&!(f instanceof Error)&&t((d||"React class")+": type specification of "+l+" `"+u+"` 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 r)){r[f.message]=!0;var _=o?o():"";t("Failed "+l+" type: "+f.message+(_??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Hs=n,Hs}var Us,Da;function hc(){if(Da)return Us;Da=1;var t=Aa(),e=cc(),r=zs(),s=Na(),n=dc(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return Us=function(l,d){var o=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(P){var k=P&&(o&&P[o]||P[u]);if(typeof k=="function")return k}var m="<<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:h(),arrayOf:b,element:w(),elementType:S(),instanceOf:O,node:D(),objectOf:j,oneOf:I,oneOfType:V,shape:B,exact:R};function g(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 p(P){if(process.env.NODE_ENV!=="production")var k={},x=0;function E($,C,L,F,z,G,J){if(F=F||m,G=G||L,J!==r){if(d){var U=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 U.name="Invariant Violation",U}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=F+":"+L;!k[fe]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+F+"`. 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[fe]=!0,x++)}}return C[L]==null?$?C[L]===null?new v("The "+z+" `"+G+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new v("The "+z+" `"+G+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:P(C,L,F,z,G)}var c=E.bind(null,!1);return c.isRequired=E.bind(null,!0),c}function y(P){function k(x,E,c,$,C,L){var F=x[E],z=q(F);if(z!==P){var G=se(F);return new v("Invalid "+$+" `"+C+"` of type "+("`"+G+"` supplied to `"+c+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return p(k)}function h(){return p(i)}function b(P){function k(x,E,c,$,C){if(typeof P!="function")return new v("Property `"+C+"` of component `"+c+"` has invalid PropType notation inside arrayOf.");var L=x[E];if(!Array.isArray(L)){var F=q(L);return new v("Invalid "+$+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected an array."))}for(var z=0;z<L.length;z++){var G=P(L,z,c,$,C+"["+z+"]",r);if(G instanceof Error)return G}return null}return p(k)}function w(){function P(k,x,E,c,$){var C=k[x];if(!l(C)){var L=q(C);return new v("Invalid "+c+" `"+$+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement."))}return null}return p(P)}function S(){function P(k,x,E,c,$){var C=k[x];if(!t.isValidElementType(C)){var L=q(C);return new v("Invalid "+c+" `"+$+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement type."))}return null}return p(P)}function O(P){function k(x,E,c,$,C){if(!(x[E]instanceof P)){var L=P.name||m,F=ne(x[E]);return new v("Invalid "+$+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected ")+("instance of `"+L+"`."))}return null}return p(k)}function I(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(x,E,c,$,C){for(var L=x[E],F=0;F<P.length;F++)if(g(L,P[F]))return null;var z=JSON.stringify(P,function(G,J){var U=se(J);return U==="symbol"?String(J):J});return new v("Invalid "+$+" `"+C+"` of value `"+String(L)+"` "+("supplied to `"+c+"`, expected one of "+z+"."))}return p(k)}function j(P){function k(x,E,c,$,C){if(typeof P!="function")return new v("Property `"+C+"` of component `"+c+"` has invalid PropType notation inside objectOf.");var L=x[E],F=q(L);if(F!=="object")return new v("Invalid "+$+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected an object."));for(var z in L)if(s(L,z)){var G=P(L,z,c,$,C+"."+z,r);if(G instanceof Error)return G}return null}return p(k)}function V(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 x=P[k];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(x)+" at index "+k+"."),i}function E(c,$,C,L,F){for(var z=[],G=0;G<P.length;G++){var J=P[G],U=J(c,$,C,L,F,r);if(U==null)return null;U.data&&s(U.data,"expectedType")&&z.push(U.data.expectedType)}var fe=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new v("Invalid "+L+" `"+F+"` supplied to "+("`"+C+"`"+fe+"."))}return p(E)}function D(){function P(k,x,E,c,$){return H(k[x])?null:new v("Invalid "+c+" `"+$+"` supplied to "+("`"+E+"`, expected a ReactNode."))}return p(P)}function T(P,k,x,E,c){return new v((P||"React class")+": "+k+" type `"+x+"."+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+c+"`.")}function B(P){function k(x,E,c,$,C){var L=x[E],F=q(L);if(F!=="object")return new v("Invalid "+$+" `"+C+"` of type `"+F+"` "+("supplied to `"+c+"`, expected `object`."));for(var z in P){var G=P[z];if(typeof G!="function")return T(c,$,C,z,se(G));var J=G(L,z,c,$,C+"."+z,r);if(J)return J}return null}return p(k)}function R(P){function k(x,E,c,$,C){var L=x[E],F=q(L);if(F!=="object")return new v("Invalid "+$+" `"+C+"` of type `"+F+"` "+("supplied to `"+c+"`, expected `object`."));var z=e({},x[E],P);for(var G in z){var J=P[G];if(s(P,G)&&typeof J!="function")return T(c,$,C,G,se(J));if(!J)return new v("Invalid "+$+" `"+C+"` key `"+G+"` supplied to `"+c+"`.\nBad object: "+JSON.stringify(x[E],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var U=J(L,G,c,$,C+"."+G,r);if(U)return U}return null}return p(k)}function H(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(H);if(P===null||l(P))return!0;var k=f(P);if(k){var x=k.call(P),E;if(k!==P.entries){for(;!(E=x.next()).done;)if(!H(E.value))return!1}else for(;!(E=x.next()).done;){var c=E.value;if(c&&!H(c[1]))return!1}}else return!1;return!0;default:return!1}}function K(P,k){return P==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function q(P){var k=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":K(k,P)?"symbol":k}function se(P){if(typeof P>"u"||P===null)return""+P;var k=q(P);if(k==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return k}function Z(P){var k=se(P);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function ne(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return _.checkPropTypes=n,_.resetWarningCache=n.resetWarningCache,_.PropTypes=_,_},Us}var Gs,Ma;function pc(){if(Ma)return Gs;Ma=1;var t=zs();function e(){}function r(){}return r.resetWarningCache=e,Gs=function(){function s(i,l,d,o,u,f){if(f!==t){var m=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 m.name="Invariant Violation",m}}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:r,resetWarningCache:e};return a.PropTypes=a,a},Gs}if(process.env.NODE_ENV!=="production"){var fc=Aa(),mc=!0;js.exports=hc()(fc.isElement,mc)}else js.exports=pc()();var gc=js.exports;const A=ic(gc);var Fa=(t=>(t.Primary="primary",t.Secondary="secondary",t.Info="info",t.Success="success",t.Danger="danger",t.Warning="warning",t.Neutral="neutral",t))(Fa||{}),Ba=(t=>(t.Solid="solid",t.Outline="outline",t.Text="text",t))(Ba||{}),ja=(t=>(t.Large="lg",t.Medium="md",t.Small="sm",t))(ja||{}),Ra=(t=>(t.Right="right",t.Left="left",t))(Ra||{});const rs={props:{color:{options:Object.values(Fa)},variant:{options:Object.values(Ba)},size:{options:Object.values(ja)},iconPosition:{options:Object.values(Ra)}}};var La=(t=>(t.Primary="primary",t.PrimaryLightest="primary-lightest",t.PrimaryLighter="primary-lighter",t.PrimaryLight="primary-light",t.PrimaryDark="primary-dark",t.PrimaryDarker="primary-darker",t.Neutral90="neutral-90",t.Neutral80="neutral-80",t.Neutral60="neutral-60",t.Neutral40="neutral-40",t.Neutral20="neutral-20",t.Neutral10="neutral-10",t.Neutral05="neutral-05",t.Neutral00="neutral-00",t.Secondary="secondary",t.SecondaryLightest="secondary-lightest",t.SecondaryLighter="secondary-lighter",t.SecondaryLight="secondary-light",t.SecondaryDark="secondary-dark",t.SecondaryDarker="secondary-darker",t.Success="success",t.SuccessLighter="success-lighter",t.SuccessLight="success-light",t.SuccessDark="success-dark",t.Warning="warning",t.WarningLighter="warning-lighter",t.WarningLight="warning-light",t.WarningDark="warning-dark",t.Danger="danger",t.DangerLighter="danger-lighter",t.DangerLight="danger-light",t.DangerDark="danger-dark",t.Info="info",t.InfoLighter="info-lighter",t.InfoLight="info-light",t.InfoDark="info-dark",t))(La||{}),Va=(t=>(t.Outlined="outlined",t.Rounded="rounded",t.Sharp="sharp",t))(Va||{}),za=(t=>(t.XXS="xxs",t.XS="xs",t.SM="sm",t.MD="md",t.LG="lg",t.XL="xl",t.XXL="xxl",t.XXXL="xxxl",t.Huge="huge",t))(za||{}),Ha=(t=>(t.Bold="bold",t.Semibold="semibold",t.Medium="medium",t.Regular="regular",t.Light="light",t.Extralight="extralight",t))(Ha||{});const rt={class:"ds-icon",props:{color:{default:"neutral-90",options:Object.values(La)},image:{default:"settings"},variation:{options:Object.values(Va)},size:{default:"md",options:Object.values(za)},fill:{default:!1},testId:{default:"ds-icon-test"},weight:{default:"semibold",options:Object.values(Ha)},onClick:{default:()=>({})}}};var ss=(t=>(t["primary-darker"]="primary--darker",t["primary-dark"]="primary--dark",t["primary-light"]="primary--light",t["primary-lighter"]="primary--lighter",t["primary-lightest"]="primary--lightest",t["secondary-darker"]="secondary--darker",t["secondary-dark"]="secondary--dark",t["secondary-light"]="secondary--light",t["secondary-lighter"]="secondary--lighter",t["secondary-lightest"]="secondary--lightest",t["success-dark"]="success--dark",t["success-light"]="success--light",t["success-lighter"]="success--lighter",t["warning-dark"]="warning--dark",t["warning-light"]="warning--light",t["warning-lighter"]="warning--lighter",t["danger-dark"]="danger--dark",t["danger-light"]="danger--light",t["danger-lighter"]="danger--lighter",t["info-dark"]="info--dark",t["info-light"]="info--light",t["info-lighter"]="info--lighter",t))(ss||{});const yc={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},Ae=({image:t=rt.props.image.default,color:e=rt.props.color.default,className:r,size:s=rt.props.size.default,fill:n=rt.props.fill.default,weight:a=rt.props.weight.default,testId:i=rt.props.testId.default,onClick:l=rt.props.onClick.default})=>{const d="material-symbols-rounded",o=e&&rt.props.color.options.find(f=>f===e)&&`color__${ss[e]??e}`,u=X.useMemo(()=>({fontVariationSettings:`'FILL' ${n?1:0}, 'GRAD' 0,'wght' ${yc[a]}, 'opsz' 48`}),[a,n]);return M.jsx("i",{className:[`${rt.class}--${s}`,rt.class,d,o,r].filter(f=>f).join(" "),"data-testid":i,onClick:l,style:u,translate:"no",children:t})};Ae.propTypes={color:A.oneOf(rt.props.color.options),image:A.string,fontVariationSettings:A.object,size:A.oneOf(rt.props.size.options),fill:A.bool,weight:A.oneOf(rt.props.weight.options),onClick:A.func},Ae.displayName="DsIcon",A.oneOf(rs.props.color.options),A.oneOf(rs.props.variant.options),A.oneOf(rs.props.size.options),A.bool,A.string,A.bool,A.oneOf(rs.props.iconPosition.options),A.string,A.string,A.bool,A.string,A.string,A.node.isRequired,A.string,A.string;var Ws=(t=>(t.None="",t.PrimaryDarker="primary-darker",t.PrimaryDark="primary-dark",t.Primary="primary",t.PrimaryLight="primary-light",t.PrimaryLighter="primary-lighter",t.PrimaryLightest="primary-lightest",t.SecondaryDarker="secondary-darker",t.SecondaryDark="secondary-dark",t.Secondary="secondary",t.SecondaryLight="secondary-light",t.SecondaryLighter="secondary-lighter",t.SecondaryLightest="secondary-lightest",t.Neutral90="neutral-90",t.Neutral80="neutral-80",t.Neutral60="neutral-60",t.Neutral40="neutral-40",t.Neutral20="neutral-20",t.Neutral10="neutral-10",t.Neutral05="neutral-05",t.Neutral00="neutral-00",t.SuccessDark="success-dark",t.Success="success",t.SuccessLight="success-light",t.SuccessLighter="success-lighter",t.WarningDark="warning-dark",t.Warning="warning",t.WarningLight="warning-light",t.WarningLighter="warning-lighter",t.DangerDark="danger-dark",t.Danger="danger",t.DangerLight="danger-light",t.DangerLighter="danger-lighter",t.InfoDark="info-dark",t.Info="info",t.InfoLight="info-light",t.InfoLighter="info-lighter",t))(Ws||{});const Tt={class:"ds-card",props:{backgroundColor:{default:"",options:Object.values(Ws)},borderColor:{default:"",options:Object.values(Ws)},elevation:{default:0,options:[0,1,2,3,4]},testId:{default:"ds-card"},trackId:{default:"track-click"}}},hr=({id:t,testId:e=Tt.props.testId.default,children:r,className:s,elevation:n=Tt.props.elevation.default,backgroundColor:a=Tt.props.backgroundColor.default,borderColor:i=Tt.props.borderColor.default,trackId:l=Tt.props.trackId.default,trackLabel:d})=>{const o=n&&`elevation-${n}`,u=i&&`border-color__${ss[i]??i}`,f=a&&`bg-color__${ss[a]??a}`;return M.jsx("div",{className:[Tt.class,s,o,u,f].filter(m=>m).join(" "),"data-testid":e,"data-trackid":l,...d&&{"data-tracklabel":d},id:t,children:r})};hr.propTypes={id:A.string,testId:A.string,backgroundColor:A.oneOf(Tt.props.backgroundColor.options),borderColor:A.oneOf(Tt.props.borderColor.options),elevation:A.oneOf(Tt.props.elevation.options),trackId:A.string,trackLabel:A.string},hr.displayName="DsCard";const We={class:"ds-checkbox",props:{testId:{default:"ds-checkbox-test"},label:{default:""},description:{default:""},checked:{default:!1},disabled:{default:!1},changeByChecked:{default:!1}}},Ua=X.forwardRef(({id:t,className:e,name:r,testId:s=We.props.testId.default,label:n=We.props.label.default,description:a=We.props.description.default,checked:i=We.props.checked.default,disabled:l=We.props.disabled.default,changeByChecked:d=We.props.changeByChecked.default,onChangeHandler:o},u)=>{const f=d??!1,m=i??!1,[_,g]=X.useState(m),v={image:_?"check_box":"check_box_outline_blank",class:_?`${We.class}__icon--checked`:`${We.class}__icon--unchecked`},p=l&&`${We.class}--disabled`,y=h=>{l||(g(b=>!b),o&&o(h))};return X.useEffect(()=>{f&&g(i)},[i,f]),M.jsxs("label",{className:[We.class,p,e].join(" "),htmlFor:t||r,children:[M.jsx("input",{checked:_,className:`${We.class}__input`,"data-testid":s,disabled:l,id:t||r,name:r,onChange:y,ref:u,type:"checkbox"}),M.jsx(Ae,{className:`${We.class}__icon ${v.class}`,fill:!0,image:v.image,size:"xxl",testId:`${s}-icon`}),(a||n)&&M.jsxs("div",{className:`${We.class}__label`,children:[n&&M.jsx("label",{className:`${We.class}__label-title`,htmlFor:t||r,children:n}),a&&M.jsx("label",{className:`${We.class}__label-description`,htmlFor:t||r,children:a})]})]})});Ua.propTypes={label:A.oneOfType([A.string,A.element]),name:A.string,className:A.string,testId:A.string,description:A.oneOfType([A.string,A.element]),checked:A.bool,disabled:A.bool},Ua.displayName="DsCheckbox";var Ga=(t=>(t.Heading1="heading-1",t.Heading2="heading-2",t.Heading3="heading-3",t.Heading4="heading-4",t.Heading5="heading-5",t.Heading6="heading-6",t))(Ga||{});const Or={class:"ds-heading",props:{type:{default:"heading-1",options:Object.values(Ga)}}},bt=({children:t,testId:e="ds-heading-test",type:r=Or.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.replace("heading-",""),i=Or.props.type.options.find(d=>d===r)&&`${Or.class}--${a}`,l=n[r];return M.jsx(l,{className:[Or.class,i,s].filter(d=>d).join(" "),"data-testid":e,children:t})};bt.propTypes={className:A.string,testId:A.string,type:A.oneOf(Or.props.type.options)},bt.displayName="DsHeading";var Wa=(t=>(t.None="",t.Dashed="dashed",t.Dotted="dotted",t))(Wa||{}),Ka=(t=>(t.None="",t.Small="small",t.Large="large",t))(Ka||{});const Yt={class:"ds-hr",props:{borderStyle:{type:String,default:"",options:Object.values(Wa)},size:{type:String,default:"",options:Object.values(Ka)}}};function qa(t,e,r){const s=r.props[t];return s.options&&s.options.some(n=>n===e)?`${r.class}--${e}`:""}const Ks=({size:t=Yt.props.size.default,borderStyle:e=Yt.props.borderStyle.default})=>{const r=qa("size",t,Yt),s=qa("borderStyle",e,Yt);return M.jsx("hr",{className:`${Yt.class} ${r} ${s}`.trim()})};Ks.propTypes={size:A.oneOf(Yt.props.size.options),borderStyle:A.oneOf(Yt.props.borderStyle.options)},Ks.displayName="DsHR";function Rt(t){return typeof t=="string"||t instanceof String}function Xa(t){var e;return typeof t=="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function Ya(t,e){return Array.isArray(e)?Ya(t,(r,s)=>e.includes(s)):Object.entries(t).reduce((r,s)=>{let[n,a]=s;return e(a,n)&&(r[n]=a),r},{})}const te={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function vc(t){switch(t){case te.LEFT:return te.FORCE_LEFT;case te.RIGHT:return te.FORCE_RIGHT;default:return t}}function qs(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function ns(t,e){if(e===t)return!0;const r=Array.isArray(e),s=Array.isArray(t);let n;if(r&&s){if(e.length!=t.length)return!1;for(n=0;n<e.length;n++)if(!ns(e[n],t[n]))return!1;return!0}if(r!=s)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){const a=e instanceof Date,i=t instanceof Date;if(a&&i)return e.getTime()==t.getTime();if(a!=i)return!1;const l=e instanceof RegExp,d=t instanceof RegExp;if(l&&d)return e.toString()==t.toString();if(l!=d)return!1;const o=Object.keys(e);for(n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=0;n<o.length;n++)if(!ns(t[o[n]],e[o[n]]))return!1;return!0}else if(e&&t&&typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();return!1}class _c{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?te.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?te.RIGHT:te.LEFT}}function ae(t,e){return new ae.InputMask(t,e)}function Za(t){if(t==null)throw new Error("mask property should be defined");return t instanceof RegExp?ae.MaskedRegExp:Rt(t)?ae.MaskedPattern:t===Date?ae.MaskedDate:t===Number?ae.MaskedNumber:Array.isArray(t)||t===Array?ae.MaskedDynamic:ae.Masked&&t.prototype instanceof ae.Masked?t:ae.Masked&&t instanceof ae.Masked?t.constructor:t instanceof Function?ae.MaskedFunction:(console.warn("Mask not found for mask",t),ae.Masked)}function Pr(t){if(!t)throw new Error("Options in not defined");if(ae.Masked){if(t.prototype instanceof ae.Masked)return{mask:t};const{mask:e=void 0,...r}=t instanceof ae.Masked?{mask:t}:Xa(t)&&t.mask instanceof ae.Masked?t:{};if(e){const s=e.mask;return{...Ya(e,(n,a)=>!a.startsWith("_")),mask:e.constructor,_mask:s,...r}}}return Xa(t)?{...t}:{mask:t}}function Ot(t){if(ae.Masked&&t instanceof ae.Masked)return t;const e=Pr(t),r=Za(e.mask);if(!r)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===r&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new r(e)}ae.createMask=Ot;let Xs=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,r){if(!(e==null||r==null||e===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(e,r)}catch{}}get isActive(){return!1}};ae.MaskElement=Xs;const Ja=90,bc=89;let as=class extends Xs{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,r,s;return(e=(r=(s=this.input).getRootNode)==null?void 0:r.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===bc&&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={}}};ae.HTMLMaskElement=as;let kc=class extends as{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,r){this.input.setSelectionRange(e,r)}get value(){return this.input.value}set value(e){this.input.value=e}};ae.HTMLMaskElement=as;let Qa=class extends as{get _unsafeSelectionStart(){const e=this.rootElement,r=e.getSelection&&e.getSelection(),s=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||s==null||s<n?s:n}get _unsafeSelectionEnd(){const e=this.rootElement,r=e.getSelection&&e.getSelection(),s=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||s==null||s>n?s:n}_unsafeSelect(e,r){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,r);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}};ae.HTMLContenteditableMaskElement=Qa;let eo=class ac{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>ac.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}};eo.MAX_LENGTH=100;class wc{constructor(e,r){this.el=e instanceof Xs?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new Qa(e):new kc(e),this.masked=Ot(r),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new eo,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.updateValue(),this._onChange()}maskEquals(e){var r;return e==null||((r=this.masked)==null?void 0:r.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof ae.Masked)&&this.masked.constructor===Za(e)){this.masked.updateOptions({mask:e});return}const r=e instanceof ae.Masked?e:Ot({mask:e});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}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,r){const s=this._listeners[e];s&&s.forEach(n=>n(r))}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 r=this.masked.unmaskedValue,s=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==r||this.value!==s||this._rawInputValue!==n;this._unmaskedValue=r,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:r,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:r,...s}=e,n=!this.maskEquals(r),a=this.masked.optionsIsChanged(s);n&&(this.mask=r),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,te.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,r){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(r),this}off(e,r){if(!this._listeners[e])return this;if(!r)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(r);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const r=new _c({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,n=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,a=s===this.masked.rawInputValue?r.removeDirection:te.NONE;let i=this.masked.nearestInputPos(r.startChangePos+n,a);a!==te.NONE&&(i=this.masked.nearestInputPos(i,te.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}}ae.InputMask=wc;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}}ae.ChangeDetails=ue;class kt{constructor(e,r,s){e===void 0&&(e=""),r===void 0&&(r=0),this.value=e,this.from=r,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 r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}let ot=class Bs{constructor(e){this._value="",this._update({...Bs.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,r){r===void 0&&(r={input:!0}),this.reset(),this.append(e,r,""),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,r){return e}totalInputPositions(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-e)}extractInput(e,r,s){return e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(e,r)}extractTail(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),new kt(this.extractInput(e,r),e)}appendTail(e){return Rt(e)&&(e=new kt(String(e))),e.appendTo(this)}_appendCharRaw(e,r){return e?(this._value+=e,new ue({inserted:e,rawInserted:e})):new ue}_appendChar(e,r,s){r===void 0&&(r={});const n=this.state;let a;if([e,a]=this.doPrepareChar(e,r),e&&(a=a.aggregate(this._appendCharRaw(e,r)),!a.rawInserted&&this.autofix==="pad")){const i=this.state;this.state=n;let l=this.pad(r);const d=this._appendCharRaw(e,r);l=l.aggregate(d),d.rawInserted||l.equals(a)?a=l:this.state=i}if(a.inserted){let i,l=this.doValidate(r)!==!1;if(l&&s!=null){const d=this.state;if(this.overwrite===!0){i=s.state;for(let u=0;u<a.rawInserted.length;++u)s.unshift(this.displayValue.length-a.tailShift)}let o=this.appendTail(s);if(l=o.rawInserted.length===s.toString().length,!(l&&o.inserted)&&this.overwrite==="shift"){this.state=d,i=s.state;for(let u=0;u<a.rawInserted.length;++u)s.shift();o=this.appendTail(s),l=o.rawInserted.length===s.toString().length}l&&o.inserted&&(this.state=d)}l||(a=new ue,this.state=n,s&&i&&(s.state=i))}return a}_appendPlaceholder(){return new ue}_appendEager(){return new ue}append(e,r,s){if(!Rt(e))throw new Error("value should be string");const n=Rt(s)?new kt(String(s)):s;r!=null&&r.tail&&(r._beforeTailState=this.state);let a;[e,a]=this.doPrepare(e,r);for(let i=0;i<e.length;++i){const l=this._appendChar(e[i],r,n);if(!l.rawInserted&&!this.doSkipInvalid(e[i],r,n))break;a.aggregate(l)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&e&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(r),new ue}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const r=this.rawInputValue,s=this.value,n=e();return this.rawInputValue=r,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 r=this.state,s=e(this);return this.state=r,delete this._isolated,s}doSkipInvalid(e,r,s){return!!this.skipInvalid}doPrepare(e,r){return r===void 0&&(r={}),ue.normalize(this.prepare?this.prepare(e,this,r):e)}doPrepareChar(e,r){return r===void 0&&(r={}),ue.normalize(this.prepareChar?this.prepareChar(e,this,r):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,r,s,n,a){s===void 0&&(s=""),n===void 0&&(n=te.NONE),a===void 0&&(a={input:!0});const i=e+r,l=this.extractTail(i),d=this.eager===!0||this.eager==="remove";let o;d&&(n=vc(n),o=this.extractInput(0,i,{raw:!0}));let u=e;const f=new ue;if(n!==te.NONE&&(u=this.nearestInputPos(e,r>1&&e!==0&&!d?te.NONE:n),f.tailShift=u-e),f.aggregate(this.remove(u)),d&&n!==te.NONE&&o===this.rawInputValue)if(n===te.FORCE_LEFT){let m;for(;o===this.rawInputValue&&(m=this.displayValue.length);)f.aggregate(new ue({tailShift:-1})).aggregate(this.remove(m-1))}else n===te.FORCE_RIGHT&&l.unshift();return f.aggregate(this.append(s,a,l))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!ns(this,e)}typedValueEquals(e){const r=this.typedValue;return e===r||Bs.EMPTY_VALUES.includes(e)&&Bs.EMPTY_VALUES.includes(r)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new ue}};ot.DEFAULTS={skipInvalid:!0},ot.EMPTY_VALUES=[void 0,null,""],ae.Masked=ot;class Zt{constructor(e,r){e===void 0&&(e=[]),r===void 0&&(r=0),this.chunks=e,this.from=r}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=Rt(e)?new kt(String(e)):e;const r=this.chunks[this.chunks.length-1],s=r&&(r.stop===e.stop||e.stop==null)&&e.from===r.from+r.toString().length;if(e instanceof kt)s?r.extend(e.toString()):this.chunks.push(e);else if(e instanceof Zt){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 ae.MaskedPattern))return new kt(this.toString()).appendTo(e);const r=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 l;if(i!=null&&(!a||a.index<=i)&&((n instanceof Zt||e._stops.indexOf(i)>=0)&&r.aggregate(e._appendPlaceholder(i)),l=n instanceof Zt&&e._blocks[i]),l){const d=l.appendTail(n);r.aggregate(d);const o=n.toString().slice(d.rawInserted.length);o&&r.aggregate(e.append(o,{tail:!0}))}else r.aggregate(e.append(n.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:r,...s}=e;Object.assign(this,s),this.chunks=r.map(n=>{const a="chunks"in n?new Zt:new kt;return a.state=n,a})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const r=e!=null?e-this.from:e;let s=0;for(;s<this.chunks.length;){const n=this.chunks[s],a=n.unshift(r);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 r=this.chunks[e],s=r.shift();if(r.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}let $c=class{constructor(e,r){this.masked=e,this._log=[];const{offset:s,index:n}=e._mapPosToBlock(r)||(r<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=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;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,te.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,te.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,te.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,te.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,te.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,te.NONE),!0})}},to=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,r){return e===void 0&&(e=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(r),this._value||(this._isRawInput=!1),new ue}nearestInputPos(e,r){r===void 0&&(r=te.NONE);const s=0,n=this._value.length;switch(r){case te.LEFT:case te.FORCE_LEFT:return s;case te.NONE:case te.RIGHT:case te.FORCE_RIGHT:default:return n}}totalInputPositions(e,r){return e===void 0&&(e=0),r===void 0&&(r=this._value.length),this._isRawInput?r-e:0}extractInput(e,r,s){return e===void 0&&(e=0),r===void 0&&(r=this._value.length),s===void 0&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,r){if(r===void 0&&(r={}),this.isFilled)return new ue;const s=this.eager===!0||this.eager==="append",n=this.char===e&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!s)&&!r.tail,a=new ue({inserted:this.char,rawInserted:n?this.char:""});return this._value=this.char,this._isRawInput=n&&(r.raw||r.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 Rt(e)&&(e=new kt(String(e))),e.appendTo(this)}append(e,r,s){const n=this._appendChar(e[0],r);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()}},os=class{constructor(e){const{parent:r,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:l,...d}=e;this.masked=Ot(d),Object.assign(this,{parent:r,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:l})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.value.length),e===0&&r>=1?(this.isFilled=!1,this.masked.remove(e,r)):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,r){if(r===void 0&&(r={}),this.isFilled)return new ue;const s=this.masked.state;let n=this.masked._appendChar(e,this.currentMaskFlags(r));return n.inserted&&this.doValidate(r)===!1&&(n=new ue,this.masked.state=s),!n.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(e,r,s){return this.masked.append(e,this.currentMaskFlags(r),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new ue:(this.isFilled=!0,new ue({inserted:this.placeholderChar}))}_appendEager(){return new ue}extractTail(e,r){return this.masked.extractTail(e,r)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,r,s){return e===void 0&&(e=0),r===void 0&&(r=this.value.length),this.masked.extractInput(e,r,s)}nearestInputPos(e,r){r===void 0&&(r=te.NONE);const s=0,n=this.value.length,a=Math.min(Math.max(e,s),n);switch(r){case te.LEFT:case te.FORCE_LEFT:return this.isComplete?a:s;case te.RIGHT:case te.FORCE_RIGHT:return this.isComplete?a:n;case te.NONE:default:return a}}totalInputPositions(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.value.length),this.value.slice(e,r).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 r;return{...e,_beforeTailState:(e==null||(r=e._beforeTailState)==null?void 0:r.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new ue}};os.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]/,"*":/./};let Ec=class extends ot{updateOptions(e){super.updateOptions(e)}_update(e){const r=e.mask;r&&(e.validate=s=>s.search(r)>=0),super._update(e)}};ae.MaskedRegExp=Ec;class Re extends ot{constructor(e){super({...Re.DEFAULTS,...e,definitions:Object.assign({},os.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 r=this.mask;if(!r||!e)return;let s=!1,n=!1;for(let a=0;a<r.length;++a){if(this.blocks){const o=r.slice(a),u=Object.keys(this.blocks).filter(m=>o.indexOf(m)===0);u.sort((m,_)=>_.length-m.length);const f=u[0];if(f){const{expose:m,repeat:_,...g}=Pr(this.blocks[f]),v={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...g,repeat:_,parent:this},p=_!=null?new ae.RepeatBlock(v):Ot(v);p&&(this._blocks.push(p),m&&(this.exposeBlock=p),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),a+=f.length-1;continue}}let i=r[a],l=i in e;if(i===Re.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(i==="{"||i==="}"){s=!s;continue}if(i==="["||i==="]"){n=!n;continue}if(i===Re.ESCAPE_CHAR){if(++a,i=r[a],!i)break;l=!1}const d=l?new os({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Pr(e[i]),parent:this}):new to({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(d)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:r,...s}=e;this._blocks.forEach((n,a)=>n.state=r[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,r)=>e+=r.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(r),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,r)=>e+=r.value,"")}set value(e){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(r),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(r),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,r)=>e+=r.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const r=new ue;let s=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(s==null)return r;this._blocks[s].isFilled&&++s;for(let n=s;n<this._blocks.length;++n){const a=this._blocks[n]._appendEager();if(!a.inserted)break;r.aggregate(a)}return r}_appendCharRaw(e,r){r===void 0&&(r={});const s=this._mapPosToBlock(this.displayValue.length),n=new ue;if(!s)return n;for(let i=s.index,l;l=this._blocks[i];++i){var a;const d=l._appendChar(e,{...r,_beforeTailState:(a=r._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]});if(n.aggregate(d),d.consumed)break}return n}extractTail(e,r){e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length);const s=new Zt;return e===r||this._forEachBlocksInRange(e,r,(n,a,i,l)=>{const d=n.extractTail(i,l);d.stop=this._findStopBefore(a),d.from=this._blockStartPos(a),d instanceof Zt&&(d.blockIndex=a),s.extend(d)}),s}extractInput(e,r,s){if(e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),s===void 0&&(s={}),e===r)return"";let n="";return this._forEachBlocksInRange(e,r,(a,i,l,d)=>{n+=a.extractInput(l,d,s)}),n}_findStopBefore(e){let r;for(let s=0;s<this._stops.length;++s){const n=this._stops[s];if(n<=e)r=n;else break}return r}_appendPlaceholder(e){const r=new ue;if(this.lazy&&e==null)return r;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return r;const n=s.index,a=e??this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||e!=null){var l;r.aggregate(i._appendPlaceholder((l=i._blocks)==null?void 0:l.length))}}),r}_mapPosToBlock(e){let r="";for(let s=0;s<this._blocks.length;++s){const n=this._blocks[s],a=r.length;if(r+=n.displayValue,e<=r.length)return{index:s,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((r,s)=>r+=s.displayValue.length,0)}_forEachBlocksInRange(e,r,s){r===void 0&&(r=this.displayValue.length);const n=this._mapPosToBlock(e);if(n){const a=this._mapPosToBlock(r),i=a&&n.index===a.index,l=n.offset,d=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(s(this._blocks[n.index],n.index,l,d),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,r){e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length);const s=super.remove(e,r);return this._forEachBlocksInRange(e,r,(n,a,i,l)=>{s.aggregate(n.remove(i,l))}),s}nearestInputPos(e,r){if(r===void 0&&(r=te.NONE),!this._blocks.length)return 0;const s=new $c(this,e);if(r===te.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(r===te.LEFT||r===te.FORCE_LEFT){if(r===te.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),r===te.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:r===te.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return r===te.RIGHT||r===te.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:r===te.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,te.LEFT))):e}totalInputPositions(e,r){e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,r,(n,a,i,l)=>{s+=n.totalInputPositions(i,l)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const r=this._maskedBlocks[e];return r?r.map(s=>this._blocks[s]):[]}pad(e){const r=new ue;return this._forEachBlocksInRange(0,this.displayValue.length,s=>r.aggregate(s.pad(e))),r}}Re.DEFAULTS={...ot.DEFAULTS,lazy:!0,placeholderChar:"_"},Re.STOP_CHAR="`",Re.ESCAPE_CHAR="\\",Re.InputDefinition=os,Re.FixedDefinition=to,ae.MaskedPattern=Re;let is=class extends Re{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:r=this.to||0,from:s=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix,...i}=e;this.to=r,this.from=s,this.maxLength=Math.max(String(r).length,n),this.autofix=a;const l=String(this.from).padStart(this.maxLength,"0"),d=String(this.to).padStart(this.maxLength,"0");let o=0;for(;o<d.length&&d[o]===l[o];)++o;i.mask=d.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 r="",s="";const[,n,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(r="0".repeat(n.length)+a,s="9".repeat(n.length)+a),r=r.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9"),[r,s]}doPrepareChar(e,r){r===void 0&&(r={});let s;return[e,s]=super.doPrepareChar(e.replace(/\D/g,""),r),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,r){if(r===void 0&&(r={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,r);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],r):Number(a)>this.to?!r.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],r).aggregate(this._appendCharRaw(e,r)):super._appendCharRaw(n[this.value.length],r):super._appendCharRaw(e,r)}doValidate(e){const r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;const[s,n]=this.boundaries(r);return this.from<=Number(n)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){const r=new ue;if(this.value.length===this.maxLength)return r;const s=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)r.aggregate(super._appendCharRaw("0",e));s.split("").forEach(a=>this._appendCharRaw(a))}return r}};ae.MaskedRange=is;const Sc="d{.}`m{.}`Y";class Pt extends Re{static extractPatternOptions(e){const{mask:r,pattern:s,...n}=e;return{...n,mask:Rt(r)?r:s}}constructor(e){super(Pt.extractPatternOptions({...Pt.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:r,pattern:s,blocks:n,...a}={...Pt.DEFAULTS,...e},i=Object.assign({},Pt.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:Rt(r)?r:s,blocks:i})}doValidate(e){const r=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=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(Pt.extractPatternOptions(e))}}Pt.GET_DEFAULT_BLOCKS=()=>({d:{mask:is,from:1,to:31,maxLength:2},m:{mask:is,from:1,to:12,maxLength:2},Y:{mask:is,from:1900,to:9999}}),Pt.DEFAULTS={...Re.DEFAULTS,mask:Date,pattern:Sc,format:(t,e)=>{if(!t)return"";const r=String(t.getDate()).padStart(2,"0"),s=String(t.getMonth()+1).padStart(2,"0"),n=t.getFullYear();return[r,s,n].join(".")},parse:(t,e)=>{const[r,s,n]=t.split(".").map(Number);return new Date(n,s-1,r)}},ae.MaskedDate=Pt;class ls extends ot{constructor(e){super({...ls.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(r=>{const{expose:s,...n}=Pr(r),a=Ot({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return s&&(this.exposeMask=a),a}):[])}_appendCharRaw(e,r){r===void 0&&(r={});const s=this._applyDispatch(e,r);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(r))),s}_applyDispatch(e,r,s){e===void 0&&(e=""),r===void 0&&(r={}),s===void 0&&(s="");const n=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,a=this.rawInputValue,i=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:a,l=a.slice(i.length),d=this.currentMask,o=new ue,u=d==null?void 0:d.state;return this.currentMask=this.doDispatch(e,{...r},s),this.currentMask&&(this.currentMask!==d?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),o.tailShift=this.currentMask.value.length-n.length),l&&(o.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)):u&&(this.currentMask.state=u)),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 r=new ue;return e&&r.aggregate(this._applyDispatch("",{},e)),r.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var r,s;return{...e,_beforeTailState:((r=e._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)==null?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,r,s){return r===void 0&&(r={}),s===void 0&&(s=""),this.dispatch(e,this,r,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,r){r===void 0&&(r={});let[s,n]=super.doPrepare(e,r);if(this.currentMask){let a;[s,a]=super.doPrepare(s,this.currentMaskFlags(r)),n=n.aggregate(a)}return[s,n]}doPrepareChar(e,r){r===void 0&&(r={});let[s,n]=super.doPrepareChar(e,r);if(this.currentMask){let a;[s,a]=super.doPrepareChar(s,this.currentMaskFlags(r)),n=n.aggregate(a)}return[s,n]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(r=>r.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 r=String(e);this.currentMask&&(this.currentMask.typedValue=e,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}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,r){const s=new ue;return this.currentMask&&s.aggregate(this.currentMask.remove(e,r)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:r,currentMaskRef:s,currentMask:n,...a}=e;r&&this.compiledMasks.forEach((i,l)=>i.state=r[l]),s!=null&&(this.currentMask=s,this.currentMask.state=n),super.state=a}extractInput(e,r,s){return this.currentMask?this.currentMask.extractInput(e,r,s):""}extractTail(e,r){return this.currentMask?this.currentMask.extractTail(e,r):super.extractTail(e,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,r){return this.currentMask?this.currentMask.nearestInputPos(e,r):super.nearestInputPos(e,r)}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((r,s)=>{if(!e[s])return;const{mask:n,...a}=e[s];return ns(r,a)&&r.maskEquals(n)}):super.maskEquals(e)}typedValueEquals(e){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(e))}}ls.DEFAULTS={...ot.DEFAULTS,dispatch:(t,e,r,s)=>{if(!e.compiledMasks.length)return;const n=e.rawInputValue,a=e.compiledMasks.map((i,l)=>{const d=e.currentMask===i,o=d?i.displayValue.length:i.nearestInputPos(i.displayValue.length,te.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):d||i.remove(o),i.append(t,e.currentMaskFlags(r)),i.appendTail(s),{index:l,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(o,i.nearestInputPos(i.displayValue.length,te.FORCE_LEFT)))}});return a.sort((i,l)=>l.weight-i.weight||l.totalInputPositions-i.totalInputPositions),e.compiledMasks[a[0].index]}},ae.MaskedDynamic=ls;let ro=class oc extends Re{constructor(e){super({...oc.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:r,...s}=e;if(r){const n=r.map(l=>l.length),a=Math.min(...n),i=Math.max(...n)-a;s.mask="*".repeat(a),i&&(s.mask+="["+"*".repeat(i)+"]"),this.enum=r}super._update(s)}_appendCharRaw(e,r){r===void 0&&(r={});const s=Math.min(this.nearestInputPos(0,te.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,l)=>{const d=n[0][l];l>=this.value.length||d===i.value||(i.reset(),i._appendChar(d,r))});const a=super._appendCharRaw(n[0][this.value.length],r);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,r){return e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),new kt("",e)}remove(e,r){if(e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),e===r)return new ue;const s=Math.min(super.nearestInputPos(0,te.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,r);return a.tailShift+=n-e,a}get isComplete(){return this.enum.indexOf(this.value)>=0}};ro.DEFAULTS={...Re.DEFAULTS,matchValue:(t,e,r)=>t.indexOf(e,r)===r},ae.MaskedEnum=ro;class xc extends ot{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}ae.MaskedFunction=xc;var so;let Nr=class Xt extends ot{constructor(e){super({...Xt.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",s=(this.scale?"("+qs(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+r+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 r=e.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(e,r){r===void 0&&(r={});const[s,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),r);return e&&!s&&(n.skip=!0),s&&!this.allowPositive&&!this.value&&s!=="-"&&n.aggregate(this._appendChar("-")),[s,n]}_separatorsCount(e,r){r===void 0&&(r=!1);let s=0;for(let n=0;n<e;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++s,r&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,r,s){return e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),[e,r]=this._adjustRangeWithSeparators(e,r),this._removeThousandsSeparators(super.extractInput(e,r,s))}_appendCharRaw(e,r){r===void 0&&(r={});const s=r.tail&&r._beforeTailState?r._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 l=!isNaN(i),d=!1;if(l){let m;this.min!=null&&this.min<0&&this.number<this.min&&(m=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(m=this.max),m!=null&&(this.autofix?(this._value=this.format(m,this).replace(Xt.UNMASKED_RADIX,this.radix),d||(d=a===this._value&&!r.tail)):l=!1),l&&(l=!!this._value.match(this._numberRegExp))}let o;l?o=new ue({inserted:this._value.slice(a.length),rawInserted:d?"":e,skip:d}):(this._value=a,o=new ue),this._value=this._insertThousandsSeparators(this._value);const u=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,f=this._separatorsCountFromSlice(u);return o.tailShift+=(f-n)*this.thousandsSeparator.length,o}_findSeparatorAround(e){if(this.thousandsSeparator){const r=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,r);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,r){const s=this._findSeparatorAround(e);s>=0&&(e=s);const n=this._findSeparatorAround(r);return n>=0&&(r=n+this.thousandsSeparator.length),[e,r]}remove(e,r){e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length),[e,r]=this._adjustRangeWithSeparators(e,r);const s=this.value.slice(0,e),n=this.value.slice(r),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,r){if(!this.thousandsSeparator)return e;switch(r){case te.NONE:case te.LEFT:case te.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const n=s+this.thousandsSeparator.length;if(e<n||this.value.length<=n||r===te.FORCE_LEFT)return s}break}case te.RIGHT:case te.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 r=e;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==e&&(this.unmaskedValue=this.format(r,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 r=this._removeThousandsSeparators(e).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(s,n,a,i)=>n+i),e.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const r=e.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(e,r,s){r===void 0&&(r={});const n=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===Xt.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,r,s)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Xt.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(Xt.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)||Xt.EMPTY_VALUES.includes(e)&&Xt.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}};so=Nr,Nr.UNMASKED_RADIX=".",Nr.EMPTY_VALUES=[...ot.EMPTY_VALUES,0],Nr.DEFAULTS={...ot.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[so.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},ae.MaskedNumber=Nr;const Ys={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function no(t,e,r){e===void 0&&(e=Ys.MASKED),r===void 0&&(r=Ys.MASKED);const s=Ot(t);return n=>s.runIsolated(a=>(a[e]=n,a[r]))}function Ac(t,e,r,s){return no(e,r,s)(t)}ae.PIPE_TYPE=Ys,ae.createPipe=no,ae.pipe=Ac;let Cc=class extends Re{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 r,s,n;const{repeat:a,...i}=Pr(e);this._blockOpts=Object.assign({},this._blockOpts,i);const l=Ot(this._blockOpts);this.repeat=(r=(s=a??l.repeat)!=null?s:this.repeat)!=null?r: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:l},eager:l.eager,overwrite:l.overwrite,skipInvalid:l.skipInvalid,lazy:l.lazy,placeholderChar:l.placeholderChar,displayChar:l.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(Ot(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,r){r===void 0&&(r={});const s=new ue;for(let d=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),o,u;o=(i=this._blocks[d])!=null?i:u=!u&&this._allocateBlock(d);++d){var n,a,i,l;const f=o._appendChar(e,{...r,_beforeTailState:(l=r._beforeTailState)==null||(l=l._blocks)==null?void 0:l[d]});if(f.skip&&u){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(f),f.consumed)break}return s}_trimEmptyTail(e,r){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;r!=null&&(i=(n=this._mapPosToBlock(r))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let l=0;for(let d=i;a<=d&&!this._blocks[d].unmaskedValue;--d,++l);l&&(this._blocks.splice(i-l+1,l),this.mask=this.mask.slice(l))}reset(){super.reset(),this._trimEmptyTail()}remove(e,r){e===void 0&&(e=0),r===void 0&&(r=this.displayValue.length);const s=super.remove(e,r);return this._trimEmptyTail(e,r),s}totalInputPositions(e,r){return e===void 0&&(e=0),r==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,r)}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}};ae.RepeatBlock=Cc;try{globalThis.IMask=ae}catch{}const ao={mask:A.oneOfType([A.array,A.func,A.string,A.instanceOf(RegExp),A.oneOf([Date,Number,ae.Masked]),A.instanceOf(ae.Masked)]),value:A.any,unmask:A.oneOfType([A.bool,A.oneOf(["typed"])]),prepare:A.func,prepareChar:A.func,validate:A.func,commit:A.func,overwrite:A.oneOfType([A.bool,A.oneOf(["shift"])]),eager:A.oneOfType([A.bool,A.oneOf(["append","remove"])]),skipInvalid:A.bool,onAccept:A.func,onComplete:A.func,placeholderChar:A.string,displayChar:A.string,lazy:A.bool,definitions:A.object,blocks:A.object,enum:A.arrayOf(A.string),maxLength:A.number,from:A.number,to:A.number,pattern:A.string,format:A.func,parse:A.func,autofix:A.oneOfType([A.bool,A.oneOf(["pad"])]),radix:A.string,thousandsSeparator:A.string,mapToRadix:A.arrayOf(A.string),scale:A.number,normalizeZeros:A.bool,padFractionalZeros:A.bool,min:A.oneOfType([A.number,A.instanceOf(Date)]),max:A.oneOfType([A.number,A.instanceOf(Date)]),dispatch:A.func,inputRef:A.oneOfType([A.func,A.shape({current:A.object})])},oo=Object.keys(ao).filter(t=>t!=="value"),Tc=["value","unmask","onAccept","onComplete","inputRef"],Oc=oo.filter(t=>Tc.indexOf(t)<0);function Pc(t){var e;const r=(e=class extends X.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=ae(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=>Oc.indexOf(i)<0).forEach(i=>{delete a[i]}),a}_extractNonMaskProps(n){const{...a}=n;return oo.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 X.createElement(t,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),s=t.displayName||t.name||"Component";return r.displayName="IMask("+s+")",r.propTypes=ao,X.forwardRef((n,a)=>X.createElement(r,{...n,ref:a}))}const Nc=Pc(t=>{let{inputRef:e,...r}=t;return X.createElement("input",{...r,ref:e})}),Ic=(t,e)=>X.createElement(Nc,{...t,ref:e});X.forwardRef(Ic);function Dc(t,e){let{onAccept:r,onComplete:s,ref:n=X.useRef(null),defaultValue:a,defaultUnmaskedValue:i,defaultTypedValue:l}=e===void 0?{}:e;const d=X.useRef(null),[o,u]=X.useState({}),[f,m]=X.useState(""),[_,g]=X.useState(""),[v,p]=X.useState(),y=X.useCallback(()=>{var S;(S=d.current)==null||S.destroy(),d.current=null},[]),h=X.useCallback(()=>{const S=d.current;S&&(u({value:S.value,unmaskedValue:S.unmaskedValue,typedValue:S.typedValue}),p(S.typedValue),g(S.unmaskedValue),m(S.value))},[]),b=X.useCallback(S=>{const O=d.current;O&&(h(),r==null||r(O.value,O,S))},[r]),w=X.useCallback(S=>d.current&&(s==null?void 0:s(d.current.value,d.current,S)),[s]);return X.useEffect(()=>{const{value:S,...O}=o,I=d.current;!I||f===void 0||(S!==f&&(I.value=f,I.value!==f&&b()),u(O))},[f]),X.useEffect(()=>{const{unmaskedValue:S,...O}=o,I=d.current;!I||_===void 0||(S!==_&&(I.unmaskedValue=_,I.unmaskedValue!==_&&b()),u(O))},[_]),X.useEffect(()=>{const{typedValue:S,...O}=o,I=d.current;!I||v===void 0||(S!==v&&(I.typedValue=v,I.masked.typedValueEquals(v)||b()),u(O))},[v]),X.useEffect(()=>{const S=n.current;if(!S||!(t!=null&&t.mask))return y();const O=d.current;O?O==null||O.updateOptions(t):S&&t!=null&&t.mask&&(d.current=ae(S,t),h(),a!==void 0&&m(a),i!==void 0&&g(i),l!==void 0&&p(l))},[t,y,b]),X.useEffect(()=>{if(!d.current)return;const S=d.current;return S.on("accept",b),S.on("complete",w),()=>{S.off("accept",b),S.off("complete",w)}},[b,w]),X.useEffect(()=>y,[y]),{ref:n,maskRef:d,value:f,setValue:m,unmaskedValue:_,setUnmaskedValue:g,typedValue:v,setTypedValue:p}}var io=(t=>(t.Text="text",t.Password="password",t.Email="email",t.Date="date",t.Number="number",t))(io||{}),lo=(t=>(t.Small="small",t.Medium="medium",t.Large="large",t))(lo||{}),uo=(t=>(t.Default="",t.Error="error",t.Success="success",t))(uo||{}),co=(t=>(t.Center="center",t.End="end",t.Initial="initial",t))(co||{}),ho=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(ho||{});const ke={class:"ds-input",props:{testId:{default:"ds-input-test"},type:{default:"text",options:Object.values(io)},animated:{default:!0},disabled:{default:!1},size:{default:"medium",options:Object.values(lo)},status:{default:"",options:Object.values(uo)},hasFeedback:{default:!0},noMargin:{default:!1},icon:{default:""},tooltip:{default:""},tooltipPlacement:{default:"center",options:Object.values(co)},tooltipPosition:{default:"top",options:Object.values(ho)},onChangeHandler:{default:()=>({})}}},po={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:(t,e)=>(e.value+t).replace(/\D/g,"").length<=10?e.compiledMasks[0]:e.compiledMasks[1]}};var fo=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(fo||{}),mo=(t=>(t.Center="center",t.End="end",t.Initial="initial",t))(mo||{});const wt={class:"ds-tooltip",props:{position:{default:"top",options:Object.values(fo)},placement:{default:"center",options:Object.values(mo)},text:{default:""},testId:{default:"ds-tooltip"}}},Ir=({children:t,position:e=wt.props.position.default,placement:r=wt.props.placement.default,text:s=wt.props.text.default,testId:n=wt.props.testId.default,className:a})=>{const i=X.useRef(null),[l,d]=X.useState(0),[o,u]=X.useState(0),[f,m]=X.useState(!1),_=e&&wt.props.position.options.find(y=>y===e)&&`${wt.class}--${e}`,g=r&&wt.props.placement.options.find(y=>y===r)&&`${wt.class}--${r}`;let v;X.useLayoutEffect(()=>{var y,h;i.current&&(d((y=i==null?void 0:i.current)==null?void 0:y.offsetHeight),u((h=i==null?void 0:i.current)==null?void 0:h.offsetWidth))},[]);const p=9;switch(e){case"top":r==="initial"?v={bottom:l+p,left:-p}:r==="end"?v={bottom:l+p,right:-p}:v={bottom:l+p,left:"50%",transform:"translateX(-50%)"};break;case"bottom":r==="initial"?v={top:l+p,left:-p}:r==="end"?v={top:l+p,right:-p}:v={top:l+p,left:"50%",transform:"translateX(-50%)"};break;case"left":r==="initial"?v={right:o+p,top:-p}:r==="end"?v={right:o+p,bottom:-p}:v={right:o+p,top:"50%",transform:"translateY(-50%)"};break;case"right":r==="initial"?v={left:o+p,top:-p}:r==="end"?v={left:o+p,bottom:-p}:v={left:o+p,top:"50%",transform:"translateY(-50%)"};break}return M.jsxs("div",{className:[wt.class,a].join(" "),"data-testid":n,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),ref:i,role:"tooltip",children:[t,f&&M.jsx("div",{className:[_,g].filter(y=>y).join(" "),children:M.jsx("span",{className:`${wt.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:v,children:s})})]})};Ir.propTypes={position:A.string,placement:A.string,text:A.oneOfType([A.string,A.node]),testId:A.string},Ir.displayName="DsTooltip";const go=X.forwardRef(({name:t,testId:e=ke.props.testId.default,type:r=ke.props.type.default,animated:s=ke.props.animated.default,size:n=ke.props.size.default,label:a,placeholder:i,value:l,min:d,max:o,tooltip:u=ke.props.tooltip.default,tooltipPosition:f=ke.props.tooltipPosition.default,tooltipPlacement:m=ke.props.tooltipPlacement.default,icon:_=ke.props.icon.default,status:g=ke.props.status.default,feedback:v,hasFeedback:p=ke.props.hasFeedback.default,noMargin:y=ke.props.noMargin.default,disabled:h=ke.props.disabled.default,className:b,mask:w,onChangeHandler:S=ke.props.onChangeHandler.default,onBlurHandler:O,onKeyDownHandler:I,onFocusHandler:j},V)=>{const[D,T]=X.useState(!1),[B,R]=X.useState(!1),H=!!S&&!!w,K=(z,G,J)=>{if(H&&J){const U={...J,target:{...J.target,name:t,maskedValue:z,value:G.unmaskedValue,type:"text"}};S(U)}},q=X.useMemo(()=>typeof w=="object"?{lazy:!0,...w}:po[w]?{...po[w],min:d,max:o,lazy:!0}:{mask:w??"",min:d,max:o,lazy:!0},[w]),{ref:se,setUnmaskedValue:Z}=Dc(q,{onAccept:K}),ne=z=>{S&&!H&&S(z)},P=z=>{I&&I(z)},k=z=>{T(!1),O&&O(z)},x=z=>{T(!0),j&&j(z)},E=()=>{R(z=>!z)},c=X.useMemo(()=>B&&r==="password"?"text":r,[B,r]),$=()=>{const z=[`${ke.class}`];return n&&z.push(`${ke.class}--${n}`),s&&z.push(`${ke.class}--animated`),y&&z.push(`${ke.class}--no-margin`),_&&z.push(`${ke.class}--with-icon`),g&&z.push(`${ke.class}--${g}`),b&&z.push(b),z.join(" ")},C=X.useMemo(()=>{const z=[`${ke.class}__label`];return(D||l)&&z.push(`${ke.class}__label--active`),z.join(" ")},[l,D]),L=()=>!s&&i?i:"",F=()=>g&&g==="error"?"info":"check_circle";return X.useEffect(()=>{w&&Z(l??"")},[l,w,Z]),M.jsxs("div",{className:$(),ref:V,children:[p&&M.jsx("div",{className:"ds-input__feedback",children:v&&M.jsxs(M.Fragment,{children:[M.jsx(Ae,{image:F()}),v]})}),M.jsx("input",{className:"ds-input__input","data-testid":e,disabled:h,id:t,max:o,min:d,name:t,onBlur:k,onChange:ne,onFocus:x,onInput:ne,onKeyDown:P,placeholder:L(),ref:se,type:c,...!w&&{value:l??""}}),M.jsxs("label",{className:C,htmlFor:t,children:[a,u&&M.jsx(Ir,{className:"ds-input__tooltip",placement:m,position:f,text:u,children:M.jsx(Ae,{className:"ds-input__icon",image:"info"})})]}),_&&M.jsx(Ae,{className:"ds-input__icon",image:_}),r==="password"&&M.jsx(Ae,{className:"ds-input__password-icon",image:B?"visibility_off":"visibility",onClick:E,size:"xl"})]})});go.propTypes={name:A.string,testId:A.string,type:A.oneOf(ke.props.type.options),animated:A.bool,size:A.oneOf(ke.props.size.options),label:A.string,placeholder:A.string,value:A.oneOfType([A.string]),min:A.string,max:A.string,tooltip:A.string,tooltipPosition:A.string,tooltipPlacement:A.string,icon:A.string,status:A.oneOf(ke.props.status.options),feedback:A.string,hasFeedback:A.bool,noMargin:A.bool,disabled:A.bool,mask:A.oneOfType([A.string,A.object]),onChangeHandler:A.func,onFocusHandler:A.func},go.displayName="DsInput";var yo=(t=>(t.Small="small",t.Medium="medium",t.Large="large",t))(yo||{}),vo=(t=>(t.None="",t.Neutral20="neutral-20",t.Neutral10="neutral-10",t.Neutral05="neutral-05",t.Neutral00="neutral-00",t))(vo||{});const Mc={props:{size:{options:Object.values(yo)},backgroundColor:{options:Object.values(vo)}}};A.string,A.string,A.oneOf(Mc.props.size.options),A.bool,A.bool,A.string,A.string,A.string,A.string,A.oneOfType([A.string,A.node]),A.oneOfType([A.string,A.number]),A.string,A.bool,A.bool,A.func;var _o=(t=>(t.Default="",t.Large="large",t.Small="small",t))(_o||{});const us={class:"ds-paragraph",props:{type:{default:"",options:Object.values(_o)}}},$t=({children:t,className:e,testId:r="ds-paragraph-test",type:s=us.props.type.default})=>{const n=s&&`${us.class}--${s}`;return M.jsx("p",{className:[us.class,n,e].filter(a=>a).join(" "),"data-testid":r,children:t})};$t.propTypes={className:A.string,testId:A.string,type:A.oneOf(us.props.type.options)},$t.displayName="DsParagraph";var bo=(t=>(t.Success="success",t.SuccessDark="success-dark",t.Warning="warning",t.Danger="danger",t))(bo||{});Object.values(bo);var ko=(t=>(t.Stretch="stretch",t.FlexStart="flex-start",t.FlexEnd="flex-end",t.Center="center",t.SpaceAround="space-around",t.SpaceBetween="space-between",t))(ko||{}),wo=(t=>(t.Stretch="stretch",t.FlexStart="flex-start",t.FlexEnd="flex-end",t.Center="center",t))(wo||{}),$o=(t=>(t.Row="row",t.Column="column",t.RowReverse="row-reverse",t.ColumnReverse="column-reverse",t))($o||{}),Eo=(t=>(t.NoWrap="nowrap",t.Wrap="wrap",t.WrapReverse="wrap-reverse",t))(Eo||{}),So=(t=>(t.Quark="quark",t.Nano="nano",t.XXXS="xxxs",t.XXS="xxs",t.XS="xs",t.SM="sm",t.MD="md",t.LG="lg",t.XL="xl",t.XXL="xxl",t.XXXL="xxxl",t))(So||{});const Jt={class:"ds-flex-layout",props:{justifyContent:{default:"stretch",options:Object.values(ko)},alignItems:{default:"stretch",options:Object.values(wo)},flexDirection:{default:"row",options:Object.values($o)},flexWrap:{default:"wrap",options:Object.values(Eo)},width:{default:"100%"},gap:{options:Object.values(So)}}},Le=({children:t,className:e,justifyContent:r=Jt.props.justifyContent.default,alignItems:s=Jt.props.alignItems.default,flexDirection:n=Jt.props.flexDirection.default,flexWrap:a=Jt.props.flexWrap.default,width:i=Jt.props.width.default,height:l,gap:d})=>{const o=()=>{const f=[Jt.class,e];return d&&f.push(`${Jt.class}--gap-${d}`),f.join(" ")},u=()=>({display:"flex",justifyContent:r,alignItems:s,flexDirection:n,flexWrap:a,width:i,height:l,gap:d});return M.jsx("div",{className:o(),style:u(),children:t})};Le.propTypes={className:A.string,justifyContent:A.string,alignItems:A.string,flexDirection:A.string,flexWrap:A.string,width:A.string,height:A.string,gap:A.string},Le.displayName="DsFlexLayout";const Zs={class:"ds-flex-element",props:{flex:{default:"0 1 auto"},className:{default:""}}},ye=({children:t,flex:e=Zs.props.flex.default,className:r=Zs.props.className.default})=>{const s=()=>[Zs.class,r].join(" "),n=()=>({flex:e});return M.jsx("div",{className:s(),style:n(),children:t})};ye.propTypes={className:A.string,flex:A.string},ye.displayName="DsFlexElement";var Js=(t=>(t.None="none",t.Quark="quark",t.Nano="nano",t.XXXS="xxxs",t.XXS="xxs",t.XS="xs",t.SM="sm",t))(Js||{});const Dr={class:"ds-spacer",props:{vertical:{default:"none",options:Object.values(Js)},horizontal:{default:"none",options:Object.values(Js)}}},Ne=({vertical:t=Dr.props.vertical.default,horizontal:e=Dr.props.horizontal.default})=>{const r=t&&`ds-spacer__vertical--${t}`,s=e&&`ds-spacer__horizontal--${e}`;return M.jsx("div",{className:[Dr.class,r,s].filter(n=>n).join(" "),"data-testid":"ds-spacer"})};Ne.propTypes={vertical:A.oneOf(Dr.props.vertical.options),horizontal:A.oneOf(Dr.props.horizontal.options)},Ne.displayName="DsSpacer",A.string,A.number,A.string;var xo=(t=>(t.Small="sm",t.Medium="md",t.Large="lg",t))(xo||{}),Ao=(t=>(t.Default="",t.Error="error",t.Success="success",t))(Ao||{}),Co=(t=>(t.Center="center",t.End="end",t.Initial="initial",t))(Co||{}),To=(t=>(t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t))(To||{});const $e={class:"ds-select",props:{animated:{default:!0},disabled:{default:!1},multiple:{default:!1},testId:{default:"ds-select-test"},size:{options:Object.values(xo),default:"md"},status:{default:"",options:Object.values(Ao)},tooltipPlacement:{default:"initial",options:Object.values(Co)},tooltipPosition:{default:"top",options:Object.values(To)}}},Oo=X.forwardRef(({label:t,className:e,disabled:r=$e.props.disabled.default,animated:s=$e.props.animated.default,multiple:n=$e.props.multiple.default,testId:a=$e.props.testId.default,name:i,options:l,value:d,placeholder:o,onChange:u,onChangeHandler:f,size:m=$e.props.size.default,status:_=$e.props.status.default,tooltip:g,tooltipPosition:v=$e.props.tooltipPosition.default,tooltipPlacement:p=$e.props.tooltipPlacement.default,feedback:y,...h},b)=>{const[w,S]=X.useState(!1),O=V=>{S(!1),u&&u(V,V.target.value),f&&f(V,V.target.value)},I=()=>{const V=[$e.class,"select-placeholder"];return V.push(`${$e.class}--${m}`),_&&V.push(`${$e.class}--${_}`),w&&V.push(`${$e.class}--active`),r&&V.push(`${$e.class}--disabled`),e&&V.push(e),V.join(" ")},j=X.useMemo(()=>{const V=[`${$e.class}__label`];return!s&&V.push(`${$e.class}__label--not-animated`),d&&V.push(`${$e.class}__label--has-value`),s&&!d&&!g&&V.push(`${$e.class}__label--hidden`),V.join(" ")},[d]);return M.jsxs("div",{className:I(),"data-testid":"ds-select-component",children:[t&&M.jsxs("label",{className:j,"data-testid":"ds-label-id",htmlFor:i,children:[t,g&&M.jsx(Ir,{className:`${$e.class}__tooltip`,placement:p,position:v,text:g,children:M.jsx(Ae,{className:`${$e.class}__icon`,image:"info"})})]}),M.jsxs("select",{"data-testid":a,disabled:r,id:i,multiple:n,name:i,onBlur:()=>S(!1),onChange:V=>O(V),onFocus:()=>S(!0),ref:b,value:d??"",...h,children:[(o||s)&&M.jsx("option",{disabled:!0,value:"",children:o??t}),l==null?void 0:l.map((V,D)=>{var T;return"options"in V?M.jsx("optgroup",{label:V.label,children:(T=V.options)==null?void 0:T.map((B,R)=>M.jsx("option",{className:`${$e.class}__option-select`,value:B.value,children:B.label??B.value},R))},D):M.jsx("option",{className:`${$e.class}__option-select`,value:V.value,children:V.label??V.value},D)})]}),y&&M.jsxs("div",{className:"ds-select__feedback-container",children:[M.jsx(Ae,{className:"ds-select__icon",image:_==="success"?"check_circle":"info"}),M.jsx("span",{className:"ds-select__feedback",children:y})]})]})});Oo.propTypes={label:A.string.isRequired,className:A.string,disabled:A.bool,animated:A.bool,multiple:A.bool,name:A.string,testId:A.string,options:A.array.isRequired,placeholder:A.string,onChange:A.func,onChangeHandler:A.func,value:A.oneOfType([A.string,A.number]),size:A.oneOf($e.props.size.options),status:A.oneOf($e.props.status.options),tooltip:A.string,tooltipPosition:A.string,tooltipPlacement:A.string,feedback:A.string},Oo.displayName="DsSelect";var Po=(t=>(t.Large="large",t.Small="small",t))(Po||{});Object.values(Po);var No=(t=>(t.Small="small",t.Medium="medium",t.Large="large",t))(No||{}),Io=(t=>(t.Text="text",t))(Io||{}),Do=(t=>(t.None="",t.Error="error",t.Success="success",t))(Do||{}),Mo=(t=>(t.None="none",t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t.Block="block",t.Inline="inline",t))(Mo||{});const Me={class:"ds-textarea",props:{testId:{default:"ds-textarea-test"},type:{options:Object.values(Io)},animated:{default:!0},disabled:{default:!1},size:{default:"medium",options:Object.values(No)},rows:{default:1},status:{default:"",options:Object.values(Do)},resize:{default:"none",options:Object.values(Mo)}}},Fo=X.forwardRef(({name:t,testId:e=Me.props.testId.default,animated:r=Me.props.animated.default,size:s=Me.props.size.default,label:n,placeholder:a,value:i,minLength:l,maxLength:d,tooltip:o,icon:u,status:f=Me.props.status.default,feedback:m,disabled:_=Me.props.disabled.default,required:g,className:v,resize:p=Me.props.resize.default,onChangeHandler:y,onBlurHandler:h,onKeyDownHandler:b,onFocusHandler:w,rows:S=Me.props.rows.default,cols:O,description:I,style:j},V)=>{const[D,T]=X.useState(!1),[B,R]=X.useState(0),[H,K]=X.useState(crypto.randomUUID());X.useEffect(()=>{i==null&&K(crypto.randomUUID())},[i]);const q=$=>{R($.target.value.length),y&&y($)},se=$=>{b&&b($)},Z=$=>{T(!1),h&&h($)},ne=$=>{T(!0),w&&w($)},P=()=>{const $=[`${Me.class}`];return s&&$.push(`${Me.class}--${s}`),r&&$.push(`${Me.class}--animated`),o&&$.push(`${Me.class}--with-icon`),f&&$.push(`${Me.class}--${f}`),v&&$.push(v),$.join(" ")},k=X.useMemo(()=>{const $=[`${Me.class}__label`];return(D||i)&&$.push(`${Me.class}__label--active`),$.join(" ")},[i,D]),x=()=>!r&&a?a:"",E=()=>f&&f==="error"?"info":"check_circle",c={resize:p,...j??{}};return M.jsxs("div",{className:P(),children:[I&&M.jsx("span",{className:"ds-textarea__description",children:I}),m&&M.jsxs("div",{className:"ds-textarea__feedback",children:[M.jsx(Ae,{image:E()}),m]}),M.jsx("textarea",{className:"ds-textarea__textarea",cols:O,"data-testid":e,defaultValue:i??"",disabled:_,id:t,maxLength:d,minLength:l,name:t,onBlur:Z,onChange:q,onFocus:ne,onKeyDown:se,placeholder:x(),ref:V,required:g,rows:S,style:c}),M.jsx("label",{className:k,htmlFor:t,children:n}),d&&M.jsxs("span",{className:"ds-textarea__count",children:[B,"/",d]}),o&&M.jsx(Ir,{className:"ds-textarea__tooltip",placement:"end",text:o,children:M.jsx(Ae,{className:"ds-textarea__icon",image:u})})]},H)});Fo.propTypes={name:A.string,testId:A.string,animated:A.bool,size:A.oneOf(Me.props.size.options),label:A.string,placeholder:A.string,value:A.oneOfType([A.string]),tooltip:A.string,icon:A.string,status:A.oneOf(Me.props.status.options),feedback:A.string,minLength:A.number,maxLength:A.number,rows:A.number,cols:A.number,disabled:A.bool,required:A.bool,onChangeHandler:A.func,onBlur:A.func,onKeyDown:A.func,onFocus:A.func,resize:A.oneOf(Me.props.resize.options).isRequired,description:A.string,style:A.object},Fo.displayName="DsTextArea",A.node,A.bool,A.string,A.object,A.string;var Bo=(t=>(t.Quark="quark",t.Nano="nano",t.ExtraSmall="xs",t.Small="sm",t.Medium="md",t.Large="lg",t))(Bo||{}),Qs=(t=>(t.Start="start",t.End="end",t.Center="center",t.Stretch="stretch",t.SpaceAround="space-around",t.SpaceBetween="space-between",t.SpaceEvenly="space-evenly",t))(Qs||{});const en={props:{gap:{options:Object.values(Bo)},horizontalAlign:{options:Object.values(Qs)},verticalAlign:{options:Object.values(Qs)}}};A.oneOfType([A.arrayOf(A.node),A.node,A.func]),A.string,A.oneOf(en.props.gap.options),A.bool,A.bool,A.string,A.string,A.oneOf(en.props.horizontalAlign.options),A.oneOf(en.props.verticalAlign.options);var pr=(t=>(t.None="none",t.Quark="quark",t.Nano="nano",t.ExtraSmall="xs",t.Small="sm",t.Medium="md",t.Large="lg",t))(pr||{});Object.values(pr),Object.values(pr),Object.values(pr),Object.values(pr),Object.values(pr),A.bool,A.oneOfType([A.element,A.string]),A.oneOfType([A.element,A.string]),A.bool,A.array,A.number,A.arrayOf(A.shape({title:A.string.isRequired,image:A.string.isRequired,description:A.string.isRequired})).isRequired,A.number,A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]);var jo=(t=>(t.Small="small",t.Medium="medium",t.Large="large",t))(jo||{});Object.values(jo),A.string;var Ro=(t=>(t.Squared="squared",t.Rounded="rounded",t))(Ro||{});const Lo={props:{elevation:{options:[1,2,3,4]},variant:{options:Object.values(Ro)}}};A.string,A.string,A.string,A.oneOf(Lo.props.variant.options),A.oneOf(Lo.props.elevation.options),A.bool,A.node,A.node;var Vo=(t=>(t.Success="success",t.Danger="danger",t.Warning="warning",t.Info="info",t))(Vo||{}),zo=(t=>(t.Rounded="rounded",t.Squared="squared",t))(zo||{});Object.values(Vo),Object.values(zo),A.func,A.array,A.string,A.string;var Ho=(t=>(t.None="",t.Primary="primary",t.Secondary="secondary",t.Neutral="neutral",t.Success="success",t.Warning="warning",t.Danger="danger",t.Info="info",t))(Ho||{});Object.values(Ho),A.string,A.node.isRequired,A.string;var Uo=(t=>(t.TopLeft="top-left",t.TopCenter="top-center",t.TopRight="top-right",t.BottomLeft="bottom-left",t.BottomCenter="bottom-center",t.BottomRight="bottom-right",t))(Uo||{});const Fc={props:{position:{options:Object.values(Uo)}}};A.oneOf(Fc.props.position.options),A.bool,A.array,A.func,A.node,A.node,A.node,A.node;const Bc=({categories:t=[],onClick:e,title:r="Categorias"})=>{const s=i=>{e(i)},[n,a]=X.useState(null);return M.jsxs("div",{className:"category-cards","data-testid":"category-cards",children:[M.jsx(Ne,{vertical:"xxs"}),M.jsx(bt,{type:"heading-5",className:"color__neutral--90",children:r}),M.jsx(Ne,{vertical:"xxxs"}),M.jsx("div",{className:"category-cards__grid",children:M.jsx(Le,{gap:"xxxs",children:t.map(i=>M.jsx(ye,{flex:"0 0 32%",children:M.jsx("div",{className:`category-cards__card ${n===i.id?"category-cards__card--hovered":""}`,"data-testid":`category-card-${i.id}`,onClick:()=>s(i.id),onMouseEnter:()=>a(i.id),onMouseLeave:()=>a(null),role:"button",tabIndex:0,children:M.jsxs(hr,{className:"category-card",testId:`category-card-item-${i.id}`,elevation:n===i.id?0:2,backgroundColor:n===i.id?"secondary-lightest":"neutral-00",children:[M.jsx(Ne,{vertical:"nano"}),M.jsxs(Le,{alignItems:"center",flexDirection:"column",gap:"nano",children:[M.jsx(ye,{children:M.jsx(Ae,{color:"secondary-dark","data-testid":`category-card-icon-${i.id}`,image:i.attributes.icon,size:"xxxl"})}),M.jsx(ye,{children:M.jsx(bt,{className:"color__neutral--80","data-testid":`category-card-title-${i.id}`,type:"heading-6",children:i.attributes.name})})]}),M.jsx(Ne,{vertical:"nano"})]})})},i.id))})})]})};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jc(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),r}var tn={exports:{}},Go={},it={},fr={},mr={},ie={},gr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(h){if(super(),!t.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");this.str=h}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class s extends e{constructor(h){super(),this._items=typeof h=="string"?[h]:h}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const h=this._items[0];return h===""||h==='""'}get str(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce((b,w)=>`${b}${w}`,"")}get names(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce((b,w)=>(w instanceof r&&(b[w.str]=(b[w.str]||0)+1),b),{})}}t._Code=s,t.nil=new s("");function n(y,...h){const b=[y[0]];let w=0;for(;w<h.length;)l(b,h[w]),b.push(y[++w]);return new s(b)}t._=n;const a=new s("+");function i(y,...h){const b=[_(y[0])];let w=0;for(;w<h.length;)b.push(a),l(b,h[w]),b.push(a,_(y[++w]));return d(b),new s(b)}t.str=i;function l(y,h){h instanceof s?y.push(...h._items):h instanceof r?y.push(h):y.push(f(h))}t.addCodeArg=l;function d(y){let h=1;for(;h<y.length-1;){if(y[h]===a){const b=o(y[h-1],y[h+1]);if(b!==void 0){y.splice(h-1,3,b);continue}y[h++]="+"}h++}}function o(y,h){if(h==='""')return y;if(y==='""')return h;if(typeof y=="string")return h instanceof r||y[y.length-1]!=='"'?void 0:typeof h!="string"?`${y.slice(0,-1)}${h}"`:h[0]==='"'?y.slice(0,-1)+h.slice(1):void 0;if(typeof h=="string"&&h[0]==='"'&&!(y instanceof r))return`"${y}${h.slice(1)}`}function u(y,h){return h.emptyStr()?y:y.emptyStr()?h:i`${y}${h}`}t.strConcat=u;function f(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:_(Array.isArray(y)?y.join(","):y)}function m(y){return new s(_(y))}t.stringify=m;function _(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=_;function g(y){return typeof y=="string"&&t.IDENTIFIER.test(y)?new s(`.${y}`):n`[${y}]`}t.getProperty=g;function v(y){if(typeof y=="string"&&t.IDENTIFIER.test(y))return new s(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}t.getEsmExportName=v;function p(y){return new s(y.toString())}t.regexpCode=p})(gr);var rn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=gr;class r extends Error{constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}}var s;(function(d){d[d.Started=0]="Started",d[d.Completed=1]="Completed"})(s||(t.UsedValueState=s={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class n{constructor({prefixes:o,parent:u}={}){this._names={},this._prefixes=o,this._parent=u}toName(o){return o instanceof e.Name?o:this.name(o)}name(o){return new e.Name(this._newName(o))}_newName(o){const u=this._names[o]||this._nameGroup(o);return`${o}${u.index++}`}_nameGroup(o){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._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}}}t.Scope=n;class a extends e.Name{constructor(o,u){super(u),this.prefix=o}setValue(o,{property:u,itemIndex:f}){this.value=o,this.scopePath=(0,e._)`.${new e.Name(u)}[${f}]`}}t.ValueScopeName=a;const i=(0,e._)`\n`;class l 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,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(o),{prefix:_}=m,g=(f=u.key)!==null&&f!==void 0?f:u.ref;let v=this._values[_];if(v){const h=v.get(g);if(h)return h}else v=this._values[_]=new Map;v.set(g,m);const p=this._scope[_]||(this._scope[_]=[]),y=p.length;return p[y]=u.ref,m.setValue(u,{property:_,itemIndex:y}),m}getValue(o,u){const f=this._values[o];if(f)return f.get(u)}scopeRefs(o,u=this._values){return this._reduceValues(u,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,u,f){return this._reduceValues(o,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,f)}_reduceValues(o,u,f={},m){let _=e.nil;for(const g in o){const v=o[g];if(!v)continue;const p=f[g]=f[g]||new Map;v.forEach(y=>{if(p.has(y))return;p.set(y,s.Started);let h=u(y);if(h){const b=this.opts.es5?t.varKinds.var:t.varKinds.const;_=(0,e._)`${_}${b} ${y} = ${h};${this.opts._n}`}else if(h=m==null?void 0:m(y))_=(0,e._)`${_}${h}${this.opts._n}`;else throw new r(y);p.set(y,s.Completed)})}return _}}t.ValueScope=l})(rn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=gr,r=rn;var s=gr;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}});var n=rn;Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),t.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(c,$){return this}}class i extends a{constructor(c,$,C){super(),this.varKind=c,this.name=$,this.rhs=C}render({es5:c,_n:$}){const C=c?r.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${C} ${this.name}${L};`+$}optimizeNames(c,$){if(c[this.name.str])return this.rhs&&(this.rhs=H(this.rhs,c,$)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class l extends a{constructor(c,$,C){super(),this.lhs=c,this.rhs=$,this.sideEffects=C}render({_n:c}){return`${this.lhs} = ${this.rhs};`+c}optimizeNames(c,$){if(!(this.lhs instanceof e.Name&&!c[this.lhs.str]&&!this.sideEffects))return this.rhs=H(this.rhs,c,$),this}get names(){const c=this.lhs instanceof e.Name?{}:{...this.lhs.names};return R(c,this.rhs)}}class d extends l{constructor(c,$,C,L){super(c,C,L),this.op=$}render({_n:c}){return`${this.lhs} ${this.op}= ${this.rhs};`+c}}class o extends a{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`${this.label}:`+c}}class u extends a{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`break${this.label?` ${this.label}`:""};`+c}}class f extends a{constructor(c){super(),this.error=c}render({_n:c}){return`throw ${this.error};`+c}get names(){return this.error.names}}class m extends a{constructor(c){super(),this.code=c}render({_n:c}){return`${this.code};`+c}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(c,$){return this.code=H(this.code,c,$),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class _ extends a{constructor(c=[]){super(),this.nodes=c}render(c){return this.nodes.reduce(($,C)=>$+C.render(c),"")}optimizeNodes(){const{nodes:c}=this;let $=c.length;for(;$--;){const C=c[$].optimizeNodes();Array.isArray(C)?c.splice($,1,...C):C?c[$]=C:c.splice($,1)}return c.length>0?this:void 0}optimizeNames(c,$){const{nodes:C}=this;let L=C.length;for(;L--;){const F=C[L];F.optimizeNames(c,$)||(K(c,F.names),C.splice(L,1))}return C.length>0?this:void 0}get names(){return this.nodes.reduce((c,$)=>B(c,$.names),{})}}class g extends _{render(c){return"{"+c._n+super.render(c)+"}"+c._n}}class v extends _{}class p extends g{}p.kind="else";class y extends g{constructor(c,$){super($),this.condition=c}render(c){let $=`if(${this.condition})`+super.render(c);return this.else&&($+="else "+this.else.render(c)),$}optimizeNodes(){super.optimizeNodes();const c=this.condition;if(c===!0)return this.nodes;let $=this.else;if($){const C=$.optimizeNodes();$=this.else=Array.isArray(C)?new p(C):C}if($)return c===!1?$ instanceof y?$:$.nodes:this.nodes.length?this:new y(q(c),$ instanceof y?[$]:$.nodes);if(!(c===!1||!this.nodes.length))return this}optimizeNames(c,$){var C;if(this.else=(C=this.else)===null||C===void 0?void 0:C.optimizeNames(c,$),!!(super.optimizeNames(c,$)||this.else))return this.condition=H(this.condition,c,$),this}get names(){const c=super.names;return R(c,this.condition),this.else&&B(c,this.else.names),c}}y.kind="if";class h extends g{}h.kind="for";class b extends h{constructor(c){super(),this.iteration=c}render(c){return`for(${this.iteration})`+super.render(c)}optimizeNames(c,$){if(super.optimizeNames(c,$))return this.iteration=H(this.iteration,c,$),this}get names(){return B(super.names,this.iteration.names)}}class w extends h{constructor(c,$,C,L){super(),this.varKind=c,this.name=$,this.from=C,this.to=L}render(c){const $=c.es5?r.varKinds.var:this.varKind,{name:C,from:L,to:F}=this;return`for(${$} ${C}=${L}; ${C}<${F}; ${C}++)`+super.render(c)}get names(){const c=R(super.names,this.from);return R(c,this.to)}}class S extends h{constructor(c,$,C,L){super(),this.loop=c,this.varKind=$,this.name=C,this.iterable=L}render(c){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(c)}optimizeNames(c,$){if(super.optimizeNames(c,$))return this.iterable=H(this.iterable,c,$),this}get names(){return B(super.names,this.iterable.names)}}class O extends g{constructor(c,$,C){super(),this.name=c,this.args=$,this.async=C}render(c){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(c)}}O.kind="func";class I extends _{render(c){return"return "+super.render(c)}}I.kind="return";class j extends g{render(c){let $="try"+super.render(c);return this.catch&&($+=this.catch.render(c)),this.finally&&($+=this.finally.render(c)),$}optimizeNodes(){var c,$;return super.optimizeNodes(),(c=this.catch)===null||c===void 0||c.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(c,$){var C,L;return super.optimizeNames(c,$),(C=this.catch)===null||C===void 0||C.optimizeNames(c,$),(L=this.finally)===null||L===void 0||L.optimizeNames(c,$),this}get names(){const c=super.names;return this.catch&&B(c,this.catch.names),this.finally&&B(c,this.finally.names),c}}class V extends g{constructor(c){super(),this.error=c}render(c){return`catch(${this.error})`+super.render(c)}}V.kind="catch";class D extends g{render(c){return"finally"+super.render(c)}}D.kind="finally";class T{constructor(c,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
21
+ `:""},this._extScope=c,this._scope=new r.Scope({parent:c}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(c){return this._scope.name(c)}scopeName(c){return this._extScope.name(c)}scopeValue(c,$){const C=this._extScope.value(c,$);return(this._values[C.prefix]||(this._values[C.prefix]=new Set)).add(C),C}getScopeValue(c,$){return this._extScope.getValue(c,$)}scopeRefs(c){return this._extScope.scopeRefs(c,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(c,$,C,L){const F=this._scope.toName($);return C!==void 0&&L&&(this._constants[F.str]=C),this._leafNode(new i(c,F,C)),F}const(c,$,C){return this._def(r.varKinds.const,c,$,C)}let(c,$,C){return this._def(r.varKinds.let,c,$,C)}var(c,$,C){return this._def(r.varKinds.var,c,$,C)}assign(c,$,C){return this._leafNode(new l(c,$,C))}add(c,$){return this._leafNode(new d(c,t.operators.ADD,$))}code(c){return typeof c=="function"?c():c!==e.nil&&this._leafNode(new m(c)),this}object(...c){const $=["{"];for(const[C,L]of c)$.length>1&&$.push(","),$.push(C),(C!==L||this.opts.es5)&&($.push(":"),(0,e.addCodeArg)($,L));return $.push("}"),new e._Code($)}if(c,$,C){if(this._blockNode(new y(c)),$&&C)this.code($).else().code(C).endIf();else if($)this.code($).endIf();else if(C)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(c){return this._elseNode(new y(c))}else(){return this._elseNode(new p)}endIf(){return this._endBlockNode(y,p)}_for(c,$){return this._blockNode(c),$&&this.code($).endFor(),this}for(c,$){return this._for(new b(c),$)}forRange(c,$,C,L,F=this.opts.es5?r.varKinds.var:r.varKinds.let){const z=this._scope.toName(c);return this._for(new w(F,z,$,C),()=>L(z))}forOf(c,$,C,L=r.varKinds.const){const F=this._scope.toName(c);if(this.opts.es5){const z=$ instanceof e.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,e._)`${z}.length`,G=>{this.var(F,(0,e._)`${z}[${G}]`),C(F)})}return this._for(new S("of",L,F,$),()=>C(F))}forIn(c,$,C,L=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(c,(0,e._)`Object.keys(${$})`,C);const F=this._scope.toName(c);return this._for(new S("in",L,F,$),()=>C(F))}endFor(){return this._endBlockNode(h)}label(c){return this._leafNode(new o(c))}break(c){return this._leafNode(new u(c))}return(c){const $=new I;if(this._blockNode($),this.code(c),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(I)}try(c,$,C){if(!$&&!C)throw new Error('CodeGen: "try" without "catch" and "finally"');const L=new j;if(this._blockNode(L),this.code(c),$){const F=this.name("e");this._currNode=L.catch=new V(F),$(F)}return C&&(this._currNode=L.finally=new D,this.code(C)),this._endBlockNode(V,D)}throw(c){return this._leafNode(new f(c))}block(c,$){return this._blockStarts.push(this._nodes.length),c&&this.code(c).endBlock($),this}endBlock(c){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const C=this._nodes.length-$;if(C<0||c!==void 0&&C!==c)throw new Error(`CodeGen: wrong number of nodes: ${C} vs ${c} expected`);return this._nodes.length=$,this}func(c,$=e.nil,C,L){return this._blockNode(new O(c,$,C)),L&&this.code(L).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(c=1){for(;c-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(c){return this._currNode.nodes.push(c),this}_blockNode(c){this._currNode.nodes.push(c),this._nodes.push(c)}_endBlockNode(c,$){const C=this._currNode;if(C instanceof c||$&&C instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${c.kind}/${$.kind}`:c.kind}"`)}_elseNode(c){const $=this._currNode;if(!($ instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=c,this}get _root(){return this._nodes[0]}get _currNode(){const c=this._nodes;return c[c.length-1]}set _currNode(c){const $=this._nodes;$[$.length-1]=c}}t.CodeGen=T;function B(E,c){for(const $ in c)E[$]=(E[$]||0)+(c[$]||0);return E}function R(E,c){return c instanceof e._CodeOrName?B(E,c.names):E}function H(E,c,$){if(E instanceof e.Name)return C(E);if(!L(E))return E;return new e._Code(E._items.reduce((F,z)=>(z instanceof e.Name&&(z=C(z)),z instanceof e._Code?F.push(...z._items):F.push(z),F),[]));function C(F){const z=$[F.str];return z===void 0||c[F.str]!==1?F:(delete c[F.str],z)}function L(F){return F instanceof e._Code&&F._items.some(z=>z instanceof e.Name&&c[z.str]===1&&$[z.str]!==void 0)}}function K(E,c){for(const $ in c)E[$]=(E[$]||0)-(c[$]||0)}function q(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,e._)`!${x(E)}`}t.not=q;const se=k(t.operators.AND);function Z(...E){return E.reduce(se)}t.and=Z;const ne=k(t.operators.OR);function P(...E){return E.reduce(ne)}t.or=P;function k(E){return(c,$)=>c===e.nil?$:$===e.nil?c:(0,e._)`${x(c)} ${E} ${x($)}`}function x(E){return E instanceof e.Name?E:(0,e._)`(${E})`}}(ie);var Y={};Object.defineProperty(Y,"__esModule",{value:!0}),Y.checkStrictMode=Y.getErrorPath=Y.Type=Y.useFunc=Y.setEvaluated=Y.evaluatedPropsToName=Y.mergeEvaluated=Y.eachItem=Y.unescapeJsonPointer=Y.escapeJsonPointer=Y.escapeFragment=Y.unescapeFragment=Y.schemaRefOrVal=Y.schemaHasRulesButRef=Y.schemaHasRules=Y.checkUnknownRules=Y.alwaysValidSchema=Y.toHash=void 0;const ve=ie,Rc=gr;function Lc(t){const e={};for(const r of t)e[r]=!0;return e}Y.toHash=Lc;function Vc(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Wo(t,e),!Ko(e,t.self.RULES.all))}Y.alwaysValidSchema=Vc;function Wo(t,e=t.schema){const{opts:r,self:s}=t;if(!r.strictSchema||typeof e=="boolean")return;const n=s.RULES.keywords;for(const a in e)n[a]||Jo(t,`unknown keyword: "${a}"`)}Y.checkUnknownRules=Wo;function Ko(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(e[r])return!0;return!1}Y.schemaHasRules=Ko;function zc(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}Y.schemaHasRulesButRef=zc;function Hc({topSchemaRef:t,schemaPath:e},r,s,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ve._)`${r}`}return(0,ve._)`${t}${e}${(0,ve.getProperty)(s)}`}Y.schemaRefOrVal=Hc;function Uc(t){return qo(decodeURIComponent(t))}Y.unescapeFragment=Uc;function Gc(t){return encodeURIComponent(sn(t))}Y.escapeFragment=Gc;function sn(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Y.escapeJsonPointer=sn;function qo(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Y.unescapeJsonPointer=qo;function Wc(t,e){if(Array.isArray(t))for(const r of t)e(r);else e(t)}Y.eachItem=Wc;function Xo({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:s}){return(n,a,i,l)=>{const d=i===void 0?a:i instanceof ve.Name?(a instanceof ve.Name?t(n,a,i):e(n,a,i),i):a instanceof ve.Name?(e(n,i,a),a):r(a,i);return l===ve.Name&&!(d instanceof ve.Name)?s(n,d):d}}Y.mergeEvaluated={props:Xo({mergeNames:(t,e,r)=>t.if((0,ve._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,ve._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,ve._)`${r} || {}`).code((0,ve._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,ve._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,ve._)`${r} || {}`),nn(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Yo}),items:Xo({mergeNames:(t,e,r)=>t.if((0,ve._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,ve._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,ve._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,ve._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Yo(t,e){if(e===!0)return t.var("props",!0);const r=t.var("props",(0,ve._)`{}`);return e!==void 0&&nn(t,r,e),r}Y.evaluatedPropsToName=Yo;function nn(t,e,r){Object.keys(r).forEach(s=>t.assign((0,ve._)`${e}${(0,ve.getProperty)(s)}`,!0))}Y.setEvaluated=nn;const Zo={};function Kc(t,e){return t.scopeValue("func",{ref:e,code:Zo[e.code]||(Zo[e.code]=new Rc._Code(e.code))})}Y.useFunc=Kc;var an;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(an||(Y.Type=an={}));function qc(t,e,r){if(t instanceof ve.Name){const s=e===an.Num;return r?s?(0,ve._)`"[" + ${t} + "]"`:(0,ve._)`"['" + ${t} + "']"`:s?(0,ve._)`"/" + ${t}`:(0,ve._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ve.getProperty)(t).toString():"/"+sn(t)}Y.getErrorPath=qc;function Jo(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}Y.checkStrictMode=Jo;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});const Ve=ie,Xc={data:new Ve.Name("data"),valCxt:new Ve.Name("valCxt"),instancePath:new Ve.Name("instancePath"),parentData:new Ve.Name("parentData"),parentDataProperty:new Ve.Name("parentDataProperty"),rootData:new Ve.Name("rootData"),dynamicAnchors:new Ve.Name("dynamicAnchors"),vErrors:new Ve.Name("vErrors"),errors:new Ve.Name("errors"),this:new Ve.Name("this"),self:new Ve.Name("self"),scope:new Ve.Name("scope"),json:new Ve.Name("json"),jsonPos:new Ve.Name("jsonPos"),jsonLen:new Ve.Name("jsonLen"),jsonPart:new Ve.Name("jsonPart")};mt.default=Xc,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=ie,r=Y,s=mt;t.keywordError={message:({keyword:p})=>(0,e.str)`must pass "${p}" keyword validation`},t.keyword$DataError={message:({keyword:p,schemaType:y})=>y?(0,e.str)`"${p}" keyword must be ${y} ($data)`:(0,e.str)`"${p}" keyword is invalid ($data)`};function n(p,y=t.keywordError,h,b){const{it:w}=p,{gen:S,compositeRule:O,allErrors:I}=w,j=f(p,y,h);b??(O||I)?d(S,j):o(w,(0,e._)`[${j}]`)}t.reportError=n;function a(p,y=t.keywordError,h){const{it:b}=p,{gen:w,compositeRule:S,allErrors:O}=b,I=f(p,y,h);d(w,I),S||O||o(b,s.default.vErrors)}t.reportExtraError=a;function i(p,y){p.assign(s.default.errors,y),p.if((0,e._)`${s.default.vErrors} !== null`,()=>p.if(y,()=>p.assign((0,e._)`${s.default.vErrors}.length`,y),()=>p.assign(s.default.vErrors,null)))}t.resetErrorsCount=i;function l({gen:p,keyword:y,schemaValue:h,data:b,errsCount:w,it:S}){if(w===void 0)throw new Error("ajv implementation error");const O=p.name("err");p.forRange("i",w,s.default.errors,I=>{p.const(O,(0,e._)`${s.default.vErrors}[${I}]`),p.if((0,e._)`${O}.instancePath === undefined`,()=>p.assign((0,e._)`${O}.instancePath`,(0,e.strConcat)(s.default.instancePath,S.errorPath))),p.assign((0,e._)`${O}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${y}`),S.opts.verbose&&(p.assign((0,e._)`${O}.schema`,h),p.assign((0,e._)`${O}.data`,b))})}t.extendErrors=l;function d(p,y){const h=p.const("err",y);p.if((0,e._)`${s.default.vErrors} === null`,()=>p.assign(s.default.vErrors,(0,e._)`[${h}]`),(0,e._)`${s.default.vErrors}.push(${h})`),p.code((0,e._)`${s.default.errors}++`)}function o(p,y){const{gen:h,validateName:b,schemaEnv:w}=p;w.$async?h.throw((0,e._)`new ${p.ValidationError}(${y})`):(h.assign((0,e._)`${b}.errors`,y),h.return(!1))}const u={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(p,y,h){const{createErrors:b}=p.it;return b===!1?(0,e._)`{}`:m(p,y,h)}function m(p,y,h={}){const{gen:b,it:w}=p,S=[_(w,h),g(p,h)];return v(p,y,S),b.object(...S)}function _({errorPath:p},{instancePath:y}){const h=y?(0,e.str)`${p}${(0,r.getErrorPath)(y,r.Type.Str)}`:p;return[s.default.instancePath,(0,e.strConcat)(s.default.instancePath,h)]}function g({keyword:p,it:{errSchemaPath:y}},{schemaPath:h,parentSchema:b}){let w=b?y:(0,e.str)`${y}/${p}`;return h&&(w=(0,e.str)`${w}${(0,r.getErrorPath)(h,r.Type.Str)}`),[u.schemaPath,w]}function v(p,{params:y,message:h},b){const{keyword:w,data:S,schemaValue:O,it:I}=p,{opts:j,propertyName:V,topSchemaRef:D,schemaPath:T}=I;b.push([u.keyword,w],[u.params,typeof y=="function"?y(p):y||(0,e._)`{}`]),j.messages&&b.push([u.message,typeof h=="function"?h(p):h]),j.verbose&&b.push([u.schema,O],[u.parentSchema,(0,e._)`${D}${T}`],[s.default.data,S]),V&&b.push([u.propertyName,V])}}(mr),Object.defineProperty(fr,"__esModule",{value:!0}),fr.boolOrEmptySchema=fr.topBoolOrEmptySchema=void 0;const Yc=mr,Zc=ie,Jc=mt,Qc={message:"boolean schema is false"};function ed(t){const{gen:e,schema:r,validateName:s}=t;r===!1?Qo(t,!1):typeof r=="object"&&r.$async===!0?e.return(Jc.default.data):(e.assign((0,Zc._)`${s}.errors`,null),e.return(!0))}fr.topBoolOrEmptySchema=ed;function td(t,e){const{gen:r,schema:s}=t;s===!1?(r.var(e,!1),Qo(t)):r.var(e,!0)}fr.boolOrEmptySchema=td;function Qo(t,e){const{gen:r,data:s}=t,n={gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,Yc.reportError)(n,Qc,void 0,e)}var Ce={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.getRules=Qt.isJSONType=void 0;const rd=["string","number","integer","boolean","null","object","array"],sd=new Set(rd);function nd(t){return typeof t=="string"&&sd.has(t)}Qt.isJSONType=nd;function ad(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Qt.getRules=ad;var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.shouldUseRule=Nt.shouldUseGroup=Nt.schemaHasRulesForType=void 0;function od({schema:t,self:e},r){const s=e.RULES.types[r];return s&&s!==!0&&ei(t,s)}Nt.schemaHasRulesForType=od;function ei(t,e){return e.rules.some(r=>ti(t,r))}Nt.shouldUseGroup=ei;function ti(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(s=>t[s]!==void 0))}Nt.shouldUseRule=ti,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.reportTypeError=Ce.checkDataTypes=Ce.checkDataType=Ce.coerceAndCheckDataType=Ce.getJSONTypes=Ce.getSchemaTypes=Ce.DataType=void 0;const id=Qt,ld=Nt,ud=mr,le=ie,ri=Y;var yr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(yr||(Ce.DataType=yr={}));function cd(t){const e=si(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Ce.getSchemaTypes=cd;function si(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(id.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ce.getJSONTypes=si;function dd(t,e){const{gen:r,data:s,opts:n}=t,a=hd(e,n.coerceTypes),i=e.length>0&&!(a.length===0&&e.length===1&&(0,ld.schemaHasRulesForType)(t,e[0]));if(i){const l=ln(e,s,n.strictNumbers,yr.Wrong);r.if(l,()=>{a.length?pd(t,e,a):un(t)})}return i}Ce.coerceAndCheckDataType=dd;const ni=new Set(["string","number","integer","boolean","null"]);function hd(t,e){return e?t.filter(r=>ni.has(r)||e==="array"&&r==="array"):[]}function pd(t,e,r){const{gen:s,data:n,opts:a}=t,i=s.let("dataType",(0,le._)`typeof ${n}`),l=s.let("coerced",(0,le._)`undefined`);a.coerceTypes==="array"&&s.if((0,le._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,le._)`${n}[0]`).assign(i,(0,le._)`typeof ${n}`).if(ln(e,n,a.strictNumbers),()=>s.assign(l,n))),s.if((0,le._)`${l} !== undefined`);for(const o of r)(ni.has(o)||o==="array"&&a.coerceTypes==="array")&&d(o);s.else(),un(t),s.endIf(),s.if((0,le._)`${l} !== undefined`,()=>{s.assign(n,l),fd(t,l)});function d(o){switch(o){case"string":s.elseIf((0,le._)`${i} == "number" || ${i} == "boolean"`).assign(l,(0,le._)`"" + ${n}`).elseIf((0,le._)`${n} === null`).assign(l,(0,le._)`""`);return;case"number":s.elseIf((0,le._)`${i} == "boolean" || ${n} === null
22
22
  || (${i} == "string" && ${n} && ${n} == +${n})`).assign(l,(0,le._)`+${n}`);return;case"integer":s.elseIf((0,le._)`${i} === "boolean" || ${n} === null
23
23
  || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(l,(0,le._)`+${n}`);return;case"boolean":s.elseIf((0,le._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(l,!1).elseIf((0,le._)`${n} === "true" || ${n} === 1`).assign(l,!0);return;case"null":s.elseIf((0,le._)`${n} === "" || ${n} === 0 || ${n} === false`),s.assign(l,null);return;case"array":s.elseIf((0,le._)`${i} === "string" || ${i} === "number"
24
- || ${i} === "boolean" || ${n} === null`).assign(l,(0,le._)`[${n}]`)}}}function rd({gen:r,parentData:e,parentDataProperty:t},s){r.if((0,le._)`${e} !== undefined`,()=>r.assign((0,le._)`${e}[${t}]`,s))}function sn(r,e,t,s=pr.Correct){const n=s===pr.Correct?le.operators.EQ:le.operators.NEQ;let a;switch(r){case"null":return(0,le._)`${e} ${n} null`;case"array":a=(0,le._)`Array.isArray(${e})`;break;case"object":a=(0,le._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=i((0,le._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=i();break;default:return(0,le._)`typeof ${e} ${n} ${r}`}return s===pr.Correct?a:(0,le.not)(a);function i(l=le.nil){return(0,le.and)((0,le._)`typeof ${e} == "number"`,l,t?(0,le._)`isFinite(${e})`:le.nil)}}Ae.checkDataType=sn;function nn(r,e,t,s){if(r.length===1)return sn(r[0],e,t,s);let n;const a=(0,xo.toHash)(r);if(a.array&&a.object){const i=(0,le._)`typeof ${e} != "object"`;n=a.null?i:(0,le._)`!${e} || ${i}`,delete a.null,delete a.array,delete a.object}else n=le.nil;a.number&&delete a.integer;for(const i in a)n=(0,le.and)(n,sn(i,e,t,s));return n}Ae.checkDataTypes=nn;const sd={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:e})=>typeof r=="string"?(0,le._)`{type: ${r}}`:(0,le._)`{type: ${e}}`};function an(r){const e=nd(r);(0,Zc.reportError)(e,sd)}Ae.reportTypeError=an;function nd(r){const{gen:e,data:t,schema:s}=r,n=(0,xo.schemaRefOrVal)(r,s,"type");return{gen:e,keyword:"type",data:t,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:r}}var is={};Object.defineProperty(is,"__esModule",{value:!0}),is.assignDefaults=void 0;const fr=ie,ad=Y;function od(r,e){const{properties:t,items:s}=r.schema;if(e==="object"&&t)for(const n in t)To(r,n,t[n].default);else e==="array"&&Array.isArray(s)&&s.forEach((n,a)=>To(r,a,n.default))}is.assignDefaults=od;function To(r,e,t){const{gen:s,compositeRule:n,data:a,opts:i}=r;if(t===void 0)return;const l=(0,fr._)`${a}${(0,fr.getProperty)(e)}`;if(n){(0,ad.checkStrictMode)(r,`default is ignored for: ${l}`);return}let d=(0,fr._)`${l} === undefined`;i.useDefaults==="empty"&&(d=(0,fr._)`${d} || ${l} === null || ${l} === ""`),s.if(d,(0,fr._)`${l} = ${(0,fr.stringify)(t)}`)}var St={},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 be=ie,on=Y,Lt=gt,id=Y;function ld(r,e){const{gen:t,data:s,it:n}=r;t.if(un(t,s,e,n.opts.ownProperties),()=>{r.setParams({missingProperty:(0,be._)`${e}`},!0),r.error()})}de.checkReportMissingProp=ld;function ud({gen:r,data:e,it:{opts:t}},s,n){return(0,be.or)(...s.map(a=>(0,be.and)(un(r,e,a,t.ownProperties),(0,be._)`${n} = ${a}`)))}de.checkMissingProp=ud;function cd(r,e){r.setParams({missingProperty:e},!0),r.error()}de.reportMissingProp=cd;function Oo(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,be._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=Oo;function ln(r,e,t){return(0,be._)`${Oo(r)}.call(${e}, ${t})`}de.isOwnProperty=ln;function dd(r,e,t,s){const n=(0,be._)`${e}${(0,be.getProperty)(t)} !== undefined`;return s?(0,be._)`${n} && ${ln(r,e,t)}`:n}de.propertyInData=dd;function un(r,e,t,s){const n=(0,be._)`${e}${(0,be.getProperty)(t)} === undefined`;return s?(0,be.or)(n,(0,be.not)(ln(r,e,t))):n}de.noPropertyInData=un;function Po(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=Po;function hd(r,e){return Po(e).filter(t=>!(0,on.alwaysValidSchema)(r,e[t]))}de.schemaProperties=hd;function pd({schemaCode:r,data:e,it:{gen:t,topSchemaRef:s,schemaPath:n,errorPath:a},it:i},l,d,o){const u=o?(0,be._)`${r}, ${e}, ${s}${n}`:e,p=[[Lt.default.instancePath,(0,be.strConcat)(Lt.default.instancePath,a)],[Lt.default.parentData,i.parentData],[Lt.default.parentDataProperty,i.parentDataProperty],[Lt.default.rootData,Lt.default.rootData]];i.opts.dynamicRef&&p.push([Lt.default.dynamicAnchors,Lt.default.dynamicAnchors]);const f=(0,be._)`${u}, ${t.object(...p)}`;return d!==be.nil?(0,be._)`${l}.call(${d}, ${f})`:(0,be._)`${l}(${f})`}de.callValidateCode=pd;const fd=(0,be._)`new RegExp`;function md({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,be._)`${n.code==="new RegExp"?fd:(0,id.useFunc)(r,n)}(${t}, ${s})`})}de.usePattern=md;function gd(r){const{gen:e,data:t,keyword:s,it:n}=r,a=e.name("valid");if(n.allErrors){const l=e.let("valid",!0);return i(()=>e.assign(l,!1)),l}return e.var(a,!0),i(()=>e.break()),a;function i(l){const d=e.const("len",(0,be._)`${t}.length`);e.forRange("i",0,d,o=>{r.subschema({keyword:s,dataProp:o,dataPropType:on.Type.Num},a),e.if((0,be.not)(a),l)})}}de.validateArray=gd;function yd(r){const{gen:e,schema:t,keyword:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(l=>(0,on.alwaysValidSchema)(n,l))&&!n.opts.unevaluated)return;const a=e.let("valid",!1),i=e.name("_valid");e.block(()=>t.forEach((l,d)=>{const o=r.subschema({keyword:s,schemaProp:d,compositeRule:!0},i);e.assign(a,(0,be._)`${a} || ${i}`),r.mergeValidEvaluated(o,i)||e.if((0,be.not)(a))})),r.result(a,()=>r.reset(),()=>r.error(!0))}de.validateUnion=yd,Object.defineProperty(St,"__esModule",{value:!0}),St.validateKeywordUsage=St.validSchemaType=St.funcKeywordCode=St.macroKeywordCode=void 0;const Ue=ie,Jt=gt,vd=de,_d=dr;function bd(r,e){const{gen:t,keyword:s,schema:n,parentSchema:a,it:i}=r,l=e.macro.call(i.self,n,a,i),d=Io(t,s,l);i.opts.validateSchema!==!1&&i.self.validateSchema(l,!0);const o=t.name("valid");r.subschema({schema:l,schemaPath:Ue.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:d,compositeRule:!0},o),r.pass(o,()=>r.error(!0))}St.macroKeywordCode=bd;function kd(r,e){var t;const{gen:s,keyword:n,schema:a,parentSchema:i,$data:l,it:d}=r;wd(d,e);const o=!l&&e.compile?e.compile.call(d.self,a,i,d):e.validate,u=Io(s,n,o),p=s.let("valid");r.block$data(p,f),r.ok((t=e.valid)!==null&&t!==void 0?t:p);function f(){if(e.errors===!1)v(),e.modifying&&No(r),m(()=>r.error());else{const y=e.async?_():g();e.modifying&&No(r),m(()=>$d(r,y))}}function _(){const y=s.let("ruleErrs",null);return s.try(()=>v((0,Ue._)`await `),h=>s.assign(p,!1).if((0,Ue._)`${h} instanceof ${d.ValidationError}`,()=>s.assign(y,(0,Ue._)`${h}.errors`),()=>s.throw(h))),y}function g(){const y=(0,Ue._)`${u}.errors`;return s.assign(y,null),v(Ue.nil),y}function v(y=e.async?(0,Ue._)`await `:Ue.nil){const h=d.opts.passContext?Jt.default.this:Jt.default.self,b=!("compile"in e&&!l||e.schema===!1);s.assign(p,(0,Ue._)`${y}${(0,vd.callValidateCode)(r,u,h,b)}`,e.modifying)}function m(y){var h;s.if((0,Ue.not)((h=e.valid)!==null&&h!==void 0?h:p),y)}}St.funcKeywordCode=kd;function No(r){const{gen:e,data:t,it:s}=r;e.if(s.parentData,()=>e.assign(t,(0,Ue._)`${s.parentData}[${s.parentDataProperty}]`))}function $d(r,e){const{gen:t}=r;t.if((0,Ue._)`Array.isArray(${e})`,()=>{t.assign(Jt.default.vErrors,(0,Ue._)`${Jt.default.vErrors} === null ? ${e} : ${Jt.default.vErrors}.concat(${e})`).assign(Jt.default.errors,(0,Ue._)`${Jt.default.vErrors}.length`),(0,_d.extendErrors)(r)},()=>r.error())}function wd({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function Io(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,Ue.stringify)(t)})}function Ed(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")}St.validSchemaType=Ed;function Sd({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(l=>!Object.prototype.hasOwnProperty.call(r,l)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(n.validateSchema&&!n.validateSchema(r[a])){const l=`keyword "${a}" value is invalid at path "${s}": `+t.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(l);else throw new Error(l)}}St.validateKeywordUsage=Sd;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.extendSubschemaMode=Vt.extendSubschemaData=Vt.getSubschema=void 0;const xt=ie,Do=Y;function xd(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 l=r.schema[e];return t===void 0?{schema:l,schemaPath:(0,xt._)`${r.schemaPath}${(0,xt.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:l[t],schemaPath:(0,xt._)`${r.schemaPath}${(0,xt.getProperty)(e)}${(0,xt.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,Do.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')}Vt.getSubschema=xd;function Ad(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:l}=e;if(t!==void 0){const{errorPath:o,dataPathArr:u,opts:p}=e,f=l.let("data",(0,xt._)`${e.data}${(0,xt.getProperty)(t)}`,!0);d(f),r.errorPath=(0,xt.str)`${o}${(0,Do.getErrorPath)(t,s,p.jsPropertySyntax)}`,r.parentDataProperty=(0,xt._)`${t}`,r.dataPathArr=[...u,r.parentDataProperty]}if(n!==void 0){const o=n instanceof xt.Name?n:l.let("data",n,!0);d(o),i!==void 0&&(r.propertyName=i)}a&&(r.dataTypes=a);function d(o){r.data=o,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,o]}}Vt.extendSubschemaData=Ad;function Cd(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}Vt.extendSubschemaMode=Cd;var Me={},Mo=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},Fo={exports:{}},zt=Fo.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(){};ls(e,s,n,r,"",r)};zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},zt.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 ls(r,e,t,s,n,a,i,l,d,o){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,a,i,l,d,o);for(var u in s){var p=s[u];if(Array.isArray(p)){if(u in zt.arrayKeywords)for(var f=0;f<p.length;f++)ls(r,e,t,p[f],n+"/"+u+"/"+f,a,n,u,s,f)}else if(u in zt.propsKeywords){if(p&&typeof p=="object")for(var _ in p)ls(r,e,t,p[_],n+"/"+u+"/"+Td(_),a,n,u,s,_)}else(u in zt.keywords||r.allKeys&&!(u in zt.skipKeywords))&&ls(r,e,t,p,n+"/"+u,a,n,u,s)}t(s,n,a,i,l,d,o)}}function Td(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var Od=Fo.exports;Object.defineProperty(Me,"__esModule",{value:!0}),Me.getSchemaRefs=Me.resolveUrl=Me.normalizeId=Me._getFullPath=Me.getFullPath=Me.inlineRef=void 0;const Pd=Y,Nd=Mo,Id=Od,Dd=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Md(r,e=!0){return typeof r=="boolean"?!0:e===!0?!cn(r):e?Bo(r)<=e:!1}Me.inlineRef=Md;const Fd=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function cn(r){for(const e in r){if(Fd.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(cn)||typeof t=="object"&&cn(t))return!0}return!1}function Bo(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!Dd.has(t)&&(typeof r[t]=="object"&&(0,Pd.eachItem)(r[t],s=>e+=Bo(s)),e===1/0)))return 1/0;return e}function Ro(r,e="",t){t!==!1&&(e=mr(e));const s=r.parse(e);return jo(r,s)}Me.getFullPath=Ro;function jo(r,e){return r.serialize(e).split("#")[0]+"#"}Me._getFullPath=jo;const Bd=/#\/?$/;function mr(r){return r?r.replace(Bd,""):""}Me.normalizeId=mr;function Rd(r,e,t){return t=mr(t),r.resolve(e,t)}Me.resolveUrl=Rd;const jd=/^[a-z_][-a-z0-9._]*$/i;function Ld(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:s}=this.opts,n=mr(r[t]||e),a={"":n},i=Ro(s,n,!1),l={},d=new Set;return Id(r,{allKeys:!0},(p,f,_,g)=>{if(g===void 0)return;const v=i+f;let m=a[g];typeof p[t]=="string"&&(m=y.call(this,p[t])),h.call(this,p.$anchor),h.call(this,p.$dynamicAnchor),a[f]=m;function y(b){const $=this.opts.uriResolver.resolve;if(b=mr(m?$(m,b):b),d.has(b))throw u(b);d.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?o(p,S.schema,b):b!==mr(v)&&(b[0]==="#"?(o(p,l[b],b),l[b]=p):this.refs[b]=v),b}function h(b){if(typeof b=="string"){if(!jd.test(b))throw new Error(`invalid anchor "${b}"`);y.call(this,`#${b}`)}}}),l;function o(p,f,_){if(f!==void 0&&!Nd(p,f))throw u(_)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Me.getSchemaRefs=Ld,Object.defineProperty(lt,"__esModule",{value:!0}),lt.getData=lt.KeywordCxt=lt.validateFunctionCode=void 0;const Lo=cr,Vo=Ae,dn=Nt,us=Ae,Vd=is,Or=St,hn=Vt,ee=ie,oe=gt,zd=Me,It=Y,Pr=dr;function Hd(r){if(Go(r)&&(qo(r),Uo(r))){qd(r);return}zo(r,()=>(0,Lo.topBoolOrEmptySchema)(r))}lt.validateFunctionCode=Hd;function zo({gen:r,validateName:e,schema:t,schemaEnv:s,opts:n},a){n.code.es5?r.func(e,(0,ee._)`${oe.default.data}, ${oe.default.valCxt}`,s.$async,()=>{r.code((0,ee._)`"use strict"; ${Ho(t,n)}`),Gd(r,n),r.code(a)}):r.func(e,(0,ee._)`${oe.default.data}, ${Ud(n)}`,s.$async,()=>r.code(Ho(t,n)).code(a))}function Ud(r){return(0,ee._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${r.dynamicRef?(0,ee._)`, ${oe.default.dynamicAnchors}={}`:ee.nil}}={}`}function Gd(r,e){r.if(oe.default.valCxt,()=>{r.var(oe.default.instancePath,(0,ee._)`${oe.default.valCxt}.${oe.default.instancePath}`),r.var(oe.default.parentData,(0,ee._)`${oe.default.valCxt}.${oe.default.parentData}`),r.var(oe.default.parentDataProperty,(0,ee._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),r.var(oe.default.rootData,(0,ee._)`${oe.default.valCxt}.${oe.default.rootData}`),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,ee._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{r.var(oe.default.instancePath,(0,ee._)`""`),r.var(oe.default.parentData,(0,ee._)`undefined`),r.var(oe.default.parentDataProperty,(0,ee._)`undefined`),r.var(oe.default.rootData,oe.default.data),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,ee._)`{}`)})}function qd(r){const{schema:e,opts:t,gen:s}=r;zo(r,()=>{t.$comment&&e.$comment&&Ko(r),Zd(r),s.let(oe.default.vErrors,null),s.let(oe.default.errors,0),t.unevaluated&&Wd(r),Wo(r),eh(r)})}function Wd(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,ee._)`${t}.evaluated`),e.if((0,ee._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,ee._)`${r.evaluated}.props`,(0,ee._)`undefined`)),e.if((0,ee._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,ee._)`${r.evaluated}.items`,(0,ee._)`undefined`))}function Ho(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,ee._)`/*# sourceURL=${t} */`:ee.nil}function Kd(r,e){if(Go(r)&&(qo(r),Uo(r))){Xd(r,e);return}(0,Lo.boolOrEmptySchema)(r,e)}function Uo({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 Go(r){return typeof r.schema!="boolean"}function Xd(r,e){const{schema:t,gen:s,opts:n}=r;n.$comment&&t.$comment&&Ko(r),Jd(r),Qd(r);const a=s.const("_errs",oe.default.errors);Wo(r,a),s.var(e,(0,ee._)`${a} === ${oe.default.errors}`)}function qo(r){(0,It.checkUnknownRules)(r),Yd(r)}function Wo(r,e){if(r.opts.jtd)return Xo(r,[],!1,e);const t=(0,Vo.getSchemaTypes)(r.schema),s=(0,Vo.coerceAndCheckDataType)(r,t);Xo(r,t,!s,e)}function Yd(r){const{schema:e,errSchemaPath:t,opts:s,self:n}=r;e.$ref&&s.ignoreKeywordsWithRef&&(0,It.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function Zd(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,It.checkStrictMode)(r,"default is ignored in the schema root")}function Jd(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,zd.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function Qd(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function Ko({gen:r,schemaEnv:e,schema:t,errSchemaPath:s,opts:n}){const a=t.$comment;if(n.$comment===!0)r.code((0,ee._)`${oe.default.self}.logger.log(${a})`);else if(typeof n.$comment=="function"){const i=(0,ee.str)`${s}/$comment`,l=r.scopeValue("root",{ref:e.root});r.code((0,ee._)`${oe.default.self}.opts.$comment(${a}, ${i}, ${l}.schema)`)}}function eh(r){const{gen:e,schemaEnv:t,validateName:s,ValidationError:n,opts:a}=r;t.$async?e.if((0,ee._)`${oe.default.errors} === 0`,()=>e.return(oe.default.data),()=>e.throw((0,ee._)`new ${n}(${oe.default.vErrors})`)):(e.assign((0,ee._)`${s}.errors`,oe.default.vErrors),a.unevaluated&&th(r),e.return((0,ee._)`${oe.default.errors} === 0`))}function th({gen:r,evaluated:e,props:t,items:s}){t instanceof ee.Name&&r.assign((0,ee._)`${e}.props`,t),s instanceof ee.Name&&r.assign((0,ee._)`${e}.items`,s)}function Xo(r,e,t,s){const{gen:n,schema:a,data:i,allErrors:l,opts:d,self:o}=r,{RULES:u}=o;if(a.$ref&&(d.ignoreKeywordsWithRef||!(0,It.schemaHasRulesButRef)(a,u))){n.block(()=>Qo(r,"$ref",u.all.$ref.definition));return}d.jtd||rh(r,e),n.block(()=>{for(const f of u.rules)p(f);p(u.post)});function p(f){(0,dn.shouldUseGroup)(a,f)&&(f.type?(n.if((0,us.checkDataType)(f.type,i,d.strictNumbers)),Yo(r,f),e.length===1&&e[0]===f.type&&t&&(n.else(),(0,us.reportTypeError)(r)),n.endIf()):Yo(r,f),l||n.if((0,ee._)`${oe.default.errors} === ${s||0}`))}}function Yo(r,e){const{gen:t,schema:s,opts:{useDefaults:n}}=r;n&&(0,Vd.assignDefaults)(r,e.type),t.block(()=>{for(const a of e.rules)(0,dn.shouldUseRule)(s,a)&&Qo(r,a.keyword,a.definition,e.type)})}function rh(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(sh(r,e),r.opts.allowUnionTypes||nh(r,e),ah(r,r.dataTypes))}function sh(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{Zo(r.dataTypes,t)||pn(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),ih(r,e)}}function nh(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&pn(r,"use allowUnionTypes to allow union type keyword")}function ah(r,e){const t=r.self.RULES.all;for(const s in t){const n=t[s];if(typeof n=="object"&&(0,dn.shouldUseRule)(r.schema,n)){const{type:a}=n.definition;a.length&&!a.some(i=>oh(e,i))&&pn(r,`missing type "${a.join(",")}" for keyword "${s}"`)}}}function oh(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function Zo(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function ih(r,e){const t=[];for(const s of r.dataTypes)Zo(e,s)?t.push(s):e.includes("integer")&&s==="number"&&t.push("integer");r.dataTypes=t}function pn(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,It.checkStrictMode)(r,e,r.opts.strictTypes)}class Jo{constructor(e,t,s){if((0,Or.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,It.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",ei(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Or.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",oe.default.errors))}result(e,t,s){this.failResult((0,ee.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,ee.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,ee._)`${t} !== undefined && (${(0,ee.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?Pr.reportExtraError:Pr.reportError)(this,this.def.error,t)}$dataError(){(0,Pr.reportError)(this,this.def.$dataError||Pr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Pr.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=ee.nil){this.gen.block(()=>{this.check$data(e,s),t()})}check$data(e=ee.nil,t=ee.nil){if(!this.$data)return;const{gen:s,schemaCode:n,schemaType:a,def:i}=this;s.if((0,ee.or)((0,ee._)`${n} === undefined`,t)),e!==ee.nil&&s.assign(e,!0),(a.length||i.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==ee.nil&&s.assign(e,!1)),s.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:s,def:n,it:a}=this;return(0,ee.or)(i(),l());function i(){if(s.length){if(!(t instanceof ee.Name))throw new Error("ajv implementation error");const d=Array.isArray(s)?s:[s];return(0,ee._)`${(0,us.checkDataTypes)(d,t,a.opts.strictNumbers,us.DataType.Wrong)}`}return ee.nil}function l(){if(n.validateSchema){const d=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,ee._)`!${d}(${t})`}return ee.nil}}subschema(e,t){const s=(0,hn.getSubschema)(this.it,e);(0,hn.extendSubschemaData)(s,this.it,e),(0,hn.extendSubschemaMode)(s,e);const n={...this.it,...s,items:void 0,props:void 0};return Kd(n,t),n}mergeEvaluated(e,t){const{it:s,gen:n}=this;s.opts.unevaluated&&(s.props!==!0&&e.props!==void 0&&(s.props=It.mergeEvaluated.props(n,e.props,s.props,t)),s.items!==!0&&e.items!==void 0&&(s.items=It.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,ee.Name)),!0}}lt.KeywordCxt=Jo;function Qo(r,e,t,s){const n=new Jo(r,t,e);"code"in t?t.code(n,s):n.$data&&t.validate?(0,Or.funcKeywordCode)(n,t):"macro"in t?(0,Or.macroKeywordCode)(n,t):(t.compile||t.validate)&&(0,Or.funcKeywordCode)(n,t)}const lh=/^\/(?:[^~]|~0|~1)*$/,uh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ei(r,{dataLevel:e,dataNames:t,dataPathArr:s}){let n,a;if(r==="")return oe.default.rootData;if(r[0]==="/"){if(!lh.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);n=r,a=oe.default.rootData}else{const o=uh.exec(r);if(!o)throw new Error(`Invalid JSON-pointer: ${r}`);const u=+o[1];if(n=o[2],n==="#"){if(u>=e)throw new Error(d("property/index",u));return s[e-u]}if(u>e)throw new Error(d("data",u));if(a=t[e-u],!n)return a}let i=a;const l=n.split("/");for(const o of l)o&&(a=(0,ee._)`${a}${(0,ee.getProperty)((0,It.unescapeJsonPointer)(o))}`,i=(0,ee._)`${i} && ${a}`);return i;function d(o,u){return`Cannot access ${o} ${u} levels up, current level is ${e}`}}lt.getData=ei;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});class ch extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Nr.default=ch;var gr={};Object.defineProperty(gr,"__esModule",{value:!0});const fn=Me;class dh extends Error{constructor(e,t,s,n){super(n||`can't resolve reference ${s} from id ${t}`),this.missingRef=(0,fn.resolveUrl)(e,t,s),this.missingSchema=(0,fn.normalizeId)((0,fn.getFullPath)(e,this.missingRef))}}gr.default=dh;var Qe={};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.resolveSchema=Qe.getCompilingSchema=Qe.resolveRef=Qe.compileSchema=Qe.SchemaEnv=void 0;const yt=ie,hh=Nr,Qt=gt,vt=Me,ti=Y,ph=lt;class cs{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,vt.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={}}}Qe.SchemaEnv=cs;function mn(r){const e=ri.call(this,r);if(e)return e;const t=(0,vt.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:s,lines:n}=this.opts.code,{ownProperties:a}=this.opts,i=new yt.CodeGen(this.scope,{es5:s,lines:n,ownProperties:a});let l;r.$async&&(l=i.scopeValue("Error",{ref:hh.default,code:(0,yt._)`require("ajv/dist/runtime/validation_error").default`}));const d=i.scopeName("validate");r.validateName=d;const o={gen:i,allErrors:this.opts.allErrors,data:Qt.default.data,parentData:Qt.default.parentData,parentDataProperty:Qt.default.parentDataProperty,dataNames:[Qt.default.data],dataPathArr:[yt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,yt.stringify)(r.schema)}:{ref:r.schema}),validateName:d,ValidationError:l,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:yt.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,yt._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(r),(0,ph.validateFunctionCode)(o),i.optimize(this.opts.code.optimize);const p=i.toString();u=`${i.scopeRefs(Qt.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,r));const f=new Function(`${Qt.default.self}`,`${Qt.default.scope}`,u)(this,this.scope.get());if(this.scope.value(d,{ref:f}),f.errors=null,f.schema=r.schema,f.schemaEnv=r,r.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:d,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){const{props:_,items:g}=o;f.evaluated={props:_ instanceof yt.Name?void 0:_,items:g instanceof yt.Name?void 0:g,dynamicProps:_ instanceof yt.Name,dynamicItems:g instanceof yt.Name},f.source&&(f.source.evaluated=(0,yt.stringify)(f.evaluated))}return r.validate=f,r}catch(p){throw delete r.validate,delete r.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(r)}}Qe.compileSchema=mn;function fh(r,e,t){var s;t=(0,vt.resolveUrl)(this.opts.uriResolver,e,t);const n=r.refs[t];if(n)return n;let a=yh.call(this,r,t);if(a===void 0){const i=(s=r.localRefs)===null||s===void 0?void 0:s[t],{schemaId:l}=this.opts;i&&(a=new cs({schema:i,schemaId:l,root:r,baseId:e}))}if(a!==void 0)return r.refs[t]=mh.call(this,a)}Qe.resolveRef=fh;function mh(r){return(0,vt.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:mn.call(this,r)}function ri(r){for(const e of this._compilations)if(gh(e,r))return e}Qe.getCompilingSchema=ri;function gh(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function yh(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||ds.call(this,r,e)}function ds(r,e){const t=this.opts.uriResolver.parse(e),s=(0,vt._getFullPath)(this.opts.uriResolver,t);let n=(0,vt.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&s===n)return gn.call(this,t,r);const a=(0,vt.normalizeId)(s),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const l=ds.call(this,r,i);return typeof(l==null?void 0:l.schema)!="object"?void 0:gn.call(this,t,l)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||mn.call(this,i),a===(0,vt.normalizeId)(e)){const{schema:l}=i,{schemaId:d}=this.opts,o=l[d];return o&&(n=(0,vt.resolveUrl)(this.opts.uriResolver,n,o)),new cs({schema:l,schemaId:d,root:r,baseId:n})}return gn.call(this,t,i)}}Qe.resolveSchema=ds;const vh=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function gn(r,{baseId:e,schema:t,root:s}){var n;if(((n=r.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const l of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const d=t[(0,ti.unescapeFragment)(l)];if(d===void 0)return;t=d;const o=typeof t=="object"&&t[this.opts.schemaId];!vh.has(l)&&o&&(e=(0,vt.resolveUrl)(this.opts.uriResolver,e,o))}let a;if(typeof t!="boolean"&&t.$ref&&!(0,ti.schemaHasRulesButRef)(t,this.RULES)){const l=(0,vt.resolveUrl)(this.opts.uriResolver,e,t.$ref);a=ds.call(this,s,l)}const{schemaId:i}=this.opts;if(a=a||new cs({schema:t,schemaId:i,root:s,baseId:e}),a.schema!==a.root.schema)return a}const _h="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",bh="Meta-schema for $data reference (JSON AnySchema extension proposal)",kh="object",$h=["$data"],wh={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Eh=!1,Sh={$id:_h,description:bh,type:kh,required:$h,properties:wh,additionalProperties:Eh};var yn={},hs={exports:{}},xh={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:Ah}=xh;function si(r){if(oi(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:Th(t,"."),isIPV4:!0}:{host:r,isIPV4:!1}}function ni(r,e=!1){let t="",s=!0;for(const n of r){if(Ah[n]===void 0)return;n!=="0"&&s===!0&&(s=!1),s||(t+=n)}return e&&t.length===0&&(t="0"),t}function Ch(r){let e=0;const t={error:!1,address:"",zone:""},s=[],n=[];let a=!1,i=!1,l=!1;function d(){if(n.length){if(a===!1){const o=ni(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 u=r[o];if(!(u==="["||u==="]"))if(u===":"){if(i===!0&&(l=!0),!d())break;if(e++,s.push(":"),e>7){t.error=!0;break}o-1>=0&&r[o-1]===":"&&(i=!0);continue}else if(u==="%"){if(!d())break;a=!0}else{n.push(u);continue}}return n.length&&(a?t.zone=n.join(""):l?s.push(n.join("")):s.push(ni(n))),t.address=s.join(""),t}function ai(r,e={}){if(oi(r,":")<2)return{host:r,isIPV6:!1};const t=Ch(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 Th(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 oi(r,e){let t=0;for(let s=0;s<r.length;s++)r[s]===e&&t++;return t}const ii=/^\.\.?\//u,li=/^\/\.(?:\/|$)/u,ui=/^\/\.\.(?:\/|$)/u,Oh=/^\/?(?:.|\n)*?(?=\/|$)/u;function Ph(r){const e=[];for(;r.length;)if(r.match(ii))r=r.replace(ii,"");else if(r.match(li))r=r.replace(li,"/");else if(r.match(ui))r=r.replace(ui,"/"),e.pop();else if(r==="."||r==="..")r="";else{const t=r.match(Oh);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 Nh(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 Ih(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=si(s);if(n.isIPV4)s=n.host;else{const a=ai(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 Dh={recomposeAuthority:Ih,normalizeComponentEncoding:Nh,removeDotSegments:Ph,normalizeIPv4:si,normalizeIPv6:ai};const Mh=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Fh=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function ci(r){return typeof r.secure=="boolean"?r.secure:String(r.scheme).toLowerCase()==="wss"}function di(r){return r.host||(r.error=r.error||"HTTP URIs must have a host."),r}function hi(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 Bh(r){return r.secure=ci(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r}function Rh(r){if((r.port===(ci(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 jh(r,e){if(!r.path)return r.error="URN can not be parsed",r;const t=r.path.match(Fh);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=vn[n];r.path=void 0,a&&(r=a.parse(r,e))}else r.error=r.error||"URN can not be parsed.";return r}function Lh(r,e){const t=e.scheme||r.scheme||"urn",s=r.nid.toLowerCase(),n=`${t}:${e.nid||s}`,a=vn[n];a&&(r=a.serialize(r,e));const i=r,l=r.nss;return i.path=`${s||e.nid}:${l}`,e.skipEscape=!0,i}function Vh(r,e){const t=r;return t.uuid=t.nss,t.nss=void 0,!e.tolerant&&(!t.uuid||!Mh.test(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function zh(r){const e=r;return e.nss=(r.uuid||"").toLowerCase(),e}const pi={scheme:"http",domainHost:!0,parse:di,serialize:hi},Hh={scheme:"https",domainHost:pi.domainHost,parse:di,serialize:hi},ps={scheme:"ws",domainHost:!0,parse:Bh,serialize:Rh},Uh={scheme:"wss",domainHost:ps.domainHost,parse:ps.parse,serialize:ps.serialize},Gh={scheme:"urn",parse:jh,serialize:Lh,skipNormalize:!0},qh={scheme:"urn:uuid",parse:Vh,serialize:zh,skipNormalize:!0},vn={http:pi,https:Hh,ws:ps,wss:Uh,urn:Gh,"urn:uuid":qh};var Wh=vn;const{normalizeIPv6:Kh,normalizeIPv4:Xh,removeDotSegments:Ir,recomposeAuthority:Yh,normalizeComponentEncoding:fs}=Dh,_n=Wh;function Zh(r,e){return typeof r=="string"?r=At(Dt(r,e),e):typeof r=="object"&&(r=Dt(At(r,e),e)),r}function Jh(r,e,t){const s=Object.assign({scheme:"null"},t),n=fi(Dt(r,s),Dt(e,s),s,!0);return At(n,{...s,skipEscape:!0})}function fi(r,e,t,s){const n={};return s||(r=Dt(At(r,t),t),e=Dt(At(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=Ir(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=Ir(e.path||""),n.query=e.query):(e.path?(e.path.charAt(0)==="/"?n.path=Ir(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=Ir(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 Qh(r,e,t){return typeof r=="string"?(r=unescape(r),r=At(fs(Dt(r,t),!0),{...t,skipEscape:!0})):typeof r=="object"&&(r=At(fs(r,!0),{...t,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=At(fs(Dt(e,t),!0),{...t,skipEscape:!0})):typeof e=="object"&&(e=At(fs(e,!0),{...t,skipEscape:!0})),r.toLowerCase()===e.toLowerCase()}function At(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=_n[(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=Yh(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 l=t.path;!s.absolutePath&&(!a||!a.absolutePath)&&(l=Ir(l)),i===void 0&&(l=l.replace(/^\/\//u,"/%2F")),n.push(l)}return t.query!==void 0&&n.push("?",t.query),t.fragment!==void 0&&n.push("#",t.fragment),n.join("")}const ep=Array.from({length:127},(r,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function tp(r){let e=0;for(let t=0,s=r.length;t<s;++t)if(e=r.charCodeAt(t),e>126||ep[e])return!0;return!1}const rp=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Dt(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(rp);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 d=Xh(s.host);if(d.isIPV4===!1){const o=Kh(d.host,{isIPV4:!1});s.host=o.host.toLowerCase(),a=o.isIPV6}else s.host=d.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 l=_n[(t.scheme||s.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!l||!l.unicodeSupport)&&s.host&&(t.domainHost||l&&l.domainHost)&&a===!1&&tp(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(d){s.error=s.error||"Host's domain name can not be converted to ASCII: "+d}(!l||l&&!l.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)))),l&&l.parse&&l.parse(s,t)}else s.error=s.error||"URI can not be parsed.";return s}const bn={SCHEMES:_n,normalize:Zh,resolve:Jh,resolveComponents:fi,equal:Qh,serialize:At,parse:Dt};hs.exports=bn,hs.exports.default=bn,hs.exports.fastUri=bn;var sp=hs.exports;Object.defineProperty(yn,"__esModule",{value:!0});const mi=sp;mi.code='require("ajv/dist/runtime/uri").default',yn.default=mi,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=lt;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=ie;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=Nr,n=gr,a=Zt,i=Qe,l=ie,d=Me,o=Ae,u=Y,p=Sh,f=yn,_=(P,k)=>new RegExp(P,k);_.code="new RegExp";const g=["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.'},h=200;function b(P){var k,x,E,c,w,C,L,F,z,G,J,H,fe,ge,Ke,nt,Xe,tt,dt,ht,Ie,De,Ve,rt,at;const Ce=P.strict,pt=(k=P.code)===null||k===void 0?void 0:k.optimize,or=pt===!0||pt===void 0?1:pt||0,Gt=(E=(x=P.code)===null||x===void 0?void 0:x.regExp)!==null&&E!==void 0?E:_,qt=(c=P.uriResolver)!==null&&c!==void 0?c:f.default;return{strictSchema:(C=(w=P.strictSchema)!==null&&w!==void 0?w:Ce)!==null&&C!==void 0?C:!0,strictNumbers:(F=(L=P.strictNumbers)!==null&&L!==void 0?L:Ce)!==null&&F!==void 0?F:!0,strictTypes:(G=(z=P.strictTypes)!==null&&z!==void 0?z:Ce)!==null&&G!==void 0?G:"log",strictTuples:(H=(J=P.strictTuples)!==null&&J!==void 0?J:Ce)!==null&&H!==void 0?H:"log",strictRequired:(ge=(fe=P.strictRequired)!==null&&fe!==void 0?fe:Ce)!==null&&ge!==void 0?ge:!1,code:P.code?{...P.code,optimize:or,regExp:Gt}:{optimize:or,regExp:Gt},loopRequired:(Ke=P.loopRequired)!==null&&Ke!==void 0?Ke:h,loopEnum:(nt=P.loopEnum)!==null&&nt!==void 0?nt:h,meta:(Xe=P.meta)!==null&&Xe!==void 0?Xe:!0,messages:(tt=P.messages)!==null&&tt!==void 0?tt:!0,inlineRefs:(dt=P.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:(ht=P.schemaId)!==null&&ht!==void 0?ht:"$id",addUsedSchema:(Ie=P.addUsedSchema)!==null&&Ie!==void 0?Ie:!0,validateSchema:(De=P.validateSchema)!==null&&De!==void 0?De:!0,validateFormats:(Ve=P.validateFormats)!==null&&Ve!==void 0?Ve:!0,unicodeRegExp:(rt=P.unicodeRegExp)!==null&&rt!==void 0?rt:!0,int32range:(at=P.int32range)!==null&&at!==void 0?at:!0,uriResolver:qt}}class ${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:E}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:x,lines:E}),this.logger=B(k.logger);const c=k.validateFormats;k.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,m,k,"NOT SUPPORTED"),S.call(this,y,k,"DEPRECATED","warn"),this._metaOpts=I.call(this),k.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&V.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),N.call(this),k.validateFormats=c}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:x,schemaId:E}=this.opts;let c=p;E==="id"&&(c={...p},c.id=c.$id,delete c.$id),x&&k&&this.addMetaSchema(c,c[E],!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 E;if(typeof k=="string"){if(E=this.getSchema(k),!E)throw new Error(`no schema with key or ref "${k}"`)}else E=this.compile(k);const c=E(x);return"$async"in E||(this.errors=E.errors),c}compile(k,x){const E=this._addSchema(k,x);return E.validate||this._compileSchemaEnv(E)}compileAsync(k,x){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return c.call(this,k,x);async function c(G,J){await w.call(this,G.$schema);const H=this._addSchema(G,J);return H.validate||C.call(this,H)}async function w(G){G&&!this.getSchema(G)&&await c.call(this,{$ref:G},!0)}async function C(G){try{return this._compileSchemaEnv(G)}catch(J){if(!(J instanceof n.default))throw J;return L.call(this,J),await F.call(this,J.missingSchema),C.call(this,G)}}function L({missingSchema:G,missingRef:J}){if(this.refs[G])throw new Error(`AnySchema ${G} is loaded but ${J} cannot be resolved`)}async function F(G){const J=await z.call(this,G);this.refs[G]||await w.call(this,J.$schema),this.refs[G]||this.addSchema(J,G,x)}async function z(G){const J=this._loading[G];if(J)return J;try{return await(this._loading[G]=E(G))}finally{delete this._loading[G]}}}addSchema(k,x,E,c=this.opts.validateSchema){if(Array.isArray(k)){for(const C of k)this.addSchema(C,void 0,E,c);return this}let w;if(typeof k=="object"){const{schemaId:C}=this.opts;if(w=k[C],w!==void 0&&typeof w!="string")throw new Error(`schema ${C} must be string`)}return x=(0,d.normalizeId)(x||w),this._checkUnique(x),this.schemas[x]=this._addSchema(k,E,x,c,!0),this}addMetaSchema(k,x,E=this.opts.validateSchema){return this.addSchema(k,x,!0,E),this}validateSchema(k,x){if(typeof k=="boolean")return!0;let E;if(E=k.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const c=this.validate(E,k);if(!c&&x){const w="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(w);else throw new Error(w)}return c}getSchema(k){let x;for(;typeof(x=O.call(this,k))=="string";)k=x;if(x===void 0){const{schemaId:E}=this.opts,c=new i.SchemaEnv({schema:{},schemaId:E});if(x=i.resolveSchema.call(this,c,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=O.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 E=k[this.opts.schemaId];return E&&(E=(0,d.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),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 E;if(typeof k=="string")E=k,typeof x=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),x.keyword=E);else if(typeof k=="object"&&x===void 0){if(x=k,E=x.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(U.call(this,E,x),!x)return(0,u.eachItem)(E,w=>W.call(this,w)),this;se.call(this,x);const c={...x,type:(0,o.getJSONTypes)(x.type),schemaType:(0,o.getJSONTypes)(x.schemaType)};return(0,u.eachItem)(E,c.type.length===0?w=>W.call(this,w,c):w=>c.type.forEach(C=>W.call(this,w,c,C))),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 E of x.rules){const c=E.rules.findIndex(w=>w.keyword===k);c>=0&&E.rules.splice(c,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:E="data"}={}){return!k||k.length===0?"No errors":k.map(c=>`${E}${c.instancePath} ${c.message}`).reduce((c,w)=>c+x+w)}$dataMetaSchema(k,x){const E=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const c of x){const w=c.split("/").slice(1);let C=k;for(const L of w)C=C[L];for(const L in E){const F=E[L];if(typeof F!="object")continue;const{$data:z}=F.definition,G=C[L];z&&G&&(C[L]=ne(G))}}return k}_removeAllSchemas(k,x){for(const E in k){const c=k[E];(!x||x.test(E))&&(typeof c=="string"?delete k[E]:c&&!c.meta&&(this._cache.delete(c.schema),delete k[E]))}}_addSchema(k,x,E,c=this.opts.validateSchema,w=this.opts.addUsedSchema){let C;const{schemaId:L}=this.opts;if(typeof k=="object")C=k[L];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 F=this._cache.get(k);if(F!==void 0)return F;E=(0,d.normalizeId)(C||E);const z=d.getSchemaRefs.call(this,k,E);return F=new i.SchemaEnv({schema:k,schemaId:L,meta:x,baseId:E,localRefs:z}),this._cache.set(F.schema,F),w&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=F),c&&this.validateSchema(k,!0),F}_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 x=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,k)}finally{this.opts=x}}}$.ValidationError=s.default,$.MissingRefError=n.default,r.default=$;function S(P,k,x,E="error"){for(const c in P){const w=c;w in k&&this.logger[E](`${x}: option ${c}. ${P[w]}`)}}function O(P){return P=(0,d.normalizeId)(P),this.schemas[P]||this.refs[P]}function N(){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 V(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 g)delete P[k];return P}const T={log(){},warn(){},error(){}};function B(P){if(P===!1)return T;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 j=/^[a-z_$][a-z0-9_$:-]*$/i;function U(P,k){const{RULES:x}=this;if((0,u.eachItem)(P,E=>{if(x.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!j.test(E))throw new Error(`Keyword ${E} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function W(P,k,x){var E;const c=k==null?void 0:k.post;if(x&&c)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:w}=this;let C=c?w.post:w.rules.find(({type:F})=>F===x);if(C||(C={type:x,rules:[]},w.rules.push(C)),w.keywords[P]=!0,!k)return;const L={keyword:P,definition:{...k,type:(0,o.getJSONTypes)(k.type),schemaType:(0,o.getJSONTypes)(k.schemaType)}};k.before?K.call(this,C,L,k.before):C.rules.push(L),w.all[P]=L,(E=k.implements)===null||E===void 0||E.forEach(F=>this.addKeyword(F))}function K(P,k,x){const E=P.rules.findIndex(c=>c.keyword===x);E>=0?P.rules.splice(E,0,k):(P.rules.push(k),this.logger.warn(`rule ${x} is not defined`))}function se(P){let{metaSchema:k}=P;k!==void 0&&(P.$data&&this.opts.$data&&(k=ne(k)),P.validateSchema=this.compile(k,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ne(P){return{anyOf:[P,Z]}}}(mo);var kn={},$n={},wn={};Object.defineProperty(wn,"__esModule",{value:!0});const np={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};wn.default=np;var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.callRef=er.getValidate=void 0;const ap=gr,gi=de,et=ie,yr=gt,yi=Qe,ms=Y,op={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:s}=r,{baseId:n,schemaEnv:a,validateName:i,opts:l,self:d}=s,{root:o}=a;if((t==="#"||t==="#/")&&n===o.baseId)return p();const u=yi.resolveRef.call(d,o,n,t);if(u===void 0)throw new ap.default(s.opts.uriResolver,n,t);if(u instanceof yi.SchemaEnv)return f(u);return _(u);function p(){if(a===o)return gs(r,i,a,a.$async);const g=e.scopeValue("root",{ref:o});return gs(r,(0,et._)`${g}.validate`,o,o.$async)}function f(g){const v=vi(r,g);gs(r,v,g,g.$async)}function _(g){const v=e.scopeValue("schema",l.code.source===!0?{ref:g,code:(0,et.stringify)(g)}:{ref:g}),m=e.name("valid"),y=r.subschema({schema:g,dataTypes:[],schemaPath:et.nil,topSchemaRef:v,errSchemaPath:t},m);r.mergeEvaluated(y),r.ok(m)}}};function vi(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,et._)`${t.scopeValue("wrapper",{ref:e})}.validate`}er.getValidate=vi;function gs(r,e,t,s){const{gen:n,it:a}=r,{allErrors:i,schemaEnv:l,opts:d}=a,o=d.passContext?yr.default.this:et.nil;s?u():p();function u(){if(!l.$async)throw new Error("async schema referenced by sync schema");const g=n.let("valid");n.try(()=>{n.code((0,et._)`await ${(0,gi.callValidateCode)(r,e,o)}`),_(e),i||n.assign(g,!0)},v=>{n.if((0,et._)`!(${v} instanceof ${a.ValidationError})`,()=>n.throw(v)),f(v),i||n.assign(g,!1)}),r.ok(g)}function p(){r.result((0,gi.callValidateCode)(r,e,o),()=>_(e),()=>f(e))}function f(g){const v=(0,et._)`${g}.errors`;n.assign(yr.default.vErrors,(0,et._)`${yr.default.vErrors} === null ? ${v} : ${yr.default.vErrors}.concat(${v})`),n.assign(yr.default.errors,(0,et._)`${yr.default.vErrors}.length`)}function _(g){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=ms.mergeEvaluated.props(n,m.props,a.props));else{const y=n.var("props",(0,et._)`${g}.evaluated.props`);a.props=ms.mergeEvaluated.props(n,y,a.props,et.Name)}if(a.items!==!0)if(m&&!m.dynamicItems)m.items!==void 0&&(a.items=ms.mergeEvaluated.items(n,m.items,a.items));else{const y=n.var("items",(0,et._)`${g}.evaluated.items`);a.items=ms.mergeEvaluated.items(n,y,a.items,et.Name)}}}er.callRef=gs,er.default=op,Object.defineProperty($n,"__esModule",{value:!0});const ip=wn,lp=er,up=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ip.default,lp.default];$n.default=up;var En={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});const ys=ie,Ht=ys.operators,vs={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}},cp={message:({keyword:r,schemaCode:e})=>(0,ys.str)`must be ${vs[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,ys._)`{comparison: ${vs[r].okStr}, limit: ${e}}`},dp={keyword:Object.keys(vs),type:"number",schemaType:"number",$data:!0,error:cp,code(r){const{keyword:e,data:t,schemaCode:s}=r;r.fail$data((0,ys._)`${t} ${vs[e].fail} ${s} || isNaN(${t})`)}};Sn.default=dp;var xn={};Object.defineProperty(xn,"__esModule",{value:!0});const Dr=ie,hp={message:({schemaCode:r})=>(0,Dr.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,Dr._)`{multipleOf: ${r}}`},pp={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:hp,code(r){const{gen:e,data:t,schemaCode:s,it:n}=r,a=n.opts.multipleOfPrecision,i=e.let("res"),l=a?(0,Dr._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Dr._)`${i} !== parseInt(${i})`;r.fail$data((0,Dr._)`(${s} === 0 || (${i} = ${t}/${s}, ${l}))`)}};xn.default=pp;var An={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});function _i(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}Cn.default=_i,_i.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(An,"__esModule",{value:!0});const tr=ie,fp=Y,mp=Cn,gp={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,tr.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,tr._)`{limit: ${r}}`},yp={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:gp,code(r){const{keyword:e,data:t,schemaCode:s,it:n}=r,a=e==="maxLength"?tr.operators.GT:tr.operators.LT,i=n.opts.unicode===!1?(0,tr._)`${t}.length`:(0,tr._)`${(0,fp.useFunc)(r.gen,mp.default)}(${t})`;r.fail$data((0,tr._)`${i} ${a} ${s}`)}};An.default=yp;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});const vp=de,_s=ie,_p={message:({schemaCode:r})=>(0,_s.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,_s._)`{pattern: ${r}}`},bp={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:_p,code(r){const{data:e,$data:t,schema:s,schemaCode:n,it:a}=r,i=a.opts.unicodeRegExp?"u":"",l=t?(0,_s._)`(new RegExp(${n}, ${i}))`:(0,vp.usePattern)(r,s);r.fail$data((0,_s._)`!${l}.test(${e})`)}};Tn.default=bp;var On={};Object.defineProperty(On,"__esModule",{value:!0});const Mr=ie,kp={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,Mr.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,Mr._)`{limit: ${r}}`},$p={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:kp,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxProperties"?Mr.operators.GT:Mr.operators.LT;r.fail$data((0,Mr._)`Object.keys(${t}).length ${n} ${s}`)}};On.default=$p;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const Fr=de,Br=ie,wp=Y,Ep={message:({params:{missingProperty:r}})=>(0,Br.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,Br._)`{missingProperty: ${r}}`},Sp={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Ep,code(r){const{gen:e,schema:t,schemaCode:s,data:n,$data:a,it:i}=r,{opts:l}=i;if(!a&&t.length===0)return;const d=t.length>=l.loopRequired;if(i.allErrors?o():u(),l.strictRequired){const _=r.parentSchema.properties,{definedProperties:g}=r.it;for(const v of t)if((_==null?void 0:_[v])===void 0&&!g.has(v)){const m=i.schemaEnv.baseId+i.errSchemaPath,y=`required property "${v}" is not defined at "${m}" (strictRequired)`;(0,wp.checkStrictMode)(i,y,i.opts.strictRequired)}}function o(){if(d||a)r.block$data(Br.nil,p);else for(const _ of t)(0,Fr.checkReportMissingProp)(r,_)}function u(){const _=e.let("missing");if(d||a){const g=e.let("valid",!0);r.block$data(g,()=>f(_,g)),r.ok(g)}else e.if((0,Fr.checkMissingProp)(r,t,_)),(0,Fr.reportMissingProp)(r,_),e.else()}function p(){e.forOf("prop",s,_=>{r.setParams({missingProperty:_}),e.if((0,Fr.noPropertyInData)(e,n,_,l.ownProperties),()=>r.error())})}function f(_,g){r.setParams({missingProperty:_}),e.forOf(_,s,()=>{e.assign(g,(0,Fr.propertyInData)(e,n,_,l.ownProperties)),e.if((0,Br.not)(g),()=>{r.error(),e.break()})},Br.nil)}}};Pn.default=Sp;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});const Rr=ie,xp={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,Rr.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,Rr._)`{limit: ${r}}`},Ap={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:xp,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxItems"?Rr.operators.GT:Rr.operators.LT;r.fail$data((0,Rr._)`${t}.length ${n} ${s}`)}};Nn.default=Ap;var In={},jr={};Object.defineProperty(jr,"__esModule",{value:!0});const bi=Mo;bi.code='require("ajv/dist/runtime/equal").default',jr.default=bi,Object.defineProperty(In,"__esModule",{value:!0});const Dn=Ae,Fe=ie,Cp=Y,Tp=jr,Op={message:({params:{i:r,j:e}})=>(0,Fe.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,Fe._)`{i: ${r}, j: ${e}}`},Pp={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Op,code(r){const{gen:e,data:t,$data:s,schema:n,parentSchema:a,schemaCode:i,it:l}=r;if(!s&&!n)return;const d=e.let("valid"),o=a.items?(0,Dn.getSchemaTypes)(a.items):[];r.block$data(d,u,(0,Fe._)`${i} === false`),r.ok(d);function u(){const g=e.let("i",(0,Fe._)`${t}.length`),v=e.let("j");r.setParams({i:g,j:v}),e.assign(d,!0),e.if((0,Fe._)`${g} > 1`,()=>(p()?f:_)(g,v))}function p(){return o.length>0&&!o.some(g=>g==="object"||g==="array")}function f(g,v){const m=e.name("item"),y=(0,Dn.checkDataTypes)(o,m,l.opts.strictNumbers,Dn.DataType.Wrong),h=e.const("indices",(0,Fe._)`{}`);e.for((0,Fe._)`;${g}--;`,()=>{e.let(m,(0,Fe._)`${t}[${g}]`),e.if(y,(0,Fe._)`continue`),o.length>1&&e.if((0,Fe._)`typeof ${m} == "string"`,(0,Fe._)`${m} += "_"`),e.if((0,Fe._)`typeof ${h}[${m}] == "number"`,()=>{e.assign(v,(0,Fe._)`${h}[${m}]`),r.error(),e.assign(d,!1).break()}).code((0,Fe._)`${h}[${m}] = ${g}`)})}function _(g,v){const m=(0,Cp.useFunc)(e,Tp.default),y=e.name("outer");e.label(y).for((0,Fe._)`;${g}--;`,()=>e.for((0,Fe._)`${v} = ${g}; ${v}--;`,()=>e.if((0,Fe._)`${m}(${t}[${g}], ${t}[${v}])`,()=>{r.error(),e.assign(d,!1).break(y)})))}}};In.default=Pp;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});const Fn=ie,Np=Y,Ip=jr,Dp={message:"must be equal to constant",params:({schemaCode:r})=>(0,Fn._)`{allowedValue: ${r}}`},Mp={keyword:"const",$data:!0,error:Dp,code(r){const{gen:e,data:t,$data:s,schemaCode:n,schema:a}=r;s||a&&typeof a=="object"?r.fail$data((0,Fn._)`!${(0,Np.useFunc)(e,Ip.default)}(${t}, ${n})`):r.fail((0,Fn._)`${a} !== ${t}`)}};Mn.default=Mp;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const Lr=ie,Fp=Y,Bp=jr,Rp={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,Lr._)`{allowedValues: ${r}}`},jp={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 l=n.length>=i.opts.loopEnum;let d;const o=()=>d??(d=(0,Fp.useFunc)(e,Bp.default));let u;if(l||s)u=e.let("valid"),r.block$data(u,p);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const _=e.const("vSchema",a);u=(0,Lr.or)(...n.map((g,v)=>f(_,v)))}r.pass(u);function p(){e.assign(u,!1),e.forOf("v",a,_=>e.if((0,Lr._)`${o()}(${t}, ${_})`,()=>e.assign(u,!0).break()))}function f(_,g){const v=n[g];return typeof v=="object"&&v!==null?(0,Lr._)`${o()}(${t}, ${_}[${g}])`:(0,Lr._)`${t} === ${v}`}}};Bn.default=jp,Object.defineProperty(En,"__esModule",{value:!0});const Lp=Sn,Vp=xn,zp=An,Hp=Tn,Up=On,Gp=Pn,qp=Nn,Wp=In,Kp=Mn,Xp=Bn,Yp=[Lp.default,Vp.default,zp.default,Hp.default,Up.default,Gp.default,qp.default,Wp.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Kp.default,Xp.default];En.default=Yp;var Rn={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.validateAdditionalItems=void 0;const rr=ie,jn=Y,Zp={message:({params:{len:r}})=>(0,rr.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,rr._)`{limit: ${r}}`},Jp={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Zp,code(r){const{parentSchema:e,it:t}=r,{items:s}=e;if(!Array.isArray(s)){(0,jn.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}ki(r,s)}};function ki(r,e){const{gen:t,schema:s,data:n,keyword:a,it:i}=r;i.items=!0;const l=t.const("len",(0,rr._)`${n}.length`);if(s===!1)r.setParams({len:e.length}),r.pass((0,rr._)`${l} <= ${e.length}`);else if(typeof s=="object"&&!(0,jn.alwaysValidSchema)(i,s)){const o=t.var("valid",(0,rr._)`${l} <= ${e.length}`);t.if((0,rr.not)(o),()=>d(o)),r.ok(o)}function d(o){t.forRange("i",e.length,l,u=>{r.subschema({keyword:a,dataProp:u,dataPropType:jn.Type.Num},o),i.allErrors||t.if((0,rr.not)(o),()=>t.break())})}}vr.validateAdditionalItems=ki,vr.default=Jp;var Ln={},_r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.validateTuple=void 0;const $i=ie,bs=Y,Qp=de,ef={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return wi(r,"additionalItems",e);t.items=!0,!(0,bs.alwaysValidSchema)(t,e)&&r.ok((0,Qp.validateArray)(r))}};function wi(r,e,t=r.schema){const{gen:s,parentSchema:n,data:a,keyword:i,it:l}=r;u(n),l.opts.unevaluated&&t.length&&l.items!==!0&&(l.items=bs.mergeEvaluated.items(s,t.length,l.items));const d=s.name("valid"),o=s.const("len",(0,$i._)`${a}.length`);t.forEach((p,f)=>{(0,bs.alwaysValidSchema)(l,p)||(s.if((0,$i._)`${o} > ${f}`,()=>r.subschema({keyword:i,schemaProp:f,dataProp:f},d)),r.ok(d))});function u(p){const{opts:f,errSchemaPath:_}=l,g=t.length,v=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(f.strictTuples&&!v){const m=`"${i}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${_}"`;(0,bs.checkStrictMode)(l,m,f.strictTuples)}}}_r.validateTuple=wi,_r.default=ef,Object.defineProperty(Ln,"__esModule",{value:!0});const tf=_r,rf={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,tf.validateTuple)(r,"items")};Ln.default=rf;var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});const Ei=ie,sf=Y,nf=de,af=vr,of={message:({params:{len:r}})=>(0,Ei.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Ei._)`{limit: ${r}}`},lf={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:of,code(r){const{schema:e,parentSchema:t,it:s}=r,{prefixItems:n}=t;s.items=!0,!(0,sf.alwaysValidSchema)(s,e)&&(n?(0,af.validateAdditionalItems)(r,n):r.ok((0,nf.validateArray)(r)))}};Vn.default=lf;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});const ut=ie,ks=Y,uf={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}}`},cf={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:uf,code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;let i,l;const{minContains:d,maxContains:o}=s;a.opts.next?(i=d===void 0?1:d,l=o):i=1;const u=e.const("len",(0,ut._)`${n}.length`);if(r.setParams({min:i,max:l}),l===void 0&&i===0){(0,ks.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&i>l){(0,ks.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,ks.alwaysValidSchema)(a,t)){let v=(0,ut._)`${u} >= ${i}`;l!==void 0&&(v=(0,ut._)`${v} && ${u} <= ${l}`),r.pass(v);return}a.items=!0;const p=e.name("valid");l===void 0&&i===1?_(p,()=>e.if(p,()=>e.break())):i===0?(e.let(p,!0),l!==void 0&&e.if((0,ut._)`${n}.length > 0`,f)):(e.let(p,!1),f()),r.result(p,()=>r.reset());function f(){const v=e.name("_valid"),m=e.let("count",0);_(v,()=>e.if(v,()=>g(m)))}function _(v,m){e.forRange("i",0,u,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:ks.Type.Num,compositeRule:!0},v),m()})}function g(v){e.code((0,ut._)`${v}++`),l===void 0?e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(p,!0).break()):(e.if((0,ut._)`${v} > ${l}`,()=>e.assign(p,!1).break()),i===1?e.assign(p,!0):e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(p,!0)))}}};zn.default=cf;var Si={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=ie,t=Y,s=de;r.error={message:({params:{property:d,depsCount:o,deps:u}})=>{const p=o===1?"property":"properties";return(0,e.str)`must have ${p} ${u} when property ${d} is present`},params:({params:{property:d,depsCount:o,deps:u,missingProperty:p}})=>(0,e._)`{property: ${d},
25
- missingProperty: ${p},
24
+ || ${i} === "boolean" || ${n} === null`).assign(l,(0,le._)`[${n}]`)}}}function fd({gen:t,parentData:e,parentDataProperty:r},s){t.if((0,le._)`${e} !== undefined`,()=>t.assign((0,le._)`${e}[${r}]`,s))}function on(t,e,r,s=yr.Correct){const n=s===yr.Correct?le.operators.EQ:le.operators.NEQ;let a;switch(t){case"null":return(0,le._)`${e} ${n} null`;case"array":a=(0,le._)`Array.isArray(${e})`;break;case"object":a=(0,le._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=i((0,le._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=i();break;default:return(0,le._)`typeof ${e} ${n} ${t}`}return s===yr.Correct?a:(0,le.not)(a);function i(l=le.nil){return(0,le.and)((0,le._)`typeof ${e} == "number"`,l,r?(0,le._)`isFinite(${e})`:le.nil)}}Ce.checkDataType=on;function ln(t,e,r,s){if(t.length===1)return on(t[0],e,r,s);let n;const a=(0,ri.toHash)(t);if(a.array&&a.object){const i=(0,le._)`typeof ${e} != "object"`;n=a.null?i:(0,le._)`!${e} || ${i}`,delete a.null,delete a.array,delete a.object}else n=le.nil;a.number&&delete a.integer;for(const i in a)n=(0,le.and)(n,on(i,e,r,s));return n}Ce.checkDataTypes=ln;const md={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,le._)`{type: ${t}}`:(0,le._)`{type: ${e}}`};function un(t){const e=gd(t);(0,ud.reportError)(e,md)}Ce.reportTypeError=un;function gd(t){const{gen:e,data:r,schema:s}=t,n=(0,ri.schemaRefOrVal)(t,s,"type");return{gen:e,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:t}}var cs={};Object.defineProperty(cs,"__esModule",{value:!0}),cs.assignDefaults=void 0;const vr=ie,yd=Y;function vd(t,e){const{properties:r,items:s}=t.schema;if(e==="object"&&r)for(const n in r)ai(t,n,r[n].default);else e==="array"&&Array.isArray(s)&&s.forEach((n,a)=>ai(t,a,n.default))}cs.assignDefaults=vd;function ai(t,e,r){const{gen:s,compositeRule:n,data:a,opts:i}=t;if(r===void 0)return;const l=(0,vr._)`${a}${(0,vr.getProperty)(e)}`;if(n){(0,yd.checkStrictMode)(t,`default is ignored for: ${l}`);return}let d=(0,vr._)`${l} === undefined`;i.useDefaults==="empty"&&(d=(0,vr._)`${d} || ${l} === null || ${l} === ""`),s.if(d,(0,vr._)`${l} = ${(0,vr.stringify)(r)}`)}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 be=ie,cn=Y,Lt=mt,_d=Y;function bd(t,e){const{gen:r,data:s,it:n}=t;r.if(hn(r,s,e,n.opts.ownProperties),()=>{t.setParams({missingProperty:(0,be._)`${e}`},!0),t.error()})}de.checkReportMissingProp=bd;function kd({gen:t,data:e,it:{opts:r}},s,n){return(0,be.or)(...s.map(a=>(0,be.and)(hn(t,e,a,r.ownProperties),(0,be._)`${n} = ${a}`)))}de.checkMissingProp=kd;function wd(t,e){t.setParams({missingProperty:e},!0),t.error()}de.reportMissingProp=wd;function oi(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,be._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=oi;function dn(t,e,r){return(0,be._)`${oi(t)}.call(${e}, ${r})`}de.isOwnProperty=dn;function $d(t,e,r,s){const n=(0,be._)`${e}${(0,be.getProperty)(r)} !== undefined`;return s?(0,be._)`${n} && ${dn(t,e,r)}`:n}de.propertyInData=$d;function hn(t,e,r,s){const n=(0,be._)`${e}${(0,be.getProperty)(r)} === undefined`;return s?(0,be.or)(n,(0,be.not)(dn(t,e,r))):n}de.noPropertyInData=hn;function ii(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=ii;function Ed(t,e){return ii(e).filter(r=>!(0,cn.alwaysValidSchema)(t,e[r]))}de.schemaProperties=Ed;function Sd({schemaCode:t,data:e,it:{gen:r,topSchemaRef:s,schemaPath:n,errorPath:a},it:i},l,d,o){const u=o?(0,be._)`${t}, ${e}, ${s}${n}`:e,f=[[Lt.default.instancePath,(0,be.strConcat)(Lt.default.instancePath,a)],[Lt.default.parentData,i.parentData],[Lt.default.parentDataProperty,i.parentDataProperty],[Lt.default.rootData,Lt.default.rootData]];i.opts.dynamicRef&&f.push([Lt.default.dynamicAnchors,Lt.default.dynamicAnchors]);const m=(0,be._)`${u}, ${r.object(...f)}`;return d!==be.nil?(0,be._)`${l}.call(${d}, ${m})`:(0,be._)`${l}(${m})`}de.callValidateCode=Sd;const xd=(0,be._)`new RegExp`;function Ad({gen:t,it:{opts:e}},r){const s=e.unicodeRegExp?"u":"",{regExp:n}=e.code,a=n(r,s);return t.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,be._)`${n.code==="new RegExp"?xd:(0,_d.useFunc)(t,n)}(${r}, ${s})`})}de.usePattern=Ad;function Cd(t){const{gen:e,data:r,keyword:s,it:n}=t,a=e.name("valid");if(n.allErrors){const l=e.let("valid",!0);return i(()=>e.assign(l,!1)),l}return e.var(a,!0),i(()=>e.break()),a;function i(l){const d=e.const("len",(0,be._)`${r}.length`);e.forRange("i",0,d,o=>{t.subschema({keyword:s,dataProp:o,dataPropType:cn.Type.Num},a),e.if((0,be.not)(a),l)})}}de.validateArray=Cd;function Td(t){const{gen:e,schema:r,keyword:s,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,cn.alwaysValidSchema)(n,l))&&!n.opts.unevaluated)return;const a=e.let("valid",!1),i=e.name("_valid");e.block(()=>r.forEach((l,d)=>{const o=t.subschema({keyword:s,schemaProp:d,compositeRule:!0},i);e.assign(a,(0,be._)`${a} || ${i}`),t.mergeValidEvaluated(o,i)||e.if((0,be.not)(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}de.validateUnion=Td,Object.defineProperty(Et,"__esModule",{value:!0}),Et.validateKeywordUsage=Et.validSchemaType=Et.funcKeywordCode=Et.macroKeywordCode=void 0;const Ke=ie,er=mt,Od=de,Pd=mr;function Nd(t,e){const{gen:r,keyword:s,schema:n,parentSchema:a,it:i}=t,l=e.macro.call(i.self,n,a,i),d=ui(r,s,l);i.opts.validateSchema!==!1&&i.self.validateSchema(l,!0);const o=r.name("valid");t.subschema({schema:l,schemaPath:Ke.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:d,compositeRule:!0},o),t.pass(o,()=>t.error(!0))}Et.macroKeywordCode=Nd;function Id(t,e){var r;const{gen:s,keyword:n,schema:a,parentSchema:i,$data:l,it:d}=t;Md(d,e);const o=!l&&e.compile?e.compile.call(d.self,a,i,d):e.validate,u=ui(s,n,o),f=s.let("valid");t.block$data(f,m),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function m(){if(e.errors===!1)v(),e.modifying&&li(t),p(()=>t.error());else{const y=e.async?_():g();e.modifying&&li(t),p(()=>Dd(t,y))}}function _(){const y=s.let("ruleErrs",null);return s.try(()=>v((0,Ke._)`await `),h=>s.assign(f,!1).if((0,Ke._)`${h} instanceof ${d.ValidationError}`,()=>s.assign(y,(0,Ke._)`${h}.errors`),()=>s.throw(h))),y}function g(){const y=(0,Ke._)`${u}.errors`;return s.assign(y,null),v(Ke.nil),y}function v(y=e.async?(0,Ke._)`await `:Ke.nil){const h=d.opts.passContext?er.default.this:er.default.self,b=!("compile"in e&&!l||e.schema===!1);s.assign(f,(0,Ke._)`${y}${(0,Od.callValidateCode)(t,u,h,b)}`,e.modifying)}function p(y){var h;s.if((0,Ke.not)((h=e.valid)!==null&&h!==void 0?h:f),y)}}Et.funcKeywordCode=Id;function li(t){const{gen:e,data:r,it:s}=t;e.if(s.parentData,()=>e.assign(r,(0,Ke._)`${s.parentData}[${s.parentDataProperty}]`))}function Dd(t,e){const{gen:r}=t;r.if((0,Ke._)`Array.isArray(${e})`,()=>{r.assign(er.default.vErrors,(0,Ke._)`${er.default.vErrors} === null ? ${e} : ${er.default.vErrors}.concat(${e})`).assign(er.default.errors,(0,Ke._)`${er.default.vErrors}.length`),(0,Pd.extendErrors)(t)},()=>t.error())}function Md({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function ui(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ke.stringify)(r)})}function Fd(t,e,r=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(t):s==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==s||r&&typeof t>"u")}Et.validSchemaType=Fd;function Bd({schema:t,opts:e,self:r,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(l=>!Object.prototype.hasOwnProperty.call(t,l)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[a])){const l=`keyword "${a}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}Et.validateKeywordUsage=Bd;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.extendSubschemaMode=Vt.extendSubschemaData=Vt.getSubschema=void 0;const St=ie,ci=Y;function jd(t,{keyword:e,schemaProp:r,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 l=t.schema[e];return r===void 0?{schema:l,schemaPath:(0,St._)`${t.schemaPath}${(0,St.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:l[r],schemaPath:(0,St._)`${t.schemaPath}${(0,St.getProperty)(e)}${(0,St.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,ci.escapeFragment)(r)}`}}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')}Vt.getSubschema=jd;function Rd(t,e,{dataProp:r,dataPropType:s,data:n,dataTypes:a,propertyName:i}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=e;if(r!==void 0){const{errorPath:o,dataPathArr:u,opts:f}=e,m=l.let("data",(0,St._)`${e.data}${(0,St.getProperty)(r)}`,!0);d(m),t.errorPath=(0,St.str)`${o}${(0,ci.getErrorPath)(r,s,f.jsPropertySyntax)}`,t.parentDataProperty=(0,St._)`${r}`,t.dataPathArr=[...u,t.parentDataProperty]}if(n!==void 0){const o=n instanceof St.Name?n:l.let("data",n,!0);d(o),i!==void 0&&(t.propertyName=i)}a&&(t.dataTypes=a);function d(o){t.data=o,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,o]}}Vt.extendSubschemaData=Rd;function Ld(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:a}){s!==void 0&&(t.compositeRule=s),n!==void 0&&(t.createErrors=n),a!==void 0&&(t.allErrors=a),t.jtdDiscriminator=e,t.jtdMetadata=r}Vt.extendSubschemaMode=Ld;var Fe={},di=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var s,n,a;if(Array.isArray(e)){if(s=e.length,s!=r.length)return!1;for(n=s;n--!==0;)if(!t(e[n],r[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),s=a.length,s!==Object.keys(r).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=s;n--!==0;){var i=a[n];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r},hi={exports:{}},zt=hi.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var s=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};ds(e,s,n,t,"",t)};zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},zt.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 ds(t,e,r,s,n,a,i,l,d,o){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,a,i,l,d,o);for(var u in s){var f=s[u];if(Array.isArray(f)){if(u in zt.arrayKeywords)for(var m=0;m<f.length;m++)ds(t,e,r,f[m],n+"/"+u+"/"+m,a,n,u,s,m)}else if(u in zt.propsKeywords){if(f&&typeof f=="object")for(var _ in f)ds(t,e,r,f[_],n+"/"+u+"/"+Vd(_),a,n,u,s,_)}else(u in zt.keywords||t.allKeys&&!(u in zt.skipKeywords))&&ds(t,e,r,f,n+"/"+u,a,n,u,s)}r(s,n,a,i,l,d,o)}}function Vd(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}var zd=hi.exports;Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getSchemaRefs=Fe.resolveUrl=Fe.normalizeId=Fe._getFullPath=Fe.getFullPath=Fe.inlineRef=void 0;const Hd=Y,Ud=di,Gd=zd,Wd=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Kd(t,e=!0){return typeof t=="boolean"?!0:e===!0?!pn(t):e?pi(t)<=e:!1}Fe.inlineRef=Kd;const qd=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function pn(t){for(const e in t){if(qd.has(e))return!0;const r=t[e];if(Array.isArray(r)&&r.some(pn)||typeof r=="object"&&pn(r))return!0}return!1}function pi(t){let e=0;for(const r in t)if(r==="$ref"||(e++,!Wd.has(r)&&(typeof t[r]=="object"&&(0,Hd.eachItem)(t[r],s=>e+=pi(s)),e===1/0)))return 1/0;return e}function fi(t,e="",r){r!==!1&&(e=_r(e));const s=t.parse(e);return mi(t,s)}Fe.getFullPath=fi;function mi(t,e){return t.serialize(e).split("#")[0]+"#"}Fe._getFullPath=mi;const Xd=/#\/?$/;function _r(t){return t?t.replace(Xd,""):""}Fe.normalizeId=_r;function Yd(t,e,r){return r=_r(r),t.resolve(e,r)}Fe.resolveUrl=Yd;const Zd=/^[a-z_][-a-z0-9._]*$/i;function Jd(t,e){if(typeof t=="boolean")return{};const{schemaId:r,uriResolver:s}=this.opts,n=_r(t[r]||e),a={"":n},i=fi(s,n,!1),l={},d=new Set;return Gd(t,{allKeys:!0},(f,m,_,g)=>{if(g===void 0)return;const v=i+m;let p=a[g];typeof f[r]=="string"&&(p=y.call(this,f[r])),h.call(this,f.$anchor),h.call(this,f.$dynamicAnchor),a[m]=p;function y(b){const w=this.opts.uriResolver.resolve;if(b=_r(p?w(p,b):b),d.has(b))throw u(b);d.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?o(f,S.schema,b):b!==_r(v)&&(b[0]==="#"?(o(f,l[b],b),l[b]=f):this.refs[b]=v),b}function h(b){if(typeof b=="string"){if(!Zd.test(b))throw new Error(`invalid anchor "${b}"`);y.call(this,`#${b}`)}}}),l;function o(f,m,_){if(m!==void 0&&!Ud(f,m))throw u(_)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Fe.getSchemaRefs=Jd,Object.defineProperty(it,"__esModule",{value:!0}),it.getData=it.KeywordCxt=it.validateFunctionCode=void 0;const gi=fr,yi=Ce,fn=Nt,hs=Ce,Qd=cs,Mr=Et,mn=Vt,ee=ie,oe=mt,eh=Fe,It=Y,Fr=mr;function th(t){if(ki(t)&&(wi(t),bi(t))){nh(t);return}vi(t,()=>(0,gi.topBoolOrEmptySchema)(t))}it.validateFunctionCode=th;function vi({gen:t,validateName:e,schema:r,schemaEnv:s,opts:n},a){n.code.es5?t.func(e,(0,ee._)`${oe.default.data}, ${oe.default.valCxt}`,s.$async,()=>{t.code((0,ee._)`"use strict"; ${_i(r,n)}`),sh(t,n),t.code(a)}):t.func(e,(0,ee._)`${oe.default.data}, ${rh(n)}`,s.$async,()=>t.code(_i(r,n)).code(a))}function rh(t){return(0,ee._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${t.dynamicRef?(0,ee._)`, ${oe.default.dynamicAnchors}={}`:ee.nil}}={}`}function sh(t,e){t.if(oe.default.valCxt,()=>{t.var(oe.default.instancePath,(0,ee._)`${oe.default.valCxt}.${oe.default.instancePath}`),t.var(oe.default.parentData,(0,ee._)`${oe.default.valCxt}.${oe.default.parentData}`),t.var(oe.default.parentDataProperty,(0,ee._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),t.var(oe.default.rootData,(0,ee._)`${oe.default.valCxt}.${oe.default.rootData}`),e.dynamicRef&&t.var(oe.default.dynamicAnchors,(0,ee._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{t.var(oe.default.instancePath,(0,ee._)`""`),t.var(oe.default.parentData,(0,ee._)`undefined`),t.var(oe.default.parentDataProperty,(0,ee._)`undefined`),t.var(oe.default.rootData,oe.default.data),e.dynamicRef&&t.var(oe.default.dynamicAnchors,(0,ee._)`{}`)})}function nh(t){const{schema:e,opts:r,gen:s}=t;vi(t,()=>{r.$comment&&e.$comment&&Ei(t),uh(t),s.let(oe.default.vErrors,null),s.let(oe.default.errors,0),r.unevaluated&&ah(t),$i(t),hh(t)})}function ah(t){const{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,ee._)`${r}.evaluated`),e.if((0,ee._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,ee._)`${t.evaluated}.props`,(0,ee._)`undefined`)),e.if((0,ee._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,ee._)`${t.evaluated}.items`,(0,ee._)`undefined`))}function _i(t,e){const r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,ee._)`/*# sourceURL=${r} */`:ee.nil}function oh(t,e){if(ki(t)&&(wi(t),bi(t))){ih(t,e);return}(0,gi.boolOrEmptySchema)(t,e)}function bi({schema:t,self:e}){if(typeof t=="boolean")return!t;for(const r in t)if(e.RULES.all[r])return!0;return!1}function ki(t){return typeof t.schema!="boolean"}function ih(t,e){const{schema:r,gen:s,opts:n}=t;n.$comment&&r.$comment&&Ei(t),ch(t),dh(t);const a=s.const("_errs",oe.default.errors);$i(t,a),s.var(e,(0,ee._)`${a} === ${oe.default.errors}`)}function wi(t){(0,It.checkUnknownRules)(t),lh(t)}function $i(t,e){if(t.opts.jtd)return Si(t,[],!1,e);const r=(0,yi.getSchemaTypes)(t.schema),s=(0,yi.coerceAndCheckDataType)(t,r);Si(t,r,!s,e)}function lh(t){const{schema:e,errSchemaPath:r,opts:s,self:n}=t;e.$ref&&s.ignoreKeywordsWithRef&&(0,It.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function uh(t){const{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,It.checkStrictMode)(t,"default is ignored in the schema root")}function ch(t){const e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,eh.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function dh(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function Ei({gen:t,schemaEnv:e,schema:r,errSchemaPath:s,opts:n}){const a=r.$comment;if(n.$comment===!0)t.code((0,ee._)`${oe.default.self}.logger.log(${a})`);else if(typeof n.$comment=="function"){const i=(0,ee.str)`${s}/$comment`,l=t.scopeValue("root",{ref:e.root});t.code((0,ee._)`${oe.default.self}.opts.$comment(${a}, ${i}, ${l}.schema)`)}}function hh(t){const{gen:e,schemaEnv:r,validateName:s,ValidationError:n,opts:a}=t;r.$async?e.if((0,ee._)`${oe.default.errors} === 0`,()=>e.return(oe.default.data),()=>e.throw((0,ee._)`new ${n}(${oe.default.vErrors})`)):(e.assign((0,ee._)`${s}.errors`,oe.default.vErrors),a.unevaluated&&ph(t),e.return((0,ee._)`${oe.default.errors} === 0`))}function ph({gen:t,evaluated:e,props:r,items:s}){r instanceof ee.Name&&t.assign((0,ee._)`${e}.props`,r),s instanceof ee.Name&&t.assign((0,ee._)`${e}.items`,s)}function Si(t,e,r,s){const{gen:n,schema:a,data:i,allErrors:l,opts:d,self:o}=t,{RULES:u}=o;if(a.$ref&&(d.ignoreKeywordsWithRef||!(0,It.schemaHasRulesButRef)(a,u))){n.block(()=>Ti(t,"$ref",u.all.$ref.definition));return}d.jtd||fh(t,e),n.block(()=>{for(const m of u.rules)f(m);f(u.post)});function f(m){(0,fn.shouldUseGroup)(a,m)&&(m.type?(n.if((0,hs.checkDataType)(m.type,i,d.strictNumbers)),xi(t,m),e.length===1&&e[0]===m.type&&r&&(n.else(),(0,hs.reportTypeError)(t)),n.endIf()):xi(t,m),l||n.if((0,ee._)`${oe.default.errors} === ${s||0}`))}}function xi(t,e){const{gen:r,schema:s,opts:{useDefaults:n}}=t;n&&(0,Qd.assignDefaults)(t,e.type),r.block(()=>{for(const a of e.rules)(0,fn.shouldUseRule)(s,a)&&Ti(t,a.keyword,a.definition,e.type)})}function fh(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(mh(t,e),t.opts.allowUnionTypes||gh(t,e),yh(t,t.dataTypes))}function mh(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{Ai(t.dataTypes,r)||gn(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),_h(t,e)}}function gh(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&gn(t,"use allowUnionTypes to allow union type keyword")}function yh(t,e){const r=t.self.RULES.all;for(const s in r){const n=r[s];if(typeof n=="object"&&(0,fn.shouldUseRule)(t.schema,n)){const{type:a}=n.definition;a.length&&!a.some(i=>vh(e,i))&&gn(t,`missing type "${a.join(",")}" for keyword "${s}"`)}}}function vh(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function Ai(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function _h(t,e){const r=[];for(const s of t.dataTypes)Ai(e,s)?r.push(s):e.includes("integer")&&s==="number"&&r.push("integer");t.dataTypes=r}function gn(t,e){const r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,It.checkStrictMode)(t,e,t.opts.strictTypes)}class Ci{constructor(e,r,s){if((0,Mr.validateKeywordUsage)(e,r,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,It.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",Oi(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Mr.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",oe.default.errors))}result(e,r,s){this.failResult((0,ee.not)(e),r,s)}failResult(e,r,s){this.gen.if(e),s?s():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,ee.not)(e),void 0,r)}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:r}=this;this.fail((0,ee._)`${r} !== undefined && (${(0,ee.or)(this.invalid$data(),e)})`)}error(e,r,s){if(r){this.setParams(r),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,r){(e?Fr.reportExtraError:Fr.reportError)(this,this.def.error,r)}$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,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,s=ee.nil){this.gen.block(()=>{this.check$data(e,s),r()})}check$data(e=ee.nil,r=ee.nil){if(!this.$data)return;const{gen:s,schemaCode:n,schemaType:a,def:i}=this;s.if((0,ee.or)((0,ee._)`${n} === undefined`,r)),e!==ee.nil&&s.assign(e,!0),(a.length||i.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==ee.nil&&s.assign(e,!1)),s.else()}invalid$data(){const{gen:e,schemaCode:r,schemaType:s,def:n,it:a}=this;return(0,ee.or)(i(),l());function i(){if(s.length){if(!(r instanceof ee.Name))throw new Error("ajv implementation error");const d=Array.isArray(s)?s:[s];return(0,ee._)`${(0,hs.checkDataTypes)(d,r,a.opts.strictNumbers,hs.DataType.Wrong)}`}return ee.nil}function l(){if(n.validateSchema){const d=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,ee._)`!${d}(${r})`}return ee.nil}}subschema(e,r){const s=(0,mn.getSubschema)(this.it,e);(0,mn.extendSubschemaData)(s,this.it,e),(0,mn.extendSubschemaMode)(s,e);const n={...this.it,...s,items:void 0,props:void 0};return oh(n,r),n}mergeEvaluated(e,r){const{it:s,gen:n}=this;s.opts.unevaluated&&(s.props!==!0&&e.props!==void 0&&(s.props=It.mergeEvaluated.props(n,e.props,s.props,r)),s.items!==!0&&e.items!==void 0&&(s.items=It.mergeEvaluated.items(n,e.items,s.items,r)))}mergeValidEvaluated(e,r){const{it:s,gen:n}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return n.if(r,()=>this.mergeEvaluated(e,ee.Name)),!0}}it.KeywordCxt=Ci;function Ti(t,e,r,s){const n=new Ci(t,r,e);"code"in r?r.code(n,s):n.$data&&r.validate?(0,Mr.funcKeywordCode)(n,r):"macro"in r?(0,Mr.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,Mr.funcKeywordCode)(n,r)}const bh=/^\/(?:[^~]|~0|~1)*$/,kh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Oi(t,{dataLevel:e,dataNames:r,dataPathArr:s}){let n,a;if(t==="")return oe.default.rootData;if(t[0]==="/"){if(!bh.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);n=t,a=oe.default.rootData}else{const o=kh.exec(t);if(!o)throw new Error(`Invalid JSON-pointer: ${t}`);const u=+o[1];if(n=o[2],n==="#"){if(u>=e)throw new Error(d("property/index",u));return s[e-u]}if(u>e)throw new Error(d("data",u));if(a=r[e-u],!n)return a}let i=a;const l=n.split("/");for(const o of l)o&&(a=(0,ee._)`${a}${(0,ee.getProperty)((0,It.unescapeJsonPointer)(o))}`,i=(0,ee._)`${i} && ${a}`);return i;function d(o,u){return`Cannot access ${o} ${u} levels up, current level is ${e}`}}it.getData=Oi;var Br={};Object.defineProperty(Br,"__esModule",{value:!0});class wh extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Br.default=wh;var br={};Object.defineProperty(br,"__esModule",{value:!0});const yn=Fe;class $h extends Error{constructor(e,r,s,n){super(n||`can't resolve reference ${s} from id ${r}`),this.missingRef=(0,yn.resolveUrl)(e,r,s),this.missingSchema=(0,yn.normalizeId)((0,yn.getFullPath)(e,this.missingRef))}}br.default=$h;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;const gt=ie,Eh=Br,tr=mt,yt=Fe,Pi=Y,Sh=it;class ps{constructor(e){var r;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=(r=e.baseId)!==null&&r!==void 0?r:(0,yt.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=ps;function vn(t){const e=Ni.call(this,t);if(e)return e;const r=(0,yt.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:s,lines:n}=this.opts.code,{ownProperties:a}=this.opts,i=new gt.CodeGen(this.scope,{es5:s,lines:n,ownProperties:a});let l;t.$async&&(l=i.scopeValue("Error",{ref:Eh.default,code:(0,gt._)`require("ajv/dist/runtime/validation_error").default`}));const d=i.scopeName("validate");t.validateName=d;const o={gen:i,allErrors:this.opts.allErrors,data:tr.default.data,parentData:tr.default.parentData,parentDataProperty:tr.default.parentDataProperty,dataNames:[tr.default.data],dataPathArr:[gt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,gt.stringify)(t.schema)}:{ref:t.schema}),validateName:d,ValidationError:l,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:gt.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,gt._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(t),(0,Sh.validateFunctionCode)(o),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(tr.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,t));const m=new Function(`${tr.default.self}`,`${tr.default.scope}`,u)(this,this.scope.get());if(this.scope.value(d,{ref:m}),m.errors=null,m.schema=t.schema,m.schemaEnv=t,t.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:d,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:_,items:g}=o;m.evaluated={props:_ instanceof gt.Name?void 0:_,items:g instanceof gt.Name?void 0:g,dynamicProps:_ instanceof gt.Name,dynamicItems:g instanceof gt.Name},m.source&&(m.source.evaluated=(0,gt.stringify)(m.evaluated))}return t.validate=m,t}catch(f){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(t)}}Ze.compileSchema=vn;function xh(t,e,r){var s;r=(0,yt.resolveUrl)(this.opts.uriResolver,e,r);const n=t.refs[r];if(n)return n;let a=Th.call(this,t,r);if(a===void 0){const i=(s=t.localRefs)===null||s===void 0?void 0:s[r],{schemaId:l}=this.opts;i&&(a=new ps({schema:i,schemaId:l,root:t,baseId:e}))}if(a!==void 0)return t.refs[r]=Ah.call(this,a)}Ze.resolveRef=xh;function Ah(t){return(0,yt.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:vn.call(this,t)}function Ni(t){for(const e of this._compilations)if(Ch(e,t))return e}Ze.getCompilingSchema=Ni;function Ch(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function Th(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||fs.call(this,t,e)}function fs(t,e){const r=this.opts.uriResolver.parse(e),s=(0,yt._getFullPath)(this.opts.uriResolver,r);let n=(0,yt.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&s===n)return _n.call(this,r,t);const a=(0,yt.normalizeId)(s),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const l=fs.call(this,t,i);return typeof(l==null?void 0:l.schema)!="object"?void 0:_n.call(this,r,l)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||vn.call(this,i),a===(0,yt.normalizeId)(e)){const{schema:l}=i,{schemaId:d}=this.opts,o=l[d];return o&&(n=(0,yt.resolveUrl)(this.opts.uriResolver,n,o)),new ps({schema:l,schemaId:d,root:t,baseId:n})}return _n.call(this,r,i)}}Ze.resolveSchema=fs;const Oh=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _n(t,{baseId:e,schema:r,root:s}){var n;if(((n=t.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const l of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const d=r[(0,Pi.unescapeFragment)(l)];if(d===void 0)return;r=d;const o=typeof r=="object"&&r[this.opts.schemaId];!Oh.has(l)&&o&&(e=(0,yt.resolveUrl)(this.opts.uriResolver,e,o))}let a;if(typeof r!="boolean"&&r.$ref&&!(0,Pi.schemaHasRulesButRef)(r,this.RULES)){const l=(0,yt.resolveUrl)(this.opts.uriResolver,e,r.$ref);a=fs.call(this,s,l)}const{schemaId:i}=this.opts;if(a=a||new ps({schema:r,schemaId:i,root:s,baseId:e}),a.schema!==a.root.schema)return a}const Ph="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Nh="Meta-schema for $data reference (JSON AnySchema extension proposal)",Ih="object",Dh=["$data"],Mh={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Fh=!1,Bh={$id:Ph,description:Nh,type:Ih,required:Dh,properties:Mh,additionalProperties:Fh};var bn={},ms={exports:{}},jh={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:Rh}=jh;function Ii(t){if(Fi(t,".")<3)return{host:t,isIPV4:!1};const e=t.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)||[],[r]=e;return r?{host:Vh(r,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function Di(t,e=!1){let r="",s=!0;for(const n of t){if(Rh[n]===void 0)return;n!=="0"&&s===!0&&(s=!1),s||(r+=n)}return e&&r.length===0&&(r="0"),r}function Lh(t){let e=0;const r={error:!1,address:"",zone:""},s=[],n=[];let a=!1,i=!1,l=!1;function d(){if(n.length){if(a===!1){const o=Di(n);if(o!==void 0)s.push(o);else return r.error=!0,!1}n.length=0}return!0}for(let o=0;o<t.length;o++){const u=t[o];if(!(u==="["||u==="]"))if(u===":"){if(i===!0&&(l=!0),!d())break;if(e++,s.push(":"),e>7){r.error=!0;break}o-1>=0&&t[o-1]===":"&&(i=!0);continue}else if(u==="%"){if(!d())break;a=!0}else{n.push(u);continue}}return n.length&&(a?r.zone=n.join(""):l?s.push(n.join("")):s.push(Di(n))),r.address=s.join(""),r}function Mi(t,e={}){if(Fi(t,":")<2)return{host:t,isIPV6:!1};const r=Lh(t);if(r.error)return{host:t,isIPV6:!1};{let s=r.address,n=r.address;return r.zone&&(s+="%"+r.zone,n+="%25"+r.zone),{host:s,escapedHost:n,isIPV6:!0}}}function Vh(t,e){let r="",s=!0;const n=t.length;for(let a=0;a<n;a++){const i=t[a];i==="0"&&s?(a+1<=n&&t[a+1]===e||a+1===n)&&(r+=i,s=!1):(i===e?s=!0:s=!1,r+=i)}return r}function Fi(t,e){let r=0;for(let s=0;s<t.length;s++)t[s]===e&&r++;return r}const Bi=/^\.\.?\//u,ji=/^\/\.(?:\/|$)/u,Ri=/^\/\.\.(?:\/|$)/u,zh=/^\/?(?:.|\n)*?(?=\/|$)/u;function Hh(t){const e=[];for(;t.length;)if(t.match(Bi))t=t.replace(Bi,"");else if(t.match(ji))t=t.replace(ji,"/");else if(t.match(Ri))t=t.replace(Ri,"/"),e.pop();else if(t==="."||t==="..")t="";else{const r=t.match(zh);if(r){const s=r[0];t=t.slice(s.length),e.push(s)}else throw new Error("Unexpected dot segment condition")}return e.join("")}function Uh(t,e){const r=e!==!0?escape:unescape;return t.scheme!==void 0&&(t.scheme=r(t.scheme)),t.userinfo!==void 0&&(t.userinfo=r(t.userinfo)),t.host!==void 0&&(t.host=r(t.host)),t.path!==void 0&&(t.path=r(t.path)),t.query!==void 0&&(t.query=r(t.query)),t.fragment!==void 0&&(t.fragment=r(t.fragment)),t}function Gh(t,e){const r=[];if(t.userinfo!==void 0&&(r.push(t.userinfo),r.push("@")),t.host!==void 0){let s=unescape(t.host);const n=Ii(s);if(n.isIPV4)s=n.host;else{const a=Mi(n.host,{});a.isIPV6===!0?s=`[${a.escapedHost}]`:s=t.host}r.push(s)}return(typeof t.port=="number"||typeof t.port=="string")&&(r.push(":"),r.push(String(t.port))),r.length?r.join(""):void 0}var Wh={recomposeAuthority:Gh,normalizeComponentEncoding:Uh,removeDotSegments:Hh,normalizeIPv4:Ii,normalizeIPv6:Mi};const Kh=/^[\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 Li(t){return typeof t.secure=="boolean"?t.secure:String(t.scheme).toLowerCase()==="wss"}function Vi(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function zi(t){const e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function Xh(t){return t.secure=Li(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function Yh(t){if((t.port===(Li(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){const[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function Zh(t,e){if(!t.path)return t.error="URN can not be parsed",t;const r=t.path.match(qh);if(r){const s=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];const n=`${s}:${e.nid||t.nid}`,a=kn[n];t.path=void 0,a&&(t=a.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function Jh(t,e){const r=e.scheme||t.scheme||"urn",s=t.nid.toLowerCase(),n=`${r}:${e.nid||s}`,a=kn[n];a&&(t=a.serialize(t,e));const i=t,l=t.nss;return i.path=`${s||e.nid}:${l}`,e.skipEscape=!0,i}function Qh(t,e){const r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!Kh.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function ep(t){const e=t;return e.nss=(t.uuid||"").toLowerCase(),e}const Hi={scheme:"http",domainHost:!0,parse:Vi,serialize:zi},tp={scheme:"https",domainHost:Hi.domainHost,parse:Vi,serialize:zi},gs={scheme:"ws",domainHost:!0,parse:Xh,serialize:Yh},rp={scheme:"wss",domainHost:gs.domainHost,parse:gs.parse,serialize:gs.serialize},sp={scheme:"urn",parse:Zh,serialize:Jh,skipNormalize:!0},np={scheme:"urn:uuid",parse:Qh,serialize:ep,skipNormalize:!0},kn={http:Hi,https:tp,ws:gs,wss:rp,urn:sp,"urn:uuid":np};var ap=kn;const{normalizeIPv6:op,normalizeIPv4:ip,removeDotSegments:jr,recomposeAuthority:lp,normalizeComponentEncoding:ys}=Wh,wn=ap;function up(t,e){return typeof t=="string"?t=xt(Dt(t,e),e):typeof t=="object"&&(t=Dt(xt(t,e),e)),t}function cp(t,e,r){const s=Object.assign({scheme:"null"},r),n=Ui(Dt(t,s),Dt(e,s),s,!0);return xt(n,{...s,skipEscape:!0})}function Ui(t,e,r,s){const n={};return s||(t=Dt(xt(t,r),r),e=Dt(xt(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=jr(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=jr(e.path||""),n.query=e.query):(e.path?(e.path.charAt(0)==="/"?n.path=jr(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?n.path="/"+e.path:t.path?n.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:n.path=e.path,n.path=jr(n.path)),n.query=e.query):(n.path=t.path,e.query!==void 0?n.query=e.query:n.query=t.query),n.userinfo=t.userinfo,n.host=t.host,n.port=t.port),n.scheme=t.scheme),n.fragment=e.fragment,n}function dp(t,e,r){return typeof t=="string"?(t=unescape(t),t=xt(ys(Dt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=xt(ys(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=xt(ys(Dt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=xt(ys(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function xt(t,e){const r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},s=Object.assign({},e),n=[],a=wn[(s.scheme||r.scheme||"").toLowerCase()];a&&a.serialize&&a.serialize(r,s),r.path!==void 0&&(s.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),s.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");const i=lp(r,s);if(i!==void 0&&(s.reference!=="suffix"&&n.push("//"),n.push(i),r.path&&r.path.charAt(0)!=="/"&&n.push("/")),r.path!==void 0){let l=r.path;!s.absolutePath&&(!a||!a.absolutePath)&&(l=jr(l)),i===void 0&&(l=l.replace(/^\/\//u,"/%2F")),n.push(l)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}const hp=Array.from({length:127},(t,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function pp(t){let e=0;for(let r=0,s=t.length;r<s;++r)if(e=t.charCodeAt(r),e>126||hp[e])return!0;return!1}const fp=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Dt(t,e){const r=Object.assign({},e),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=t.indexOf("%")!==-1;let a=!1;r.reference==="suffix"&&(t=(r.scheme?r.scheme+":":"")+"//"+t);const i=t.match(fp);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 d=ip(s.host);if(d.isIPV4===!1){const o=op(d.host,{isIPV4:!1});s.host=o.host.toLowerCase(),a=o.isIPV6}else s.host=d.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",r.reference&&r.reference!=="suffix"&&r.reference!==s.reference&&(s.error=s.error||"URI is not a "+r.reference+" reference.");const l=wn[(r.scheme||s.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!l||!l.unicodeSupport)&&s.host&&(r.domainHost||l&&l.domainHost)&&a===!1&&pp(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(d){s.error=s.error||"Host's domain name can not be converted to ASCII: "+d}(!l||l&&!l.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)))),l&&l.parse&&l.parse(s,r)}else s.error=s.error||"URI can not be parsed.";return s}const $n={SCHEMES:wn,normalize:up,resolve:cp,resolveComponents:Ui,equal:dp,serialize:xt,parse:Dt};ms.exports=$n,ms.exports.default=$n,ms.exports.fastUri=$n;var mp=ms.exports;Object.defineProperty(bn,"__esModule",{value:!0});const Gi=mp;Gi.code='require("ajv/dist/runtime/uri").default',bn.default=Gi,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=it;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=ie;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const s=Br,n=br,a=Qt,i=Ze,l=ie,d=Fe,o=Ce,u=Y,f=Bh,m=bn,_=(P,k)=>new RegExp(P,k);_.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p={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.'},h=200;function b(P){var k,x,E,c,$,C,L,F,z,G,J,U,fe,_e,Te,st,ct,ze,dt,Qe,De,Oe,et,ht,pt;const Pe=P.strict,He=(k=P.code)===null||k===void 0?void 0:k.optimize,ir=He===!0||He===void 0?1:He||0,Gt=(E=(x=P.code)===null||x===void 0?void 0:x.regExp)!==null&&E!==void 0?E:_,lr=(c=P.uriResolver)!==null&&c!==void 0?c:m.default;return{strictSchema:(C=($=P.strictSchema)!==null&&$!==void 0?$:Pe)!==null&&C!==void 0?C:!0,strictNumbers:(F=(L=P.strictNumbers)!==null&&L!==void 0?L:Pe)!==null&&F!==void 0?F:!0,strictTypes:(G=(z=P.strictTypes)!==null&&z!==void 0?z:Pe)!==null&&G!==void 0?G:"log",strictTuples:(U=(J=P.strictTuples)!==null&&J!==void 0?J:Pe)!==null&&U!==void 0?U:"log",strictRequired:(_e=(fe=P.strictRequired)!==null&&fe!==void 0?fe:Pe)!==null&&_e!==void 0?_e:!1,code:P.code?{...P.code,optimize:ir,regExp:Gt}:{optimize:ir,regExp:Gt},loopRequired:(Te=P.loopRequired)!==null&&Te!==void 0?Te:h,loopEnum:(st=P.loopEnum)!==null&&st!==void 0?st:h,meta:(ct=P.meta)!==null&&ct!==void 0?ct:!0,messages:(ze=P.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(dt=P.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:(Qe=P.schemaId)!==null&&Qe!==void 0?Qe:"$id",addUsedSchema:(De=P.addUsedSchema)!==null&&De!==void 0?De:!0,validateSchema:(Oe=P.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(et=P.validateFormats)!==null&&et!==void 0?et:!0,unicodeRegExp:(ht=P.unicodeRegExp)!==null&&ht!==void 0?ht:!0,int32range:(pt=P.int32range)!==null&&pt!==void 0?pt:!0,uriResolver:lr}}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:E}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:x,lines:E}),this.logger=B(k.logger);const c=k.validateFormats;k.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,p,k,"NOT SUPPORTED"),S.call(this,y,k,"DEPRECATED","warn"),this._metaOpts=D.call(this),k.formats&&j.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&V.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),I.call(this),k.validateFormats=c}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:x,schemaId:E}=this.opts;let c=f;E==="id"&&(c={...f},c.id=c.$id,delete c.$id),x&&k&&this.addMetaSchema(c,c[E],!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 E;if(typeof k=="string"){if(E=this.getSchema(k),!E)throw new Error(`no schema with key or ref "${k}"`)}else E=this.compile(k);const c=E(x);return"$async"in E||(this.errors=E.errors),c}compile(k,x){const E=this._addSchema(k,x);return E.validate||this._compileSchemaEnv(E)}compileAsync(k,x){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return c.call(this,k,x);async function c(G,J){await $.call(this,G.$schema);const U=this._addSchema(G,J);return U.validate||C.call(this,U)}async function $(G){G&&!this.getSchema(G)&&await c.call(this,{$ref:G},!0)}async function C(G){try{return this._compileSchemaEnv(G)}catch(J){if(!(J instanceof n.default))throw J;return L.call(this,J),await F.call(this,J.missingSchema),C.call(this,G)}}function L({missingSchema:G,missingRef:J}){if(this.refs[G])throw new Error(`AnySchema ${G} is loaded but ${J} cannot be resolved`)}async function F(G){const J=await z.call(this,G);this.refs[G]||await $.call(this,J.$schema),this.refs[G]||this.addSchema(J,G,x)}async function z(G){const J=this._loading[G];if(J)return J;try{return await(this._loading[G]=E(G))}finally{delete this._loading[G]}}}addSchema(k,x,E,c=this.opts.validateSchema){if(Array.isArray(k)){for(const C of k)this.addSchema(C,void 0,E,c);return this}let $;if(typeof k=="object"){const{schemaId:C}=this.opts;if($=k[C],$!==void 0&&typeof $!="string")throw new Error(`schema ${C} must be string`)}return x=(0,d.normalizeId)(x||$),this._checkUnique(x),this.schemas[x]=this._addSchema(k,E,x,c,!0),this}addMetaSchema(k,x,E=this.opts.validateSchema){return this.addSchema(k,x,!0,E),this}validateSchema(k,x){if(typeof k=="boolean")return!0;let E;if(E=k.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const c=this.validate(E,k);if(!c&&x){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return c}getSchema(k){let x;for(;typeof(x=O.call(this,k))=="string";)k=x;if(x===void 0){const{schemaId:E}=this.opts,c=new i.SchemaEnv({schema:{},schemaId:E});if(x=i.resolveSchema.call(this,c,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=O.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 E=k[this.opts.schemaId];return E&&(E=(0,d.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),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 E;if(typeof k=="string")E=k,typeof x=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),x.keyword=E);else if(typeof k=="object"&&x===void 0){if(x=k,E=x.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(H.call(this,E,x),!x)return(0,u.eachItem)(E,$=>K.call(this,$)),this;se.call(this,x);const c={...x,type:(0,o.getJSONTypes)(x.type),schemaType:(0,o.getJSONTypes)(x.schemaType)};return(0,u.eachItem)(E,c.type.length===0?$=>K.call(this,$,c):$=>c.type.forEach(C=>K.call(this,$,c,C))),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 E of x.rules){const c=E.rules.findIndex($=>$.keyword===k);c>=0&&E.rules.splice(c,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:E="data"}={}){return!k||k.length===0?"No errors":k.map(c=>`${E}${c.instancePath} ${c.message}`).reduce((c,$)=>c+x+$)}$dataMetaSchema(k,x){const E=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const c of x){const $=c.split("/").slice(1);let C=k;for(const L of $)C=C[L];for(const L in E){const F=E[L];if(typeof F!="object")continue;const{$data:z}=F.definition,G=C[L];z&&G&&(C[L]=ne(G))}}return k}_removeAllSchemas(k,x){for(const E in k){const c=k[E];(!x||x.test(E))&&(typeof c=="string"?delete k[E]:c&&!c.meta&&(this._cache.delete(c.schema),delete k[E]))}}_addSchema(k,x,E,c=this.opts.validateSchema,$=this.opts.addUsedSchema){let C;const{schemaId:L}=this.opts;if(typeof k=="object")C=k[L];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 F=this._cache.get(k);if(F!==void 0)return F;E=(0,d.normalizeId)(C||E);const z=d.getSchemaRefs.call(this,k,E);return F=new i.SchemaEnv({schema:k,schemaId:L,meta:x,baseId:E,localRefs:z}),this._cache.set(F.schema,F),$&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=F),c&&this.validateSchema(k,!0),F}_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 x=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,k)}finally{this.opts=x}}}w.ValidationError=s.default,w.MissingRefError=n.default,t.default=w;function S(P,k,x,E="error"){for(const c in P){const $=c;$ in k&&this.logger[E](`${x}: option ${c}. ${P[$]}`)}}function O(P){return P=(0,d.normalizeId)(P),this.schemas[P]||this.refs[P]}function I(){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 j(){for(const P in this.opts.formats){const k=this.opts.formats[P];k&&this.addFormat(P,k)}}function V(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 D(){const P={...this.opts};for(const k of g)delete P[k];return P}const T={log(){},warn(){},error(){}};function B(P){if(P===!1)return T;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 R=/^[a-z_$][a-z0-9_$:-]*$/i;function H(P,k){const{RULES:x}=this;if((0,u.eachItem)(P,E=>{if(x.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!R.test(E))throw new Error(`Keyword ${E} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function K(P,k,x){var E;const c=k==null?void 0:k.post;if(x&&c)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let C=c?$.post:$.rules.find(({type:F})=>F===x);if(C||(C={type:x,rules:[]},$.rules.push(C)),$.keywords[P]=!0,!k)return;const L={keyword:P,definition:{...k,type:(0,o.getJSONTypes)(k.type),schemaType:(0,o.getJSONTypes)(k.schemaType)}};k.before?q.call(this,C,L,k.before):C.rules.push(L),$.all[P]=L,(E=k.implements)===null||E===void 0||E.forEach(F=>this.addKeyword(F))}function q(P,k,x){const E=P.rules.findIndex(c=>c.keyword===x);E>=0?P.rules.splice(E,0,k):(P.rules.push(k),this.logger.warn(`rule ${x} is not defined`))}function se(P){let{metaSchema:k}=P;k!==void 0&&(P.$data&&this.opts.$data&&(k=ne(k)),P.validateSchema=this.compile(k,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ne(P){return{anyOf:[P,Z]}}}(Go);var En={},Sn={},xn={};Object.defineProperty(xn,"__esModule",{value:!0});const gp={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xn.default=gp;var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.callRef=rr.getValidate=void 0;const yp=br,Wi=de,Je=ie,kr=mt,Ki=Ze,vs=Y,vp={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:r,it:s}=t,{baseId:n,schemaEnv:a,validateName:i,opts:l,self:d}=s,{root:o}=a;if((r==="#"||r==="#/")&&n===o.baseId)return f();const u=Ki.resolveRef.call(d,o,n,r);if(u===void 0)throw new yp.default(s.opts.uriResolver,n,r);if(u instanceof Ki.SchemaEnv)return m(u);return _(u);function f(){if(a===o)return _s(t,i,a,a.$async);const g=e.scopeValue("root",{ref:o});return _s(t,(0,Je._)`${g}.validate`,o,o.$async)}function m(g){const v=qi(t,g);_s(t,v,g,g.$async)}function _(g){const v=e.scopeValue("schema",l.code.source===!0?{ref:g,code:(0,Je.stringify)(g)}:{ref:g}),p=e.name("valid"),y=t.subschema({schema:g,dataTypes:[],schemaPath:Je.nil,topSchemaRef:v,errSchemaPath:r},p);t.mergeEvaluated(y),t.ok(p)}}};function qi(t,e){const{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Je._)`${r.scopeValue("wrapper",{ref:e})}.validate`}rr.getValidate=qi;function _s(t,e,r,s){const{gen:n,it:a}=t,{allErrors:i,schemaEnv:l,opts:d}=a,o=d.passContext?kr.default.this:Je.nil;s?u():f();function u(){if(!l.$async)throw new Error("async schema referenced by sync schema");const g=n.let("valid");n.try(()=>{n.code((0,Je._)`await ${(0,Wi.callValidateCode)(t,e,o)}`),_(e),i||n.assign(g,!0)},v=>{n.if((0,Je._)`!(${v} instanceof ${a.ValidationError})`,()=>n.throw(v)),m(v),i||n.assign(g,!1)}),t.ok(g)}function f(){t.result((0,Wi.callValidateCode)(t,e,o),()=>_(e),()=>m(e))}function m(g){const v=(0,Je._)`${g}.errors`;n.assign(kr.default.vErrors,(0,Je._)`${kr.default.vErrors} === null ? ${v} : ${kr.default.vErrors}.concat(${v})`),n.assign(kr.default.errors,(0,Je._)`${kr.default.vErrors}.length`)}function _(g){var v;if(!a.opts.unevaluated)return;const p=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(p&&!p.dynamicProps)p.props!==void 0&&(a.props=vs.mergeEvaluated.props(n,p.props,a.props));else{const y=n.var("props",(0,Je._)`${g}.evaluated.props`);a.props=vs.mergeEvaluated.props(n,y,a.props,Je.Name)}if(a.items!==!0)if(p&&!p.dynamicItems)p.items!==void 0&&(a.items=vs.mergeEvaluated.items(n,p.items,a.items));else{const y=n.var("items",(0,Je._)`${g}.evaluated.items`);a.items=vs.mergeEvaluated.items(n,y,a.items,Je.Name)}}}rr.callRef=_s,rr.default=vp,Object.defineProperty(Sn,"__esModule",{value:!0});const _p=xn,bp=rr,kp=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",_p.default,bp.default];Sn.default=kp;var An={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});const bs=ie,Ht=bs.operators,ks={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}},wp={message:({keyword:t,schemaCode:e})=>(0,bs.str)`must be ${ks[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,bs._)`{comparison: ${ks[t].okStr}, limit: ${e}}`},$p={keyword:Object.keys(ks),type:"number",schemaType:"number",$data:!0,error:wp,code(t){const{keyword:e,data:r,schemaCode:s}=t;t.fail$data((0,bs._)`${r} ${ks[e].fail} ${s} || isNaN(${r})`)}};Cn.default=$p;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});const Rr=ie,Ep={message:({schemaCode:t})=>(0,Rr.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Rr._)`{multipleOf: ${t}}`},Sp={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Ep,code(t){const{gen:e,data:r,schemaCode:s,it:n}=t,a=n.opts.multipleOfPrecision,i=e.let("res"),l=a?(0,Rr._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Rr._)`${i} !== parseInt(${i})`;t.fail$data((0,Rr._)`(${s} === 0 || (${i} = ${r}/${s}, ${l}))`)}};Tn.default=Sp;var On={},Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});function Xi(t){const e=t.length;let r=0,s=0,n;for(;s<e;)r++,n=t.charCodeAt(s++),n>=55296&&n<=56319&&s<e&&(n=t.charCodeAt(s),(n&64512)===56320&&s++);return r}Pn.default=Xi,Xi.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(On,"__esModule",{value:!0});const sr=ie,xp=Y,Ap=Pn,Cp={message({keyword:t,schemaCode:e}){const r=t==="maxLength"?"more":"fewer";return(0,sr.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,sr._)`{limit: ${t}}`},Tp={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Cp,code(t){const{keyword:e,data:r,schemaCode:s,it:n}=t,a=e==="maxLength"?sr.operators.GT:sr.operators.LT,i=n.opts.unicode===!1?(0,sr._)`${r}.length`:(0,sr._)`${(0,xp.useFunc)(t.gen,Ap.default)}(${r})`;t.fail$data((0,sr._)`${i} ${a} ${s}`)}};On.default=Tp;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});const Op=de,ws=ie,Pp={message:({schemaCode:t})=>(0,ws.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,ws._)`{pattern: ${t}}`},Np={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Pp,code(t){const{data:e,$data:r,schema:s,schemaCode:n,it:a}=t,i=a.opts.unicodeRegExp?"u":"",l=r?(0,ws._)`(new RegExp(${n}, ${i}))`:(0,Op.usePattern)(t,s);t.fail$data((0,ws._)`!${l}.test(${e})`)}};Nn.default=Np;var In={};Object.defineProperty(In,"__esModule",{value:!0});const Lr=ie,Ip={message({keyword:t,schemaCode:e}){const r=t==="maxProperties"?"more":"fewer";return(0,Lr.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,Lr._)`{limit: ${t}}`},Dp={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Ip,code(t){const{keyword:e,data:r,schemaCode:s}=t,n=e==="maxProperties"?Lr.operators.GT:Lr.operators.LT;t.fail$data((0,Lr._)`Object.keys(${r}).length ${n} ${s}`)}};In.default=Dp;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const Vr=de,zr=ie,Mp=Y,Fp={message:({params:{missingProperty:t}})=>(0,zr.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,zr._)`{missingProperty: ${t}}`},Bp={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Fp,code(t){const{gen:e,schema:r,schemaCode:s,data:n,$data:a,it:i}=t,{opts:l}=i;if(!a&&r.length===0)return;const d=r.length>=l.loopRequired;if(i.allErrors?o():u(),l.strictRequired){const _=t.parentSchema.properties,{definedProperties:g}=t.it;for(const v of r)if((_==null?void 0:_[v])===void 0&&!g.has(v)){const p=i.schemaEnv.baseId+i.errSchemaPath,y=`required property "${v}" is not defined at "${p}" (strictRequired)`;(0,Mp.checkStrictMode)(i,y,i.opts.strictRequired)}}function o(){if(d||a)t.block$data(zr.nil,f);else for(const _ of r)(0,Vr.checkReportMissingProp)(t,_)}function u(){const _=e.let("missing");if(d||a){const g=e.let("valid",!0);t.block$data(g,()=>m(_,g)),t.ok(g)}else e.if((0,Vr.checkMissingProp)(t,r,_)),(0,Vr.reportMissingProp)(t,_),e.else()}function f(){e.forOf("prop",s,_=>{t.setParams({missingProperty:_}),e.if((0,Vr.noPropertyInData)(e,n,_,l.ownProperties),()=>t.error())})}function m(_,g){t.setParams({missingProperty:_}),e.forOf(_,s,()=>{e.assign(g,(0,Vr.propertyInData)(e,n,_,l.ownProperties)),e.if((0,zr.not)(g),()=>{t.error(),e.break()})},zr.nil)}}};Dn.default=Bp;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});const Hr=ie,jp={message({keyword:t,schemaCode:e}){const r=t==="maxItems"?"more":"fewer";return(0,Hr.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Hr._)`{limit: ${t}}`},Rp={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:jp,code(t){const{keyword:e,data:r,schemaCode:s}=t,n=e==="maxItems"?Hr.operators.GT:Hr.operators.LT;t.fail$data((0,Hr._)`${r}.length ${n} ${s}`)}};Mn.default=Rp;var Fn={},Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});const Yi=di;Yi.code='require("ajv/dist/runtime/equal").default',Ur.default=Yi,Object.defineProperty(Fn,"__esModule",{value:!0});const Bn=Ce,Be=ie,Lp=Y,Vp=Ur,zp={message:({params:{i:t,j:e}})=>(0,Be.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Be._)`{i: ${t}, j: ${e}}`},Hp={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:zp,code(t){const{gen:e,data:r,$data:s,schema:n,parentSchema:a,schemaCode:i,it:l}=t;if(!s&&!n)return;const d=e.let("valid"),o=a.items?(0,Bn.getSchemaTypes)(a.items):[];t.block$data(d,u,(0,Be._)`${i} === false`),t.ok(d);function u(){const g=e.let("i",(0,Be._)`${r}.length`),v=e.let("j");t.setParams({i:g,j:v}),e.assign(d,!0),e.if((0,Be._)`${g} > 1`,()=>(f()?m:_)(g,v))}function f(){return o.length>0&&!o.some(g=>g==="object"||g==="array")}function m(g,v){const p=e.name("item"),y=(0,Bn.checkDataTypes)(o,p,l.opts.strictNumbers,Bn.DataType.Wrong),h=e.const("indices",(0,Be._)`{}`);e.for((0,Be._)`;${g}--;`,()=>{e.let(p,(0,Be._)`${r}[${g}]`),e.if(y,(0,Be._)`continue`),o.length>1&&e.if((0,Be._)`typeof ${p} == "string"`,(0,Be._)`${p} += "_"`),e.if((0,Be._)`typeof ${h}[${p}] == "number"`,()=>{e.assign(v,(0,Be._)`${h}[${p}]`),t.error(),e.assign(d,!1).break()}).code((0,Be._)`${h}[${p}] = ${g}`)})}function _(g,v){const p=(0,Lp.useFunc)(e,Vp.default),y=e.name("outer");e.label(y).for((0,Be._)`;${g}--;`,()=>e.for((0,Be._)`${v} = ${g}; ${v}--;`,()=>e.if((0,Be._)`${p}(${r}[${g}], ${r}[${v}])`,()=>{t.error(),e.assign(d,!1).break(y)})))}}};Fn.default=Hp;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});const Rn=ie,Up=Y,Gp=Ur,Wp={message:"must be equal to constant",params:({schemaCode:t})=>(0,Rn._)`{allowedValue: ${t}}`},Kp={keyword:"const",$data:!0,error:Wp,code(t){const{gen:e,data:r,$data:s,schemaCode:n,schema:a}=t;s||a&&typeof a=="object"?t.fail$data((0,Rn._)`!${(0,Up.useFunc)(e,Gp.default)}(${r}, ${n})`):t.fail((0,Rn._)`${a} !== ${r}`)}};jn.default=Kp;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Gr=ie,qp=Y,Xp=Ur,Yp={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Gr._)`{allowedValues: ${t}}`},Zp={keyword:"enum",schemaType:"array",$data:!0,error:Yp,code(t){const{gen:e,data:r,$data:s,schema:n,schemaCode:a,it:i}=t;if(!s&&n.length===0)throw new Error("enum must have non-empty array");const l=n.length>=i.opts.loopEnum;let d;const o=()=>d??(d=(0,qp.useFunc)(e,Xp.default));let u;if(l||s)u=e.let("valid"),t.block$data(u,f);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const _=e.const("vSchema",a);u=(0,Gr.or)(...n.map((g,v)=>m(_,v)))}t.pass(u);function f(){e.assign(u,!1),e.forOf("v",a,_=>e.if((0,Gr._)`${o()}(${r}, ${_})`,()=>e.assign(u,!0).break()))}function m(_,g){const v=n[g];return typeof v=="object"&&v!==null?(0,Gr._)`${o()}(${r}, ${_}[${g}])`:(0,Gr._)`${r} === ${v}`}}};Ln.default=Zp,Object.defineProperty(An,"__esModule",{value:!0});const Jp=Cn,Qp=Tn,ef=On,tf=Nn,rf=In,sf=Dn,nf=Mn,af=Fn,of=jn,lf=Ln,uf=[Jp.default,Qp.default,ef.default,tf.default,rf.default,sf.default,nf.default,af.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},of.default,lf.default];An.default=uf;var Vn={},wr={};Object.defineProperty(wr,"__esModule",{value:!0}),wr.validateAdditionalItems=void 0;const nr=ie,zn=Y,cf={message:({params:{len:t}})=>(0,nr.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,nr._)`{limit: ${t}}`},df={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:cf,code(t){const{parentSchema:e,it:r}=t,{items:s}=e;if(!Array.isArray(s)){(0,zn.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Zi(t,s)}};function Zi(t,e){const{gen:r,schema:s,data:n,keyword:a,it:i}=t;i.items=!0;const l=r.const("len",(0,nr._)`${n}.length`);if(s===!1)t.setParams({len:e.length}),t.pass((0,nr._)`${l} <= ${e.length}`);else if(typeof s=="object"&&!(0,zn.alwaysValidSchema)(i,s)){const o=r.var("valid",(0,nr._)`${l} <= ${e.length}`);r.if((0,nr.not)(o),()=>d(o)),t.ok(o)}function d(o){r.forRange("i",e.length,l,u=>{t.subschema({keyword:a,dataProp:u,dataPropType:zn.Type.Num},o),i.allErrors||r.if((0,nr.not)(o),()=>r.break())})}}wr.validateAdditionalItems=Zi,wr.default=df;var Hn={},$r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.validateTuple=void 0;const Ji=ie,$s=Y,hf=de,pf={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:r}=t;if(Array.isArray(e))return Qi(t,"additionalItems",e);r.items=!0,!(0,$s.alwaysValidSchema)(r,e)&&t.ok((0,hf.validateArray)(t))}};function Qi(t,e,r=t.schema){const{gen:s,parentSchema:n,data:a,keyword:i,it:l}=t;u(n),l.opts.unevaluated&&r.length&&l.items!==!0&&(l.items=$s.mergeEvaluated.items(s,r.length,l.items));const d=s.name("valid"),o=s.const("len",(0,Ji._)`${a}.length`);r.forEach((f,m)=>{(0,$s.alwaysValidSchema)(l,f)||(s.if((0,Ji._)`${o} > ${m}`,()=>t.subschema({keyword:i,schemaProp:m,dataProp:m},d)),t.ok(d))});function u(f){const{opts:m,errSchemaPath:_}=l,g=r.length,v=g===f.minItems&&(g===f.maxItems||f[e]===!1);if(m.strictTuples&&!v){const p=`"${i}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${_}"`;(0,$s.checkStrictMode)(l,p,m.strictTuples)}}}$r.validateTuple=Qi,$r.default=pf,Object.defineProperty(Hn,"__esModule",{value:!0});const ff=$r,mf={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,ff.validateTuple)(t,"items")};Hn.default=mf;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});const el=ie,gf=Y,yf=de,vf=wr,_f={message:({params:{len:t}})=>(0,el.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,el._)`{limit: ${t}}`},bf={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:_f,code(t){const{schema:e,parentSchema:r,it:s}=t,{prefixItems:n}=r;s.items=!0,!(0,gf.alwaysValidSchema)(s,e)&&(n?(0,vf.validateAdditionalItems)(t,n):t.ok((0,yf.validateArray)(t)))}};Un.default=bf;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});const lt=ie,Es=Y,kf={message:({params:{min:t,max:e}})=>e===void 0?(0,lt.str)`must contain at least ${t} valid item(s)`:(0,lt.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,lt._)`{minContains: ${t}}`:(0,lt._)`{minContains: ${t}, maxContains: ${e}}`},wf={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:kf,code(t){const{gen:e,schema:r,parentSchema:s,data:n,it:a}=t;let i,l;const{minContains:d,maxContains:o}=s;a.opts.next?(i=d===void 0?1:d,l=o):i=1;const u=e.const("len",(0,lt._)`${n}.length`);if(t.setParams({min:i,max:l}),l===void 0&&i===0){(0,Es.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&i>l){(0,Es.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Es.alwaysValidSchema)(a,r)){let v=(0,lt._)`${u} >= ${i}`;l!==void 0&&(v=(0,lt._)`${v} && ${u} <= ${l}`),t.pass(v);return}a.items=!0;const f=e.name("valid");l===void 0&&i===1?_(f,()=>e.if(f,()=>e.break())):i===0?(e.let(f,!0),l!==void 0&&e.if((0,lt._)`${n}.length > 0`,m)):(e.let(f,!1),m()),t.result(f,()=>t.reset());function m(){const v=e.name("_valid"),p=e.let("count",0);_(v,()=>e.if(v,()=>g(p)))}function _(v,p){e.forRange("i",0,u,y=>{t.subschema({keyword:"contains",dataProp:y,dataPropType:Es.Type.Num,compositeRule:!0},v),p()})}function g(v){e.code((0,lt._)`${v}++`),l===void 0?e.if((0,lt._)`${v} >= ${i}`,()=>e.assign(f,!0).break()):(e.if((0,lt._)`${v} > ${l}`,()=>e.assign(f,!1).break()),i===1?e.assign(f,!0):e.if((0,lt._)`${v} >= ${i}`,()=>e.assign(f,!0)))}}};Gn.default=wf;var tl={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=ie,r=Y,s=de;t.error={message:({params:{property:d,depsCount:o,deps:u}})=>{const f=o===1?"property":"properties";return(0,e.str)`must have ${f} ${u} when property ${d} is present`},params:({params:{property:d,depsCount:o,deps:u,missingProperty:f}})=>(0,e._)`{property: ${d},
25
+ missingProperty: ${f},
26
26
  depsCount: ${o},
27
- deps: ${u}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(d){const[o,u]=a(d);i(d,o),l(d,u)}};function a({schema:d}){const o={},u={};for(const p in d){if(p==="__proto__")continue;const f=Array.isArray(d[p])?o:u;f[p]=d[p]}return[o,u]}function i(d,o=d.schema){const{gen:u,data:p,it:f}=d;if(Object.keys(o).length===0)return;const _=u.let("missing");for(const g in o){const v=o[g];if(v.length===0)continue;const m=(0,s.propertyInData)(u,p,g,f.opts.ownProperties);d.setParams({property:g,depsCount:v.length,deps:v.join(", ")}),f.allErrors?u.if(m,()=>{for(const y of v)(0,s.checkReportMissingProp)(d,y)}):(u.if((0,e._)`${m} && (${(0,s.checkMissingProp)(d,v,_)})`),(0,s.reportMissingProp)(d,_),u.else())}}r.validatePropertyDeps=i;function l(d,o=d.schema){const{gen:u,data:p,keyword:f,it:_}=d,g=u.name("valid");for(const v in o)(0,t.alwaysValidSchema)(_,o[v])||(u.if((0,s.propertyInData)(u,p,v,_.opts.ownProperties),()=>{const m=d.subschema({keyword:f,schemaProp:v},g);d.mergeValidEvaluated(m,g)},()=>u.var(g,!0)),d.ok(g))}r.validateSchemaDeps=l,r.default=n})(Si);var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});const xi=ie,df=Y,hf={message:"property name must be valid",params:({params:r})=>(0,xi._)`{propertyName: ${r.propertyName}}`},pf={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:hf,code(r){const{gen:e,schema:t,data:s,it:n}=r;if((0,df.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,xi.not)(a),()=>{r.error(!0),n.allErrors||e.break()})}),r.ok(a)}};Hn.default=pf;var $s={};Object.defineProperty($s,"__esModule",{value:!0});const ws=de,_t=ie,ff=gt,Es=Y,mf={message:"must NOT have additional properties",params:({params:r})=>(0,_t._)`{additionalProperty: ${r.additionalProperty}}`},gf={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:mf,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:l,opts:d}=i;if(i.props=!0,d.removeAdditional!=="all"&&(0,Es.alwaysValidSchema)(i,t))return;const o=(0,ws.allSchemaProperties)(s.properties),u=(0,ws.allSchemaProperties)(s.patternProperties);p(),r.ok((0,_t._)`${a} === ${ff.default.errors}`);function p(){e.forIn("key",n,m=>{!o.length&&!u.length?g(m):e.if(f(m),()=>g(m))})}function f(m){let y;if(o.length>8){const h=(0,Es.schemaRefOrVal)(i,s.properties,"properties");y=(0,ws.isOwnProperty)(e,h,m)}else o.length?y=(0,_t.or)(...o.map(h=>(0,_t._)`${m} === ${h}`)):y=_t.nil;return u.length&&(y=(0,_t.or)(y,...u.map(h=>(0,_t._)`${(0,ws.usePattern)(r,h)}.test(${m})`))),(0,_t.not)(y)}function _(m){e.code((0,_t._)`delete ${n}[${m}]`)}function g(m){if(d.removeAdditional==="all"||d.removeAdditional&&t===!1){_(m);return}if(t===!1){r.setParams({additionalProperty:m}),r.error(),l||e.break();return}if(typeof t=="object"&&!(0,Es.alwaysValidSchema)(i,t)){const y=e.name("valid");d.removeAdditional==="failing"?(v(m,y,!1),e.if((0,_t.not)(y),()=>{r.reset(),_(m)})):(v(m,y),l||e.if((0,_t.not)(y),()=>e.break()))}}function v(m,y,h){const b={keyword:"additionalProperties",dataProp:m,dataPropType:Es.Type.Str};h===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(b,y)}}};$s.default=gf;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});const yf=lt,Ai=de,Gn=Y,Ci=$s,vf={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&&Ci.default.code(new yf.KeywordCxt(a,Ci.default,"additionalProperties"));const i=(0,Ai.allSchemaProperties)(t);for(const p of i)a.definedProperties.add(p);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Gn.mergeEvaluated.props(e,(0,Gn.toHash)(i),a.props));const l=i.filter(p=>!(0,Gn.alwaysValidSchema)(a,t[p]));if(l.length===0)return;const d=e.name("valid");for(const p of l)o(p)?u(p):(e.if((0,Ai.propertyInData)(e,n,p,a.opts.ownProperties)),u(p),a.allErrors||e.else().var(d,!0),e.endIf()),r.it.definedProperties.add(p),r.ok(d);function o(p){return a.opts.useDefaults&&!a.compositeRule&&t[p].default!==void 0}function u(p){r.subschema({keyword:"properties",schemaProp:p,dataProp:p},d)}}};Un.default=vf;var qn={};Object.defineProperty(qn,"__esModule",{value:!0});const Ti=de,Ss=ie,Oi=Y,Pi=Y,_f={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:s,parentSchema:n,it:a}=r,{opts:i}=a,l=(0,Ti.allSchemaProperties)(t),d=l.filter(v=>(0,Oi.alwaysValidSchema)(a,t[v]));if(l.length===0||d.length===l.length&&(!a.opts.unevaluated||a.props===!0))return;const o=i.strictSchema&&!i.allowMatchingProperties&&n.properties,u=e.name("valid");a.props!==!0&&!(a.props instanceof Ss.Name)&&(a.props=(0,Pi.evaluatedPropsToName)(e,a.props));const{props:p}=a;f();function f(){for(const v of l)o&&_(v),a.allErrors?g(v):(e.var(u,!0),g(v),e.if(u))}function _(v){for(const m in o)new RegExp(v).test(m)&&(0,Oi.checkStrictMode)(a,`property ${m} matches pattern ${v} (use allowMatchingProperties)`)}function g(v){e.forIn("key",s,m=>{e.if((0,Ss._)`${(0,Ti.usePattern)(r,v)}.test(${m})`,()=>{const y=d.includes(v);y||r.subschema({keyword:"patternProperties",schemaProp:v,dataProp:m,dataPropType:Pi.Type.Str},u),a.opts.unevaluated&&p!==!0?e.assign((0,Ss._)`${p}[${m}]`,!0):!y&&!a.allErrors&&e.if((0,Ss.not)(u),()=>e.break())})})}}};qn.default=_f;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});const bf=Y,kf={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:s}=r;if((0,bf.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"}};Wn.default=kf;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});const $f=de,wf={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$f.validateUnion,error:{message:"must match a schema in anyOf"}};Kn.default=wf;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const xs=ie,Ef=Y,Sf={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,xs._)`{passingSchemas: ${r.passing}}`},xf={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Sf,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),l=e.let("passing",null),d=e.name("_valid");r.setParams({passing:l}),e.block(o),r.result(i,()=>r.reset(),()=>r.error(!0));function o(){a.forEach((u,p)=>{let f;(0,Ef.alwaysValidSchema)(n,u)?e.var(d,!0):f=r.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},d),p>0&&e.if((0,xs._)`${d} && ${i}`).assign(i,!1).assign(l,(0,xs._)`[${l}, ${p}]`).else(),e.if(d,()=>{e.assign(i,!0),e.assign(l,p),f&&r.mergeEvaluated(f,xs.Name)})})}}};Xn.default=xf;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Af=Y,Cf={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,Af.alwaysValidSchema)(s,a))return;const l=r.subschema({keyword:"allOf",schemaProp:i},n);r.ok(n),r.mergeEvaluated(l)})}};Yn.default=Cf;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});const As=ie,Ni=Y,Tf={message:({params:r})=>(0,As.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,As._)`{failingKeyword: ${r.ifClause}}`},Of={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Tf,code(r){const{gen:e,parentSchema:t,it:s}=r;t.then===void 0&&t.else===void 0&&(0,Ni.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const n=Ii(s,"then"),a=Ii(s,"else");if(!n&&!a)return;const i=e.let("valid",!0),l=e.name("_valid");if(d(),r.reset(),n&&a){const u=e.let("ifClause");r.setParams({ifClause:u}),e.if(l,o("then",u),o("else",u))}else n?e.if(l,o("then")):e.if((0,As.not)(l),o("else"));r.pass(i,()=>r.error(!0));function d(){const u=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);r.mergeEvaluated(u)}function o(u,p){return()=>{const f=r.subschema({keyword:u},l);e.assign(i,l),r.mergeValidEvaluated(f,i),p?e.assign(p,(0,As._)`${u}`):r.setParams({ifClause:u})}}}};function Ii(r,e){const t=r.schema[e];return t!==void 0&&!(0,Ni.alwaysValidSchema)(r,t)}Zn.default=Of;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});const Pf=Y,Nf={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,Pf.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};Jn.default=Nf,Object.defineProperty(Rn,"__esModule",{value:!0});const If=vr,Df=Ln,Mf=_r,Ff=Vn,Bf=zn,Rf=Si,jf=Hn,Lf=$s,Vf=Un,zf=qn,Hf=Wn,Uf=Kn,Gf=Xn,qf=Yn,Wf=Zn,Kf=Jn;function Xf(r=!1){const e=[Hf.default,Uf.default,Gf.default,qf.default,Wf.default,Kf.default,jf.default,Lf.default,Rf.default,Vf.default,zf.default];return r?e.push(Df.default,Ff.default):e.push(If.default,Mf.default),e.push(Bf.default),e}Rn.default=Xf;var Qn={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});const Ee=ie,Yf={message:({schemaCode:r})=>(0,Ee.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Ee._)`{format: ${r}}`},Zf={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Yf,code(r,e){const{gen:t,data:s,$data:n,schema:a,schemaCode:i,it:l}=r,{opts:d,errSchemaPath:o,schemaEnv:u,self:p}=l;if(!d.validateFormats)return;n?f():_();function f(){const g=t.scopeValue("formats",{ref:p.formats,code:d.code.formats}),v=t.const("fDef",(0,Ee._)`${g}[${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)(h(),b()));function h(){return d.strictSchema===!1?Ee.nil:(0,Ee._)`${i} && !${y}`}function b(){const $=u.$async?(0,Ee._)`(${v}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,Ee._)`${y}(${s})`,S=(0,Ee._)`(typeof ${y} == "function" ? ${$} : ${y}.test(${s}))`;return(0,Ee._)`${y} && ${y} !== true && ${m} === ${e} && !${S}`}}function _(){const g=p.formats[a];if(!g){h();return}if(g===!0)return;const[v,m,y]=b(g);v===e&&r.pass($());function h(){if(d.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${a}" ignored in schema at path "${o}"`}}function b(S){const O=S instanceof RegExp?(0,Ee.regexpCode)(S):d.code.formats?(0,Ee._)`${d.code.formats}${(0,Ee.getProperty)(a)}`:void 0,N=t.scopeValue("formats",{key:a,ref:S,code:O});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ee._)`${N}.validate`]:["string",S,N]}function $(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!u.$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})`}}}};ea.default=Zf,Object.defineProperty(Qn,"__esModule",{value:!0});const Jf=ea,Qf=[Jf.default];Qn.default=Qf;var br={};Object.defineProperty(br,"__esModule",{value:!0}),br.contentVocabulary=br.metadataVocabulary=void 0,br.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],br.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(kn,"__esModule",{value:!0});const e0=$n,t0=En,r0=Rn,s0=Qn,Di=br,n0=[e0.default,t0.default,(0,r0.default)(),s0.default,Di.metadataVocabulary,Di.contentVocabulary];kn.default=n0;var ta={},Cs={};Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.DiscrError=void 0;var Mi;(function(r){r.Tag="tag",r.Mapping="mapping"})(Mi||(Cs.DiscrError=Mi={})),Object.defineProperty(ta,"__esModule",{value:!0});const kr=ie,ra=Cs,Fi=Qe,a0=gr,o0=Y,i0={message:({params:{discrError:r,tagName:e}})=>r===ra.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,kr._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},l0={keyword:"discriminator",type:"object",schemaType:"object",error:i0,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 l=s.propertyName;if(typeof l!="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 d=e.let("valid",!1),o=e.const("tag",(0,kr._)`${t}${(0,kr.getProperty)(l)}`);e.if((0,kr._)`typeof ${o} == "string"`,()=>u(),()=>r.error(!1,{discrError:ra.DiscrError.Tag,tag:o,tagName:l})),r.ok(d);function u(){const _=f();e.if(!1);for(const g in _)e.elseIf((0,kr._)`${o} === ${g}`),e.assign(d,p(_[g]));e.else(),r.error(!1,{discrError:ra.DiscrError.Mapping,tag:o,tagName:l}),e.endIf()}function p(_){const g=e.name("valid"),v=r.subschema({keyword:"oneOf",schemaProp:_},g);return r.mergeEvaluated(v,kr.Name),g}function f(){var _;const g={},v=y(n);let m=!0;for(let $=0;$<i.length;$++){let S=i[$];if(S!=null&&S.$ref&&!(0,o0.schemaHasRulesButRef)(S,a.self.RULES)){const N=S.$ref;if(S=Fi.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,N),S instanceof Fi.SchemaEnv&&(S=S.schema),S===void 0)throw new a0.default(a.opts.uriResolver,a.baseId,N)}const O=(_=S==null?void 0:S.properties)===null||_===void 0?void 0:_[l];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);m=m&&(v||y(S)),h(O,$)}if(!m)throw new Error(`discriminator: "${l}" must be required`);return g;function y({required:$}){return Array.isArray($)&&$.includes(l)}function h($,S){if($.const)b($.const,S);else if($.enum)for(const O of $.enum)b(O,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function b($,S){if(typeof $!="string"||$ in g)throw new Error(`discriminator: "${l}" values must be unique strings`);g[$]=S}}}};ta.default=l0;const u0="http://json-schema.org/draft-07/schema#",c0="http://json-schema.org/draft-07/schema#",d0="Core schema meta-schema",h0={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"],f0={$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:"#"}},m0={$schema:u0,$id:c0,title:d0,definitions:h0,type:p0,properties:f0,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=mo,s=kn,n=ta,a=m0,i=["/properties"],l="http://json-schema.org/draft-07/schema";class d extends t.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(g,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.Ajv=d,r.exports=e=d,r.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var o=lt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var u=ie;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var p=Nr;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return p.default}});var f=gr;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Js,Js.exports);var Bi=Js.exports,Ri={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Bi,s=ie,n=hr,a=lt,i=dr,l=gt,d="errorMessage",o=new t.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},p=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,_=/^""\s*\+\s*|\s*\+\s*""$/g;function g(m){return{keyword:d,schemaType:["string","object"],post:!0,code(y){const{gen:h,data:b,schema:$,schemaValue:S,it:O}=y;if(O.createErrors===!1)return;const N=$,R=s.strConcat(l.default.instancePath,O.errorPath);h.if(t._`${l.default.errors} > 0`,()=>{if(typeof N=="object"){const[E,c]=I(N);c&&T(c),E&&B(E),j(V(N))}const x=typeof N=="string"?N:N._;x&&U(x),m.keepErrors||W()});function V({properties:x,items:E}){const c={};if(x){c.props={};for(const w in x)c.props[w]=[]}if(E){c.items={};for(let w=0;w<E.length;w++)c.items[w]=[]}return c}function I(x){let E,c;for(const w in x){if(w==="properties"||w==="items")continue;const C=x[w];if(typeof C=="object"){E||(E={});const L=E[w]={};for(const F in C)L[F]=[]}else c||(c={}),c[w]=[]}return[E,c]}function T(x){const E=h.const("emErrors",t.stringify(x)),c=h.const("templates",ne(x,$));h.forOf("err",l.default.vErrors,F=>h.if(K(F,E),()=>h.code(t._`${E}[${F}.keyword].push(${F})`).assign(t._`${F}.${o}`,!0)));const{singleError:w}=m;if(w){const F=h.let("message",t._`""`),z=h.let("paramsErrors",t._`[]`);C(G=>{h.if(F,()=>h.code(t._`${F} += ${typeof w=="string"?w:";"}`)),h.code(t._`${F} += ${L(G)}`),h.assign(z,t._`${z}.concat(${E}[${G}])`)}),i.reportError(y,{message:F,params:t._`{errors: ${z}}`})}else C(F=>i.reportError(y,{message:L(F),params:t._`{errors: ${E}[${F}]}`}));function C(F){h.forIn("key",E,z=>h.if(t._`${E}[${z}].length`,()=>F(z)))}function L(F){return t._`${F} in ${c} ? ${c}[${F}]() : ${S}[${F}]`}}function B(x){const E=h.const("emErrors",t.stringify(x)),c=[];for(const z in x)c.push([z,ne(x[z],$[z])]);const w=h.const("templates",h.object(...c)),C=h.scopeValue("obj",{ref:u,code:t.stringify(u)}),L=h.let("emPropParams"),F=h.let("emParamsErrors");h.forOf("err",l.default.vErrors,z=>h.if(K(z,E),()=>{h.assign(L,t._`${C}[${z}.keyword]`),h.assign(F,t._`${E}[${z}.keyword][${z}.params[${L}]]`),h.if(F,()=>h.code(t._`${F}.push(${z})`).assign(t._`${z}.${o}`,!0))})),h.forIn("key",E,z=>h.forIn("keyProp",t._`${E}[${z}]`,G=>{h.assign(F,t._`${E}[${z}][${G}]`),h.if(t._`${F}.length`,()=>{const J=h.const("tmpl",t._`${w}[${z}] && ${w}[${z}][${G}]`);i.reportError(y,{message:t._`${J} ? ${J}() : ${S}[${z}][${G}]`,params:t._`{errors: ${F}}`})})}))}function j(x){const{props:E,items:c}=x;if(!E&&!c)return;const w=t._`typeof ${b} == "object"`,C=t._`Array.isArray(${b})`,L=h.let("emErrors");let F,z;const G=h.let("templates");E&&c?(F=h.let("emChildKwd"),h.if(w),h.if(C,()=>{J(c,$.items),h.assign(F,t.str`items`)},()=>{J(E,$.properties),h.assign(F,t.str`properties`)}),z=t._`[${F}]`):c?(h.if(C),J(c,$.items),z=t._`.items`):E&&(h.if(s.and(w,s.not(C))),J(E,$.properties),z=t._`.properties`),h.forOf("err",l.default.vErrors,H=>se(H,L,fe=>h.code(t._`${L}[${fe}].push(${H})`).assign(t._`${H}.${o}`,!0))),h.forIn("key",L,H=>h.if(t._`${L}[${H}].length`,()=>{i.reportError(y,{message:t._`${H} in ${G} ? ${G}[${H}]() : ${S}${z}[${H}]`,params:t._`{errors: ${L}[${H}]}`}),h.assign(t._`${l.default.vErrors}[${l.default.errors}-1].instancePath`,t._`${R} + "/" + ${H}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf();function J(H,fe){h.assign(L,t.stringify(H)),h.assign(G,ne(H,fe))}}function U(x){const E=h.const("emErrs",t._`[]`);h.forOf("err",l.default.vErrors,c=>h.if(Z(c),()=>h.code(t._`${E}.push(${c})`).assign(t._`${c}.${o}`,!0))),h.if(t._`${E}.length`,()=>i.reportError(y,{message:P(x),params:t._`{errors: ${E}}`}))}function W(){const x=h.const("emErrs",t._`[]`);h.forOf("err",l.default.vErrors,E=>h.if(t._`!${E}.${o}`,()=>h.code(t._`${x}.push(${E})`))),h.assign(l.default.vErrors,x).assign(l.default.errors,t._`${x}.length`)}function K(x,E){return s.and(t._`${x}.keyword !== ${d}`,t._`!${x}.${o}`,t._`${x}.instancePath === ${R}`,t._`${x}.keyword in ${E}`,t._`${x}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`/^\\/[^\\/]*$/.test(${x}.schemaPath.slice(${O.errSchemaPath.length}))`)}function se(x,E,c){h.if(s.and(t._`${x}.keyword !== ${d}`,t._`!${x}.${o}`,t._`${x}.instancePath.indexOf(${R}) === 0`),()=>{const w=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:t._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),C=h.const("emMatches",t._`${w}.exec(${x}.instancePath.slice(${R}.length))`),L=h.const("emChild",t._`${C} && ${C}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(t._`${L} !== undefined && ${L} in ${E}`,()=>c(L))})}function Z(x){return s.and(t._`${x}.keyword !== ${d}`,t._`!${x}.${o}`,s.or(t._`${x}.instancePath === ${R}`,s.and(t._`${x}.instancePath.indexOf(${R}) === 0`,t._`${x}.instancePath[${R}.length] === "/"`)),t._`${x}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`${x}.schemaPath[${O.errSchemaPath}.length] === "/"`)}function ne(x,E){const c=[];for(const w in x){const C=E[w];p.test(C)&&c.push([w,k(C)])}return h.object(...c)}function P(x){return p.test(x)?new n._Code(n.safeStringify(x).replace(f,(E,c)=>`" + JSON.stringify(${a.getData(c,O)}) + "`).replace(_,"")):t.stringify(x)}function k(x){return t._`function(){return ${P(x)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const v=(m,y={})=>{if(!m.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(m.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return m.addKeyword(g(y))};e.default=v,r.exports=v,r.exports.default=v})(Ri,Ri.exports);var ji={exports:{}},Li={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0;function e(T,B){return{validate:T,compare:B}}r.fullFormats={date:e(a,i),time:e(d(!0),o),"date-time":e(f(!0),_),"iso-time":e(d(),u),"iso-date-time":e(f(),g),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:O},int64:{type:"number",validate:N},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,u),"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,g),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(T){return T%4===0&&(T%100!==0||T%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(T){const B=s.exec(T);if(!B)return!1;const j=+B[1],U=+B[2],W=+B[3];return U>=1&&U<=12&&W>=1&&W<=(U===2&&t(j)?29:n[U])}function i(T,B){if(T&&B)return T>B?1:T<B?-1:0}const l=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(T){return function(B){const j=l.exec(B);if(!j)return!1;const U=+j[1],W=+j[2],K=+j[3],se=j[4],Z=j[5]==="-"?-1:1,ne=+(j[6]||0),P=+(j[7]||0);if(ne>23||P>59||T&&!se)return!1;if(U<=23&&W<=59&&K<60)return!0;const k=W-P*Z,x=U-ne*Z-(k<0?1:0);return(x===23||x===-1)&&(k===59||k===-1)&&K<61}}function o(T,B){if(!(T&&B))return;const j=new Date("2020-01-01T"+T).valueOf(),U=new Date("2020-01-01T"+B).valueOf();if(j&&U)return j-U}function u(T,B){if(!(T&&B))return;const j=l.exec(T),U=l.exec(B);if(j&&U)return T=j[1]+j[2]+j[3],B=U[1]+U[2]+U[3],T>B?1:T<B?-1:0}const p=/t|\s/i;function f(T){const B=d(T);return function(j){const U=j.split(p);return U.length===2&&a(U[0])&&B(U[1])}}function _(T,B){if(!(T&&B))return;const j=new Date(T).valueOf(),U=new Date(B).valueOf();if(j&&U)return j-U}function g(T,B){if(!(T&&B))return;const[j,U]=T.split(p),[W,K]=B.split(p),se=i(j,W);if(se!==void 0)return se||o(U,K)}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(T){return v.test(T)&&m.test(T)}const h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(T){return h.lastIndex=0,h.test(T)}const $=-2147483648,S=2**31-1;function O(T){return Number.isInteger(T)&&T<=S&&T>=$}function N(T){return Number.isInteger(T)}function R(){return!0}const V=/[^\\]\\Z/;function I(T){if(V.test(T))return!1;try{return new RegExp(T),!0}catch{return!1}}})(Li);var Vi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=Bi,t=ie,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:l,schemaCode:d})=>(0,t.str)`should be ${n[l].okStr} ${d}`,params:({keyword:l,schemaCode:d})=>(0,t._)`{comparison: ${n[l].okStr}, limit: ${d}}`};r.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:a,code(l){const{gen:d,data:o,schemaCode:u,keyword:p,it:f}=l,{opts:_,self:g}=f;if(!_.validateFormats)return;const v=new e.KeywordCxt(f,g.RULES.all.format.definition,"format");v.$data?m():y();function m(){const b=d.scopeValue("formats",{ref:g.formats,code:_.code.formats}),$=d.const("fmt",(0,t._)`${b}[${v.schemaCode}]`);l.fail$data((0,t.or)((0,t._)`typeof ${$} != "object"`,(0,t._)`${$} instanceof RegExp`,(0,t._)`typeof ${$}.compare != "function"`,h($)))}function y(){const b=v.schema,$=g.formats[b];if(!$||$===!0)return;if(typeof $!="object"||$ instanceof RegExp||typeof $.compare!="function")throw new Error(`"${p}": format "${b}" does not define "compare" function`);const S=d.scopeValue("formats",{key:b,ref:$,code:_.code.formats?(0,t._)`${_.code.formats}${(0,t.getProperty)(b)}`:void 0});l.fail$data(h(S))}function h(b){return(0,t._)`${b}.compare(${o}, ${u}) ${n[p].fail} 0`}},dependencies:["format"]};const i=l=>(l.addKeyword(r.formatLimitDefinition),l);r.default=i})(Vi),function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Li,s=Vi,n=ie,a=new n.Name("fullFormats"),i=new n.Name("fastFormats"),l=(o,u={keywords:!0})=>{if(Array.isArray(u))return d(o,u,t.fullFormats,a),o;const[p,f]=u.mode==="fast"?[t.fastFormats,i]:[t.fullFormats,a],_=u.formats||t.formatNames;return d(o,_,p,f),u.keywords&&(0,s.default)(o),o};l.get=(o,u="full")=>{const p=(u==="fast"?t.fastFormats:t.fullFormats)[o];if(!p)throw new Error(`Unknown format "${o}"`);return p};function d(o,u,p,f){var _,g;(_=(g=o.opts.code).formats)!==null&&_!==void 0||(g.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const v of u)o.addFormat(v,p[v])}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l}(ji,ji.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 g0=({items:r=[],autoRotate:e=!0,autoRotateInterval:t=8e3,animationDuration:s=300,infinite:n=!0,pendulumRotate:a=!1,startIndex:i=0,swipeEnabled:l=!0,swipeThreshold:d=20,swipePercentage:o=.08,preventScroll:u=!0,containerRef:p=null}={})=>{const[f,_]=X.useState(i),[g,v]=X.useState(r.length>1&&n?i+1:i),[m,y]=X.useState(0),[h,b]=X.useState(!1),[$,S]=X.useState(null),[O,N]=X.useState("forward"),R=X.useRef(null),[V,I]=X.useState(!1),[T,B]=X.useState(!1),j=T||V,U=X.useMemo(()=>{if(!n||r.length<=1)return r;const c=r[r.length-1],w=r[0];return[c,...r,w]},[n,r]),W=X.useCallback(c=>{setTimeout(()=>{b(!0),S(c),v(c)},s)},[s]);X.useEffect(()=>{h&&$!==null&&g===$&&requestAnimationFrame(()=>{b(!1),S(null)})},[h,g,$]);const K=X.useCallback(()=>{if(!(p!=null&&p.current))return d;const c=p.current.offsetWidth*o;return Math.max(d,c)},[d,o,p]),se=X.useCallback(c=>{c<0||c>=r.length||r.length<=1||(_(c),v(n?c+1:c))},[r.length,n]),Z=X.useCallback(c=>{if(r.length<=1)return;const w=c==="forward"?1:-1;if(n){const C=g+w;let L;C===0?L=r.length-1:C===U.length-1?L=0:L=C-1,_(L),v(C),C===0?W(U.length-2):C===U.length-1&&W(1)}else{const C=f+w;if(C<0||C>=r.length)return;_(C),v(C)}},[r.length,n,f,g,U.length,W]),ne=X.useCallback((c,w,C)=>{const L=Math.abs(c),F=w>500,z=K();C&&!F&&L>=z&&(c>0?Z("backward"):Z("forward"))},[K,Z]),P=X.useCallback((c,w)=>{let C=!1;return{handleDrag:(L,F)=>{const z=L-c;Math.abs(z)>5&&(C=!0),y(z),u&&F.preventDefault()},handleEnd:L=>{I(!1),y(0);const F=L-c,z=Date.now()-w;ne(F,z,C)}}},[u,ne]),k=X.useCallback((c,w)=>{const C=w==="mouse"?c.clientX:c.touches[0].clientX,L=Date.now();y(0),I(!0),w==="mouse"&&c.preventDefault();const{handleDrag:F,handleEnd:z}=P(C,L);if(w==="mouse"){const G=H=>{F(H.clientX,H)},J=H=>{z(H.clientX),document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",J),H.preventDefault()};try{document.addEventListener("mousemove",G),document.addEventListener("mouseup",J)}catch(H){console.warn("Failed to attach mouse event listeners:",H)}}else{const G=H=>{F(H.touches[0].clientX,H)},J=H=>{z(H.changedTouches[0].clientX),document.removeEventListener("touchmove",G),document.removeEventListener("touchend",J)};try{document.addEventListener("touchmove",G,{passive:!u}),document.addEventListener("touchend",J)}catch(H){console.warn("Failed to attach touch event listeners:",H)}}},[P,u]);X.useEffect(()=>{if(!(!e||r.length<=1||j))return R.current=setInterval(()=>{if(n){Z("forward");return}if(a){const c=f+(O==="forward"?1:-1);c>=r.length-1?N("backward"):c<=0&&N("forward"),Z(O)}else{if(f>=r.length-1){clearInterval(R.current),R.current=null;return}Z("forward")}},t),()=>{R.current&&(clearInterval(R.current),R.current=null)}},[e,r.length,j,t,n,a,s,O,f,Z]);const x=X.useCallback(()=>{var c;const w=-(g*100),C=V?m/(((c=p==null?void 0:p.current)==null?void 0:c.offsetWidth)??1)*100:0;return`translateX(${w+C}%)`},[g,V,m,p]),E=X.useMemo(()=>r.length<=1?{}:{onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),...l?{onMouseDown:c=>k(c,"mouse"),onTouchStart:c=>k(c,"touch")}:{}},[l,r.length,k]);return{currentLogicalIndex:f,isPaused:j,isDragging:V,items:U,totalItems:r.length,goToNext:()=>Z("forward"),goToPrevious:()=>Z("backward"),goToIndex:se,canNavigate:r.length>1,getContainerTransform:x,shouldDisableTransition:()=>V||h,animationDuration:s,handlers:E}},y0={},v0=Object.freeze(Object.defineProperty({__proto__:null,default:y0},Symbol.toStringTag,{value:"Module"}));var _0={exports:{}};function b0(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 Hi={exports:{}};const k0=xc(v0);var Ui;function pe(){return Ui||(Ui=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 b0=="function")try{a=k0}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.")},l=Object.create||function(){function h(){}return function(b){var $;return h.prototype=b,$=new h,h.prototype=null,$}}(),d={},o=d.lib={},u=o.Base=function(){return{extend:function(h){var b=l(this);return h&&b.mixIn(h),(!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 h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var b in h)h.hasOwnProperty(b)&&(this[b]=h[b]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=o.WordArray=u.extend({init:function(h,b){h=this.words=h||[],b!=n?this.sigBytes=b:this.sigBytes=h.length*4},toString:function(h){return(h||_).stringify(this)},concat:function(h){var b=this.words,$=h.words,S=this.sigBytes,O=h.sigBytes;if(this.clamp(),S%4)for(var N=0;N<O;N++){var R=$[N>>>2]>>>24-N%4*8&255;b[S+N>>>2]|=R<<24-(S+N)%4*8}else for(var V=0;V<O;V+=4)b[S+V>>>2]=$[V>>>2];return this.sigBytes+=O,this},clamp:function(){var h=this.words,b=this.sigBytes;h[b>>>2]&=4294967295<<32-b%4*8,h.length=s.ceil(b/4)},clone:function(){var h=u.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var b=[],$=0;$<h;$+=4)b.push(i());return new p.init(b,h)}}),f=d.enc={},_=f.Hex={stringify:function(h){for(var b=h.words,$=h.sigBytes,S=[],O=0;O<$;O++){var N=b[O>>>2]>>>24-O%4*8&255;S.push((N>>>4).toString(16)),S.push((N&15).toString(16))}return S.join("")},parse:function(h){for(var b=h.length,$=[],S=0;S<b;S+=2)$[S>>>3]|=parseInt(h.substr(S,2),16)<<24-S%8*4;return new p.init($,b/2)}},g=f.Latin1={stringify:function(h){for(var b=h.words,$=h.sigBytes,S=[],O=0;O<$;O++){var N=b[O>>>2]>>>24-O%4*8&255;S.push(String.fromCharCode(N))}return S.join("")},parse:function(h){for(var b=h.length,$=[],S=0;S<b;S++)$[S>>>2]|=(h.charCodeAt(S)&255)<<24-S%4*8;return new p.init($,b)}},v=f.Utf8={stringify:function(h){try{return decodeURIComponent(escape(g.stringify(h)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(h){return g.parse(unescape(encodeURIComponent(h)))}},m=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=v.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var b,$=this._data,S=$.words,O=$.sigBytes,N=this.blockSize,R=N*4,V=O/R;h?V=s.ceil(V):V=s.max((V|0)-this._minBufferSize,0);var I=V*N,T=s.min(I*4,O);if(I){for(var B=0;B<I;B+=N)this._doProcessBlock(S,B);b=S.splice(0,I),$.sigBytes-=T}return new p.init(b,T)},clone:function(){var h=u.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0});o.Hasher=m.extend({cfg:u.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(h){return function(b,$){return new h.init($).finalize(b)}},_createHmacHelper:function(h){return function(b,$){return new y.HMAC.init(h,$).finalize(b)}}});var y=d.algo={};return d}(Math);return t})}(Hi)),Hi.exports}var Gi={exports:{}},qi;function Ts(){return qi||(qi=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.Base,l=a.WordArray,d=n.x64={};d.Word=i.extend({init:function(o,u){this.high=o,this.low=u}}),d.WordArray=i.extend({init:function(o,u){o=this.words=o||[],u!=s?this.sigBytes=u:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,u=o.length,p=[],f=0;f<u;f++){var _=o[f];p.push(_.high),p.push(_.low)}return l.create(p,this.sigBytes)},clone:function(){for(var o=i.clone.call(this),u=o.words=this.words.slice(0),p=u.length,f=0;f<p;f++)u[f]=u[f].clone();return o}})}(),t})}(Gi)),Gi.exports}var Wi={exports:{}},Ki;function $0(){return Ki||(Ki=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var s=t,n=s.lib,a=n.WordArray,i=a.init,l=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var o=d.byteLength,u=[],p=0;p<o;p++)u[p>>>2]|=d[p]<<24-p%4*8;i.call(this,u,o)}else i.apply(this,arguments)};l.prototype=a}}(),t.lib.WordArray})}(Wi)),Wi.exports}var Xi={exports:{}},Yi;function w0(){return Yi||(Yi=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Utf16=i.Utf16BE={stringify:function(d){for(var o=d.words,u=d.sigBytes,p=[],f=0;f<u;f+=2){var _=o[f>>>2]>>>16-f%4*8&65535;p.push(String.fromCharCode(_))}return p.join("")},parse:function(d){for(var o=d.length,u=[],p=0;p<o;p++)u[p>>>1]|=d.charCodeAt(p)<<16-p%2*16;return a.create(u,o*2)}},i.Utf16LE={stringify:function(d){for(var o=d.words,u=d.sigBytes,p=[],f=0;f<u;f+=2){var _=l(o[f>>>2]>>>16-f%4*8&65535);p.push(String.fromCharCode(_))}return p.join("")},parse:function(d){for(var o=d.length,u=[],p=0;p<o;p++)u[p>>>1]|=l(d.charCodeAt(p)<<16-p%2*16);return a.create(u,o*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Xi)),Xi.exports}var Zi={exports:{}},Ji;function sr(){return Ji||(Ji=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64={stringify:function(d){var o=d.words,u=d.sigBytes,p=this._map;d.clamp();for(var f=[],_=0;_<u;_+=3)for(var g=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=g<<16|v<<8|m,h=0;h<4&&_+h*.75<u;h++)f.push(p.charAt(y>>>6*(3-h)&63));var b=p.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(d){var o=d.length,u=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var f=0;f<u.length;f++)p[u.charCodeAt(f)]=f}var _=u.charAt(64);if(_){var g=d.indexOf(_);g!==-1&&(o=g)}return l(d,o,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,o,u){for(var p=[],f=0,_=0;_<o;_++)if(_%4){var g=u[d.charCodeAt(_-1)]<<_%4*2,v=u[d.charCodeAt(_)]>>>6-_%4*2,m=g|v;p[f>>>2]|=m<<24-f%4*8,f++}return a.create(p,f)}}(),t.enc.Base64})}(Zi)),Zi.exports}var Qi={exports:{}},el;function E0(){return el||(el=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64url={stringify:function(d,o){o===void 0&&(o=!0);var u=d.words,p=d.sigBytes,f=o?this._safe_map:this._map;d.clamp();for(var _=[],g=0;g<p;g+=3)for(var v=u[g>>>2]>>>24-g%4*8&255,m=u[g+1>>>2]>>>24-(g+1)%4*8&255,y=u[g+2>>>2]>>>24-(g+2)%4*8&255,h=v<<16|m<<8|y,b=0;b<4&&g+b*.75<p;b++)_.push(f.charAt(h>>>6*(3-b)&63));var $=f.charAt(64);if($)for(;_.length%4;)_.push($);return _.join("")},parse:function(d,o){o===void 0&&(o=!0);var u=d.length,p=o?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var _=0;_<p.length;_++)f[p.charCodeAt(_)]=_}var g=p.charAt(64);if(g){var v=d.indexOf(g);v!==-1&&(u=v)}return l(d,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,o,u){for(var p=[],f=0,_=0;_<o;_++)if(_%4){var g=u[d.charCodeAt(_-1)]<<_%4*2,v=u[d.charCodeAt(_)]>>>6-_%4*2,m=g|v;p[f>>>2]|=m<<24-f%4*8,f++}return a.create(p,f)}}(),t.enc.Base64url})}(Qi)),Qi.exports}var tl={exports:{}},rl;function nr(){return rl||(rl=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.algo,o=[];(function(){for(var v=0;v<64;v++)o[v]=s.abs(s.sin(v+1))*4294967296|0})();var u=d.MD5=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,m){for(var y=0;y<16;y++){var h=m+y,b=v[h];v[h]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var $=this._hash.words,S=v[m+0],O=v[m+1],N=v[m+2],R=v[m+3],V=v[m+4],I=v[m+5],T=v[m+6],B=v[m+7],j=v[m+8],U=v[m+9],W=v[m+10],K=v[m+11],se=v[m+12],Z=v[m+13],ne=v[m+14],P=v[m+15],k=$[0],x=$[1],E=$[2],c=$[3];k=p(k,x,E,c,S,7,o[0]),c=p(c,k,x,E,O,12,o[1]),E=p(E,c,k,x,N,17,o[2]),x=p(x,E,c,k,R,22,o[3]),k=p(k,x,E,c,V,7,o[4]),c=p(c,k,x,E,I,12,o[5]),E=p(E,c,k,x,T,17,o[6]),x=p(x,E,c,k,B,22,o[7]),k=p(k,x,E,c,j,7,o[8]),c=p(c,k,x,E,U,12,o[9]),E=p(E,c,k,x,W,17,o[10]),x=p(x,E,c,k,K,22,o[11]),k=p(k,x,E,c,se,7,o[12]),c=p(c,k,x,E,Z,12,o[13]),E=p(E,c,k,x,ne,17,o[14]),x=p(x,E,c,k,P,22,o[15]),k=f(k,x,E,c,O,5,o[16]),c=f(c,k,x,E,T,9,o[17]),E=f(E,c,k,x,K,14,o[18]),x=f(x,E,c,k,S,20,o[19]),k=f(k,x,E,c,I,5,o[20]),c=f(c,k,x,E,W,9,o[21]),E=f(E,c,k,x,P,14,o[22]),x=f(x,E,c,k,V,20,o[23]),k=f(k,x,E,c,U,5,o[24]),c=f(c,k,x,E,ne,9,o[25]),E=f(E,c,k,x,R,14,o[26]),x=f(x,E,c,k,j,20,o[27]),k=f(k,x,E,c,Z,5,o[28]),c=f(c,k,x,E,N,9,o[29]),E=f(E,c,k,x,B,14,o[30]),x=f(x,E,c,k,se,20,o[31]),k=_(k,x,E,c,I,4,o[32]),c=_(c,k,x,E,j,11,o[33]),E=_(E,c,k,x,K,16,o[34]),x=_(x,E,c,k,ne,23,o[35]),k=_(k,x,E,c,O,4,o[36]),c=_(c,k,x,E,V,11,o[37]),E=_(E,c,k,x,B,16,o[38]),x=_(x,E,c,k,W,23,o[39]),k=_(k,x,E,c,Z,4,o[40]),c=_(c,k,x,E,S,11,o[41]),E=_(E,c,k,x,R,16,o[42]),x=_(x,E,c,k,T,23,o[43]),k=_(k,x,E,c,U,4,o[44]),c=_(c,k,x,E,se,11,o[45]),E=_(E,c,k,x,P,16,o[46]),x=_(x,E,c,k,N,23,o[47]),k=g(k,x,E,c,S,6,o[48]),c=g(c,k,x,E,B,10,o[49]),E=g(E,c,k,x,ne,15,o[50]),x=g(x,E,c,k,I,21,o[51]),k=g(k,x,E,c,se,6,o[52]),c=g(c,k,x,E,R,10,o[53]),E=g(E,c,k,x,W,15,o[54]),x=g(x,E,c,k,O,21,o[55]),k=g(k,x,E,c,j,6,o[56]),c=g(c,k,x,E,P,10,o[57]),E=g(E,c,k,x,T,15,o[58]),x=g(x,E,c,k,Z,21,o[59]),k=g(k,x,E,c,V,6,o[60]),c=g(c,k,x,E,K,10,o[61]),E=g(E,c,k,x,N,15,o[62]),x=g(x,E,c,k,U,21,o[63]),$[0]=$[0]+k|0,$[1]=$[1]+x|0,$[2]=$[2]+E|0,$[3]=$[3]+c|0},_doFinalize:function(){var v=this._data,m=v.words,y=this._nDataBytes*8,h=v.sigBytes*8;m[h>>>5]|=128<<24-h%32;var b=s.floor(y/4294967296),$=y;m[(h+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m[(h+64>>>9<<4)+14]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,v.sigBytes=(m.length+1)*4,this._process();for(var S=this._hash,O=S.words,N=0;N<4;N++){var R=O[N];O[N]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return S},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,m,y,h,b,$,S){var O=v+(m&y|~m&h)+b+S;return(O<<$|O>>>32-$)+m}function f(v,m,y,h,b,$,S){var O=v+(m&h|y&~h)+b+S;return(O<<$|O>>>32-$)+m}function _(v,m,y,h,b,$,S){var O=v+(m^y^h)+b+S;return(O<<$|O>>>32-$)+m}function g(v,m,y,h,b,$,S){var O=v+(y^(m|~h))+b+S;return(O<<$|O>>>32-$)+m}n.MD5=l._createHelper(u),n.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(tl)),tl.exports}var sl={exports:{}},nl;function al(){return nl||(nl=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.Hasher,l=s.algo,d=[],o=l.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,p){for(var f=this._hash.words,_=f[0],g=f[1],v=f[2],m=f[3],y=f[4],h=0;h<80;h++){if(h<16)d[h]=u[p+h]|0;else{var b=d[h-3]^d[h-8]^d[h-14]^d[h-16];d[h]=b<<1|b>>>31}var $=(_<<5|_>>>27)+y+d[h];h<20?$+=(g&v|~g&m)+1518500249:h<40?$+=(g^v^m)+1859775393:h<60?$+=(g&v|g&m|v&m)-1894007588:$+=(g^v^m)-899497514,y=m,m=v,v=g<<30|g>>>2,g=_,_=$}f[0]=f[0]+_|0,f[1]=f[1]+g|0,f[2]=f[2]+v|0,f[3]=f[3]+m|0,f[4]=f[4]+y|0},_doFinalize:function(){var u=this._data,p=u.words,f=this._nDataBytes*8,_=u.sigBytes*8;return p[_>>>5]|=128<<24-_%32,p[(_+64>>>9<<4)+14]=Math.floor(f/4294967296),p[(_+64>>>9<<4)+15]=f,u.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var u=i.clone.call(this);return u._hash=this._hash.clone(),u}});s.SHA1=i._createHelper(o),s.HmacSHA1=i._createHmacHelper(o)}(),t.SHA1})}(sl)),sl.exports}var ol={exports:{}},il;function sa(){return il||(il=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.algo,o=[],u=[];(function(){function _(y){for(var h=s.sqrt(y),b=2;b<=h;b++)if(!(y%b))return!1;return!0}function g(y){return(y-(y|0))*4294967296|0}for(var v=2,m=0;m<64;)_(v)&&(m<8&&(o[m]=g(s.pow(v,1/2))),u[m]=g(s.pow(v,1/3)),m++),v++})();var p=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(_,g){for(var v=this._hash.words,m=v[0],y=v[1],h=v[2],b=v[3],$=v[4],S=v[5],O=v[6],N=v[7],R=0;R<64;R++){if(R<16)p[R]=_[g+R]|0;else{var V=p[R-15],I=(V<<25|V>>>7)^(V<<14|V>>>18)^V>>>3,T=p[R-2],B=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;p[R]=I+p[R-7]+B+p[R-16]}var j=$&S^~$&O,U=m&y^m&h^y&h,W=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),K=($<<26|$>>>6)^($<<21|$>>>11)^($<<7|$>>>25),se=N+K+j+u[R]+p[R],Z=W+U;N=O,O=S,S=$,$=b+se|0,b=h,h=y,y=m,m=se+Z|0}v[0]=v[0]+m|0,v[1]=v[1]+y|0,v[2]=v[2]+h|0,v[3]=v[3]+b|0,v[4]=v[4]+$|0,v[5]=v[5]+S|0,v[6]=v[6]+O|0,v[7]=v[7]+N|0},_doFinalize:function(){var _=this._data,g=_.words,v=this._nDataBytes*8,m=_.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=s.floor(v/4294967296),g[(m+64>>>9<<4)+15]=v,_.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var _=l.clone.call(this);return _._hash=this._hash.clone(),_}});n.SHA256=l._createHelper(f),n.HmacSHA256=l._createHmacHelper(f)}(Math),t.SHA256})}(ol)),ol.exports}var ll={exports:{}},ul;function S0(){return ul||(ul=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sa())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.algo,l=i.SHA256,d=i.SHA224=l.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=l._doFinalize.call(this);return o.sigBytes-=4,o}});s.SHA224=l._createHelper(d),s.HmacSHA224=l._createHmacHelper(d)}(),t.SHA224})}(ll)),ll.exports}var cl={exports:{}},dl;function hl(){return dl||(dl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ts())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Hasher,i=s.x64,l=i.Word,d=i.WordArray,o=s.algo;function u(){return l.create.apply(l,arguments)}var p=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var g=0;g<80;g++)f[g]=u()})();var _=o.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(g,v){for(var m=this._hash.words,y=m[0],h=m[1],b=m[2],$=m[3],S=m[4],O=m[5],N=m[6],R=m[7],V=y.high,I=y.low,T=h.high,B=h.low,j=b.high,U=b.low,W=$.high,K=$.low,se=S.high,Z=S.low,ne=O.high,P=O.low,k=N.high,x=N.low,E=R.high,c=R.low,w=V,C=I,L=T,F=B,z=j,G=U,J=W,H=K,fe=se,ge=Z,Ke=ne,nt=P,Xe=k,tt=x,dt=E,ht=c,Ie=0;Ie<80;Ie++){var De,Ve,rt=f[Ie];if(Ie<16)Ve=rt.high=g[v+Ie*2]|0,De=rt.low=g[v+Ie*2+1]|0;else{var at=f[Ie-15],Ce=at.high,pt=at.low,or=(Ce>>>1|pt<<31)^(Ce>>>8|pt<<24)^Ce>>>7,Gt=(pt>>>1|Ce<<31)^(pt>>>8|Ce<<24)^(pt>>>7|Ce<<25),qt=f[Ie-2],Mt=qt.high,Ct=qt.low,$r=(Mt>>>19|Ct<<13)^(Mt<<3|Ct>>>29)^Mt>>>6,ft=(Ct>>>19|Mt<<13)^(Ct<<3|Mt>>>29)^(Ct>>>6|Mt<<26),Ft=f[Ie-7],Wr=Ft.high,Kr=Ft.low,Is=f[Ie-16],wr=Is.high,ir=Is.low;De=Gt+Kr,Ve=or+Wr+(De>>>0<Gt>>>0?1:0),De=De+ft,Ve=Ve+$r+(De>>>0<ft>>>0?1:0),De=De+ir,Ve=Ve+wr+(De>>>0<ir>>>0?1:0),rt.high=Ve,rt.low=De}var pa=fe&Ke^~fe&Xe,Wt=ge&nt^~ge&tt,fa=w&L^w&z^L&z,ma=C&F^C&G^F&G,Se=(w>>>28|C<<4)^(w<<30|C>>>2)^(w<<25|C>>>7),Bt=(C>>>28|w<<4)^(C<<30|w>>>2)^(C<<25|w>>>7),ga=(fe>>>14|ge<<18)^(fe>>>18|ge<<14)^(fe<<23|ge>>>9),Ds=(ge>>>14|fe<<18)^(ge>>>18|fe<<14)^(ge<<23|fe>>>9),Er=p[Ie],Ms=Er.high,Xr=Er.low,Ye=ht+Ds,Te=dt+ga+(Ye>>>0<ht>>>0?1:0),Ye=Ye+Wt,Te=Te+pa+(Ye>>>0<Wt>>>0?1:0),Ye=Ye+Xr,Te=Te+Ms+(Ye>>>0<Xr>>>0?1:0),Ye=Ye+De,Te=Te+Ve+(Ye>>>0<De>>>0?1:0),lr=Bt+ma,Fs=Se+fa+(lr>>>0<Bt>>>0?1:0);dt=Xe,ht=tt,Xe=Ke,tt=nt,Ke=fe,nt=ge,ge=H+Ye|0,fe=J+Te+(ge>>>0<H>>>0?1:0)|0,J=z,H=G,z=L,G=F,L=w,F=C,C=Ye+lr|0,w=Te+Fs+(C>>>0<Ye>>>0?1:0)|0}I=y.low=I+C,y.high=V+w+(I>>>0<C>>>0?1:0),B=h.low=B+F,h.high=T+L+(B>>>0<F>>>0?1:0),U=b.low=U+G,b.high=j+z+(U>>>0<G>>>0?1:0),K=$.low=K+H,$.high=W+J+(K>>>0<H>>>0?1:0),Z=S.low=Z+ge,S.high=se+fe+(Z>>>0<ge>>>0?1:0),P=O.low=P+nt,O.high=ne+Ke+(P>>>0<nt>>>0?1:0),x=N.low=x+tt,N.high=k+Xe+(x>>>0<tt>>>0?1:0),c=R.low=c+ht,R.high=E+dt+(c>>>0<ht>>>0?1:0)},_doFinalize:function(){var g=this._data,v=g.words,m=this._nDataBytes*8,y=g.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,g.sigBytes=v.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});s.SHA512=a._createHelper(_),s.HmacSHA512=a._createHmacHelper(_)}(),t.SHA512})}(cl)),cl.exports}var pl={exports:{}},fl;function x0(){return fl||(fl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ts(),hl())})(ce,function(t){return function(){var s=t,n=s.x64,a=n.Word,i=n.WordArray,l=s.algo,d=l.SHA512,o=l.SHA384=d.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 u=d._doFinalize.call(this);return u.sigBytes-=16,u}});s.SHA384=d._createHelper(o),s.HmacSHA384=d._createHmacHelper(o)}(),t.SHA384})}(pl)),pl.exports}var ml={exports:{}},gl;function A0(){return gl||(gl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ts())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.x64,o=d.Word,u=n.algo,p=[],f=[],_=[];(function(){for(var m=1,y=0,h=0;h<24;h++){p[m+5*y]=(h+1)*(h+2)/2%64;var b=y%5,$=(2*m+3*y)%5;m=b,y=$}for(var m=0;m<5;m++)for(var y=0;y<5;y++)f[m+5*y]=y+(2*m+3*y)%5*5;for(var S=1,O=0;O<24;O++){for(var N=0,R=0,V=0;V<7;V++){if(S&1){var I=(1<<V)-1;I<32?R^=1<<I:N^=1<<I-32}S&128?S=S<<1^113:S<<=1}_[O]=o.create(N,R)}})();var g=[];(function(){for(var m=0;m<25;m++)g[m]=o.create()})();var v=u.SHA3=l.extend({cfg:l.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 h=this._state,b=this.blockSize/2,$=0;$<b;$++){var S=m[y+2*$],O=m[y+2*$+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var N=h[$];N.high^=O,N.low^=S}for(var R=0;R<24;R++){for(var V=0;V<5;V++){for(var I=0,T=0,B=0;B<5;B++){var N=h[V+5*B];I^=N.high,T^=N.low}var j=g[V];j.high=I,j.low=T}for(var V=0;V<5;V++)for(var U=g[(V+4)%5],W=g[(V+1)%5],K=W.high,se=W.low,I=U.high^(K<<1|se>>>31),T=U.low^(se<<1|K>>>31),B=0;B<5;B++){var N=h[V+5*B];N.high^=I,N.low^=T}for(var Z=1;Z<25;Z++){var I,T,N=h[Z],ne=N.high,P=N.low,k=p[Z];k<32?(I=ne<<k|P>>>32-k,T=P<<k|ne>>>32-k):(I=P<<k-32|ne>>>64-k,T=ne<<k-32|P>>>64-k);var x=g[f[Z]];x.high=I,x.low=T}var E=g[0],c=h[0];E.high=c.high,E.low=c.low;for(var V=0;V<5;V++)for(var B=0;B<5;B++){var Z=V+5*B,N=h[Z],w=g[Z],C=g[(V+1)%5+5*B],L=g[(V+2)%5+5*B];N.high=w.high^~C.high&L.high,N.low=w.low^~C.low&L.low}var N=h[0],F=_[R];N.high^=F.high,N.low^=F.low}},_doFinalize:function(){var m=this._data,y=m.words;this._nDataBytes*8;var h=m.sigBytes*8,b=this.blockSize*32;y[h>>>5]|=1<<24-h%32,y[(s.ceil((h+1)/b)*b>>>5)-1]|=128,m.sigBytes=y.length*4,this._process();for(var $=this._state,S=this.cfg.outputLength/8,O=S/8,N=[],R=0;R<O;R++){var V=$[R],I=V.high,T=V.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N.push(T),N.push(I)}return new i.init(N,S)},clone:function(){for(var m=l.clone.call(this),y=m._state=this._state.slice(0),h=0;h<25;h++)y[h]=y[h].clone();return m}});n.SHA3=l._createHelper(v),n.HmacSHA3=l._createHmacHelper(v)}(Math),t.SHA3})}(ml)),ml.exports}var yl={exports:{}},vl;function C0(){return vl||(vl=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){/** @preserve
27
+ deps: ${u}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[o,u]=a(d);i(d,o),l(d,u)}};function a({schema:d}){const o={},u={};for(const f in d){if(f==="__proto__")continue;const m=Array.isArray(d[f])?o:u;m[f]=d[f]}return[o,u]}function i(d,o=d.schema){const{gen:u,data:f,it:m}=d;if(Object.keys(o).length===0)return;const _=u.let("missing");for(const g in o){const v=o[g];if(v.length===0)continue;const p=(0,s.propertyInData)(u,f,g,m.opts.ownProperties);d.setParams({property:g,depsCount:v.length,deps:v.join(", ")}),m.allErrors?u.if(p,()=>{for(const y of v)(0,s.checkReportMissingProp)(d,y)}):(u.if((0,e._)`${p} && (${(0,s.checkMissingProp)(d,v,_)})`),(0,s.reportMissingProp)(d,_),u.else())}}t.validatePropertyDeps=i;function l(d,o=d.schema){const{gen:u,data:f,keyword:m,it:_}=d,g=u.name("valid");for(const v in o)(0,r.alwaysValidSchema)(_,o[v])||(u.if((0,s.propertyInData)(u,f,v,_.opts.ownProperties),()=>{const p=d.subschema({keyword:m,schemaProp:v},g);d.mergeValidEvaluated(p,g)},()=>u.var(g,!0)),d.ok(g))}t.validateSchemaDeps=l,t.default=n})(tl);var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});const rl=ie,$f=Y,Ef={message:"property name must be valid",params:({params:t})=>(0,rl._)`{propertyName: ${t.propertyName}}`},Sf={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Ef,code(t){const{gen:e,schema:r,data:s,it:n}=t;if((0,$f.alwaysValidSchema)(n,r))return;const a=e.name("valid");e.forIn("key",s,i=>{t.setParams({propertyName:i}),t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),e.if((0,rl.not)(a),()=>{t.error(!0),n.allErrors||e.break()})}),t.ok(a)}};Wn.default=Sf;var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});const xs=de,vt=ie,xf=mt,As=Y,Af={message:"must NOT have additional properties",params:({params:t})=>(0,vt._)`{additionalProperty: ${t.additionalProperty}}`},Cf={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Af,code(t){const{gen:e,schema:r,parentSchema:s,data:n,errsCount:a,it:i}=t;if(!a)throw new Error("ajv implementation error");const{allErrors:l,opts:d}=i;if(i.props=!0,d.removeAdditional!=="all"&&(0,As.alwaysValidSchema)(i,r))return;const o=(0,xs.allSchemaProperties)(s.properties),u=(0,xs.allSchemaProperties)(s.patternProperties);f(),t.ok((0,vt._)`${a} === ${xf.default.errors}`);function f(){e.forIn("key",n,p=>{!o.length&&!u.length?g(p):e.if(m(p),()=>g(p))})}function m(p){let y;if(o.length>8){const h=(0,As.schemaRefOrVal)(i,s.properties,"properties");y=(0,xs.isOwnProperty)(e,h,p)}else o.length?y=(0,vt.or)(...o.map(h=>(0,vt._)`${p} === ${h}`)):y=vt.nil;return u.length&&(y=(0,vt.or)(y,...u.map(h=>(0,vt._)`${(0,xs.usePattern)(t,h)}.test(${p})`))),(0,vt.not)(y)}function _(p){e.code((0,vt._)`delete ${n}[${p}]`)}function g(p){if(d.removeAdditional==="all"||d.removeAdditional&&r===!1){_(p);return}if(r===!1){t.setParams({additionalProperty:p}),t.error(),l||e.break();return}if(typeof r=="object"&&!(0,As.alwaysValidSchema)(i,r)){const y=e.name("valid");d.removeAdditional==="failing"?(v(p,y,!1),e.if((0,vt.not)(y),()=>{t.reset(),_(p)})):(v(p,y),l||e.if((0,vt.not)(y),()=>e.break()))}}function v(p,y,h){const b={keyword:"additionalProperties",dataProp:p,dataPropType:As.Type.Str};h===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(b,y)}}};Ss.default=Cf;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});const Tf=it,sl=de,qn=Y,nl=Ss,Of={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:s,data:n,it:a}=t;a.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&nl.default.code(new Tf.KeywordCxt(a,nl.default,"additionalProperties"));const i=(0,sl.allSchemaProperties)(r);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=qn.mergeEvaluated.props(e,(0,qn.toHash)(i),a.props));const l=i.filter(f=>!(0,qn.alwaysValidSchema)(a,r[f]));if(l.length===0)return;const d=e.name("valid");for(const f of l)o(f)?u(f):(e.if((0,sl.propertyInData)(e,n,f,a.opts.ownProperties)),u(f),a.allErrors||e.else().var(d,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(d);function o(f){return a.opts.useDefaults&&!a.compositeRule&&r[f].default!==void 0}function u(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},d)}}};Kn.default=Of;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const al=de,Cs=ie,ol=Y,il=Y,Pf={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:s,parentSchema:n,it:a}=t,{opts:i}=a,l=(0,al.allSchemaProperties)(r),d=l.filter(v=>(0,ol.alwaysValidSchema)(a,r[v]));if(l.length===0||d.length===l.length&&(!a.opts.unevaluated||a.props===!0))return;const o=i.strictSchema&&!i.allowMatchingProperties&&n.properties,u=e.name("valid");a.props!==!0&&!(a.props instanceof Cs.Name)&&(a.props=(0,il.evaluatedPropsToName)(e,a.props));const{props:f}=a;m();function m(){for(const v of l)o&&_(v),a.allErrors?g(v):(e.var(u,!0),g(v),e.if(u))}function _(v){for(const p in o)new RegExp(v).test(p)&&(0,ol.checkStrictMode)(a,`property ${p} matches pattern ${v} (use allowMatchingProperties)`)}function g(v){e.forIn("key",s,p=>{e.if((0,Cs._)`${(0,al.usePattern)(t,v)}.test(${p})`,()=>{const y=d.includes(v);y||t.subschema({keyword:"patternProperties",schemaProp:v,dataProp:p,dataPropType:il.Type.Str},u),a.opts.unevaluated&&f!==!0?e.assign((0,Cs._)`${f}[${p}]`,!0):!y&&!a.allErrors&&e.if((0,Cs.not)(u),()=>e.break())})})}}};Xn.default=Pf;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Nf=Y,If={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:s}=t;if((0,Nf.alwaysValidSchema)(s,r)){t.fail();return}const n=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),t.failResult(n,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Yn.default=If;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});const Df=de,Mf={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Df.validateUnion,error:{message:"must match a schema in anyOf"}};Zn.default=Mf;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});const Ts=ie,Ff=Y,Bf={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Ts._)`{passingSchemas: ${t.passing}}`},jf={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Bf,code(t){const{gen:e,schema:r,parentSchema:s,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&s.discriminator)return;const a=r,i=e.let("valid",!1),l=e.let("passing",null),d=e.name("_valid");t.setParams({passing:l}),e.block(o),t.result(i,()=>t.reset(),()=>t.error(!0));function o(){a.forEach((u,f)=>{let m;(0,Ff.alwaysValidSchema)(n,u)?e.var(d,!0):m=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},d),f>0&&e.if((0,Ts._)`${d} && ${i}`).assign(i,!1).assign(l,(0,Ts._)`[${l}, ${f}]`).else(),e.if(d,()=>{e.assign(i,!0),e.assign(l,f),m&&t.mergeEvaluated(m,Ts.Name)})})}}};Jn.default=jf;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const Rf=Y,Lf={keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const n=e.name("valid");r.forEach((a,i)=>{if((0,Rf.alwaysValidSchema)(s,a))return;const l=t.subschema({keyword:"allOf",schemaProp:i},n);t.ok(n),t.mergeEvaluated(l)})}};Qn.default=Lf;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});const Os=ie,ll=Y,Vf={message:({params:t})=>(0,Os.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Os._)`{failingKeyword: ${t.ifClause}}`},zf={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Vf,code(t){const{gen:e,parentSchema:r,it:s}=t;r.then===void 0&&r.else===void 0&&(0,ll.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const n=ul(s,"then"),a=ul(s,"else");if(!n&&!a)return;const i=e.let("valid",!0),l=e.name("_valid");if(d(),t.reset(),n&&a){const u=e.let("ifClause");t.setParams({ifClause:u}),e.if(l,o("then",u),o("else",u))}else n?e.if(l,o("then")):e.if((0,Os.not)(l),o("else"));t.pass(i,()=>t.error(!0));function d(){const u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);t.mergeEvaluated(u)}function o(u,f){return()=>{const m=t.subschema({keyword:u},l);e.assign(i,l),t.mergeValidEvaluated(m,i),f?e.assign(f,(0,Os._)`${u}`):t.setParams({ifClause:u})}}}};function ul(t,e){const r=t.schema[e];return r!==void 0&&!(0,ll.alwaysValidSchema)(t,r)}ea.default=zf;var ta={};Object.defineProperty(ta,"__esModule",{value:!0});const Hf=Y,Uf={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,Hf.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};ta.default=Uf,Object.defineProperty(Vn,"__esModule",{value:!0});const Gf=wr,Wf=Hn,Kf=$r,qf=Un,Xf=Gn,Yf=tl,Zf=Wn,Jf=Ss,Qf=Kn,e0=Xn,t0=Yn,r0=Zn,s0=Jn,n0=Qn,a0=ea,o0=ta;function i0(t=!1){const e=[t0.default,r0.default,s0.default,n0.default,a0.default,o0.default,Zf.default,Jf.default,Yf.default,Qf.default,e0.default];return t?e.push(Wf.default,qf.default):e.push(Gf.default,Kf.default),e.push(Xf.default),e}Vn.default=i0;var ra={},sa={};Object.defineProperty(sa,"__esModule",{value:!0});const Ee=ie,l0={message:({schemaCode:t})=>(0,Ee.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Ee._)`{format: ${t}}`},u0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:l0,code(t,e){const{gen:r,data:s,$data:n,schema:a,schemaCode:i,it:l}=t,{opts:d,errSchemaPath:o,schemaEnv:u,self:f}=l;if(!d.validateFormats)return;n?m():_();function m(){const g=r.scopeValue("formats",{ref:f.formats,code:d.code.formats}),v=r.const("fDef",(0,Ee._)`${g}[${i}]`),p=r.let("fType"),y=r.let("format");r.if((0,Ee._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(p,(0,Ee._)`${v}.type || "string"`).assign(y,(0,Ee._)`${v}.validate`),()=>r.assign(p,(0,Ee._)`"string"`).assign(y,v)),t.fail$data((0,Ee.or)(h(),b()));function h(){return d.strictSchema===!1?Ee.nil:(0,Ee._)`${i} && !${y}`}function b(){const w=u.$async?(0,Ee._)`(${v}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,Ee._)`${y}(${s})`,S=(0,Ee._)`(typeof ${y} == "function" ? ${w} : ${y}.test(${s}))`;return(0,Ee._)`${y} && ${y} !== true && ${p} === ${e} && !${S}`}}function _(){const g=f.formats[a];if(!g){h();return}if(g===!0)return;const[v,p,y]=b(g);v===e&&t.pass(w());function h(){if(d.strictSchema===!1){f.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${a}" ignored in schema at path "${o}"`}}function b(S){const O=S instanceof RegExp?(0,Ee.regexpCode)(S):d.code.formats?(0,Ee._)`${d.code.formats}${(0,Ee.getProperty)(a)}`:void 0,I=r.scopeValue("formats",{key:a,ref:S,code:O});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ee._)`${I}.validate`]:["string",S,I]}function w(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ee._)`await ${y}(${s})`}return typeof p=="function"?(0,Ee._)`${y}(${s})`:(0,Ee._)`${y}.test(${s})`}}}};sa.default=u0,Object.defineProperty(ra,"__esModule",{value:!0});const c0=sa,d0=[c0.default];ra.default=d0;var Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.contentVocabulary=Er.metadataVocabulary=void 0,Er.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Er.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(En,"__esModule",{value:!0});const h0=Sn,p0=An,f0=Vn,m0=ra,cl=Er,g0=[h0.default,p0.default,(0,f0.default)(),m0.default,cl.metadataVocabulary,cl.contentVocabulary];En.default=g0;var na={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.DiscrError=void 0;var dl;(function(t){t.Tag="tag",t.Mapping="mapping"})(dl||(Ps.DiscrError=dl={})),Object.defineProperty(na,"__esModule",{value:!0});const Sr=ie,aa=Ps,hl=Ze,y0=br,v0=Y,_0={message:({params:{discrError:t,tagName:e}})=>t===aa.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,Sr._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},b0={keyword:"discriminator",type:"object",schemaType:"object",error:_0,code(t){const{gen:e,data:r,schema:s,parentSchema:n,it:a}=t,{oneOf:i}=n;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=s.propertyName;if(typeof l!="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 d=e.let("valid",!1),o=e.const("tag",(0,Sr._)`${r}${(0,Sr.getProperty)(l)}`);e.if((0,Sr._)`typeof ${o} == "string"`,()=>u(),()=>t.error(!1,{discrError:aa.DiscrError.Tag,tag:o,tagName:l})),t.ok(d);function u(){const _=m();e.if(!1);for(const g in _)e.elseIf((0,Sr._)`${o} === ${g}`),e.assign(d,f(_[g]));e.else(),t.error(!1,{discrError:aa.DiscrError.Mapping,tag:o,tagName:l}),e.endIf()}function f(_){const g=e.name("valid"),v=t.subschema({keyword:"oneOf",schemaProp:_},g);return t.mergeEvaluated(v,Sr.Name),g}function m(){var _;const g={},v=y(n);let p=!0;for(let w=0;w<i.length;w++){let S=i[w];if(S!=null&&S.$ref&&!(0,v0.schemaHasRulesButRef)(S,a.self.RULES)){const I=S.$ref;if(S=hl.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,I),S instanceof hl.SchemaEnv&&(S=S.schema),S===void 0)throw new y0.default(a.opts.uriResolver,a.baseId,I)}const O=(_=S==null?void 0:S.properties)===null||_===void 0?void 0:_[l];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);p=p&&(v||y(S)),h(O,w)}if(!p)throw new Error(`discriminator: "${l}" must be required`);return g;function y({required:w}){return Array.isArray(w)&&w.includes(l)}function h(w,S){if(w.const)b(w.const,S);else if(w.enum)for(const O of w.enum)b(O,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function b(w,S){if(typeof w!="string"||w in g)throw new Error(`discriminator: "${l}" values must be unique strings`);g[w]=S}}}};na.default=b0;const k0="http://json-schema.org/draft-07/schema#",w0="http://json-schema.org/draft-07/schema#",$0="Core schema meta-schema",E0={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:[]}},S0=["object","boolean"],x0={$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:"#"}},A0={$schema:k0,$id:w0,title:$0,definitions:E0,type:S0,properties:x0,default:!0};(function(t,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 r=Go,s=En,n=na,a=A0,i=["/properties"],l="http://json-schema.org/draft-07/schema";class d extends r.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(g,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var o=it;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var u=ie;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=Br;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=br;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(tn,tn.exports);var pl=tn.exports,fl={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=pl,s=ie,n=gr,a=it,i=mr,l=mt,d="errorMessage",o=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},f=/\$\{[^}]+\}/,m=/\$\{([^}]+)\}/g,_=/^""\s*\+\s*|\s*\+\s*""$/g;function g(p){return{keyword:d,schemaType:["string","object"],post:!0,code(y){const{gen:h,data:b,schema:w,schemaValue:S,it:O}=y;if(O.createErrors===!1)return;const I=w,j=s.strConcat(l.default.instancePath,O.errorPath);h.if(r._`${l.default.errors} > 0`,()=>{if(typeof I=="object"){const[E,c]=D(I);c&&T(c),E&&B(E),R(V(I))}const x=typeof I=="string"?I:I._;x&&H(x),p.keepErrors||K()});function V({properties:x,items:E}){const c={};if(x){c.props={};for(const $ in x)c.props[$]=[]}if(E){c.items={};for(let $=0;$<E.length;$++)c.items[$]=[]}return c}function D(x){let E,c;for(const $ in x){if($==="properties"||$==="items")continue;const C=x[$];if(typeof C=="object"){E||(E={});const L=E[$]={};for(const F in C)L[F]=[]}else c||(c={}),c[$]=[]}return[E,c]}function T(x){const E=h.const("emErrors",r.stringify(x)),c=h.const("templates",ne(x,w));h.forOf("err",l.default.vErrors,F=>h.if(q(F,E),()=>h.code(r._`${E}[${F}.keyword].push(${F})`).assign(r._`${F}.${o}`,!0)));const{singleError:$}=p;if($){const F=h.let("message",r._`""`),z=h.let("paramsErrors",r._`[]`);C(G=>{h.if(F,()=>h.code(r._`${F} += ${typeof $=="string"?$:";"}`)),h.code(r._`${F} += ${L(G)}`),h.assign(z,r._`${z}.concat(${E}[${G}])`)}),i.reportError(y,{message:F,params:r._`{errors: ${z}}`})}else C(F=>i.reportError(y,{message:L(F),params:r._`{errors: ${E}[${F}]}`}));function C(F){h.forIn("key",E,z=>h.if(r._`${E}[${z}].length`,()=>F(z)))}function L(F){return r._`${F} in ${c} ? ${c}[${F}]() : ${S}[${F}]`}}function B(x){const E=h.const("emErrors",r.stringify(x)),c=[];for(const z in x)c.push([z,ne(x[z],w[z])]);const $=h.const("templates",h.object(...c)),C=h.scopeValue("obj",{ref:u,code:r.stringify(u)}),L=h.let("emPropParams"),F=h.let("emParamsErrors");h.forOf("err",l.default.vErrors,z=>h.if(q(z,E),()=>{h.assign(L,r._`${C}[${z}.keyword]`),h.assign(F,r._`${E}[${z}.keyword][${z}.params[${L}]]`),h.if(F,()=>h.code(r._`${F}.push(${z})`).assign(r._`${z}.${o}`,!0))})),h.forIn("key",E,z=>h.forIn("keyProp",r._`${E}[${z}]`,G=>{h.assign(F,r._`${E}[${z}][${G}]`),h.if(r._`${F}.length`,()=>{const J=h.const("tmpl",r._`${$}[${z}] && ${$}[${z}][${G}]`);i.reportError(y,{message:r._`${J} ? ${J}() : ${S}[${z}][${G}]`,params:r._`{errors: ${F}}`})})}))}function R(x){const{props:E,items:c}=x;if(!E&&!c)return;const $=r._`typeof ${b} == "object"`,C=r._`Array.isArray(${b})`,L=h.let("emErrors");let F,z;const G=h.let("templates");E&&c?(F=h.let("emChildKwd"),h.if($),h.if(C,()=>{J(c,w.items),h.assign(F,r.str`items`)},()=>{J(E,w.properties),h.assign(F,r.str`properties`)}),z=r._`[${F}]`):c?(h.if(C),J(c,w.items),z=r._`.items`):E&&(h.if(s.and($,s.not(C))),J(E,w.properties),z=r._`.properties`),h.forOf("err",l.default.vErrors,U=>se(U,L,fe=>h.code(r._`${L}[${fe}].push(${U})`).assign(r._`${U}.${o}`,!0))),h.forIn("key",L,U=>h.if(r._`${L}[${U}].length`,()=>{i.reportError(y,{message:r._`${U} in ${G} ? ${G}[${U}]() : ${S}${z}[${U}]`,params:r._`{errors: ${L}[${U}]}`}),h.assign(r._`${l.default.vErrors}[${l.default.errors}-1].instancePath`,r._`${j} + "/" + ${U}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf();function J(U,fe){h.assign(L,r.stringify(U)),h.assign(G,ne(U,fe))}}function H(x){const E=h.const("emErrs",r._`[]`);h.forOf("err",l.default.vErrors,c=>h.if(Z(c),()=>h.code(r._`${E}.push(${c})`).assign(r._`${c}.${o}`,!0))),h.if(r._`${E}.length`,()=>i.reportError(y,{message:P(x),params:r._`{errors: ${E}}`}))}function K(){const x=h.const("emErrs",r._`[]`);h.forOf("err",l.default.vErrors,E=>h.if(r._`!${E}.${o}`,()=>h.code(r._`${x}.push(${E})`))),h.assign(l.default.vErrors,x).assign(l.default.errors,r._`${x}.length`)}function q(x,E){return s.and(r._`${x}.keyword !== ${d}`,r._`!${x}.${o}`,r._`${x}.instancePath === ${j}`,r._`${x}.keyword in ${E}`,r._`${x}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${x}.schemaPath.slice(${O.errSchemaPath.length}))`)}function se(x,E,c){h.if(s.and(r._`${x}.keyword !== ${d}`,r._`!${x}.${o}`,r._`${x}.instancePath.indexOf(${j}) === 0`),()=>{const $=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),C=h.const("emMatches",r._`${$}.exec(${x}.instancePath.slice(${j}.length))`),L=h.const("emChild",r._`${C} && ${C}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(r._`${L} !== undefined && ${L} in ${E}`,()=>c(L))})}function Z(x){return s.and(r._`${x}.keyword !== ${d}`,r._`!${x}.${o}`,s.or(r._`${x}.instancePath === ${j}`,s.and(r._`${x}.instancePath.indexOf(${j}) === 0`,r._`${x}.instancePath[${j}.length] === "/"`)),r._`${x}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,r._`${x}.schemaPath[${O.errSchemaPath}.length] === "/"`)}function ne(x,E){const c=[];for(const $ in x){const C=E[$];f.test(C)&&c.push([$,k(C)])}return h.object(...c)}function P(x){return f.test(x)?new n._Code(n.safeStringify(x).replace(m,(E,c)=>`" + JSON.stringify(${a.getData(c,O)}) + "`).replace(_,"")):r.stringify(x)}function k(x){return r._`function(){return ${P(x)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const v=(p,y={})=>{if(!p.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(p.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return p.addKeyword(g(y))};e.default=v,t.exports=v,t.exports.default=v})(fl,fl.exports);var ml={exports:{}},gl={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(T,B){return{validate:T,compare:B}}t.fullFormats={date:e(a,i),time:e(d(!0),o),"date-time":e(m(!0),_),"iso-time":e(d(),u),"iso-date-time":e(m(),g),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:D,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:O},int64:{type:"number",validate:I},float:{type:"number",validate:j},double:{type:"number",validate:j},password:!0,binary:!0},t.fastFormats={...t.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,u),"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,g),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},t.formatNames=Object.keys(t.fullFormats);function r(T){return T%4===0&&(T%100!==0||T%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(T){const B=s.exec(T);if(!B)return!1;const R=+B[1],H=+B[2],K=+B[3];return H>=1&&H<=12&&K>=1&&K<=(H===2&&r(R)?29:n[H])}function i(T,B){if(T&&B)return T>B?1:T<B?-1:0}const l=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(T){return function(B){const R=l.exec(B);if(!R)return!1;const H=+R[1],K=+R[2],q=+R[3],se=R[4],Z=R[5]==="-"?-1:1,ne=+(R[6]||0),P=+(R[7]||0);if(ne>23||P>59||T&&!se)return!1;if(H<=23&&K<=59&&q<60)return!0;const k=K-P*Z,x=H-ne*Z-(k<0?1:0);return(x===23||x===-1)&&(k===59||k===-1)&&q<61}}function o(T,B){if(!(T&&B))return;const R=new Date("2020-01-01T"+T).valueOf(),H=new Date("2020-01-01T"+B).valueOf();if(R&&H)return R-H}function u(T,B){if(!(T&&B))return;const R=l.exec(T),H=l.exec(B);if(R&&H)return T=R[1]+R[2]+R[3],B=H[1]+H[2]+H[3],T>B?1:T<B?-1:0}const f=/t|\s/i;function m(T){const B=d(T);return function(R){const H=R.split(f);return H.length===2&&a(H[0])&&B(H[1])}}function _(T,B){if(!(T&&B))return;const R=new Date(T).valueOf(),H=new Date(B).valueOf();if(R&&H)return R-H}function g(T,B){if(!(T&&B))return;const[R,H]=T.split(f),[K,q]=B.split(f),se=i(R,K);if(se!==void 0)return se||o(H,q)}const v=/\/|:/,p=/^(?:[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(T){return v.test(T)&&p.test(T)}const h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(T){return h.lastIndex=0,h.test(T)}const w=-2147483648,S=2**31-1;function O(T){return Number.isInteger(T)&&T<=S&&T>=w}function I(T){return Number.isInteger(T)}function j(){return!0}const V=/[^\\]\\Z/;function D(T){if(V.test(T))return!1;try{return new RegExp(T),!0}catch{return!1}}})(gl);var yl={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=pl,r=ie,s=r.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:l,schemaCode:d})=>(0,r.str)`should be ${n[l].okStr} ${d}`,params:({keyword:l,schemaCode:d})=>(0,r._)`{comparison: ${n[l].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:a,code(l){const{gen:d,data:o,schemaCode:u,keyword:f,it:m}=l,{opts:_,self:g}=m;if(!_.validateFormats)return;const v=new e.KeywordCxt(m,g.RULES.all.format.definition,"format");v.$data?p():y();function p(){const b=d.scopeValue("formats",{ref:g.formats,code:_.code.formats}),w=d.const("fmt",(0,r._)`${b}[${v.schemaCode}]`);l.fail$data((0,r.or)((0,r._)`typeof ${w} != "object"`,(0,r._)`${w} instanceof RegExp`,(0,r._)`typeof ${w}.compare != "function"`,h(w)))}function y(){const b=v.schema,w=g.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 S=d.scopeValue("formats",{key:b,ref:w,code:_.code.formats?(0,r._)`${_.code.formats}${(0,r.getProperty)(b)}`:void 0});l.fail$data(h(S))}function h(b){return(0,r._)`${b}.compare(${o}, ${u}) ${n[f].fail} 0`}},dependencies:["format"]};const i=l=>(l.addKeyword(t.formatLimitDefinition),l);t.default=i})(yl),function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=gl,s=yl,n=ie,a=new n.Name("fullFormats"),i=new n.Name("fastFormats"),l=(o,u={keywords:!0})=>{if(Array.isArray(u))return d(o,u,r.fullFormats,a),o;const[f,m]=u.mode==="fast"?[r.fastFormats,i]:[r.fullFormats,a],_=u.formats||r.formatNames;return d(o,_,f,m),u.keywords&&(0,s.default)(o),o};l.get=(o,u="full")=>{const f=(u==="fast"?r.fastFormats:r.fullFormats)[o];if(!f)throw new Error(`Unknown format "${o}"`);return f};function d(o,u,f,m){var _,g;(_=(g=o.opts.code).formats)!==null&&_!==void 0||(g.formats=(0,n._)`require("ajv-formats/dist/formats").${m}`);for(const v of u)o.addFormat(v,f[v])}t.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l}(ml,ml.exports);function vl(t,e={format:"iso"}){if(e.format==="localized")return new Intl.DateTimeFormat("pt-BR",{day:"numeric",month:"short",year:"numeric"}).format(t);const r=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${r}-${s}-${n}`}const C0=({items:t=[],autoRotate:e=!0,autoRotateInterval:r=8e3,animationDuration:s=300,infinite:n=!0,pendulumRotate:a=!1,startIndex:i=0,swipeEnabled:l=!0,swipeThreshold:d=20,swipePercentage:o=.08,preventScroll:u=!0,containerRef:f=null}={})=>{const[m,_]=X.useState(i),[g,v]=X.useState(t.length>1&&n?i+1:i),[p,y]=X.useState(0),[h,b]=X.useState(!1),[w,S]=X.useState(null),[O,I]=X.useState("forward"),j=X.useRef(null),[V,D]=X.useState(!1),[T,B]=X.useState(!1),R=T||V,H=X.useMemo(()=>{if(!n||t.length<=1)return t;const c=t[t.length-1],$=t[0];return[c,...t,$]},[n,t]),K=X.useCallback(c=>{setTimeout(()=>{b(!0),S(c),v(c)},s)},[s]);X.useEffect(()=>{h&&w!==null&&g===w&&requestAnimationFrame(()=>{b(!1),S(null)})},[h,g,w]);const q=X.useCallback(()=>{if(!(f!=null&&f.current))return d;const c=f.current.offsetWidth*o;return Math.max(d,c)},[d,o,f]),se=X.useCallback(c=>{c<0||c>=t.length||t.length<=1||(_(c),v(n?c+1:c))},[t.length,n]),Z=X.useCallback(c=>{if(t.length<=1)return;const $=c==="forward"?1:-1;if(n){const C=g+$;let L;C===0?L=t.length-1:C===H.length-1?L=0:L=C-1,_(L),v(C),C===0?K(H.length-2):C===H.length-1&&K(1)}else{const C=m+$;if(C<0||C>=t.length)return;_(C),v(C)}},[t.length,n,m,g,H.length,K]),ne=X.useCallback((c,$,C)=>{const L=Math.abs(c),F=$>500,z=q();C&&!F&&L>=z&&(c>0?Z("backward"):Z("forward"))},[q,Z]),P=X.useCallback((c,$)=>{let C=!1;return{handleDrag:(L,F)=>{const z=L-c;Math.abs(z)>5&&(C=!0),y(z),u&&F.preventDefault()},handleEnd:L=>{D(!1),y(0);const F=L-c,z=Date.now()-$;ne(F,z,C)}}},[u,ne]),k=X.useCallback((c,$)=>{const C=$==="mouse"?c.clientX:c.touches[0].clientX,L=Date.now();y(0),D(!0),$==="mouse"&&c.preventDefault();const{handleDrag:F,handleEnd:z}=P(C,L);if($==="mouse"){const G=U=>{F(U.clientX,U)},J=U=>{z(U.clientX),document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",J),U.preventDefault()};try{document.addEventListener("mousemove",G),document.addEventListener("mouseup",J)}catch(U){console.warn("Failed to attach mouse event listeners:",U)}}else{const G=U=>{F(U.touches[0].clientX,U)},J=U=>{z(U.changedTouches[0].clientX),document.removeEventListener("touchmove",G),document.removeEventListener("touchend",J)};try{document.addEventListener("touchmove",G,{passive:!u}),document.addEventListener("touchend",J)}catch(U){console.warn("Failed to attach touch event listeners:",U)}}},[P,u]);X.useEffect(()=>{if(!(!e||t.length<=1||R))return j.current=setInterval(()=>{if(n){Z("forward");return}if(a){const c=m+(O==="forward"?1:-1);c>=t.length-1?I("backward"):c<=0&&I("forward"),Z(O)}else{if(m>=t.length-1){clearInterval(j.current),j.current=null;return}Z("forward")}},r),()=>{j.current&&(clearInterval(j.current),j.current=null)}},[e,t.length,R,r,n,a,s,O,m,Z]);const x=X.useCallback(()=>{var c;const $=-(g*100),C=V?p/(((c=f==null?void 0:f.current)==null?void 0:c.offsetWidth)??1)*100:0;return`translateX(${$+C}%)`},[g,V,p,f]),E=X.useMemo(()=>t.length<=1?{}:{onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),...l?{onMouseDown:c=>k(c,"mouse"),onTouchStart:c=>k(c,"touch")}:{}},[l,t.length,k]);return{currentLogicalIndex:m,isPaused:R,isDragging:V,items:H,totalItems:t.length,goToNext:()=>Z("forward"),goToPrevious:()=>Z("backward"),goToIndex:se,canNavigate:t.length>1,getContainerTransform:x,shouldDisableTransition:()=>V||h,animationDuration:s,handlers:E}},T0={},O0=Object.freeze(Object.defineProperty({__proto__:null,default:T0},Symbol.toStringTag,{value:"Module"}));var P0={exports:{}};function N0(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _l={exports:{}};const I0=jc(O0);var bl;function pe(){return bl||(bl=1,function(t,e){(function(r,s){t.exports=s()})(ce,function(){var r=r||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 N0=="function")try{a=I0}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.")},l=Object.create||function(){function h(){}return function(b){var w;return h.prototype=b,w=new h,h.prototype=null,w}}(),d={},o=d.lib={},u=o.Base=function(){return{extend:function(h){var b=l(this);return h&&b.mixIn(h),(!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 h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var b in h)h.hasOwnProperty(b)&&(this[b]=h[b]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=o.WordArray=u.extend({init:function(h,b){h=this.words=h||[],b!=n?this.sigBytes=b:this.sigBytes=h.length*4},toString:function(h){return(h||_).stringify(this)},concat:function(h){var b=this.words,w=h.words,S=this.sigBytes,O=h.sigBytes;if(this.clamp(),S%4)for(var I=0;I<O;I++){var j=w[I>>>2]>>>24-I%4*8&255;b[S+I>>>2]|=j<<24-(S+I)%4*8}else for(var V=0;V<O;V+=4)b[S+V>>>2]=w[V>>>2];return this.sigBytes+=O,this},clamp:function(){var h=this.words,b=this.sigBytes;h[b>>>2]&=4294967295<<32-b%4*8,h.length=s.ceil(b/4)},clone:function(){var h=u.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var b=[],w=0;w<h;w+=4)b.push(i());return new f.init(b,h)}}),m=d.enc={},_=m.Hex={stringify:function(h){for(var b=h.words,w=h.sigBytes,S=[],O=0;O<w;O++){var I=b[O>>>2]>>>24-O%4*8&255;S.push((I>>>4).toString(16)),S.push((I&15).toString(16))}return S.join("")},parse:function(h){for(var b=h.length,w=[],S=0;S<b;S+=2)w[S>>>3]|=parseInt(h.substr(S,2),16)<<24-S%8*4;return new f.init(w,b/2)}},g=m.Latin1={stringify:function(h){for(var b=h.words,w=h.sigBytes,S=[],O=0;O<w;O++){var I=b[O>>>2]>>>24-O%4*8&255;S.push(String.fromCharCode(I))}return S.join("")},parse:function(h){for(var b=h.length,w=[],S=0;S<b;S++)w[S>>>2]|=(h.charCodeAt(S)&255)<<24-S%4*8;return new f.init(w,b)}},v=m.Utf8={stringify:function(h){try{return decodeURIComponent(escape(g.stringify(h)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(h){return g.parse(unescape(encodeURIComponent(h)))}},p=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=v.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var b,w=this._data,S=w.words,O=w.sigBytes,I=this.blockSize,j=I*4,V=O/j;h?V=s.ceil(V):V=s.max((V|0)-this._minBufferSize,0);var D=V*I,T=s.min(D*4,O);if(D){for(var B=0;B<D;B+=I)this._doProcessBlock(S,B);b=S.splice(0,D),w.sigBytes-=T}return new f.init(b,T)},clone:function(){var h=u.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0});o.Hasher=p.extend({cfg:u.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(h){return function(b,w){return new h.init(w).finalize(b)}},_createHmacHelper:function(h){return function(b,w){return new y.HMAC.init(h,w).finalize(b)}}});var y=d.algo={};return d}(Math);return r})}(_l)),_l.exports}var kl={exports:{}},wl;function Ns(){return wl||(wl=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(s){var n=r,a=n.lib,i=a.Base,l=a.WordArray,d=n.x64={};d.Word=i.extend({init:function(o,u){this.high=o,this.low=u}}),d.WordArray=i.extend({init:function(o,u){o=this.words=o||[],u!=s?this.sigBytes=u:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,u=o.length,f=[],m=0;m<u;m++){var _=o[m];f.push(_.high),f.push(_.low)}return l.create(f,this.sigBytes)},clone:function(){for(var o=i.clone.call(this),u=o.words=this.words.slice(0),f=u.length,m=0;m<f;m++)u[m]=u[m].clone();return o}})}(),r})}(kl)),kl.exports}var $l={exports:{}},El;function D0(){return El||(El=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(){if(typeof ArrayBuffer=="function"){var s=r,n=s.lib,a=n.WordArray,i=a.init,l=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var o=d.byteLength,u=[],f=0;f<o;f++)u[f>>>2]|=d[f]<<24-f%4*8;i.call(this,u,o)}else i.apply(this,arguments)};l.prototype=a}}(),r.lib.WordArray})}($l)),$l.exports}var Sl={exports:{}},xl;function M0(){return xl||(xl=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.WordArray,i=s.enc;i.Utf16=i.Utf16BE={stringify:function(d){for(var o=d.words,u=d.sigBytes,f=[],m=0;m<u;m+=2){var _=o[m>>>2]>>>16-m%4*8&65535;f.push(String.fromCharCode(_))}return f.join("")},parse:function(d){for(var o=d.length,u=[],f=0;f<o;f++)u[f>>>1]|=d.charCodeAt(f)<<16-f%2*16;return a.create(u,o*2)}},i.Utf16LE={stringify:function(d){for(var o=d.words,u=d.sigBytes,f=[],m=0;m<u;m+=2){var _=l(o[m>>>2]>>>16-m%4*8&65535);f.push(String.fromCharCode(_))}return f.join("")},parse:function(d){for(var o=d.length,u=[],f=0;f<o;f++)u[f>>>1]|=l(d.charCodeAt(f)<<16-f%2*16);return a.create(u,o*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),r.enc.Utf16})}(Sl)),Sl.exports}var Al={exports:{}},Cl;function ar(){return Cl||(Cl=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.WordArray,i=s.enc;i.Base64={stringify:function(d){var o=d.words,u=d.sigBytes,f=this._map;d.clamp();for(var m=[],_=0;_<u;_+=3)for(var g=o[_>>>2]>>>24-_%4*8&255,v=o[_+1>>>2]>>>24-(_+1)%4*8&255,p=o[_+2>>>2]>>>24-(_+2)%4*8&255,y=g<<16|v<<8|p,h=0;h<4&&_+h*.75<u;h++)m.push(f.charAt(y>>>6*(3-h)&63));var b=f.charAt(64);if(b)for(;m.length%4;)m.push(b);return m.join("")},parse:function(d){var o=d.length,u=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var m=0;m<u.length;m++)f[u.charCodeAt(m)]=m}var _=u.charAt(64);if(_){var g=d.indexOf(_);g!==-1&&(o=g)}return l(d,o,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,o,u){for(var f=[],m=0,_=0;_<o;_++)if(_%4){var g=u[d.charCodeAt(_-1)]<<_%4*2,v=u[d.charCodeAt(_)]>>>6-_%4*2,p=g|v;f[m>>>2]|=p<<24-m%4*8,m++}return a.create(f,m)}}(),r.enc.Base64})}(Al)),Al.exports}var Tl={exports:{}},Ol;function F0(){return Ol||(Ol=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.WordArray,i=s.enc;i.Base64url={stringify:function(d,o){o===void 0&&(o=!0);var u=d.words,f=d.sigBytes,m=o?this._safe_map:this._map;d.clamp();for(var _=[],g=0;g<f;g+=3)for(var v=u[g>>>2]>>>24-g%4*8&255,p=u[g+1>>>2]>>>24-(g+1)%4*8&255,y=u[g+2>>>2]>>>24-(g+2)%4*8&255,h=v<<16|p<<8|y,b=0;b<4&&g+b*.75<f;b++)_.push(m.charAt(h>>>6*(3-b)&63));var w=m.charAt(64);if(w)for(;_.length%4;)_.push(w);return _.join("")},parse:function(d,o){o===void 0&&(o=!0);var u=d.length,f=o?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var _=0;_<f.length;_++)m[f.charCodeAt(_)]=_}var g=f.charAt(64);if(g){var v=d.indexOf(g);v!==-1&&(u=v)}return l(d,u,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,o,u){for(var f=[],m=0,_=0;_<o;_++)if(_%4){var g=u[d.charCodeAt(_-1)]<<_%4*2,v=u[d.charCodeAt(_)]>>>6-_%4*2,p=g|v;f[m>>>2]|=p<<24-m%4*8,m++}return a.create(f,m)}}(),r.enc.Base64url})}(Tl)),Tl.exports}var Pl={exports:{}},Nl;function or(){return Nl||(Nl=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(s){var n=r,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.algo,o=[];(function(){for(var v=0;v<64;v++)o[v]=s.abs(s.sin(v+1))*4294967296|0})();var u=d.MD5=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,p){for(var y=0;y<16;y++){var h=p+y,b=v[h];v[h]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var w=this._hash.words,S=v[p+0],O=v[p+1],I=v[p+2],j=v[p+3],V=v[p+4],D=v[p+5],T=v[p+6],B=v[p+7],R=v[p+8],H=v[p+9],K=v[p+10],q=v[p+11],se=v[p+12],Z=v[p+13],ne=v[p+14],P=v[p+15],k=w[0],x=w[1],E=w[2],c=w[3];k=f(k,x,E,c,S,7,o[0]),c=f(c,k,x,E,O,12,o[1]),E=f(E,c,k,x,I,17,o[2]),x=f(x,E,c,k,j,22,o[3]),k=f(k,x,E,c,V,7,o[4]),c=f(c,k,x,E,D,12,o[5]),E=f(E,c,k,x,T,17,o[6]),x=f(x,E,c,k,B,22,o[7]),k=f(k,x,E,c,R,7,o[8]),c=f(c,k,x,E,H,12,o[9]),E=f(E,c,k,x,K,17,o[10]),x=f(x,E,c,k,q,22,o[11]),k=f(k,x,E,c,se,7,o[12]),c=f(c,k,x,E,Z,12,o[13]),E=f(E,c,k,x,ne,17,o[14]),x=f(x,E,c,k,P,22,o[15]),k=m(k,x,E,c,O,5,o[16]),c=m(c,k,x,E,T,9,o[17]),E=m(E,c,k,x,q,14,o[18]),x=m(x,E,c,k,S,20,o[19]),k=m(k,x,E,c,D,5,o[20]),c=m(c,k,x,E,K,9,o[21]),E=m(E,c,k,x,P,14,o[22]),x=m(x,E,c,k,V,20,o[23]),k=m(k,x,E,c,H,5,o[24]),c=m(c,k,x,E,ne,9,o[25]),E=m(E,c,k,x,j,14,o[26]),x=m(x,E,c,k,R,20,o[27]),k=m(k,x,E,c,Z,5,o[28]),c=m(c,k,x,E,I,9,o[29]),E=m(E,c,k,x,B,14,o[30]),x=m(x,E,c,k,se,20,o[31]),k=_(k,x,E,c,D,4,o[32]),c=_(c,k,x,E,R,11,o[33]),E=_(E,c,k,x,q,16,o[34]),x=_(x,E,c,k,ne,23,o[35]),k=_(k,x,E,c,O,4,o[36]),c=_(c,k,x,E,V,11,o[37]),E=_(E,c,k,x,B,16,o[38]),x=_(x,E,c,k,K,23,o[39]),k=_(k,x,E,c,Z,4,o[40]),c=_(c,k,x,E,S,11,o[41]),E=_(E,c,k,x,j,16,o[42]),x=_(x,E,c,k,T,23,o[43]),k=_(k,x,E,c,H,4,o[44]),c=_(c,k,x,E,se,11,o[45]),E=_(E,c,k,x,P,16,o[46]),x=_(x,E,c,k,I,23,o[47]),k=g(k,x,E,c,S,6,o[48]),c=g(c,k,x,E,B,10,o[49]),E=g(E,c,k,x,ne,15,o[50]),x=g(x,E,c,k,D,21,o[51]),k=g(k,x,E,c,se,6,o[52]),c=g(c,k,x,E,j,10,o[53]),E=g(E,c,k,x,K,15,o[54]),x=g(x,E,c,k,O,21,o[55]),k=g(k,x,E,c,R,6,o[56]),c=g(c,k,x,E,P,10,o[57]),E=g(E,c,k,x,T,15,o[58]),x=g(x,E,c,k,Z,21,o[59]),k=g(k,x,E,c,V,6,o[60]),c=g(c,k,x,E,q,10,o[61]),E=g(E,c,k,x,I,15,o[62]),x=g(x,E,c,k,H,21,o[63]),w[0]=w[0]+k|0,w[1]=w[1]+x|0,w[2]=w[2]+E|0,w[3]=w[3]+c|0},_doFinalize:function(){var v=this._data,p=v.words,y=this._nDataBytes*8,h=v.sigBytes*8;p[h>>>5]|=128<<24-h%32;var b=s.floor(y/4294967296),w=y;p[(h+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,p[(h+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,v.sigBytes=(p.length+1)*4,this._process();for(var S=this._hash,O=S.words,I=0;I<4;I++){var j=O[I];O[I]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return S},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v}});function f(v,p,y,h,b,w,S){var O=v+(p&y|~p&h)+b+S;return(O<<w|O>>>32-w)+p}function m(v,p,y,h,b,w,S){var O=v+(p&h|y&~h)+b+S;return(O<<w|O>>>32-w)+p}function _(v,p,y,h,b,w,S){var O=v+(p^y^h)+b+S;return(O<<w|O>>>32-w)+p}function g(v,p,y,h,b,w,S){var O=v+(y^(p|~h))+b+S;return(O<<w|O>>>32-w)+p}n.MD5=l._createHelper(u),n.HmacMD5=l._createHmacHelper(u)}(Math),r.MD5})}(Pl)),Pl.exports}var Il={exports:{}},Dl;function Ml(){return Dl||(Dl=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.WordArray,i=n.Hasher,l=s.algo,d=[],o=l.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var m=this._hash.words,_=m[0],g=m[1],v=m[2],p=m[3],y=m[4],h=0;h<80;h++){if(h<16)d[h]=u[f+h]|0;else{var b=d[h-3]^d[h-8]^d[h-14]^d[h-16];d[h]=b<<1|b>>>31}var w=(_<<5|_>>>27)+y+d[h];h<20?w+=(g&v|~g&p)+1518500249:h<40?w+=(g^v^p)+1859775393:h<60?w+=(g&v|g&p|v&p)-1894007588:w+=(g^v^p)-899497514,y=p,p=v,v=g<<30|g>>>2,g=_,_=w}m[0]=m[0]+_|0,m[1]=m[1]+g|0,m[2]=m[2]+v|0,m[3]=m[3]+p|0,m[4]=m[4]+y|0},_doFinalize:function(){var u=this._data,f=u.words,m=this._nDataBytes*8,_=u.sigBytes*8;return f[_>>>5]|=128<<24-_%32,f[(_+64>>>9<<4)+14]=Math.floor(m/4294967296),f[(_+64>>>9<<4)+15]=m,u.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var u=i.clone.call(this);return u._hash=this._hash.clone(),u}});s.SHA1=i._createHelper(o),s.HmacSHA1=i._createHmacHelper(o)}(),r.SHA1})}(Il)),Il.exports}var Fl={exports:{}},Bl;function oa(){return Bl||(Bl=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){return function(s){var n=r,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.algo,o=[],u=[];(function(){function _(y){for(var h=s.sqrt(y),b=2;b<=h;b++)if(!(y%b))return!1;return!0}function g(y){return(y-(y|0))*4294967296|0}for(var v=2,p=0;p<64;)_(v)&&(p<8&&(o[p]=g(s.pow(v,1/2))),u[p]=g(s.pow(v,1/3)),p++),v++})();var f=[],m=d.SHA256=l.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(_,g){for(var v=this._hash.words,p=v[0],y=v[1],h=v[2],b=v[3],w=v[4],S=v[5],O=v[6],I=v[7],j=0;j<64;j++){if(j<16)f[j]=_[g+j]|0;else{var V=f[j-15],D=(V<<25|V>>>7)^(V<<14|V>>>18)^V>>>3,T=f[j-2],B=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;f[j]=D+f[j-7]+B+f[j-16]}var R=w&S^~w&O,H=p&y^p&h^y&h,K=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),q=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),se=I+q+R+u[j]+f[j],Z=K+H;I=O,O=S,S=w,w=b+se|0,b=h,h=y,y=p,p=se+Z|0}v[0]=v[0]+p|0,v[1]=v[1]+y|0,v[2]=v[2]+h|0,v[3]=v[3]+b|0,v[4]=v[4]+w|0,v[5]=v[5]+S|0,v[6]=v[6]+O|0,v[7]=v[7]+I|0},_doFinalize:function(){var _=this._data,g=_.words,v=this._nDataBytes*8,p=_.sigBytes*8;return g[p>>>5]|=128<<24-p%32,g[(p+64>>>9<<4)+14]=s.floor(v/4294967296),g[(p+64>>>9<<4)+15]=v,_.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var _=l.clone.call(this);return _._hash=this._hash.clone(),_}});n.SHA256=l._createHelper(m),n.HmacSHA256=l._createHmacHelper(m)}(Math),r.SHA256})}(Fl)),Fl.exports}var jl={exports:{}},Rl;function B0(){return Rl||(Rl=1,function(t,e){(function(r,s,n){t.exports=s(pe(),oa())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.WordArray,i=s.algo,l=i.SHA256,d=i.SHA224=l.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=l._doFinalize.call(this);return o.sigBytes-=4,o}});s.SHA224=l._createHelper(d),s.HmacSHA224=l._createHmacHelper(d)}(),r.SHA224})}(jl)),jl.exports}var Ll={exports:{}},Vl;function zl(){return Vl||(Vl=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ns())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.Hasher,i=s.x64,l=i.Word,d=i.WordArray,o=s.algo;function u(){return l.create.apply(l,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],m=[];(function(){for(var g=0;g<80;g++)m[g]=u()})();var _=o.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(g,v){for(var p=this._hash.words,y=p[0],h=p[1],b=p[2],w=p[3],S=p[4],O=p[5],I=p[6],j=p[7],V=y.high,D=y.low,T=h.high,B=h.low,R=b.high,H=b.low,K=w.high,q=w.low,se=S.high,Z=S.low,ne=O.high,P=O.low,k=I.high,x=I.low,E=j.high,c=j.low,$=V,C=D,L=T,F=B,z=R,G=H,J=K,U=q,fe=se,_e=Z,Te=ne,st=P,ct=k,ze=x,dt=E,Qe=c,De=0;De<80;De++){var Oe,et,ht=m[De];if(De<16)et=ht.high=g[v+De*2]|0,Oe=ht.low=g[v+De*2+1]|0;else{var pt=m[De-15],Pe=pt.high,He=pt.low,ir=(Pe>>>1|He<<31)^(Pe>>>8|He<<24)^Pe>>>7,Gt=(He>>>1|Pe<<31)^(He>>>8|Pe<<24)^(He>>>7|Pe<<25),lr=m[De-2],At=lr.high,Wt=lr.low,xr=(At>>>19|Wt<<13)^(At<<3|Wt>>>29)^At>>>6,ur=(Wt>>>19|At<<13)^(Wt<<3|At>>>29)^(Wt>>>6|At<<26),ft=m[De-7],Kt=ft.high,Jr=ft.low,Ar=m[De-16],va=Ar.high,cr=Ar.low;Oe=Gt+Jr,et=ir+Kt+(Oe>>>0<Gt>>>0?1:0),Oe=Oe+ur,et=et+xr+(Oe>>>0<ur>>>0?1:0),Oe=Oe+cr,et=et+va+(Oe>>>0<cr>>>0?1:0),ht.high=et,ht.low=Oe}var Cr=fe&Te^~fe&ct,Fs=_e&st^~_e&ze,dr=$&L^$&z^L&z,_a=C&F^C&G^F&G,ba=($>>>28|C<<4)^($<<30|C>>>2)^($<<25|C>>>7),Se=(C>>>28|$<<4)^(C<<30|$>>>2)^(C<<25|$>>>7),qt=(fe>>>14|_e<<18)^(fe>>>18|_e<<14)^(fe<<23|_e>>>9),ka=(_e>>>14|fe<<18)^(_e>>>18|fe<<14)^(_e<<23|fe>>>9),Qr=f[De],es=Qr.high,ts=Qr.low,Ue=Qe+ka,Ct=dt+qt+(Ue>>>0<Qe>>>0?1:0),Ue=Ue+Fs,Ct=Ct+Cr+(Ue>>>0<Fs>>>0?1:0),Ue=Ue+ts,Ct=Ct+es+(Ue>>>0<ts>>>0?1:0),Ue=Ue+Oe,Ct=Ct+et+(Ue>>>0<Oe>>>0?1:0),nt=Se+_a,Ft=ba+dr+(nt>>>0<Se>>>0?1:0);dt=ct,Qe=ze,ct=Te,ze=st,Te=fe,st=_e,_e=U+Ue|0,fe=J+Ct+(_e>>>0<U>>>0?1:0)|0,J=z,U=G,z=L,G=F,L=$,F=C,C=Ue+nt|0,$=Ct+Ft+(C>>>0<Ue>>>0?1:0)|0}D=y.low=D+C,y.high=V+$+(D>>>0<C>>>0?1:0),B=h.low=B+F,h.high=T+L+(B>>>0<F>>>0?1:0),H=b.low=H+G,b.high=R+z+(H>>>0<G>>>0?1:0),q=w.low=q+U,w.high=K+J+(q>>>0<U>>>0?1:0),Z=S.low=Z+_e,S.high=se+fe+(Z>>>0<_e>>>0?1:0),P=O.low=P+st,O.high=ne+Te+(P>>>0<st>>>0?1:0),x=I.low=x+ze,I.high=k+ct+(x>>>0<ze>>>0?1:0),c=j.low=c+Qe,j.high=E+dt+(c>>>0<Qe>>>0?1:0)},_doFinalize:function(){var g=this._data,v=g.words,p=this._nDataBytes*8,y=g.sigBytes*8;v[y>>>5]|=128<<24-y%32,v[(y+128>>>10<<5)+30]=Math.floor(p/4294967296),v[(y+128>>>10<<5)+31]=p,g.sigBytes=v.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});s.SHA512=a._createHelper(_),s.HmacSHA512=a._createHmacHelper(_)}(),r.SHA512})}(Ll)),Ll.exports}var Hl={exports:{}},Ul;function j0(){return Ul||(Ul=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ns(),zl())})(ce,function(r){return function(){var s=r,n=s.x64,a=n.Word,i=n.WordArray,l=s.algo,d=l.SHA512,o=l.SHA384=d.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 u=d._doFinalize.call(this);return u.sigBytes-=16,u}});s.SHA384=d._createHelper(o),s.HmacSHA384=d._createHmacHelper(o)}(),r.SHA384})}(Hl)),Hl.exports}var Gl={exports:{}},Wl;function R0(){return Wl||(Wl=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ns())})(ce,function(r){return function(s){var n=r,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.x64,o=d.Word,u=n.algo,f=[],m=[],_=[];(function(){for(var p=1,y=0,h=0;h<24;h++){f[p+5*y]=(h+1)*(h+2)/2%64;var b=y%5,w=(2*p+3*y)%5;p=b,y=w}for(var p=0;p<5;p++)for(var y=0;y<5;y++)m[p+5*y]=y+(2*p+3*y)%5*5;for(var S=1,O=0;O<24;O++){for(var I=0,j=0,V=0;V<7;V++){if(S&1){var D=(1<<V)-1;D<32?j^=1<<D:I^=1<<D-32}S&128?S=S<<1^113:S<<=1}_[O]=o.create(I,j)}})();var g=[];(function(){for(var p=0;p<25;p++)g[p]=o.create()})();var v=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],y=0;y<25;y++)p[y]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,y){for(var h=this._state,b=this.blockSize/2,w=0;w<b;w++){var S=p[y+2*w],O=p[y+2*w+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var I=h[w];I.high^=O,I.low^=S}for(var j=0;j<24;j++){for(var V=0;V<5;V++){for(var D=0,T=0,B=0;B<5;B++){var I=h[V+5*B];D^=I.high,T^=I.low}var R=g[V];R.high=D,R.low=T}for(var V=0;V<5;V++)for(var H=g[(V+4)%5],K=g[(V+1)%5],q=K.high,se=K.low,D=H.high^(q<<1|se>>>31),T=H.low^(se<<1|q>>>31),B=0;B<5;B++){var I=h[V+5*B];I.high^=D,I.low^=T}for(var Z=1;Z<25;Z++){var D,T,I=h[Z],ne=I.high,P=I.low,k=f[Z];k<32?(D=ne<<k|P>>>32-k,T=P<<k|ne>>>32-k):(D=P<<k-32|ne>>>64-k,T=ne<<k-32|P>>>64-k);var x=g[m[Z]];x.high=D,x.low=T}var E=g[0],c=h[0];E.high=c.high,E.low=c.low;for(var V=0;V<5;V++)for(var B=0;B<5;B++){var Z=V+5*B,I=h[Z],$=g[Z],C=g[(V+1)%5+5*B],L=g[(V+2)%5+5*B];I.high=$.high^~C.high&L.high,I.low=$.low^~C.low&L.low}var I=h[0],F=_[j];I.high^=F.high,I.low^=F.low}},_doFinalize:function(){var p=this._data,y=p.words;this._nDataBytes*8;var h=p.sigBytes*8,b=this.blockSize*32;y[h>>>5]|=1<<24-h%32,y[(s.ceil((h+1)/b)*b>>>5)-1]|=128,p.sigBytes=y.length*4,this._process();for(var w=this._state,S=this.cfg.outputLength/8,O=S/8,I=[],j=0;j<O;j++){var V=w[j],D=V.high,T=V.low;D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,I.push(T),I.push(D)}return new i.init(I,S)},clone:function(){for(var p=l.clone.call(this),y=p._state=this._state.slice(0),h=0;h<25;h++)y[h]=y[h].clone();return p}});n.SHA3=l._createHelper(v),n.HmacSHA3=l._createHmacHelper(v)}(Math),r.SHA3})}(Gl)),Gl.exports}var Kl={exports:{}},ql;function L0(){return ql||(ql=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){/** @preserve
28
28
  (c) 2012 by Cédric Mesnil. All rights reserved.
29
29
 
30
30
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -33,9 +33,9 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var H=J(L,G,c,w,C+"."+G,
33
33
  - 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.
34
34
 
35
35
  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.
36
- */return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=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]),u=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]),p=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]),f=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]),g=i.create([1352829926,1548603684,1836072691,2053994217,0]),v=d.RIPEMD160=l.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,N){for(var R=0;R<16;R++){var V=N+R,I=O[V];O[V]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var T=this._hash.words,B=_.words,j=g.words,U=o.words,W=u.words,K=p.words,se=f.words,Z,ne,P,k,x,E,c,w,C,L;E=Z=T[0],c=ne=T[1],w=P=T[2],C=k=T[3],L=x=T[4];for(var F,R=0;R<80;R+=1)F=Z+O[N+U[R]]|0,R<16?F+=m(ne,P,k)+B[0]:R<32?F+=y(ne,P,k)+B[1]:R<48?F+=h(ne,P,k)+B[2]:R<64?F+=b(ne,P,k)+B[3]:F+=$(ne,P,k)+B[4],F=F|0,F=S(F,K[R]),F=F+x|0,Z=x,x=k,k=S(P,10),P=ne,ne=F,F=E+O[N+W[R]]|0,R<16?F+=$(c,w,C)+j[0]:R<32?F+=b(c,w,C)+j[1]:R<48?F+=h(c,w,C)+j[2]:R<64?F+=y(c,w,C)+j[3]:F+=m(c,w,C)+j[4],F=F|0,F=S(F,se[R]),F=F+L|0,E=L,L=C,C=S(w,10),w=c,c=F;F=T[1]+P+C|0,T[1]=T[2]+k+L|0,T[2]=T[3]+x+E|0,T[3]=T[4]+Z+c|0,T[4]=T[0]+ne+w|0,T[0]=F},_doFinalize:function(){var O=this._data,N=O.words,R=this._nDataBytes*8,V=O.sigBytes*8;N[V>>>5]|=128<<24-V%32,N[(V+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,O.sigBytes=(N.length+1)*4,this._process();for(var I=this._hash,T=I.words,B=0;B<5;B++){var j=T[B];T[B]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return I},clone:function(){var O=l.clone.call(this);return O._hash=this._hash.clone(),O}});function m(O,N,R){return O^N^R}function y(O,N,R){return O&N|~O&R}function h(O,N,R){return(O|~N)^R}function b(O,N,R){return O&R|N&~R}function $(O,N,R){return O^(N|~R)}function S(O,N){return O<<N|O>>>32-N}n.RIPEMD160=l._createHelper(v),n.HmacRIPEMD160=l._createHmacHelper(v)}(),t.RIPEMD160})}(yl)),yl.exports}var _l={exports:{}},bl;function na(){return bl||(bl=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){(function(){var s=t,n=s.lib,a=n.Base,i=s.enc,l=i.Utf8,d=s.algo;d.HMAC=a.extend({init:function(o,u){o=this._hasher=new o.init,typeof u=="string"&&(u=l.parse(u));var p=o.blockSize,f=p*4;u.sigBytes>f&&(u=o.finalize(u)),u.clamp();for(var _=this._oKey=u.clone(),g=this._iKey=u.clone(),v=_.words,m=g.words,y=0;y<p;y++)v[y]^=1549556828,m[y]^=909522486;_.sigBytes=g.sigBytes=f,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 u=this._hasher,p=u.finalize(o);u.reset();var f=u.finalize(this._oKey.clone().concat(p));return f}})})()})}(_l)),_l.exports}var kl={exports:{}},$l;function T0(){return $l||($l=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sa(),na())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,l=s.algo,d=l.SHA256,o=l.HMAC,u=l.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:d,iterations:25e4}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,f){for(var _=this.cfg,g=o.create(_.hasher,p),v=i.create(),m=i.create([1]),y=v.words,h=m.words,b=_.keySize,$=_.iterations;y.length<b;){var S=g.update(f).finalize(m);g.reset();for(var O=S.words,N=O.length,R=S,V=1;V<$;V++){R=g.finalize(R),g.reset();for(var I=R.words,T=0;T<N;T++)O[T]^=I[T]}v.concat(S),h[0]++}return v.sigBytes=b*4,v}});s.PBKDF2=function(p,f,_){return u.create(_).compute(p,f)}}(),t.PBKDF2})}(kl)),kl.exports}var wl={exports:{}},El;function Ut(){return El||(El=1,function(r,e){(function(t,s,n){r.exports=s(pe(),al(),na())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,l=s.algo,d=l.MD5,o=l.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:d,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,p){for(var f,_=this.cfg,g=_.hasher.create(),v=i.create(),m=v.words,y=_.keySize,h=_.iterations;m.length<y;){f&&g.update(f),f=g.update(u).finalize(p),g.reset();for(var b=1;b<h;b++)f=g.finalize(f),g.reset();v.concat(f)}return v.sigBytes=y*4,v}});s.EvpKDF=function(u,p,f){return o.create(f).compute(u,p)}}(),t.EvpKDF})}(wl)),wl.exports}var Sl={exports:{}},xl;function Ne(){return xl||(xl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ut())})(ce,function(t){t.lib.Cipher||function(s){var n=t,a=n.lib,i=a.Base,l=a.WordArray,d=a.BufferedBlockAlgorithm,o=n.enc;o.Utf8;var u=o.Base64,p=n.algo,f=p.EvpKDF,_=a.Cipher=d.extend({cfg:i.extend(),createEncryptor:function(I,T){return this.create(this._ENC_XFORM_MODE,I,T)},createDecryptor:function(I,T){return this.create(this._DEC_XFORM_MODE,I,T)},init:function(I,T,B){this.cfg=this.cfg.extend(B),this._xformMode=I,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(T){return typeof T=="string"?V:O}return function(T){return{encrypt:function(B,j,U){return I(j).encrypt(T,B,j,U)},decrypt:function(B,j,U){return I(j).decrypt(T,B,j,U)}}}}()});a.StreamCipher=_.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var g=n.mode={},v=a.BlockCipherMode=i.extend({createEncryptor:function(I,T){return this.Encryptor.create(I,T)},createDecryptor:function(I,T){return this.Decryptor.create(I,T)},init:function(I,T){this._cipher=I,this._iv=T}}),m=g.CBC=function(){var I=v.extend();I.Encryptor=I.extend({processBlock:function(B,j){var U=this._cipher,W=U.blockSize;T.call(this,B,j,W),U.encryptBlock(B,j),this._prevBlock=B.slice(j,j+W)}}),I.Decryptor=I.extend({processBlock:function(B,j){var U=this._cipher,W=U.blockSize,K=B.slice(j,j+W);U.decryptBlock(B,j),T.call(this,B,j,W),this._prevBlock=K}});function T(B,j,U){var W,K=this._iv;K?(W=K,this._iv=s):W=this._prevBlock;for(var se=0;se<U;se++)B[j+se]^=W[se]}return I}(),y=n.pad={},h=y.Pkcs7={pad:function(I,T){for(var B=T*4,j=B-I.sigBytes%B,U=j<<24|j<<16|j<<8|j,W=[],K=0;K<j;K+=4)W.push(U);var se=l.create(W,j);I.concat(se)},unpad:function(I){var T=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=T}};a.BlockCipher=_.extend({cfg:_.cfg.extend({mode:m,padding:h}),reset:function(){var I;_.reset.call(this);var T=this.cfg,B=T.iv,j=T.mode;this._xformMode==this._ENC_XFORM_MODE?I=j.createEncryptor:(I=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,B&&B.words):(this._mode=I.call(j,this,B&&B.words),this._mode.__creator=I)},_doProcessBlock:function(I,T){this._mode.processBlock(I,T)},_doFinalize:function(){var I,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),T.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)}}),$=n.format={},S=$.OpenSSL={stringify:function(I){var T,B=I.ciphertext,j=I.salt;return j?T=l.create([1398893684,1701076831]).concat(j).concat(B):T=B,T.toString(u)},parse:function(I){var T,B=u.parse(I),j=B.words;return j[0]==1398893684&&j[1]==1701076831&&(T=l.create(j.slice(2,4)),j.splice(0,4),B.sigBytes-=16),b.create({ciphertext:B,salt:T})}},O=a.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function(I,T,B,j){j=this.cfg.extend(j);var U=I.createEncryptor(B,j),W=U.finalize(T),K=U.cfg;return b.create({ciphertext:W,key:B,iv:K.iv,algorithm:I,mode:K.mode,padding:K.padding,blockSize:I.blockSize,formatter:j.format})},decrypt:function(I,T,B,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var U=I.createDecryptor(B,j).finalize(T.ciphertext);return U},_parse:function(I,T){return typeof I=="string"?T.parse(I,this):I}}),N=n.kdf={},R=N.OpenSSL={execute:function(I,T,B,j,U){if(j||(j=l.random(64/8)),U)var W=f.create({keySize:T+B,hasher:U}).compute(I,j);else var W=f.create({keySize:T+B}).compute(I,j);var K=l.create(W.words.slice(T),B*4);return W.sigBytes=T*4,b.create({key:W,iv:K,salt:j})}},V=a.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:R}),encrypt:function(I,T,B,j){j=this.cfg.extend(j);var U=j.kdf.execute(B,I.keySize,I.ivSize,j.salt,j.hasher);j.iv=U.iv;var W=O.encrypt.call(this,I,T,U.key,j);return W.mixIn(U),W},decrypt:function(I,T,B,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var U=j.kdf.execute(B,I.keySize,I.ivSize,T.salt,j.hasher);j.iv=U.iv;var W=O.decrypt.call(this,I,T,U.key,j);return W}})}()})}(Sl)),Sl.exports}var Al={exports:{}},Cl;function O0(){return Cl||(Cl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.mode.CFB=function(){var s=t.lib.BlockCipherMode.extend();s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize;n.call(this,a,i,d,l),this._prevBlock=a.slice(i,i+d)}}),s.Decryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=a.slice(i,i+d);n.call(this,a,i,d,l),this._prevBlock=o}});function n(a,i,l,d){var o,u=this._iv;u?(o=u.slice(0),this._iv=void 0):o=this._prevBlock,d.encryptBlock(o,0);for(var p=0;p<l;p++)a[i+p]^=o[p]}return s}(),t.mode.CFB})}(Al)),Al.exports}var Tl={exports:{}},Ol;function P0(){return Ol||(Ol=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.mode.CTR=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._counter;o&&(u=this._counter=o.slice(0),this._iv=void 0);var p=u.slice(0);l.encryptBlock(p,0),u[d-1]=u[d-1]+1|0;for(var f=0;f<d;f++)a[i+f]^=p[f]}});return s.Decryptor=n,s}(),t.mode.CTR})}(Tl)),Tl.exports}var Pl={exports:{}},Nl;function N0(){return Nl||(Nl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){/** @preserve
36
+ */return function(s){var n=r,a=n.lib,i=a.WordArray,l=a.Hasher,d=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]),u=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]),m=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]),g=i.create([1352829926,1548603684,1836072691,2053994217,0]),v=d.RIPEMD160=l.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,I){for(var j=0;j<16;j++){var V=I+j,D=O[V];O[V]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var T=this._hash.words,B=_.words,R=g.words,H=o.words,K=u.words,q=f.words,se=m.words,Z,ne,P,k,x,E,c,$,C,L;E=Z=T[0],c=ne=T[1],$=P=T[2],C=k=T[3],L=x=T[4];for(var F,j=0;j<80;j+=1)F=Z+O[I+H[j]]|0,j<16?F+=p(ne,P,k)+B[0]:j<32?F+=y(ne,P,k)+B[1]:j<48?F+=h(ne,P,k)+B[2]:j<64?F+=b(ne,P,k)+B[3]:F+=w(ne,P,k)+B[4],F=F|0,F=S(F,q[j]),F=F+x|0,Z=x,x=k,k=S(P,10),P=ne,ne=F,F=E+O[I+K[j]]|0,j<16?F+=w(c,$,C)+R[0]:j<32?F+=b(c,$,C)+R[1]:j<48?F+=h(c,$,C)+R[2]:j<64?F+=y(c,$,C)+R[3]:F+=p(c,$,C)+R[4],F=F|0,F=S(F,se[j]),F=F+L|0,E=L,L=C,C=S($,10),$=c,c=F;F=T[1]+P+C|0,T[1]=T[2]+k+L|0,T[2]=T[3]+x+E|0,T[3]=T[4]+Z+c|0,T[4]=T[0]+ne+$|0,T[0]=F},_doFinalize:function(){var O=this._data,I=O.words,j=this._nDataBytes*8,V=O.sigBytes*8;I[V>>>5]|=128<<24-V%32,I[(V+64>>>9<<4)+14]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360,O.sigBytes=(I.length+1)*4,this._process();for(var D=this._hash,T=D.words,B=0;B<5;B++){var R=T[B];T[B]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return D},clone:function(){var O=l.clone.call(this);return O._hash=this._hash.clone(),O}});function p(O,I,j){return O^I^j}function y(O,I,j){return O&I|~O&j}function h(O,I,j){return(O|~I)^j}function b(O,I,j){return O&j|I&~j}function w(O,I,j){return O^(I|~j)}function S(O,I){return O<<I|O>>>32-I}n.RIPEMD160=l._createHelper(v),n.HmacRIPEMD160=l._createHmacHelper(v)}(),r.RIPEMD160})}(Kl)),Kl.exports}var Xl={exports:{}},Yl;function ia(){return Yl||(Yl=1,function(t,e){(function(r,s){t.exports=s(pe())})(ce,function(r){(function(){var s=r,n=s.lib,a=n.Base,i=s.enc,l=i.Utf8,d=s.algo;d.HMAC=a.extend({init:function(o,u){o=this._hasher=new o.init,typeof u=="string"&&(u=l.parse(u));var f=o.blockSize,m=f*4;u.sigBytes>m&&(u=o.finalize(u)),u.clamp();for(var _=this._oKey=u.clone(),g=this._iKey=u.clone(),v=_.words,p=g.words,y=0;y<f;y++)v[y]^=1549556828,p[y]^=909522486;_.sigBytes=g.sigBytes=m,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 u=this._hasher,f=u.finalize(o);u.reset();var m=u.finalize(this._oKey.clone().concat(f));return m}})})()})}(Xl)),Xl.exports}var Zl={exports:{}},Jl;function V0(){return Jl||(Jl=1,function(t,e){(function(r,s,n){t.exports=s(pe(),oa(),ia())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.Base,i=n.WordArray,l=s.algo,d=l.SHA256,o=l.HMAC,u=l.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:d,iterations:25e4}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,m){for(var _=this.cfg,g=o.create(_.hasher,f),v=i.create(),p=i.create([1]),y=v.words,h=p.words,b=_.keySize,w=_.iterations;y.length<b;){var S=g.update(m).finalize(p);g.reset();for(var O=S.words,I=O.length,j=S,V=1;V<w;V++){j=g.finalize(j),g.reset();for(var D=j.words,T=0;T<I;T++)O[T]^=D[T]}v.concat(S),h[0]++}return v.sigBytes=b*4,v}});s.PBKDF2=function(f,m,_){return u.create(_).compute(f,m)}}(),r.PBKDF2})}(Zl)),Zl.exports}var Ql={exports:{}},eu;function Ut(){return eu||(eu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ml(),ia())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.Base,i=n.WordArray,l=s.algo,d=l.MD5,o=l.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:d,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,f){for(var m,_=this.cfg,g=_.hasher.create(),v=i.create(),p=v.words,y=_.keySize,h=_.iterations;p.length<y;){m&&g.update(m),m=g.update(u).finalize(f),g.reset();for(var b=1;b<h;b++)m=g.finalize(m),g.reset();v.concat(m)}return v.sigBytes=y*4,v}});s.EvpKDF=function(u,f,m){return o.create(m).compute(u,f)}}(),r.EvpKDF})}(Ql)),Ql.exports}var tu={exports:{}},ru;function Ie(){return ru||(ru=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ut())})(ce,function(r){r.lib.Cipher||function(s){var n=r,a=n.lib,i=a.Base,l=a.WordArray,d=a.BufferedBlockAlgorithm,o=n.enc;o.Utf8;var u=o.Base64,f=n.algo,m=f.EvpKDF,_=a.Cipher=d.extend({cfg:i.extend(),createEncryptor:function(D,T){return this.create(this._ENC_XFORM_MODE,D,T)},createDecryptor:function(D,T){return this.create(this._DEC_XFORM_MODE,D,T)},init:function(D,T,B){this.cfg=this.cfg.extend(B),this._xformMode=D,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(D){return this._append(D),this._process()},finalize:function(D){D&&this._append(D);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function D(T){return typeof T=="string"?V:O}return function(T){return{encrypt:function(B,R,H){return D(R).encrypt(T,B,R,H)},decrypt:function(B,R,H){return D(R).decrypt(T,B,R,H)}}}}()});a.StreamCipher=_.extend({_doFinalize:function(){var D=this._process(!0);return D},blockSize:1});var g=n.mode={},v=a.BlockCipherMode=i.extend({createEncryptor:function(D,T){return this.Encryptor.create(D,T)},createDecryptor:function(D,T){return this.Decryptor.create(D,T)},init:function(D,T){this._cipher=D,this._iv=T}}),p=g.CBC=function(){var D=v.extend();D.Encryptor=D.extend({processBlock:function(B,R){var H=this._cipher,K=H.blockSize;T.call(this,B,R,K),H.encryptBlock(B,R),this._prevBlock=B.slice(R,R+K)}}),D.Decryptor=D.extend({processBlock:function(B,R){var H=this._cipher,K=H.blockSize,q=B.slice(R,R+K);H.decryptBlock(B,R),T.call(this,B,R,K),this._prevBlock=q}});function T(B,R,H){var K,q=this._iv;q?(K=q,this._iv=s):K=this._prevBlock;for(var se=0;se<H;se++)B[R+se]^=K[se]}return D}(),y=n.pad={},h=y.Pkcs7={pad:function(D,T){for(var B=T*4,R=B-D.sigBytes%B,H=R<<24|R<<16|R<<8|R,K=[],q=0;q<R;q+=4)K.push(H);var se=l.create(K,R);D.concat(se)},unpad:function(D){var T=D.words[D.sigBytes-1>>>2]&255;D.sigBytes-=T}};a.BlockCipher=_.extend({cfg:_.cfg.extend({mode:p,padding:h}),reset:function(){var D;_.reset.call(this);var T=this.cfg,B=T.iv,R=T.mode;this._xformMode==this._ENC_XFORM_MODE?D=R.createEncryptor:(D=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==D?this._mode.init(this,B&&B.words):(this._mode=D.call(R,this,B&&B.words),this._mode.__creator=D)},_doProcessBlock:function(D,T){this._mode.processBlock(D,T)},_doFinalize:function(){var D,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),D=this._process(!0)):(D=this._process(!0),T.unpad(D)),D},blockSize:128/32});var b=a.CipherParams=i.extend({init:function(D){this.mixIn(D)},toString:function(D){return(D||this.formatter).stringify(this)}}),w=n.format={},S=w.OpenSSL={stringify:function(D){var T,B=D.ciphertext,R=D.salt;return R?T=l.create([1398893684,1701076831]).concat(R).concat(B):T=B,T.toString(u)},parse:function(D){var T,B=u.parse(D),R=B.words;return R[0]==1398893684&&R[1]==1701076831&&(T=l.create(R.slice(2,4)),R.splice(0,4),B.sigBytes-=16),b.create({ciphertext:B,salt:T})}},O=a.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function(D,T,B,R){R=this.cfg.extend(R);var H=D.createEncryptor(B,R),K=H.finalize(T),q=H.cfg;return b.create({ciphertext:K,key:B,iv:q.iv,algorithm:D,mode:q.mode,padding:q.padding,blockSize:D.blockSize,formatter:R.format})},decrypt:function(D,T,B,R){R=this.cfg.extend(R),T=this._parse(T,R.format);var H=D.createDecryptor(B,R).finalize(T.ciphertext);return H},_parse:function(D,T){return typeof D=="string"?T.parse(D,this):D}}),I=n.kdf={},j=I.OpenSSL={execute:function(D,T,B,R,H){if(R||(R=l.random(64/8)),H)var K=m.create({keySize:T+B,hasher:H}).compute(D,R);else var K=m.create({keySize:T+B}).compute(D,R);var q=l.create(K.words.slice(T),B*4);return K.sigBytes=T*4,b.create({key:K,iv:q,salt:R})}},V=a.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:j}),encrypt:function(D,T,B,R){R=this.cfg.extend(R);var H=R.kdf.execute(B,D.keySize,D.ivSize,R.salt,R.hasher);R.iv=H.iv;var K=O.encrypt.call(this,D,T,H.key,R);return K.mixIn(H),K},decrypt:function(D,T,B,R){R=this.cfg.extend(R),T=this._parse(T,R.format);var H=R.kdf.execute(B,D.keySize,D.ivSize,T.salt,R.hasher);R.iv=H.iv;var K=O.decrypt.call(this,D,T,H.key,R);return K}})}()})}(tu)),tu.exports}var su={exports:{}},nu;function z0(){return nu||(nu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.mode.CFB=function(){var s=r.lib.BlockCipherMode.extend();s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize;n.call(this,a,i,d,l),this._prevBlock=a.slice(i,i+d)}}),s.Decryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=a.slice(i,i+d);n.call(this,a,i,d,l),this._prevBlock=o}});function n(a,i,l,d){var o,u=this._iv;u?(o=u.slice(0),this._iv=void 0):o=this._prevBlock,d.encryptBlock(o,0);for(var f=0;f<l;f++)a[i+f]^=o[f]}return s}(),r.mode.CFB})}(su)),su.exports}var au={exports:{}},ou;function H0(){return ou||(ou=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.mode.CTR=function(){var s=r.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._counter;o&&(u=this._counter=o.slice(0),this._iv=void 0);var f=u.slice(0);l.encryptBlock(f,0),u[d-1]=u[d-1]+1|0;for(var m=0;m<d;m++)a[i+m]^=f[m]}});return s.Decryptor=n,s}(),r.mode.CTR})}(au)),au.exports}var iu={exports:{}},lu;function U0(){return lu||(lu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){/** @preserve
37
37
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
38
38
  * derived from CryptoJS.mode.CTR
39
39
  * Jan Hruby jhruby.web@gmail.com
40
- */return t.mode.CTRGladman=function(){var s=t.lib.BlockCipherMode.extend();function n(l){if((l>>24&255)===255){var d=l>>16&255,o=l>>8&255,u=l&255;d===255?(d=0,o===255?(o=0,u===255?u=0:++u):++o):++d,l=0,l+=d<<16,l+=o<<8,l+=u}else l+=1<<24;return l}function a(l){return(l[0]=n(l[0]))===0&&(l[1]=n(l[1])),l}var i=s.Encryptor=s.extend({processBlock:function(l,d){var o=this._cipher,u=o.blockSize,p=this._iv,f=this._counter;p&&(f=this._counter=p.slice(0),this._iv=void 0),a(f);var _=f.slice(0);o.encryptBlock(_,0);for(var g=0;g<u;g++)l[d+g]^=_[g]}});return s.Decryptor=i,s}(),t.mode.CTRGladman})}(Pl)),Pl.exports}var Il={exports:{}},Dl;function I0(){return Dl||(Dl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.mode.OFB=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._keystream;o&&(u=this._keystream=o.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var p=0;p<d;p++)a[i+p]^=u[p]}});return s.Decryptor=n,s}(),t.mode.OFB})}(Il)),Il.exports}var Ml={exports:{}},Fl;function D0(){return Fl||(Fl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(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})}(Ml)),Ml.exports}var Bl={exports:{}},Rl;function M0(){return Rl||(Rl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.pad.AnsiX923={pad:function(s,n){var a=s.sigBytes,i=n*4,l=i-a%i,d=a+l-1;s.clamp(),s.words[d>>>2]|=l<<24-d%4*8,s.sigBytes+=l},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Ansix923})}(Bl)),Bl.exports}var jl={exports:{}},Ll;function F0(){return Ll||(Ll=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(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})}(jl)),jl.exports}var Vl={exports:{}},zl;function B0(){return zl||(zl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(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})}(Vl)),Vl.exports}var Hl={exports:{}},Ul;function R0(){return Ul||(Ul=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(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})}(Hl)),Hl.exports}var Gl={exports:{}},ql;function j0(){return ql||(ql=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Gl)),Gl.exports}var Wl={exports:{}},Kl;function L0(){return Kl||(Kl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.CipherParams,l=n.enc,d=l.Hex,o=n.format;o.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var p=d.parse(u);return i.create({ciphertext:p})}}}(),t.format.Hex})}(Wl)),Wl.exports}var Xl={exports:{}},Yl;function V0(){return Yl||(Yl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo,l=[],d=[],o=[],u=[],p=[],f=[],_=[],g=[],v=[],m=[];(function(){for(var b=[],$=0;$<256;$++)$<128?b[$]=$<<1:b[$]=$<<1^283;for(var S=0,O=0,$=0;$<256;$++){var N=O^O<<1^O<<2^O<<3^O<<4;N=N>>>8^N&255^99,l[S]=N,d[N]=S;var R=b[S],V=b[R],I=b[V],T=b[N]*257^N*16843008;o[S]=T<<24|T>>>8,u[S]=T<<16|T>>>16,p[S]=T<<8|T>>>24,f[S]=T;var T=I*16843009^V*65537^R*257^S*16843008;_[N]=T<<24|T>>>8,g[N]=T<<16|T>>>16,v[N]=T<<8|T>>>24,m[N]=T,S?(S=R^b[b[b[I^R]]],O^=b[b[O]]):S=O=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],h=i.AES=a.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var $=this._keyPriorReset=this._key,S=$.words,O=$.sigBytes/4,N=this._nRounds=O+6,R=(N+1)*4,V=this._keySchedule=[],I=0;I<R;I++)I<O?V[I]=S[I]:(b=V[I-1],I%O?O>6&&I%O==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=y[I/O|0]<<24),V[I]=V[I-O]^b);for(var T=this._invKeySchedule=[],B=0;B<R;B++){var I=R-B;if(B%4)var b=V[I];else var b=V[I-4];B<4||I<=4?T[B]=b:T[B]=_[l[b>>>24]]^g[l[b>>>16&255]]^v[l[b>>>8&255]]^m[l[b&255]]}}},encryptBlock:function(b,$){this._doCryptBlock(b,$,this._keySchedule,o,u,p,f,l)},decryptBlock:function(b,$){var S=b[$+1];b[$+1]=b[$+3],b[$+3]=S,this._doCryptBlock(b,$,this._invKeySchedule,_,g,v,m,d);var S=b[$+1];b[$+1]=b[$+3],b[$+3]=S},_doCryptBlock:function(b,$,S,O,N,R,V,I){for(var T=this._nRounds,B=b[$]^S[0],j=b[$+1]^S[1],U=b[$+2]^S[2],W=b[$+3]^S[3],K=4,se=1;se<T;se++){var Z=O[B>>>24]^N[j>>>16&255]^R[U>>>8&255]^V[W&255]^S[K++],ne=O[j>>>24]^N[U>>>16&255]^R[W>>>8&255]^V[B&255]^S[K++],P=O[U>>>24]^N[W>>>16&255]^R[B>>>8&255]^V[j&255]^S[K++],k=O[W>>>24]^N[B>>>16&255]^R[j>>>8&255]^V[U&255]^S[K++];B=Z,j=ne,U=P,W=k}var Z=(I[B>>>24]<<24|I[j>>>16&255]<<16|I[U>>>8&255]<<8|I[W&255])^S[K++],ne=(I[j>>>24]<<24|I[U>>>16&255]<<16|I[W>>>8&255]<<8|I[B&255])^S[K++],P=(I[U>>>24]<<24|I[W>>>16&255]<<16|I[B>>>8&255]<<8|I[j&255])^S[K++],k=(I[W>>>24]<<24|I[B>>>16&255]<<16|I[j>>>8&255]<<8|I[U&255])^S[K++];b[$]=Z,b[$+1]=ne,b[$+2]=P,b[$+3]=k},keySize:256/32});s.AES=a._createHelper(h)}(),t.AES})}(Xl)),Xl.exports}var Zl={exports:{}},Jl;function z0(){return Jl||(Jl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.BlockCipher,l=s.algo,d=[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],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=l.DES=i.extend({_doReset:function(){for(var y=this._key,h=y.words,b=[],$=0;$<56;$++){var S=d[$]-1;b[$]=h[S>>>5]>>>31-S%32&1}for(var O=this._subKeys=[],N=0;N<16;N++){for(var R=O[N]=[],V=u[N],$=0;$<24;$++)R[$/6|0]|=b[(o[$]-1+V)%28]<<31-$%6,R[4+($/6|0)]|=b[28+(o[$+24]-1+V)%28]<<31-$%6;R[0]=R[0]<<1|R[0]>>>31;for(var $=1;$<7;$++)R[$]=R[$]>>>($-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var I=this._invSubKeys=[],$=0;$<16;$++)I[$]=O[15-$]},encryptBlock:function(y,h){this._doCryptBlock(y,h,this._subKeys)},decryptBlock:function(y,h){this._doCryptBlock(y,h,this._invSubKeys)},_doCryptBlock:function(y,h,b){this._lBlock=y[h],this._rBlock=y[h+1],g.call(this,4,252645135),g.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),g.call(this,1,1431655765);for(var $=0;$<16;$++){for(var S=b[$],O=this._lBlock,N=this._rBlock,R=0,V=0;V<8;V++)R|=p[V][((N^S[V])&f[V])>>>0];this._lBlock=N,this._rBlock=O^R}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,g.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),y[h]=this._lBlock,y[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(y,h){var b=(this._lBlock>>>y^this._rBlock)&h;this._rBlock^=b,this._lBlock^=b<<y}function v(y,h){var b=(this._rBlock>>>y^this._lBlock)&h;this._lBlock^=b,this._rBlock^=b<<y}s.DES=i._createHelper(_);var m=l.TripleDES=i.extend({_doReset:function(){var y=this._key,h=y.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=h.slice(0,2),$=h.length<4?h.slice(0,2):h.slice(2,4),S=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=_.createEncryptor(a.create(b)),this._des2=_.createEncryptor(a.create($)),this._des3=_.createEncryptor(a.create(S))},encryptBlock:function(y,h){this._des1.encryptBlock(y,h),this._des2.decryptBlock(y,h),this._des3.encryptBlock(y,h)},decryptBlock:function(y,h){this._des3.decryptBlock(y,h),this._des2.encryptBlock(y,h),this._des1.decryptBlock(y,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});s.TripleDES=i._createHelper(m)}(),t.TripleDES})}(Zl)),Zl.exports}var Ql={exports:{}},eu;function H0(){return eu||(eu=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,l=i.RC4=a.extend({_doReset:function(){for(var u=this._key,p=u.words,f=u.sigBytes,_=this._S=[],g=0;g<256;g++)_[g]=g;for(var g=0,v=0;g<256;g++){var m=g%f,y=p[m>>>2]>>>24-m%4*8&255;v=(v+_[g]+y)%256;var h=_[g];_[g]=_[v],_[v]=h}this._i=this._j=0},_doProcessBlock:function(u,p){u[p]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,p=this._i,f=this._j,_=0,g=0;g<4;g++){p=(p+1)%256,f=(f+u[p])%256;var v=u[p];u[p]=u[f],u[f]=v,_|=u[(u[p]+u[f])%256]<<24-g*8}return this._i=p,this._j=f,_}s.RC4=a._createHelper(l);var o=i.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});s.RC4Drop=a._createHelper(o)}(),t.RC4})}(Ql)),Ql.exports}var tu={exports:{}},ru;function U0(){return ru||(ru=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,l=[],d=[],o=[],u=i.Rabbit=a.extend({_doReset:function(){for(var f=this._key.words,_=this.cfg.iv,g=0;g<4;g++)f[g]=(f[g]<<8|f[g]>>>24)&16711935|(f[g]<<24|f[g]>>>8)&4278255360;var v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],m=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var g=0;g<4;g++)p.call(this);for(var g=0;g<8;g++)m[g]^=v[g+4&7];if(_){var y=_.words,h=y[0],b=y[1],$=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,O=$>>>16|S&4294901760,N=S<<16|$&65535;m[0]^=$,m[1]^=O,m[2]^=S,m[3]^=N,m[4]^=$,m[5]^=O,m[6]^=S,m[7]^=N;for(var g=0;g<4;g++)p.call(this)}},_doProcessBlock:function(f,_){var g=this._X;p.call(this),l[0]=g[0]^g[5]>>>16^g[3]<<16,l[1]=g[2]^g[7]>>>16^g[5]<<16,l[2]=g[4]^g[1]>>>16^g[7]<<16,l[3]=g[6]^g[3]>>>16^g[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,f[_+v]^=l[v]},blockSize:128/32,ivSize:64/32});function p(){for(var f=this._X,_=this._C,g=0;g<8;g++)d[g]=_[g];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<d[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<d[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<d[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<d[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<d[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<d[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<d[6]>>>0?1:0)|0,this._b=_[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var v=f[g]+_[g],m=v&65535,y=v>>>16,h=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[g]=h^b}f[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,f[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,f[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,f[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,f[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,f[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,f[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,f[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.Rabbit=a._createHelper(u)}(),t.Rabbit})}(tu)),tu.exports}var su={exports:{}},nu;function G0(){return nu||(nu=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,l=[],d=[],o=[],u=i.RabbitLegacy=a.extend({_doReset:function(){var f=this._key.words,_=this.cfg.iv,g=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)p.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(_){var y=_.words,h=y[0],b=y[1],$=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,O=$>>>16|S&4294901760,N=S<<16|$&65535;v[0]^=$,v[1]^=O,v[2]^=S,v[3]^=N,v[4]^=$,v[5]^=O,v[6]^=S,v[7]^=N;for(var m=0;m<4;m++)p.call(this)}},_doProcessBlock:function(f,_){var g=this._X;p.call(this),l[0]=g[0]^g[5]>>>16^g[3]<<16,l[1]=g[2]^g[7]>>>16^g[5]<<16,l[2]=g[4]^g[1]>>>16^g[7]<<16,l[3]=g[6]^g[3]>>>16^g[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,f[_+v]^=l[v]},blockSize:128/32,ivSize:64/32});function p(){for(var f=this._X,_=this._C,g=0;g<8;g++)d[g]=_[g];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<d[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<d[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<d[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<d[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<d[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<d[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<d[6]>>>0?1:0)|0,this._b=_[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var v=f[g]+_[g],m=v&65535,y=v>>>16,h=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[g]=h^b}f[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,f[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,f[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,f[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,f[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,f[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,f[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,f[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.RabbitLegacy=a._createHelper(u)}(),t.RabbitLegacy})}(su)),su.exports}var au={exports:{}},ou;function q0(){return ou||(ou=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo;const l=16,d=[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 u={pbox:[],sbox:[]};function p(m,y){let h=y>>24&255,b=y>>16&255,$=y>>8&255,S=y&255,O=m.sbox[0][h]+m.sbox[1][b];return O=O^m.sbox[2][$],O=O+m.sbox[3][S],O}function f(m,y,h){let b=y,$=h,S;for(let O=0;O<l;++O)b=b^m.pbox[O],$=p(m,b)^$,S=b,b=$,$=S;return S=b,b=$,$=S,$=$^m.pbox[l],b=b^m.pbox[l+1],{left:b,right:$}}function _(m,y,h){let b=y,$=h,S;for(let O=l+1;O>1;--O)b=b^m.pbox[O],$=p(m,b)^$,S=b,b=$,$=S;return S=b,b=$,$=S,$=$^m.pbox[1],b=b^m.pbox[0],{left:b,right:$}}function g(m,y,h){for(let N=0;N<4;N++){m.sbox[N]=[];for(let R=0;R<256;R++)m.sbox[N][R]=o[N][R]}let b=0;for(let N=0;N<l+2;N++)m.pbox[N]=d[N]^y[b],b++,b>=h&&(b=0);let $=0,S=0,O=0;for(let N=0;N<l+2;N+=2)O=f(m,$,S),$=O.left,S=O.right,m.pbox[N]=$,m.pbox[N+1]=S;for(let N=0;N<4;N++)for(let R=0;R<256;R+=2)O=f(m,$,S),$=O.left,S=O.right,m.sbox[N][R]=$,m.sbox[N][R+1]=S;return!0}var v=i.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var m=this._keyPriorReset=this._key,y=m.words,h=m.sigBytes/4;g(u,y,h)}},encryptBlock:function(m,y){var h=f(u,m[y],m[y+1]);m[y]=h.left,m[y+1]=h.right},decryptBlock:function(m,y){var h=_(u,m[y],m[y+1]);m[y]=h.left,m[y+1]=h.right},blockSize:64/32,keySize:128/32,ivSize:64/32});s.Blowfish=a._createHelper(v)}(),t.Blowfish})}(au)),au.exports}(function(r,e){(function(t,s,n){r.exports=s(pe(),Ts(),$0(),w0(),sr(),E0(),nr(),al(),sa(),S0(),hl(),x0(),A0(),C0(),na(),T0(),Ut(),Ne(),O0(),P0(),N0(),I0(),D0(),M0(),F0(),B0(),R0(),j0(),L0(),V0(),z0(),H0(),U0(),G0(),q0())})(ce,function(t){return t})})(_0);/*! @license DOMPurify 3.2.5 | (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.5/LICENSE */const{entries:iu,setPrototypeOf:lu,isFrozen:W0,getPrototypeOf:K0,getOwnPropertyDescriptor:X0}=Object;let{freeze:Ge,seal:ct,create:uu}=Object,{apply:aa,construct:oa}=typeof Reflect<"u"&&Reflect;Ge||(Ge=function(e){return e}),ct||(ct=function(e){return e}),aa||(aa=function(e,t,s){return e.apply(t,s)}),oa||(oa=function(e,t){return new e(...t)});const Os=We(Array.prototype.forEach),Y0=We(Array.prototype.lastIndexOf),cu=We(Array.prototype.pop),Vr=We(Array.prototype.push),Z0=We(Array.prototype.splice),Ps=We(String.prototype.toLowerCase),ia=We(String.prototype.toString),du=We(String.prototype.match),zr=We(String.prototype.replace),J0=We(String.prototype.indexOf),Q0=We(String.prototype.trim),bt=We(Object.prototype.hasOwnProperty),qe=We(RegExp.prototype.test),Hr=e1(TypeError);function We(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return aa(r,e,s)}}function e1(r){return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return oa(r,t)}}function he(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ps;lu&&lu(r,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const a=t(n);a!==n&&(W0(e)||(e[s]=a),n=a)}r[n]=!0}return r}function t1(r){for(let e=0;e<r.length;e++)bt(r,e)||(r[e]=null);return r}function ar(r){const e=uu(null);for(const[t,s]of iu(r))bt(r,t)&&(Array.isArray(s)?e[t]=t1(s):s&&typeof s=="object"&&s.constructor===Object?e[t]=ar(s):e[t]=s);return e}function Ur(r,e){for(;r!==null;){const s=X0(r,e);if(s){if(s.get)return We(s.get);if(typeof s.value=="function")return We(s.value)}r=K0(r)}function t(){return null}return t}const hu=Ge(["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"]),la=Ge(["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"]),ua=Ge(["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"]),r1=Ge(["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"]),ca=Ge(["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"]),s1=Ge(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pu=Ge(["#text"]),fu=Ge(["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"]),da=Ge(["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"]),mu=Ge(["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"]),Ns=Ge(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),n1=ct(/\{\{[\w\W]*|[\w\W]*\}\}/gm),a1=ct(/<%[\w\W]*|[\w\W]*%>/gm),o1=ct(/\$\{[\w\W]*/gm),i1=ct(/^data-[\-\w.\u00B7-\uFFFF]+$/),l1=ct(/^aria-[\-\w]+$/),gu=ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),u1=ct(/^(?:\w+script|data):/i),c1=ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yu=ct(/^html$/i),d1=ct(/^[a-z][.\w]*(-[.\w]+)+$/i);var vu=Object.freeze({__proto__:null,ARIA_ATTR:l1,ATTR_WHITESPACE:c1,CUSTOM_ELEMENT:d1,DATA_ATTR:i1,DOCTYPE_NAME:yu,ERB_EXPR:a1,IS_ALLOWED_URI:gu,IS_SCRIPT_OR_DATA:u1,MUSTACHE_EXPR:n1,TMPLIT_EXPR:o1});const Gr={element:1,text:3,progressingInstruction:7,comment:8,document:9},h1=function(){return typeof window>"u"?null:window},p1=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}},_u=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function bu(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h1();const e=re=>bu(re);if(e.version="3.2.5",e.removed=[],!r||!r.document||r.document.nodeType!==Gr.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const s=t,n=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:l,Element:d,NodeFilter:o,NamedNodeMap:u=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:_}=r,g=d.prototype,v=Ur(g,"cloneNode"),m=Ur(g,"remove"),y=Ur(g,"nextSibling"),h=Ur(g,"childNodes"),b=Ur(g,"parentNode");if(typeof i=="function"){const re=t.createElement("template");re.content&&re.content.ownerDocument&&(t=re.content.ownerDocument)}let $,S="";const{implementation:O,createNodeIterator:N,createDocumentFragment:R,getElementsByTagName:V}=t,{importNode:I}=s;let T=_u();e.isSupported=typeof iu=="function"&&typeof b=="function"&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:j,TMPLIT_EXPR:U,DATA_ATTR:W,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:ne}=vu;let{IS_ALLOWED_URI:P}=vu,k=null;const x=he({},[...hu,...la,...ua,...ca,...pu]);let E=null;const c=he({},[...fu,...da,...mu,...Ns]);let w=Object.seal(uu(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}})),C=null,L=null,F=!0,z=!0,G=!1,J=!0,H=!1,fe=!0,ge=!1,Ke=!1,nt=!1,Xe=!1,tt=!1,dt=!1,ht=!0,Ie=!1;const De="user-content-";let Ve=!0,rt=!1,at={},Ce=null;const pt=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 Gt=he({},["audio","video","img","source","image","track"]);let qt=null;const Mt=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",ft="http://www.w3.org/1999/xhtml";let Ft=ft,Wr=!1,Kr=null;const Is=he({},[Ct,$r,ft],ia);let wr=he({},["mi","mo","mn","ms","mtext"]),ir=he({},["annotation-xml"]);const pa=he({},["title","style","font","a","script"]);let Wt=null;const fa=["application/xhtml+xml","text/html"],ma="text/html";let Se=null,Bt=null;const ga=t.createElement("form"),Ds=function(D){return D instanceof RegExp||D instanceof Function},Er=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Bt&&Bt===D)){if((!D||typeof D!="object")&&(D={}),D=ar(D),Wt=fa.indexOf(D.PARSER_MEDIA_TYPE)===-1?ma:D.PARSER_MEDIA_TYPE,Se=Wt==="application/xhtml+xml"?ia:Ps,k=bt(D,"ALLOWED_TAGS")?he({},D.ALLOWED_TAGS,Se):x,E=bt(D,"ALLOWED_ATTR")?he({},D.ALLOWED_ATTR,Se):c,Kr=bt(D,"ALLOWED_NAMESPACES")?he({},D.ALLOWED_NAMESPACES,ia):Is,qt=bt(D,"ADD_URI_SAFE_ATTR")?he(ar(Mt),D.ADD_URI_SAFE_ATTR,Se):Mt,or=bt(D,"ADD_DATA_URI_TAGS")?he(ar(Gt),D.ADD_DATA_URI_TAGS,Se):Gt,Ce=bt(D,"FORBID_CONTENTS")?he({},D.FORBID_CONTENTS,Se):pt,C=bt(D,"FORBID_TAGS")?he({},D.FORBID_TAGS,Se):{},L=bt(D,"FORBID_ATTR")?he({},D.FORBID_ATTR,Se):{},at=bt(D,"USE_PROFILES")?D.USE_PROFILES:!1,F=D.ALLOW_ARIA_ATTR!==!1,z=D.ALLOW_DATA_ATTR!==!1,G=D.ALLOW_UNKNOWN_PROTOCOLS||!1,J=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=D.SAFE_FOR_TEMPLATES||!1,fe=D.SAFE_FOR_XML!==!1,ge=D.WHOLE_DOCUMENT||!1,Xe=D.RETURN_DOM||!1,tt=D.RETURN_DOM_FRAGMENT||!1,dt=D.RETURN_TRUSTED_TYPE||!1,nt=D.FORCE_BODY||!1,ht=D.SANITIZE_DOM!==!1,Ie=D.SANITIZE_NAMED_PROPS||!1,Ve=D.KEEP_CONTENT!==!1,rt=D.IN_PLACE||!1,P=D.ALLOWED_URI_REGEXP||gu,Ft=D.NAMESPACE||ft,wr=D.MATHML_TEXT_INTEGRATION_POINTS||wr,ir=D.HTML_INTEGRATION_POINTS||ir,w=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Ds(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(w.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Ds(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(w.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(w.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(z=!1),tt&&(Xe=!0),at&&(k=he({},pu),E=[],at.html===!0&&(he(k,hu),he(E,fu)),at.svg===!0&&(he(k,la),he(E,da),he(E,Ns)),at.svgFilters===!0&&(he(k,ua),he(E,da),he(E,Ns)),at.mathMl===!0&&(he(k,ca),he(E,mu),he(E,Ns))),D.ADD_TAGS&&(k===x&&(k=ar(k)),he(k,D.ADD_TAGS,Se)),D.ADD_ATTR&&(E===c&&(E=ar(E)),he(E,D.ADD_ATTR,Se)),D.ADD_URI_SAFE_ATTR&&he(qt,D.ADD_URI_SAFE_ATTR,Se),D.FORBID_CONTENTS&&(Ce===pt&&(Ce=ar(Ce)),he(Ce,D.FORBID_CONTENTS,Se)),Ve&&(k["#text"]=!0),ge&&he(k,["html","head","body"]),k.table&&(he(k,["tbody"]),delete C.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=D.TRUSTED_TYPES_POLICY,S=$.createHTML("")}else $===void 0&&($=p1(_,n)),$!==null&&typeof S=="string"&&(S=$.createHTML(""));Ge&&Ge(D),Bt=D}},Ms=he({},[...la,...ua,...r1]),Xr=he({},[...ca,...s1]),Ye=function(D){let q=b(D);(!q||!q.tagName)&&(q={namespaceURI:Ft,tagName:"template"});const Q=Ps(D.tagName),$e=Ps(q.tagName);return Kr[D.namespaceURI]?D.namespaceURI===$r?q.namespaceURI===ft?Q==="svg":q.namespaceURI===Ct?Q==="svg"&&($e==="annotation-xml"||wr[$e]):!!Ms[Q]:D.namespaceURI===Ct?q.namespaceURI===ft?Q==="math":q.namespaceURI===$r?Q==="math"&&ir[$e]:!!Xr[Q]:D.namespaceURI===ft?q.namespaceURI===$r&&!ir[$e]||q.namespaceURI===Ct&&!wr[$e]?!1:!Xr[Q]&&(pa[Q]||!Ms[Q]):!!(Wt==="application/xhtml+xml"&&Kr[D.namespaceURI]):!1},Te=function(D){Vr(e.removed,{element:D});try{b(D).removeChild(D)}catch{m(D)}},lr=function(D,q){try{Vr(e.removed,{attribute:q.getAttributeNode(D),from:q})}catch{Vr(e.removed,{attribute:null,from:q})}if(q.removeAttribute(D),D==="is")if(Xe||tt)try{Te(q)}catch{}else try{q.setAttribute(D,"")}catch{}},Fs=function(D){let q=null,Q=null;if(nt)D="<remove></remove>"+D;else{const Be=du(D,/^[\r\n\t ]+/);Q=Be&&Be[0]}Wt==="application/xhtml+xml"&&Ft===ft&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const $e=$?$.createHTML(D):D;if(Ft===ft)try{q=new f().parseFromString($e,Wt)}catch{}if(!q||!q.documentElement){q=O.createDocument(Ft,"template",null);try{q.documentElement.innerHTML=Wr?S:$e}catch{}}const ze=q.body||q.documentElement;return D&&Q&&ze.insertBefore(t.createTextNode(Q),ze.childNodes[0]||null),Ft===ft?V.call(q,ge?"html":"body")[0]:ge?q.documentElement:ze},$u=function(D){return N.call(D.ownerDocument||D,D,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},ya=function(D){return D instanceof p&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof u)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},wu=function(D){return typeof l=="function"&&D instanceof l};function Rt(re,D,q){Os(re,Q=>{Q.call(e,D,q,Bt)})}const Eu=function(D){let q=null;if(Rt(T.beforeSanitizeElements,D,null),ya(D))return Te(D),!0;const Q=Se(D.nodeName);if(Rt(T.uponSanitizeElement,D,{tagName:Q,allowedTags:k}),D.hasChildNodes()&&!wu(D.firstElementChild)&&qe(/<[/\w!]/g,D.innerHTML)&&qe(/<[/\w!]/g,D.textContent)||D.nodeType===Gr.progressingInstruction||fe&&D.nodeType===Gr.comment&&qe(/<[/\w]/g,D.data))return Te(D),!0;if(!k[Q]||C[Q]){if(!C[Q]&&xu(Q)&&(w.tagNameCheck instanceof RegExp&&qe(w.tagNameCheck,Q)||w.tagNameCheck instanceof Function&&w.tagNameCheck(Q)))return!1;if(Ve&&!Ce[Q]){const $e=b(D)||D.parentNode,ze=h(D)||D.childNodes;if(ze&&$e){const Be=ze.length;for(let st=Be-1;st>=0;--st){const Tt=v(ze[st],!0);Tt.__removalCount=(D.__removalCount||0)+1,$e.insertBefore(Tt,y(D))}}}return Te(D),!0}return D instanceof d&&!Ye(D)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&qe(/<\/no(script|embed|frames)/i,D.innerHTML)?(Te(D),!0):(H&&D.nodeType===Gr.text&&(q=D.textContent,Os([B,j,U],$e=>{q=zr(q,$e," ")}),D.textContent!==q&&(Vr(e.removed,{element:D.cloneNode()}),D.textContent=q)),Rt(T.afterSanitizeElements,D,null),!1)},Su=function(D,q,Q){if(ht&&(q==="id"||q==="name")&&(Q in t||Q in ga))return!1;if(!(z&&!L[q]&&qe(W,q))){if(!(F&&qe(K,q))){if(!E[q]||L[q]){if(!(xu(D)&&(w.tagNameCheck instanceof RegExp&&qe(w.tagNameCheck,D)||w.tagNameCheck instanceof Function&&w.tagNameCheck(D))&&(w.attributeNameCheck instanceof RegExp&&qe(w.attributeNameCheck,q)||w.attributeNameCheck instanceof Function&&w.attributeNameCheck(q))||q==="is"&&w.allowCustomizedBuiltInElements&&(w.tagNameCheck instanceof RegExp&&qe(w.tagNameCheck,Q)||w.tagNameCheck instanceof Function&&w.tagNameCheck(Q))))return!1}else if(!qt[q]){if(!qe(P,zr(Q,Z,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&D!=="script"&&J0(Q,"data:")===0&&or[D])){if(!(G&&!qe(se,zr(Q,Z,"")))){if(Q)return!1}}}}}}return!0},xu=function(D){return D!=="annotation-xml"&&du(D,ne)},Au=function(D){Rt(T.beforeSanitizeAttributes,D,null);const{attributes:q}=D;if(!q||ya(D))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0};let $e=q.length;for(;$e--;){const ze=q[$e],{name:Be,namespaceURI:st,value:Tt}=ze,Yr=Se(Be);let Ze=Be==="value"?Tt:Q0(Tt);if(Q.attrName=Yr,Q.attrValue=Ze,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Rt(T.uponSanitizeAttribute,D,Q),Ze=Q.attrValue,Ie&&(Yr==="id"||Yr==="name")&&(lr(Be,D),Ze=De+Ze),fe&&qe(/((--!?|])>)|<\/(style|title)/i,Ze)){lr(Be,D);continue}if(Q.forceKeepAttr||(lr(Be,D),!Q.keepAttr))continue;if(!J&&qe(/\/>/i,Ze)){lr(Be,D);continue}H&&Os([B,j,U],Tu=>{Ze=zr(Ze,Tu," ")});const Cu=Se(D.nodeName);if(Su(Cu,Yr,Ze)){if($&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!st)switch(_.getAttributeType(Cu,Yr)){case"TrustedHTML":{Ze=$.createHTML(Ze);break}case"TrustedScriptURL":{Ze=$.createScriptURL(Ze);break}}try{st?D.setAttributeNS(st,Be,Ze):D.setAttribute(Be,Ze),ya(D)?Te(D):cu(e.removed)}catch{}}}Rt(T.afterSanitizeAttributes,D,null)},$1=function re(D){let q=null;const Q=$u(D);for(Rt(T.beforeSanitizeShadowDOM,D,null);q=Q.nextNode();)Rt(T.uponSanitizeShadowNode,q,null),Eu(q),Au(q),q.content instanceof a&&re(q.content);Rt(T.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(re){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,Q=null,$e=null,ze=null;if(Wr=!re,Wr&&(re="<!-->"),typeof re!="string"&&!wu(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw Hr("dirty is not a string, aborting")}else throw Hr("toString is not a function");if(!e.isSupported)return re;if(Ke||Er(D),e.removed=[],typeof re=="string"&&(rt=!1),rt){if(re.nodeName){const Tt=Se(re.nodeName);if(!k[Tt]||C[Tt])throw Hr("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof l)q=Fs("<!---->"),Q=q.ownerDocument.importNode(re,!0),Q.nodeType===Gr.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?q=Q:q.appendChild(Q);else{if(!Xe&&!H&&!ge&&re.indexOf("<")===-1)return $&&dt?$.createHTML(re):re;if(q=Fs(re),!q)return Xe?null:dt?S:""}q&&nt&&Te(q.firstChild);const Be=$u(rt?re:q);for(;$e=Be.nextNode();)Eu($e),Au($e),$e.content instanceof a&&$1($e.content);if(rt)return re;if(Xe){if(tt)for(ze=R.call(q.ownerDocument);q.firstChild;)ze.appendChild(q.firstChild);else ze=q;return(E.shadowroot||E.shadowrootmode)&&(ze=I.call(s,ze,!0)),ze}let st=ge?q.outerHTML:q.innerHTML;return ge&&k["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&qe(yu,q.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
41
- `+st),H&&Os([B,j,U],Tt=>{st=zr(st,Tt," ")}),$&&dt?$.createHTML(st):st},e.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Er(re),Ke=!0},e.clearConfig=function(){Bt=null,Ke=!1},e.isValidAttribute=function(re,D,q){Bt||Er({});const Q=Se(re),$e=Se(D);return Su(Q,$e,q)},e.addHook=function(re,D){typeof D=="function"&&Vr(T[re],D)},e.removeHook=function(re,D){if(D!==void 0){const q=Y0(T[re],D);return q===-1?void 0:Z0(T[re],q,1)[0]}return cu(T[re])},e.removeHooks=function(re){T[re]=[]},e.removeAllHooks=function(){T=_u()},e}var ha=bu();const f1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span"],m1=["style","src","alt","href","target"],g1=(r,e={})=>{var t,s,n;if(!r)return"";const a=e.allowedTags||f1,i=e.allowedAttributes||m1,l={ALLOWED_TAGS:a,ALLOWED_ATTR:i,ADD_ATTR:["target","rel"]};(t=ha)==null||t.addHook("afterSanitizeAttributes",o=>{o.tagName==="A"&&!o.hasAttribute("target")&&(o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer"))});const d=(s=ha)==null?void 0:s.sanitize(r,l);return(n=ha)==null||n.removeHook("afterSanitizeAttributes"),d},qr={props:{userReaction:"",likesCount:0,dislikesCount:0,showTitle:!1,onClick:()=>{}}},ku=({userReaction:r=qr.props.userReaction,likesCount:e=qr.props.likesCount,dislikesCount:t=qr.props.dislikesCount,showTitle:s=qr.props.showTitle,onClick:n=qr.props.onClick})=>{const a=i=>{n==null||n(i)};return M.jsxs(je,{gap:"quark",children:[M.jsx(ve,{children:M.jsx(xe,{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?M.jsx(ve,{children:M.jsx(Et,{children:"Útil"})}):M.jsx(M.Fragment,{}),M.jsx(ve,{children:M.jsxs(Et,{children:["(",e,")"]})}),M.jsx(Oe,{horizontal:"quark"}),M.jsx(ve,{children:M.jsx(xe,{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?M.jsx(ve,{children:M.jsx(Et,{children:"Não útil"})}):M.jsx(M.Fragment,{}),M.jsx(ve,{children:M.jsxs(Et,{children:["(",t,")"]})})]})},y1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span","blockquote"],v1=({question:r,onReactionClick:e})=>{const t=g1(r.attributes.faqQuestion.answer,{allowedTags:y1});return M.jsx("div",{className:"faq-question-detail",children:M.jsx(ur,{className:"faq-detail",elevation:2,children:M.jsxs(je,{flexDirection:"column",children:[M.jsx(kt,{type:"heading-5",className:"color__neutral--90",children:r.attributes.title}),M.jsx(Oe,{vertical:"quark"}),M.jsxs(Et,{className:"color__neutral--70",children:["Última atualização:"," ",zi(new Date(`${r.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"faq-detail__answer",dangerouslySetInnerHTML:{__html:t}}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx(qs,{}),M.jsx(Oe,{vertical:"xxs"}),M.jsxs(je,{alignItems:"flex-end",flexDirection:"row",gap:"xs",justifyContent:"space-between",children:[M.jsx(ve,{children:M.jsx(kt,{type:"heading-6",children:"Esse texto foi útil?"})}),M.jsx(ve,{children:M.jsx(ku,{dislikesCount:r.attributes.dislikesCount,likesCount:r.attributes.likesCount,onClick:s=>e==null?void 0:e(r.id,s),showTitle:!0,userReaction:r.attributes.userReaction})})]})]})})})},_1=({title:r="",questions:e=[],showReactions:t=!1,collapse:s=!1,onClick:n=()=>{},onReactionClick:a=()=>{}})=>M.jsxs("div",{className:"faq-questions",children:[r&&M.jsx(kt,{type:"heading-5",className:"color__neutral--90",children:r}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"faq-questions-list",children:M.jsx(je,{flexDirection:"column",gap:"nano",children:e==null?void 0:e.map(i=>M.jsx(ve,{children:M.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:M.jsx(ur,{className:"faq-card",elevation:2,children:M.jsxs(je,{alignItems:"center",justifyContent:"space-between",children:[M.jsxs(ve,{flex:"1 1 0",children:[M.jsx(kt,{type:"heading-6",className:"faq-card__title color__neutral--90",children:i.attributes.title}),s?M.jsx(M.Fragment,{}):M.jsxs(M.Fragment,{children:[M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"ds-grid",children:M.jsxs("div",{className:"ds-grid__row align-items--center",children:[M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:M.jsxs(Et,{children:["Última atualização:"," ",zi(new Date(`${i.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]})}),M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:t?M.jsx(ku,{dislikesCount:i.attributes.dislikesCount,likesCount:i.attributes.likesCount,onClick:l=>a(i.id,l),userReaction:i.attributes.userReaction}):null}),M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:M.jsxs(je,{alignItems:"center",gap:"quark",justifyContent:"flex-end",children:[M.jsx(ve,{children:M.jsx("div",{className:"faq-card__link",onClick:()=>n(i),role:"button",tabIndex:0,children:"Ler mais"})}),M.jsx(ve,{children:M.jsx(xe,{color:"primary",image:"chevron_right",size:"lg"})})]})})]})})]})]}),s?M.jsx(ve,{children:M.jsx(xe,{image:"chevron_right",size:"lg"})}):M.jsx(M.Fragment,{})]})})})},i.id))})})]}),b1=({content:r})=>{var d;const e=X.useRef(null),t=g0({autoRotate:!0,autoRotateInterval:8e3,animationDuration:0,items:r,infinite:!0,startIndex:0,swipeEnabled:!0,swipeThreshold:20,swipePercentage:.3,containerRef:e}),s=t.getContainerTransform(),n=[{type:"event",icon:"campaign"},{type:"news",icon:"star_border"},{type:"campaign",icon:"electric_bolt"},{type:"product",icon:"group_add"}],a=o=>{const u=n.find(p=>p.type===o);return(u==null?void 0:u.icon)??"star_border"},i=o=>{const u=new Date(o+"T00:00:00"),p=u.getDate(),f=u.toLocaleDateString("pt-BR",{month:"long"});return`${p} de ${f.charAt(0).toUpperCase()+f.slice(1)}`},l=o=>{var u,p;return M.jsxs(M.Fragment,{children:[M.jsx("div",{children:M.jsxs(je,{alignItems:"center",flexWrap:"nowrap",gap:"xxxs",justifyContent:"flex-start",children:[M.jsx(ve,{children:M.jsx("div",{className:"news__icon","data-testid":"news-icon-container",children:M.jsx(xe,{color:"neutral-00",fill:!0,image:a(o.type),size:"xxl",testId:"news-icon"})})}),M.jsx(ve,{children:M.jsx(kt,{className:"news__title",type:"heading-6",children:o.title})})]})}),M.jsxs("div",{children:[M.jsx(Oe,{vertical:"nano"}),M.jsx(Et,{className:"news__content",children:o.content}),M.jsx(Oe,{vertical:"nano"}),(u=o.link)!=null&&u.url&&((p=o.link)!=null&&p.label)?M.jsx("a",{className:"news__link",href:o.link.url,rel:"noopener noreferrer",target:"_blank",children:o.link.label}):M.jsx(M.Fragment,{}),M.jsx(Oe,{vertical:"nano"}),M.jsx("div",{className:"news__line-breaker"})]})]})};return M.jsx("div",{className:"news",children:M.jsxs(ur,{backgroundColor:"neutral-20",className:"news__card",elevation:1,children:[M.jsx("div",{className:"news__ellipse"}),M.jsxs(je,{alignItems:"flex-start",flexDirection:"column",gap:"nano",justifyContent:"space-between",children:[M.jsx(ve,{className:"carousel",children:M.jsx("div",{ref:e,...t.handlers,className:"carousel__wrapper",children:M.jsx("div",{className:"carousel__container","data-testid":"carousel",style:{transform:s},children:t.items.map((o,u)=>M.jsx("div",{className:"carousel__item","data-testid":`carousel-item-${u}`,children:l(o)},`carousel__item-${u}-${t.currentLogicalIndex}`))})})}),M.jsxs(ve,{className:"news__footer",children:[M.jsx(Oe,{vertical:"nano"}),M.jsxs(je,{alignItems:"center",justifyContent:"space-between",children:[M.jsx(ve,{children:M.jsxs(je,{alignItems:"center",gap:"nano",justifyContent:"flex-start",children:[M.jsxs(ve,{children:[M.jsx(xe,{color:"neutral-60",fill:!0,image:"calendar_today"}),M.jsx(Oe,{horizontal:"nano"})]}),M.jsx(ve,{children:M.jsx(Et,{className:"news__date",type:"small",children:((d=r[t.currentLogicalIndex])==null?void 0:d.date)&&i(r[t.currentLogicalIndex].date)})})]})}),M.jsx(ve,{children:M.jsx(je,{className:"news__dots",gap:"nano",children:r.map((o,u)=>M.jsx(ve,{children:M.jsx("button",{"aria-label":`Go to item ${u+1}`,className:`news__dot ${u===t.currentLogicalIndex?"news__dot--active":""}`,"data-testid":`dot-${u}`,onClick:()=>t.goToIndex(u)})},`dot-${t.currentLogicalIndex}-${u}`))})})]})]})]})]})})},k1=({items:r=[],onClick:e,activeItem:t})=>M.jsx("div",{className:"sidebar-menu","data-testid":"sidebar-menu",children:M.jsx("div",{className:"sidebar-menu__list",children:r.map(s=>M.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:M.jsxs(je,{alignItems:"center",gap:"xs",children:[M.jsx(ve,{flex:"1",children:M.jsx(kt,{type:"heading-6",testId:`sidebar-item-title-${s.id}`,children:s.attributes.name})}),M.jsx(ve,{children:M.jsx(xe,{color:t===s.id?"primary":"neutral-40","data-testid":`sidebar-icon-${s.id}`,image:"chevron_right",size:"md"})})]})},s.id))})});ot.CategoryCards=Sc,ot.News=b1,ot.QuestionDetail=v1,ot.Questions=_1,ot.SidebarMenuList=k1,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
40
+ */return r.mode.CTRGladman=function(){var s=r.lib.BlockCipherMode.extend();function n(l){if((l>>24&255)===255){var d=l>>16&255,o=l>>8&255,u=l&255;d===255?(d=0,o===255?(o=0,u===255?u=0:++u):++o):++d,l=0,l+=d<<16,l+=o<<8,l+=u}else l+=1<<24;return l}function a(l){return(l[0]=n(l[0]))===0&&(l[1]=n(l[1])),l}var i=s.Encryptor=s.extend({processBlock:function(l,d){var o=this._cipher,u=o.blockSize,f=this._iv,m=this._counter;f&&(m=this._counter=f.slice(0),this._iv=void 0),a(m);var _=m.slice(0);o.encryptBlock(_,0);for(var g=0;g<u;g++)l[d+g]^=_[g]}});return s.Decryptor=i,s}(),r.mode.CTRGladman})}(iu)),iu.exports}var uu={exports:{}},cu;function G0(){return cu||(cu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.mode.OFB=function(){var s=r.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._keystream;o&&(u=this._keystream=o.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var f=0;f<d;f++)a[i+f]^=u[f]}});return s.Decryptor=n,s}(),r.mode.OFB})}(uu)),uu.exports}var du={exports:{}},hu;function W0(){return hu||(hu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.mode.ECB=function(){var s=r.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}(),r.mode.ECB})}(du)),du.exports}var pu={exports:{}},fu;function K0(){return fu||(fu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.pad.AnsiX923={pad:function(s,n){var a=s.sigBytes,i=n*4,l=i-a%i,d=a+l-1;s.clamp(),s.words[d>>>2]|=l<<24-d%4*8,s.sigBytes+=l},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},r.pad.Ansix923})}(pu)),pu.exports}var mu={exports:{}},gu;function q0(){return gu||(gu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.pad.Iso10126={pad:function(s,n){var a=n*4,i=a-s.sigBytes%a;s.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},r.pad.Iso10126})}(mu)),mu.exports}var yu={exports:{}},vu;function X0(){return vu||(vu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.pad.Iso97971={pad:function(s,n){s.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(s,n)},unpad:function(s){r.pad.ZeroPadding.unpad(s),s.sigBytes--}},r.pad.Iso97971})}(yu)),yu.exports}var _u={exports:{}},bu;function Y0(){return bu||(bu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.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}}},r.pad.ZeroPadding})}(_u)),_u.exports}var ku={exports:{}},wu;function Z0(){return wu||(wu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(ku)),ku.exports}var $u={exports:{}},Eu;function J0(){return Eu||(Eu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),Ie())})(ce,function(r){return function(s){var n=r,a=n.lib,i=a.CipherParams,l=n.enc,d=l.Hex,o=n.format;o.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var f=d.parse(u);return i.create({ciphertext:f})}}}(),r.format.Hex})}($u)),$u.exports}var Su={exports:{}},xu;function Q0(){return xu||(xu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),ar(),or(),Ut(),Ie())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.BlockCipher,i=s.algo,l=[],d=[],o=[],u=[],f=[],m=[],_=[],g=[],v=[],p=[];(function(){for(var b=[],w=0;w<256;w++)w<128?b[w]=w<<1:b[w]=w<<1^283;for(var S=0,O=0,w=0;w<256;w++){var I=O^O<<1^O<<2^O<<3^O<<4;I=I>>>8^I&255^99,l[S]=I,d[I]=S;var j=b[S],V=b[j],D=b[V],T=b[I]*257^I*16843008;o[S]=T<<24|T>>>8,u[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,m[S]=T;var T=D*16843009^V*65537^j*257^S*16843008;_[I]=T<<24|T>>>8,g[I]=T<<16|T>>>16,v[I]=T<<8|T>>>24,p[I]=T,S?(S=j^b[b[b[D^j]]],O^=b[b[O]]):S=O=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],h=i.AES=a.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,S=w.words,O=w.sigBytes/4,I=this._nRounds=O+6,j=(I+1)*4,V=this._keySchedule=[],D=0;D<j;D++)D<O?V[D]=S[D]:(b=V[D-1],D%O?O>6&&D%O==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=y[D/O|0]<<24),V[D]=V[D-O]^b);for(var T=this._invKeySchedule=[],B=0;B<j;B++){var D=j-B;if(B%4)var b=V[D];else var b=V[D-4];B<4||D<=4?T[B]=b:T[B]=_[l[b>>>24]]^g[l[b>>>16&255]]^v[l[b>>>8&255]]^p[l[b&255]]}}},encryptBlock:function(b,w){this._doCryptBlock(b,w,this._keySchedule,o,u,f,m,l)},decryptBlock:function(b,w){var S=b[w+1];b[w+1]=b[w+3],b[w+3]=S,this._doCryptBlock(b,w,this._invKeySchedule,_,g,v,p,d);var S=b[w+1];b[w+1]=b[w+3],b[w+3]=S},_doCryptBlock:function(b,w,S,O,I,j,V,D){for(var T=this._nRounds,B=b[w]^S[0],R=b[w+1]^S[1],H=b[w+2]^S[2],K=b[w+3]^S[3],q=4,se=1;se<T;se++){var Z=O[B>>>24]^I[R>>>16&255]^j[H>>>8&255]^V[K&255]^S[q++],ne=O[R>>>24]^I[H>>>16&255]^j[K>>>8&255]^V[B&255]^S[q++],P=O[H>>>24]^I[K>>>16&255]^j[B>>>8&255]^V[R&255]^S[q++],k=O[K>>>24]^I[B>>>16&255]^j[R>>>8&255]^V[H&255]^S[q++];B=Z,R=ne,H=P,K=k}var Z=(D[B>>>24]<<24|D[R>>>16&255]<<16|D[H>>>8&255]<<8|D[K&255])^S[q++],ne=(D[R>>>24]<<24|D[H>>>16&255]<<16|D[K>>>8&255]<<8|D[B&255])^S[q++],P=(D[H>>>24]<<24|D[K>>>16&255]<<16|D[B>>>8&255]<<8|D[R&255])^S[q++],k=(D[K>>>24]<<24|D[B>>>16&255]<<16|D[R>>>8&255]<<8|D[H&255])^S[q++];b[w]=Z,b[w+1]=ne,b[w+2]=P,b[w+3]=k},keySize:256/32});s.AES=a._createHelper(h)}(),r.AES})}(Su)),Su.exports}var Au={exports:{}},Cu;function e1(){return Cu||(Cu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),ar(),or(),Ut(),Ie())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.WordArray,i=n.BlockCipher,l=s.algo,d=[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],u=[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}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=l.DES=i.extend({_doReset:function(){for(var y=this._key,h=y.words,b=[],w=0;w<56;w++){var S=d[w]-1;b[w]=h[S>>>5]>>>31-S%32&1}for(var O=this._subKeys=[],I=0;I<16;I++){for(var j=O[I]=[],V=u[I],w=0;w<24;w++)j[w/6|0]|=b[(o[w]-1+V)%28]<<31-w%6,j[4+(w/6|0)]|=b[28+(o[w+24]-1+V)%28]<<31-w%6;j[0]=j[0]<<1|j[0]>>>31;for(var w=1;w<7;w++)j[w]=j[w]>>>(w-1)*4+3;j[7]=j[7]<<5|j[7]>>>27}for(var D=this._invSubKeys=[],w=0;w<16;w++)D[w]=O[15-w]},encryptBlock:function(y,h){this._doCryptBlock(y,h,this._subKeys)},decryptBlock:function(y,h){this._doCryptBlock(y,h,this._invSubKeys)},_doCryptBlock:function(y,h,b){this._lBlock=y[h],this._rBlock=y[h+1],g.call(this,4,252645135),g.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),g.call(this,1,1431655765);for(var w=0;w<16;w++){for(var S=b[w],O=this._lBlock,I=this._rBlock,j=0,V=0;V<8;V++)j|=f[V][((I^S[V])&m[V])>>>0];this._lBlock=I,this._rBlock=O^j}var D=this._lBlock;this._lBlock=this._rBlock,this._rBlock=D,g.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),y[h]=this._lBlock,y[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(y,h){var b=(this._lBlock>>>y^this._rBlock)&h;this._rBlock^=b,this._lBlock^=b<<y}function v(y,h){var b=(this._rBlock>>>y^this._lBlock)&h;this._lBlock^=b,this._rBlock^=b<<y}s.DES=i._createHelper(_);var p=l.TripleDES=i.extend({_doReset:function(){var y=this._key,h=y.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=h.slice(0,2),w=h.length<4?h.slice(0,2):h.slice(2,4),S=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=_.createEncryptor(a.create(b)),this._des2=_.createEncryptor(a.create(w)),this._des3=_.createEncryptor(a.create(S))},encryptBlock:function(y,h){this._des1.encryptBlock(y,h),this._des2.decryptBlock(y,h),this._des3.encryptBlock(y,h)},decryptBlock:function(y,h){this._des3.decryptBlock(y,h),this._des2.encryptBlock(y,h),this._des1.decryptBlock(y,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});s.TripleDES=i._createHelper(p)}(),r.TripleDES})}(Au)),Au.exports}var Tu={exports:{}},Ou;function t1(){return Ou||(Ou=1,function(t,e){(function(r,s,n){t.exports=s(pe(),ar(),or(),Ut(),Ie())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.StreamCipher,i=s.algo,l=i.RC4=a.extend({_doReset:function(){for(var u=this._key,f=u.words,m=u.sigBytes,_=this._S=[],g=0;g<256;g++)_[g]=g;for(var g=0,v=0;g<256;g++){var p=g%m,y=f[p>>>2]>>>24-p%4*8&255;v=(v+_[g]+y)%256;var h=_[g];_[g]=_[v],_[v]=h}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,f=this._i,m=this._j,_=0,g=0;g<4;g++){f=(f+1)%256,m=(m+u[f])%256;var v=u[f];u[f]=u[m],u[m]=v,_|=u[(u[f]+u[m])%256]<<24-g*8}return this._i=f,this._j=m,_}s.RC4=a._createHelper(l);var o=i.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});s.RC4Drop=a._createHelper(o)}(),r.RC4})}(Tu)),Tu.exports}var Pu={exports:{}},Nu;function r1(){return Nu||(Nu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),ar(),or(),Ut(),Ie())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.StreamCipher,i=s.algo,l=[],d=[],o=[],u=i.Rabbit=a.extend({_doReset:function(){for(var m=this._key.words,_=this.cfg.iv,g=0;g<4;g++)m[g]=(m[g]<<8|m[g]>>>24)&16711935|(m[g]<<24|m[g]>>>8)&4278255360;var v=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],p=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var g=0;g<4;g++)f.call(this);for(var g=0;g<8;g++)p[g]^=v[g+4&7];if(_){var y=_.words,h=y[0],b=y[1],w=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,O=w>>>16|S&4294901760,I=S<<16|w&65535;p[0]^=w,p[1]^=O,p[2]^=S,p[3]^=I,p[4]^=w,p[5]^=O,p[6]^=S,p[7]^=I;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(m,_){var g=this._X;f.call(this),l[0]=g[0]^g[5]>>>16^g[3]<<16,l[1]=g[2]^g[7]>>>16^g[5]<<16,l[2]=g[4]^g[1]>>>16^g[7]<<16,l[3]=g[6]^g[3]>>>16^g[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,m[_+v]^=l[v]},blockSize:128/32,ivSize:64/32});function f(){for(var m=this._X,_=this._C,g=0;g<8;g++)d[g]=_[g];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<d[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<d[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<d[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<d[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<d[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<d[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<d[6]>>>0?1:0)|0,this._b=_[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var v=m[g]+_[g],p=v&65535,y=v>>>16,h=((p*p>>>17)+p*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[g]=h^b}m[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,m[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,m[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,m[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,m[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,m[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,m[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,m[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.Rabbit=a._createHelper(u)}(),r.Rabbit})}(Pu)),Pu.exports}var Iu={exports:{}},Du;function s1(){return Du||(Du=1,function(t,e){(function(r,s,n){t.exports=s(pe(),ar(),or(),Ut(),Ie())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.StreamCipher,i=s.algo,l=[],d=[],o=[],u=i.RabbitLegacy=a.extend({_doReset:function(){var m=this._key.words,_=this.cfg.iv,g=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],v=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)v[p]^=g[p+4&7];if(_){var y=_.words,h=y[0],b=y[1],w=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,O=w>>>16|S&4294901760,I=S<<16|w&65535;v[0]^=w,v[1]^=O,v[2]^=S,v[3]^=I,v[4]^=w,v[5]^=O,v[6]^=S,v[7]^=I;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(m,_){var g=this._X;f.call(this),l[0]=g[0]^g[5]>>>16^g[3]<<16,l[1]=g[2]^g[7]>>>16^g[5]<<16,l[2]=g[4]^g[1]>>>16^g[7]<<16,l[3]=g[6]^g[3]>>>16^g[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,m[_+v]^=l[v]},blockSize:128/32,ivSize:64/32});function f(){for(var m=this._X,_=this._C,g=0;g<8;g++)d[g]=_[g];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<d[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<d[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<d[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<d[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<d[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<d[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<d[6]>>>0?1:0)|0,this._b=_[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var v=m[g]+_[g],p=v&65535,y=v>>>16,h=((p*p>>>17)+p*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[g]=h^b}m[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,m[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,m[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,m[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,m[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,m[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,m[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,m[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.RabbitLegacy=a._createHelper(u)}(),r.RabbitLegacy})}(Iu)),Iu.exports}var Mu={exports:{}},Fu;function n1(){return Fu||(Fu=1,function(t,e){(function(r,s,n){t.exports=s(pe(),ar(),or(),Ut(),Ie())})(ce,function(r){return function(){var s=r,n=s.lib,a=n.BlockCipher,i=s.algo;const l=16,d=[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 u={pbox:[],sbox:[]};function f(p,y){let h=y>>24&255,b=y>>16&255,w=y>>8&255,S=y&255,O=p.sbox[0][h]+p.sbox[1][b];return O=O^p.sbox[2][w],O=O+p.sbox[3][S],O}function m(p,y,h){let b=y,w=h,S;for(let O=0;O<l;++O)b=b^p.pbox[O],w=f(p,b)^w,S=b,b=w,w=S;return S=b,b=w,w=S,w=w^p.pbox[l],b=b^p.pbox[l+1],{left:b,right:w}}function _(p,y,h){let b=y,w=h,S;for(let O=l+1;O>1;--O)b=b^p.pbox[O],w=f(p,b)^w,S=b,b=w,w=S;return S=b,b=w,w=S,w=w^p.pbox[1],b=b^p.pbox[0],{left:b,right:w}}function g(p,y,h){for(let I=0;I<4;I++){p.sbox[I]=[];for(let j=0;j<256;j++)p.sbox[I][j]=o[I][j]}let b=0;for(let I=0;I<l+2;I++)p.pbox[I]=d[I]^y[b],b++,b>=h&&(b=0);let w=0,S=0,O=0;for(let I=0;I<l+2;I+=2)O=m(p,w,S),w=O.left,S=O.right,p.pbox[I]=w,p.pbox[I+1]=S;for(let I=0;I<4;I++)for(let j=0;j<256;j+=2)O=m(p,w,S),w=O.left,S=O.right,p.sbox[I][j]=w,p.sbox[I][j+1]=S;return!0}var v=i.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,y=p.words,h=p.sigBytes/4;g(u,y,h)}},encryptBlock:function(p,y){var h=m(u,p[y],p[y+1]);p[y]=h.left,p[y+1]=h.right},decryptBlock:function(p,y){var h=_(u,p[y],p[y+1]);p[y]=h.left,p[y+1]=h.right},blockSize:64/32,keySize:128/32,ivSize:64/32});s.Blowfish=a._createHelper(v)}(),r.Blowfish})}(Mu)),Mu.exports}(function(t,e){(function(r,s,n){t.exports=s(pe(),Ns(),D0(),M0(),ar(),F0(),or(),Ml(),oa(),B0(),zl(),j0(),R0(),L0(),ia(),V0(),Ut(),Ie(),z0(),H0(),U0(),G0(),W0(),K0(),q0(),X0(),Y0(),Z0(),J0(),Q0(),e1(),t1(),r1(),s1(),n1())})(ce,function(r){return r})})(P0);/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:Bu,setPrototypeOf:ju,isFrozen:a1,getPrototypeOf:o1,getOwnPropertyDescriptor:i1}=Object;let{freeze:qe,seal:ut,create:la}=Object,{apply:ua,construct:ca}=typeof Reflect<"u"&&Reflect;qe||(qe=function(e){return e}),ut||(ut=function(e){return e}),ua||(ua=function(e,r){for(var s=arguments.length,n=new Array(s>2?s-2:0),a=2;a<s;a++)n[a-2]=arguments[a];return e.apply(r,n)}),ca||(ca=function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),n=1;n<r;n++)s[n-1]=arguments[n];return new e(...s)});const Is=Ye(Array.prototype.forEach),l1=Ye(Array.prototype.lastIndexOf),Ru=Ye(Array.prototype.pop),Wr=Ye(Array.prototype.push),u1=Ye(Array.prototype.splice),Ds=Ye(String.prototype.toLowerCase),da=Ye(String.prototype.toString),ha=Ye(String.prototype.match),Kr=Ye(String.prototype.replace),c1=Ye(String.prototype.indexOf),d1=Ye(String.prototype.trim),_t=Ye(Object.prototype.hasOwnProperty),Xe=Ye(RegExp.prototype.test),qr=h1(TypeError);function Ye(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),n=1;n<r;n++)s[n-1]=arguments[n];return ua(t,e,s)}}function h1(t){return function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return ca(t,r)}}function he(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ds;ju&&ju(t,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const a=r(n);a!==n&&(a1(e)||(e[s]=a),n=a)}t[n]=!0}return t}function p1(t){for(let e=0;e<t.length;e++)_t(t,e)||(t[e]=null);return t}function Mt(t){const e=la(null);for(const[r,s]of Bu(t))_t(t,r)&&(Array.isArray(s)?e[r]=p1(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=Mt(s):e[r]=s);return e}function Xr(t,e){for(;t!==null;){const s=i1(t,e);if(s){if(s.get)return Ye(s.get);if(typeof s.value=="function")return Ye(s.value)}t=o1(t)}function r(){return null}return r}const Lu=qe(["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","search","section","select","shadow","slot","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"]),pa=qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fa=qe(["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"]),f1=qe(["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"]),ma=qe(["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"]),m1=qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vu=qe(["#text"]),zu=qe(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ga=qe(["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","mask-type","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"]),Hu=qe(["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"]),Ms=qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),g1=ut(/\{\{[\w\W]*|[\w\W]*\}\}/gm),y1=ut(/<%[\w\W]*|[\w\W]*%>/gm),v1=ut(/\$\{[\w\W]*/gm),_1=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),b1=ut(/^aria-[\-\w]+$/),Uu=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),k1=ut(/^(?:\w+script|data):/i),w1=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gu=ut(/^html$/i),$1=ut(/^[a-z][.\w]*(-[.\w]+)+$/i);var Wu=Object.freeze({__proto__:null,ARIA_ATTR:b1,ATTR_WHITESPACE:w1,CUSTOM_ELEMENT:$1,DATA_ATTR:_1,DOCTYPE_NAME:Gu,ERB_EXPR:y1,IS_ALLOWED_URI:Uu,IS_SCRIPT_OR_DATA:k1,MUSTACHE_EXPR:g1,TMPLIT_EXPR:v1});const Yr={element:1,text:3,progressingInstruction:7,comment:8,document:9},E1=function(){return typeof window>"u"?null:window},S1=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(s=r.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}},Ku=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function qu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E1();const e=re=>qu(re);if(e.version="3.3.0",e.removed=[],!t||!t.document||t.document.nodeType!==Yr.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const s=r,n=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:l,Element:d,NodeFilter:o,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:_}=t,g=d.prototype,v=Xr(g,"cloneNode"),p=Xr(g,"remove"),y=Xr(g,"nextSibling"),h=Xr(g,"childNodes"),b=Xr(g,"parentNode");if(typeof i=="function"){const re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}let w,S="";const{implementation:O,createNodeIterator:I,createDocumentFragment:j,getElementsByTagName:V}=r,{importNode:D}=s;let T=Ku();e.isSupported=typeof Bu=="function"&&typeof b=="function"&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:R,TMPLIT_EXPR:H,DATA_ATTR:K,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:ne}=Wu;let{IS_ALLOWED_URI:P}=Wu,k=null;const x=he({},[...Lu,...pa,...fa,...ma,...Vu]);let E=null;const c=he({},[...zu,...ga,...Hu,...Ms]);let $=Object.seal(la(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}})),C=null,L=null;const F=Object.seal(la(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let z=!0,G=!0,J=!1,U=!0,fe=!1,_e=!0,Te=!1,st=!1,ct=!1,ze=!1,dt=!1,Qe=!1,De=!0,Oe=!1;const et="user-content-";let ht=!0,pt=!1,Pe={},He=null;const ir=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 Gt=null;const lr=he({},["audio","video","img","source","image","track"]);let At=null;const Wt=he({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xr="http://www.w3.org/1998/Math/MathML",ur="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Kt=ft,Jr=!1,Ar=null;const va=he({},[xr,ur,ft],da);let cr=he({},["mi","mo","mn","ms","mtext"]),Cr=he({},["annotation-xml"]);const Fs=he({},["title","style","font","a","script"]);let dr=null;const _a=["application/xhtml+xml","text/html"],ba="text/html";let Se=null,qt=null;const ka=r.createElement("form"),Qr=function(N){return N instanceof RegExp||N instanceof Function},es=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(qt&&qt===N)){if((!N||typeof N!="object")&&(N={}),N=Mt(N),dr=_a.indexOf(N.PARSER_MEDIA_TYPE)===-1?ba:N.PARSER_MEDIA_TYPE,Se=dr==="application/xhtml+xml"?da:Ds,k=_t(N,"ALLOWED_TAGS")?he({},N.ALLOWED_TAGS,Se):x,E=_t(N,"ALLOWED_ATTR")?he({},N.ALLOWED_ATTR,Se):c,Ar=_t(N,"ALLOWED_NAMESPACES")?he({},N.ALLOWED_NAMESPACES,da):va,At=_t(N,"ADD_URI_SAFE_ATTR")?he(Mt(Wt),N.ADD_URI_SAFE_ATTR,Se):Wt,Gt=_t(N,"ADD_DATA_URI_TAGS")?he(Mt(lr),N.ADD_DATA_URI_TAGS,Se):lr,He=_t(N,"FORBID_CONTENTS")?he({},N.FORBID_CONTENTS,Se):ir,C=_t(N,"FORBID_TAGS")?he({},N.FORBID_TAGS,Se):Mt({}),L=_t(N,"FORBID_ATTR")?he({},N.FORBID_ATTR,Se):Mt({}),Pe=_t(N,"USE_PROFILES")?N.USE_PROFILES:!1,z=N.ALLOW_ARIA_ATTR!==!1,G=N.ALLOW_DATA_ATTR!==!1,J=N.ALLOW_UNKNOWN_PROTOCOLS||!1,U=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=N.SAFE_FOR_TEMPLATES||!1,_e=N.SAFE_FOR_XML!==!1,Te=N.WHOLE_DOCUMENT||!1,ze=N.RETURN_DOM||!1,dt=N.RETURN_DOM_FRAGMENT||!1,Qe=N.RETURN_TRUSTED_TYPE||!1,ct=N.FORCE_BODY||!1,De=N.SANITIZE_DOM!==!1,Oe=N.SANITIZE_NAMED_PROPS||!1,ht=N.KEEP_CONTENT!==!1,pt=N.IN_PLACE||!1,P=N.ALLOWED_URI_REGEXP||Uu,Kt=N.NAMESPACE||ft,cr=N.MATHML_TEXT_INTEGRATION_POINTS||cr,Cr=N.HTML_INTEGRATION_POINTS||Cr,$=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&Qr(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&Qr(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(G=!1),dt&&(ze=!0),Pe&&(k=he({},Vu),E=[],Pe.html===!0&&(he(k,Lu),he(E,zu)),Pe.svg===!0&&(he(k,pa),he(E,ga),he(E,Ms)),Pe.svgFilters===!0&&(he(k,fa),he(E,ga),he(E,Ms)),Pe.mathMl===!0&&(he(k,ma),he(E,Hu),he(E,Ms))),N.ADD_TAGS&&(typeof N.ADD_TAGS=="function"?F.tagCheck=N.ADD_TAGS:(k===x&&(k=Mt(k)),he(k,N.ADD_TAGS,Se))),N.ADD_ATTR&&(typeof N.ADD_ATTR=="function"?F.attributeCheck=N.ADD_ATTR:(E===c&&(E=Mt(E)),he(E,N.ADD_ATTR,Se))),N.ADD_URI_SAFE_ATTR&&he(At,N.ADD_URI_SAFE_ATTR,Se),N.FORBID_CONTENTS&&(He===ir&&(He=Mt(He)),he(He,N.FORBID_CONTENTS,Se)),ht&&(k["#text"]=!0),Te&&he(k,["html","head","body"]),k.table&&(he(k,["tbody"]),delete C.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw qr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=N.TRUSTED_TYPES_POLICY,S=w.createHTML("")}else w===void 0&&(w=S1(_,n)),w!==null&&typeof S=="string"&&(S=w.createHTML(""));qe&&qe(N),qt=N}},ts=he({},[...pa,...fa,...f1]),Ue=he({},[...ma,...m1]),Ct=function(N){let W=b(N);(!W||!W.tagName)&&(W={namespaceURI:Kt,tagName:"template"});const Q=Ds(N.tagName),we=Ds(W.tagName);return Ar[N.namespaceURI]?N.namespaceURI===ur?W.namespaceURI===ft?Q==="svg":W.namespaceURI===xr?Q==="svg"&&(we==="annotation-xml"||cr[we]):!!ts[Q]:N.namespaceURI===xr?W.namespaceURI===ft?Q==="math":W.namespaceURI===ur?Q==="math"&&Cr[we]:!!Ue[Q]:N.namespaceURI===ft?W.namespaceURI===ur&&!Cr[we]||W.namespaceURI===xr&&!cr[we]?!1:!Ue[Q]&&(Fs[Q]||!ts[Q]):!!(dr==="application/xhtml+xml"&&Ar[N.namespaceURI]):!1},nt=function(N){Wr(e.removed,{element:N});try{b(N).removeChild(N)}catch{p(N)}},Ft=function(N,W){try{Wr(e.removed,{attribute:W.getAttributeNode(N),from:W})}catch{Wr(e.removed,{attribute:null,from:W})}if(W.removeAttribute(N),N==="is")if(ze||dt)try{nt(W)}catch{}else try{W.setAttribute(N,"")}catch{}},Yu=function(N){let W=null,Q=null;if(ct)N="<remove></remove>"+N;else{const xe=ha(N,/^[\r\n\t ]+/);Q=xe&&xe[0]}dr==="application/xhtml+xml"&&Kt===ft&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const we=w?w.createHTML(N):N;if(Kt===ft)try{W=new m().parseFromString(we,dr)}catch{}if(!W||!W.documentElement){W=O.createDocument(Kt,"template",null);try{W.documentElement.innerHTML=Jr?S:we}catch{}}const Ge=W.body||W.documentElement;return N&&Q&&Ge.insertBefore(r.createTextNode(Q),Ge.childNodes[0]||null),Kt===ft?V.call(W,Te?"html":"body")[0]:Te?W.documentElement:Ge},Zu=function(N){return I.call(N.ownerDocument||N,N,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},wa=function(N){return N instanceof f&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof u)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Ju=function(N){return typeof l=="function"&&N instanceof l};function Bt(re,N,W){Is(re,Q=>{Q.call(e,N,W,qt)})}const Qu=function(N){let W=null;if(Bt(T.beforeSanitizeElements,N,null),wa(N))return nt(N),!0;const Q=Se(N.nodeName);if(Bt(T.uponSanitizeElement,N,{tagName:Q,allowedTags:k}),_e&&N.hasChildNodes()&&!Ju(N.firstElementChild)&&Xe(/<[/\w!]/g,N.innerHTML)&&Xe(/<[/\w!]/g,N.textContent)||N.nodeType===Yr.progressingInstruction||_e&&N.nodeType===Yr.comment&&Xe(/<[/\w]/g,N.data))return nt(N),!0;if(!(F.tagCheck instanceof Function&&F.tagCheck(Q))&&(!k[Q]||C[Q])){if(!C[Q]&&tc(Q)&&($.tagNameCheck instanceof RegExp&&Xe($.tagNameCheck,Q)||$.tagNameCheck instanceof Function&&$.tagNameCheck(Q)))return!1;if(ht&&!He[Q]){const we=b(N)||N.parentNode,Ge=h(N)||N.childNodes;if(Ge&&we){const xe=Ge.length;for(let tt=xe-1;tt>=0;--tt){const jt=v(Ge[tt],!0);jt.__removalCount=(N.__removalCount||0)+1,we.insertBefore(jt,y(N))}}}return nt(N),!0}return N instanceof d&&!Ct(N)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&Xe(/<\/no(script|embed|frames)/i,N.innerHTML)?(nt(N),!0):(fe&&N.nodeType===Yr.text&&(W=N.textContent,Is([B,R,H],we=>{W=Kr(W,we," ")}),N.textContent!==W&&(Wr(e.removed,{element:N.cloneNode()}),N.textContent=W)),Bt(T.afterSanitizeElements,N,null),!1)},ec=function(N,W,Q){if(De&&(W==="id"||W==="name")&&(Q in r||Q in ka))return!1;if(!(G&&!L[W]&&Xe(K,W))){if(!(z&&Xe(q,W))){if(!(F.attributeCheck instanceof Function&&F.attributeCheck(W,N))){if(!E[W]||L[W]){if(!(tc(N)&&($.tagNameCheck instanceof RegExp&&Xe($.tagNameCheck,N)||$.tagNameCheck instanceof Function&&$.tagNameCheck(N))&&($.attributeNameCheck instanceof RegExp&&Xe($.attributeNameCheck,W)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(W,N))||W==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Xe($.tagNameCheck,Q)||$.tagNameCheck instanceof Function&&$.tagNameCheck(Q))))return!1}else if(!At[W]){if(!Xe(P,Kr(Q,Z,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&N!=="script"&&c1(Q,"data:")===0&&Gt[N])){if(!(J&&!Xe(se,Kr(Q,Z,"")))){if(Q)return!1}}}}}}}return!0},tc=function(N){return N!=="annotation-xml"&&ha(N,ne)},rc=function(N){Bt(T.beforeSanitizeAttributes,N,null);const{attributes:W}=N;if(!W||wa(N))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0};let we=W.length;for(;we--;){const Ge=W[we],{name:xe,namespaceURI:tt,value:jt}=Ge,Tr=Se(xe),$a=jt;let je=xe==="value"?$a:d1($a);if(Q.attrName=Tr,Q.attrValue=je,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Bt(T.uponSanitizeAttribute,N,Q),je=Q.attrValue,Oe&&(Tr==="id"||Tr==="name")&&(Ft(xe,N),je=et+je),_e&&Xe(/((--!?|])>)|<\/(style|title|textarea)/i,je)){Ft(xe,N);continue}if(Tr==="attributename"&&ha(je,"href")){Ft(xe,N);continue}if(Q.forceKeepAttr)continue;if(!Q.keepAttr){Ft(xe,N);continue}if(!U&&Xe(/\/>/i,je)){Ft(xe,N);continue}fe&&Is([B,R,H],nc=>{je=Kr(je,nc," ")});const sc=Se(N.nodeName);if(!ec(sc,Tr,je)){Ft(xe,N);continue}if(w&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!tt)switch(_.getAttributeType(sc,Tr)){case"TrustedHTML":{je=w.createHTML(je);break}case"TrustedScriptURL":{je=w.createScriptURL(je);break}}if(je!==$a)try{tt?N.setAttributeNS(tt,xe,je):N.setAttribute(xe,je),wa(N)?nt(N):Ru(e.removed)}catch{Ft(xe,N)}}Bt(T.afterSanitizeAttributes,N,null)},D1=function re(N){let W=null;const Q=Zu(N);for(Bt(T.beforeSanitizeShadowDOM,N,null);W=Q.nextNode();)Bt(T.uponSanitizeShadowNode,W,null),Qu(W),rc(W),W.content instanceof a&&re(W.content);Bt(T.afterSanitizeShadowDOM,N,null)};return e.sanitize=function(re){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,Q=null,we=null,Ge=null;if(Jr=!re,Jr&&(re="<!-->"),typeof re!="string"&&!Ju(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw qr("dirty is not a string, aborting")}else throw qr("toString is not a function");if(!e.isSupported)return re;if(st||es(N),e.removed=[],typeof re=="string"&&(pt=!1),pt){if(re.nodeName){const jt=Se(re.nodeName);if(!k[jt]||C[jt])throw qr("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof l)W=Yu("<!---->"),Q=W.ownerDocument.importNode(re,!0),Q.nodeType===Yr.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?W=Q:W.appendChild(Q);else{if(!ze&&!fe&&!Te&&re.indexOf("<")===-1)return w&&Qe?w.createHTML(re):re;if(W=Yu(re),!W)return ze?null:Qe?S:""}W&&ct&&nt(W.firstChild);const xe=Zu(pt?re:W);for(;we=xe.nextNode();)Qu(we),rc(we),we.content instanceof a&&D1(we.content);if(pt)return re;if(ze){if(dt)for(Ge=j.call(W.ownerDocument);W.firstChild;)Ge.appendChild(W.firstChild);else Ge=W;return(E.shadowroot||E.shadowrootmode)&&(Ge=D.call(s,Ge,!0)),Ge}let tt=Te?W.outerHTML:W.innerHTML;return Te&&k["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&Xe(Gu,W.ownerDocument.doctype.name)&&(tt="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
41
+ `+tt),fe&&Is([B,R,H],jt=>{tt=Kr(tt,jt," ")}),w&&Qe?w.createHTML(tt):tt},e.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};es(re),st=!0},e.clearConfig=function(){qt=null,st=!1},e.isValidAttribute=function(re,N,W){qt||es({});const Q=Se(re),we=Se(N);return ec(Q,we,W)},e.addHook=function(re,N){typeof N=="function"&&Wr(T[re],N)},e.removeHook=function(re,N){if(N!==void 0){const W=l1(T[re],N);return W===-1?void 0:u1(T[re],W,1)[0]}return Ru(T[re])},e.removeHooks=function(re){T[re]=[]},e.removeAllHooks=function(){T=Ku()},e}var ya=qu();const x1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span"],A1=["style","src","alt","href","target"],C1=(t,e={})=>{var r,s,n;if(!t)return"";const a=e.allowedTags||x1,i=e.allowedAttributes||A1,l={ALLOWED_TAGS:a,ALLOWED_ATTR:i,ADD_ATTR:["target","rel"]};(r=ya)==null||r.addHook("afterSanitizeAttributes",o=>{o.tagName==="A"&&!o.hasAttribute("target")&&(o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer"))});const d=(s=ya)==null?void 0:s.sanitize(t,l);return(n=ya)==null||n.removeHook("afterSanitizeAttributes"),d},Zr={props:{userReaction:"",likesCount:0,dislikesCount:0,showTitle:!1,onClick:()=>{}}},Xu=({userReaction:t=Zr.props.userReaction,likesCount:e=Zr.props.likesCount,dislikesCount:r=Zr.props.dislikesCount,showTitle:s=Zr.props.showTitle,onClick:n=Zr.props.onClick})=>{const a=i=>{n==null||n(i)};return M.jsxs(Le,{gap:"quark",children:[M.jsx(ye,{children:M.jsx(Ae,{className:"reaction-button__like",color:t==="like"?"success-dark":"neutral-80",fill:t==="like",image:"thumb_up",onClick:()=>a("like"),size:"lg",testId:"like-button"})}),s?M.jsx(ye,{children:M.jsx($t,{children:"Útil"})}):M.jsx(M.Fragment,{}),M.jsx(ye,{children:M.jsxs($t,{children:["(",e,")"]})}),M.jsx(Ne,{horizontal:"quark"}),M.jsx(ye,{children:M.jsx(Ae,{className:"reaction-button__deslike",color:t==="dislike"?"danger-dark":"neutral-80",fill:t==="dislike",image:"thumb_down",onClick:()=>a("dislike"),size:"lg",testId:"dislike-button"})}),s?M.jsx(ye,{children:M.jsx($t,{children:"Não útil"})}):M.jsx(M.Fragment,{}),M.jsx(ye,{children:M.jsxs($t,{children:["(",r,")"]})})]})},T1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span","blockquote"],O1=({question:t,onReactionClick:e})=>{const r=C1(t.attributes.faqQuestion.answer,{allowedTags:T1});return M.jsx("div",{className:"faq-question-detail",children:M.jsx(hr,{className:"faq-detail",elevation:2,children:M.jsxs(Le,{flexDirection:"column",children:[M.jsx(bt,{type:"heading-5",className:"color__neutral--90",children:t.attributes.title}),M.jsx(Ne,{vertical:"quark"}),M.jsxs($t,{className:"color__neutral--70",children:["Última atualização:"," ",vl(new Date(`${t.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]}),M.jsx(Ne,{vertical:"xxxs"}),M.jsx("div",{className:"faq-detail__answer",dangerouslySetInnerHTML:{__html:r}}),M.jsx(Ne,{vertical:"xxxs"}),M.jsx(Ks,{}),M.jsx(Ne,{vertical:"xxs"}),M.jsxs(Le,{alignItems:"flex-end",flexDirection:"row",gap:"xs",justifyContent:"space-between",children:[M.jsx(ye,{children:M.jsx(bt,{type:"heading-6",children:"Esse texto foi útil?"})}),M.jsx(ye,{children:M.jsx(Xu,{dislikesCount:t.attributes.dislikesCount,likesCount:t.attributes.likesCount,onClick:s=>e==null?void 0:e(t.id,s),showTitle:!0,userReaction:t.attributes.userReaction})})]})]})})})},P1=({title:t="",questions:e=[],showReactions:r=!1,collapse:s=!1,onClick:n=()=>{},onReactionClick:a=()=>{}})=>M.jsxs("div",{className:"faq-questions",children:[t&&M.jsx(bt,{type:"heading-5",className:"color__neutral--90",children:t}),M.jsx(Ne,{vertical:"xxxs"}),M.jsx("div",{className:"faq-questions-list",children:M.jsx(Le,{flexDirection:"column",gap:"nano",children:e==null?void 0:e.map(i=>M.jsx(ye,{children:M.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:M.jsx(hr,{className:"faq-card",elevation:2,children:M.jsxs(Le,{alignItems:"center",justifyContent:"space-between",children:[M.jsxs(ye,{flex:"1 1 0",children:[M.jsx(bt,{type:"heading-6",className:"faq-card__title color__neutral--90",children:i.attributes.title}),s?M.jsx(M.Fragment,{}):M.jsxs(M.Fragment,{children:[M.jsx(Ne,{vertical:"xxxs"}),M.jsx("div",{className:"ds-grid",children:M.jsxs("div",{className:"ds-grid__row align-items--center",children:[M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:M.jsxs($t,{children:["Última atualização:"," ",vl(new Date(`${i.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]})}),M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:r?M.jsx(Xu,{dislikesCount:i.attributes.dislikesCount,likesCount:i.attributes.likesCount,onClick:l=>a(i.id,l),userReaction:i.attributes.userReaction}):null}),M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:M.jsxs(Le,{alignItems:"center",gap:"quark",justifyContent:"flex-end",children:[M.jsx(ye,{children:M.jsx("div",{className:"faq-card__link",onClick:()=>n(i),role:"button",tabIndex:0,children:"Ler mais"})}),M.jsx(ye,{children:M.jsx(Ae,{color:"primary",image:"chevron_right",size:"lg"})})]})})]})})]})]}),s?M.jsx(ye,{children:M.jsx(Ae,{image:"chevron_right",size:"lg"})}):M.jsx(M.Fragment,{})]})})})},i.id))})})]}),N1=({content:t})=>{var d;const e=X.useRef(null),r=C0({autoRotate:!0,autoRotateInterval:8e3,animationDuration:0,items:t,infinite:!0,startIndex:0,swipeEnabled:!0,swipeThreshold:20,swipePercentage:.3,containerRef:e}),s=r.getContainerTransform(),n=[{type:"event",icon:"campaign"},{type:"news",icon:"star_border"},{type:"campaign",icon:"electric_bolt"},{type:"product",icon:"group_add"}],a=o=>{const u=n.find(f=>f.type===o);return(u==null?void 0:u.icon)??"star_border"},i=o=>{const u=new Date(o+"T00:00:00"),f=u.getDate(),m=u.toLocaleDateString("pt-BR",{month:"long"});return`${f} de ${m.charAt(0).toUpperCase()+m.slice(1)}`},l=o=>{var u,f;return M.jsxs(M.Fragment,{children:[M.jsx("div",{children:M.jsxs(Le,{alignItems:"center",flexWrap:"nowrap",gap:"xxxs",justifyContent:"flex-start",children:[M.jsx(ye,{children:M.jsx("div",{className:"news__icon","data-testid":"news-icon-container",children:M.jsx(Ae,{color:"neutral-00",fill:!0,image:a(o.type),size:"xxl",testId:"news-icon"})})}),M.jsx(ye,{children:M.jsx(bt,{className:"news__title",type:"heading-6",children:o.title})})]})}),M.jsxs("div",{children:[M.jsx(Ne,{vertical:"nano"}),M.jsx($t,{className:"news__content",children:o.content}),M.jsx(Ne,{vertical:"nano"}),(u=o.link)!=null&&u.url&&((f=o.link)!=null&&f.label)?M.jsx("a",{className:"news__link",href:o.link.url,rel:"noopener noreferrer",target:"_blank",children:o.link.label}):M.jsx(M.Fragment,{}),M.jsx(Ne,{vertical:"nano"}),M.jsx("div",{className:"news__line-breaker"})]})]})};return M.jsx("div",{className:"news",children:M.jsxs(hr,{backgroundColor:"neutral-20",className:"news__card",elevation:1,children:[M.jsx("div",{className:"news__ellipse"}),M.jsxs(Le,{alignItems:"flex-start",flexDirection:"column",gap:"nano",justifyContent:"space-between",children:[M.jsx(ye,{className:"carousel",children:M.jsx("div",{ref:e,...r.handlers,className:"carousel__wrapper",children:M.jsx("div",{className:"carousel__container","data-testid":"carousel",style:{transform:s},children:r.items.map((o,u)=>M.jsx("div",{className:"carousel__item","data-testid":`carousel-item-${u}`,children:l(o)},`carousel__item-${u}-${r.currentLogicalIndex}`))})})}),M.jsxs(ye,{className:"news__footer",children:[M.jsx(Ne,{vertical:"nano"}),M.jsxs(Le,{alignItems:"center",justifyContent:"space-between",children:[M.jsx(ye,{children:M.jsxs(Le,{alignItems:"center",gap:"nano",justifyContent:"flex-start",children:[M.jsxs(ye,{children:[M.jsx(Ae,{color:"neutral-60",fill:!0,image:"calendar_today"}),M.jsx(Ne,{horizontal:"nano"})]}),M.jsx(ye,{children:M.jsx($t,{className:"news__date",type:"small",children:((d=t[r.currentLogicalIndex])==null?void 0:d.date)&&i(t[r.currentLogicalIndex].date)})})]})}),M.jsx(ye,{children:M.jsx(Le,{className:"news__dots",gap:"nano",children:t.map((o,u)=>M.jsx(ye,{children:M.jsx("button",{"aria-label":`Go to item ${u+1}`,className:`news__dot ${u===r.currentLogicalIndex?"news__dot--active":""}`,"data-testid":`dot-${u}`,onClick:()=>r.goToIndex(u)})},`dot-${r.currentLogicalIndex}-${u}`))})})]})]})]})]})})},I1=({items:t=[],onClick:e,activeItem:r})=>M.jsx("div",{className:"sidebar-menu","data-testid":"sidebar-menu",children:M.jsx("div",{className:"sidebar-menu__list",children:t.map(s=>M.jsx("div",{className:`sidebar-menu__item ${r===s.id?"sidebar-menu__item--active":""}`,"data-testid":`sidebar-item-${s.id}`,onClick:()=>e(s.id),role:"button",tabIndex:0,children:M.jsxs(Le,{alignItems:"center",gap:"xs",children:[M.jsx(ye,{flex:"1",children:M.jsx(bt,{type:"heading-6",testId:`sidebar-item-title-${s.id}`,children:s.attributes.name})}),M.jsx(ye,{children:M.jsx(Ae,{color:r===s.id?"primary":"neutral-40","data-testid":`sidebar-icon-${s.id}`,image:"chevron_right",size:"md"})})]})},s.id))})});at.CategoryCards=Bc,at.News=N1,at.QuestionDetail=O1,at.Questions=P1,at.SidebarMenuList=I1,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"})});