!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ee86bf1c-85b5-4457-858f-0ced1fcbd428",e._sentryDebugIdIdentifier="sentry-dbid-ee86bf1c-85b5-4457-858f-0ced1fcbd428")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6513],{27461:function(e,t){"use strict";function n(){var e,t;return{promise:new Promise(function(n,r){e=n,t=r}),resolve:e,reject:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPromiseResolver=void 0,t.createPromiseResolver=n},13211:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:d(e)?3:0}function u(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function l(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return G&&e instanceof Map}function d(e){return z&&e instanceof Set}function h(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Y(e);delete t[K];for(var n=Z(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,function(e,t){return g(t,!0)},!0)),e}function v(){r(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function m(e){var t=X[e];return t||r(18,e),t}function E(e,t){X[e]||(X[e]=t)}function S(){return U}function O(e,t){t&&(m("Patches"),e.u=[],e.s=[],e.v=t)}function w(e){T(e),e.p.forEach(A),e.p=null}function T(e){e===U&&(U=e.l)}function _(e){return U={p:[],l:U,h:e,m:!0,_:0}}function A(e){var t=e[K];0===t.i||1===t.i?t.j():t.g=!0}function P(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||m("ES5").S(t,e,o),o?(n[K].P&&(w(t),r(4)),i(e)&&(e=I(t,e),t.l||N(t,e)),t.u&&m("Patches").M(n[K].t,e,t.u,t.s)):e=I(t,n,[]),w(t),t.u&&t.v(t.u,t.s),e!==V?e:void 0}function I(e,t,n){if(b(t))return t;var r=t[K];if(!r)return a(t,function(o,i){return R(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return N(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=y(r.k):r.o,i=o,s=!1;3===r.i&&(i=new Set(o),o.clear(),s=!0),a(i,function(t,i){return R(e,r,o,t,i,n,s)}),N(e,o,!1),n&&e.u&&m("Patches").N(r,n,e.u,e.s)}return r.o}function R(e,t,n,r,a,s,c){if(o(a)){var f=I(e,a,s&&t&&3!==t.i&&!u(t.R,r)?s.concat(r):void 0);if(l(n,r,f),!o(f))return;e.m=!1}else c&&n.add(a);if(i(a)&&!b(a)){if(!e.h.D&&e._<1)return;I(e,a),t&&t.A.l||N(e,a)}}function N(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&g(t,n)}function C(e,t){var n=e[K];return(n?h(n):e)[t]}function x(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function L(e){e.P||(e.P=!0,e.l&&L(e.l))}function k(e){e.o||(e.o=y(e.t))}function D(e,t,n){var r=p(t)?m("MapSet").F(t,n):d(t)?m("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:S(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=J;n&&(o=[r],i=Q);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):m("ES5").J(t,n);return(n?n.A:S()).p.push(r),r}function M(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[K],o=s(t);if(r){if(!r.P&&(r.i<4||!m("ES5").K(r)))return r.t;r.I=!0,n=B(t,o),r.I=!1}else n=B(t,o);return a(n,function(t,o){r&&c(r.t,t)===o||l(n,t,e(o))}),3===o?new Set(n):n}(e)}function B(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}function j(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[K];return J.get(t,e)},set:function(t){var n=this[K];J.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][K];if(!o.P)switch(o.i){case 5:r(o)&&L(o);break;case 4:n(o)&&L(o)}}}function n(e){for(var t=e.t,n=e.k,r=Z(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==K){var a=t[i];if(void 0===a&&!u(t,i))return!0;var s=n[i],c=s&&s[K];if(c?c.t!==a:!f(s,a))return!0}}var l=!!t[K];return r.length!==Z(t).length+(l?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=m("Patches").$;return o(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}());ee.produce,ee.produceWithPatches.bind(ee),ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee),ee.createDraft.bind(ee),ee.finishDraft.bind(ee);var et=n(11560),en=n(60874);n(12509);var er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eo=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.init(t,n)}return h(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||I,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function D(e,t,n){var r=k(e,t,Object);r.obj[r.k]=n}function M(e,t,n,r){var o=k(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function B(e,t){var n=k(e,t),r=n.obj,o=n.k;if(r)return r[o]}function j(e,t,n){var r=B(e,n);return void 0!==r?r:B(t,n)}function F(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):F(e[r],t[r],n):e[r]=t[r]);return e}function U(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var H={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function G(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return H[e]}):e}var z="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$=[" ",",","?","!",";"];function V(e,t,n){t=t||"",n=n||"";var r=$.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===r.length)return!0;var o=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;ii+a;)a++,u=o[s=r.slice(i,i+a).join(n)];if(void 0===u)return;if(null===u)return null;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var c=r.slice(i+a).join(n);if(c)return Y(u,c,n);return}o=o[r[i]]}return o}}var X=function(e){v(n,e);var t=q(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return f(this,n),r=t.call(this),z&&N.call(y(r)),r.data=e||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return h(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=B(this.data,a);return s||!i||"string"!=typeof n?s:Y(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),D(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)("string"==typeof n[o]||"[object Array]"===Object.prototype.toString.apply(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);var s=B(this.data,a)||{};r?F(s,n,o):s=K(K({},s),n),D(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?K(K({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(N),J={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}};function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return f(this,n),r=t.call(this),z&&N.call(y(r)),L(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,y(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=R.create("translator"),r}return h(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!V(e,n,r);if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),e=u.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var o=this;if("object"!==(0,l.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,c=s.namespaces,f=c[c.length-1],p=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(d){var h=t.nsSeparator||this.options.nsSeparator;return i?(y.res="".concat(f).concat(h).concat(u),y):"".concat(f).concat(h).concat(u)}return i?(y.res=u,y):u}var y=this.resolve(e,t),g=y&&y.res,v=y&&y.usedKey||u,b=y&&y.exactUsedKey||u,m=Object.prototype.toString.apply(g),E=["[object Number]","[object Function]","[object RegExp]"],S=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(O&&g&&w&&0>E.indexOf(m)&&!("string"==typeof S&&"[object Array]"===m)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,ee(ee({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return i?(y.res=T,y):T}if(a){var _="[object Array]"===m,A=_?[]:{},P=_?b:v;for(var I in g)if(Object.prototype.hasOwnProperty.call(g,I)){var R="".concat(P).concat(a).concat(I);A[I]=this.translate(R,ee(ee({},t),{joinArrays:!1,ns:c})),A[I]===R&&(A[I]=g[I])}g=A}}else if(O&&"string"==typeof S&&"[object Array]"===m)(g=g.join(S))&&(g=this.extendTranslation(g,e,t,r));else{var N=!1,C=!1,x=void 0!==t.count&&"string"!=typeof t.count,L=n.hasDefaultValue(t),k=x?this.pluralResolver.getSuffix(p,t.count,t):"",D=t["defaultValue".concat(k)]||t.defaultValue;!this.isValidLookup(g)&&L&&(N=!0,g=D),this.isValidLookup(g)||(C=!0,g=u);var M=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:g,B=L&&D!==g&&this.options.updateMissing;if(C||N||B){if(this.logger.log(B?"updateKey":"missingKey",p,f,u,B?D:g),a){var j=this.resolve(u,ee(ee({},t),{},{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var H=0;H1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,p=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach(function(e){a.isValidLookup(t)||(i=e,!er["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(er["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(n){if(!a.isValidLookup(t)){o=n;var i,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{f&&(l=a.pluralResolver.getSuffix(n,s.count,s));var l,h="".concat(a.options.pluralSeparator,"zero");if(f&&(u.push(c+l),p&&u.push(c+h)),d){var y="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(y),f&&(u.push(y+l),p&&u.push(y+h))}}for(;i=u.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(N);function ei(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ea=function(){function e(t){f(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=R.create("languageUtils")}return h(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ei(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ei(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ei(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){0>o.indexOf(e)&&i(n.formatLanguageCode(e))}),o}}]),e}(),es=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],eu={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ec=["v1","v2","v3"],el={zero:0,one:1,two:2,few:3,many:4,other:5};function ef(){var e={};return es.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:eu[t.fc]}})}),e}var ep=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.languageUtils=t,this.options=n,this.logger=R.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ef()}return h(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return el[e]-el[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!ec.includes(this.options.compatibilityJSON)}}]),e}();function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),this.logger=R.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return h(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:G,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?U(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?U(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?U(t.nestingPrefix):t.nestingPrefixEscaped||U("$t("),this.nestingSuffix=t.nestingSuffix?U(t.nestingSuffix):t.nestingSuffixEscaped||U(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(0>e.indexOf(s.formatSeparator)){var o=j(t,u,e);return s.alwaysFormat?s.format(o,void 0,n,eh(eh(eh({},r),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(j(t,u,a),c,n,eh(eh(eh({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=l(n))){if("function"==typeof f){var u=f(e,o,r);i="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))i="";else if(p){i=o[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=x(i));var c=t.safeValue(i);if(e=e.replace(o[0],c),p?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=eh({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0];var i=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a=eh(eh({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=l.shift(),u=l,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=x(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce(function(e,t){return o.format(e,t,i.lng,eh(eh({},i),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ev(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&0>o.indexOf(":")?n.currency||(n.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t=e.split(":"),r=_(t),o=r[0],i=r.slice(1),a=i.join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=a),"false"===a&&(n[o.trim()]=!1),"true"===a&&(n[o.trim()]=!0),isNaN(a)||(n[o.trim()]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}}function em(e){var t={};return function(n,r,o){var i=r+JSON.stringify(o),a=t[i];return a||(a=e(r,o),t[i]=a),a(n)}}var eE=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),this.logger=R.create("formatter"),this.options=t,this.formats={number:em(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:em(function(e,t){var n=new Intl.NumberFormat(e,ev(ev({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:em(function(e,t){var n=new Intl.DateTimeFormat(e,ev({},t));return function(e){return n.format(e)}}),relativetime:em(function(e,t){var n=new Intl.RelativeTimeFormat(e,ev({},t));return function(e){return n.format(e,t.range||"day")}}),list:em(function(e,t){var n=new Intl.ListFormat(e,ev({},t));return function(e){return n.format(e)}})},this.init(t)}return h(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=em(t)}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=eb(t),a=i.formatName,s=i.formatOptions;if(o.formats[a]){var u=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=c.locale||c.lng||r.locale||r.lng||n;u=o.formats[a](e,l,ev(ev(ev({},s),r),c))}catch(e){o.logger.warn(e)}return u}return o.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function eS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eO(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return f(this,n),i=t.call(this),z&&N.call(y(i)),i.backend=e,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=R.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return h(n,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i={},a={},s={},u={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===u[t]&&(u[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){M(n.loaded,[o],i),e_(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:a});return}return this.readingCalls++,this.backend[n](e,t,function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(s&&u&&o2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,eO(eO({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(N);function eP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,l.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,l.Z)(e[2])||"object"===(0,l.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function eI(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eN(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(f(this,n),e=t.call(this),z&&N.call(y(e)),e.options=eI(r),e.services={},e.logger=R,e.modules={external:[]},ek(y(e)),o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),b(e,y(e));setTimeout(function(){e.init(r,o)},0)}return e}return h(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var r=eP();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=eN(eN(eN({},r),this.options),eI(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=eN(eN({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?R.init(o(this.modules.logger),this.options):R.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=eE);var i,a=new ea(this.options);this.store=new X(this.options.resources,this.options);var s=this.services;s.logger=R,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new ep(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ey(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new eA(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=C(),l=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eL,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){if(e){var n=t.services.languageUtils.toResolveHierarchy(e);n.forEach(function(e){0>i.indexOf(e)&&i.push(e)})}};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)})}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=C();return e||(e=this.languages),t||(t=this.options.ns),n||(n=eL),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&J.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=C();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||o(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(e){i(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){if("object"!==(0,l.Z)(o)){for(var i,a=arguments.length,s=Array(a>2?a-2:0),u=2;u1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=C();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=C();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return 0>r.indexOf(e)});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eL,o=eN(eN(eN({},this.options),t),{isClone:!0}),i=new n(o);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=eN({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new eo(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eD(e,t)});var eM=eD.createInstance();eM.createInstance=eD.createInstance,eM.createInstance,eM.init,eM.loadResources,eM.reloadResources,eM.use,eM.changeLanguage,eM.getFixedT,eM.t,eM.exists,eM.setDefaultNamespace,eM.hasLoadedNamespace,eM.loadNamespaces,eM.loadLanguages;var eB=eM;function ej(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function eF(e,t,n){var r=ej(e,t,Object);r.obj[r.k]=n}function eU(e,t){var n=ej(e,t),r=n.obj,o=n.k;if(r)return r[o]}var eH=[],eG=eH.forEach,ez=eH.slice;function e$(e){return eG.call(ez.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}var eV=n(15767);function eW(e){return e.type===o.literal}function eK(e){return e.type===o.argument}function eq(e){return e.type===o.number}function eZ(e){return e.type===o.date}function eY(e){return e.type===o.time}function eX(e){return e.type===o.select}function eJ(e){return e.type===o.plural}function eQ(e){return e.type===o.pound}function e0(e){return e.type===o.tag}function e1(e){return!!(e&&"object"==typeof e&&e.type===i.number)}function e2(e){return!!(e&&"object"==typeof e&&e.type===i.dateTime)}(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(r||(r={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(o||(o={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}));var e5=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,e6=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function e4(e){var t={};return e.replace(e6,function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var e3=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function e8(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(e3).filter(function(e){return e.length>0}),n=[],r=0,o=t;r1)throw RangeError("integer-width stems only accept a single optional option");o.options[0].replace(tt,function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else if(o&&i)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(tn.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(e9.test(o.stem)){if(o.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(e9,function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=o.options[0];"w"===i?t=(0,eV.__assign)((0,eV.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,eV.__assign)((0,eV.__assign)({},t),tr(i)));continue}if(te.test(o.stem)){t=(0,eV.__assign)((0,eV.__assign)({},t),tr(o.stem));continue}var a=to(o.stem);a&&(t=(0,eV.__assign)((0,eV.__assign)({},t),a));var s=ti(o.stem);s&&(t=(0,eV.__assign)((0,eV.__assign)({},t),s))}return t}var tu={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function tc(e,t){for(var n="",r=0;r>1),u="a",c=tl(t);for(("H"==c||"k"==c)&&(s=0);s-- >0;)n+=u;for(;a-- >0;)n=c+n}else"J"===o?n+="H":n+=o}return n}function tl(e){var t,n=e.hourCycle;if(void 0===n&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=e.language;return"root"!==r&&(t=e.maximize().region),(tu[t||""]||tu[r||""]||tu["".concat(r,"-001")]||tu["001"])[0]}var tf=new RegExp("^".concat(e5.source,"*")),tp=new RegExp("".concat(e5.source,"*$"));function td(e,t){return{start:e,end:t}}var th=!!String.prototype.startsWith,ty=!!String.fromCodePoint,tg=!!Object.fromEntries,tv=!!String.prototype.codePointAt,tb=!!String.prototype.trimStart,tm=!!String.prototype.trimEnd,tE=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},tS=!0;try{var tO=tR("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tS=(null===(a=tO.exec("a"))||void 0===a?void 0:a[0])==="a"}catch(e){tS=!1}var tw=th?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},tT=ty?String.fromCodePoint:function(){for(var e,t=[],n=0;ni;){if((e=t[i++])>1114111)throw RangeError(e+" is not a valid code point");r+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return r},t_=tg?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=r)){var o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},tP=tb?function(e){return e.trimStart()}:function(e){return e.replace(tf,"")},tI=tm?function(e){return e.trimEnd()}:function(e){return e.replace(tp,"")};function tR(e,t){return new RegExp(e,t)}if(tS){var tN=tR("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");s=function(e,t){var n;return tN.lastIndex=t,null!==(n=tN.exec(e)[1])&&void 0!==n?n:""}}else s=function(e,t){for(var n=[];;){var r=tA(e,t);if(void 0===r||tD(r)||tM(r))break;n.push(r),t+=r>=65536?2:1}return tT.apply(void 0,n)};var tC=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){var s=this.parseArgument(e,n);if(s.err)return s;i.push(s.val)}else if(125===a&&e>0)break;else if(35===a&&("plural"===t||"selectordinal"===t)){var u=this.clonePosition();this.bump(),i.push({type:o.pound,location:td(u,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek()){if(60===a&&!this.ignoreTag&&tx(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;i.push(s.val)}}else{if(!n)return this.error(r.UNMATCHED_CLOSING_TAG,td(this.clonePosition(),this.clonePosition()));break}}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(i,"/>"),location:td(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(r.INVALID_TAG,td(n,this.clonePosition()));var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,u=this.clonePosition();if(!this.bumpIf(""))?{val:{type:o.tag,value:i,children:s,location:td(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,td(u,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&tk(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var u=td(n,this.clonePosition());return{val:{type:o.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&tL(this.peek()||0)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return tT.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),tT(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,td(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,td(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(r.MALFORMED_ARGUMENT,td(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,td(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:td(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,td(n,this.clonePosition()));return this.parseArgumentOptions(e,t,i,n);default:return this.error(r.MALFORMED_ARGUMENT,td(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=s(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:td(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,a){var s,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(c){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,td(u,l));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=tI(d.val);if(0===h.length)return this.error(r.EXPECT_ARGUMENT_STYLE,td(this.clonePosition(),this.clonePosition()));f={style:h,styleLocation:td(p,this.clonePosition())}}var y=this.tryParseArgumentClose(a);if(y.err)return y;var g=td(a,this.clonePosition());if(f&&tw(null==f?void 0:f.style,"::",0)){var v=tP(f.style.slice(2));if("number"===c){var d=this.parseNumberSkeletonFromString(v,f.styleLocation);if(d.err)return d;return{val:{type:o.number,value:n,location:g,style:d.val},err:null}}if(0===v.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,g);var b=v;this.locale&&(b=tc(v,this.locale));var h={type:i.dateTime,pattern:b,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?e4(b):{}};return{val:{type:"date"===c?o.date:o.time,value:n,location:g,style:h},err:null}}return{val:{type:"number"===c?o.number:"date"===c?o.date:o.time,value:n,location:g,style:null!==(s=null==f?void 0:f.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,td(m,(0,eV.__assign)({},m)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),S=0;if("select"!==c&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,td(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),E=this.parseIdentifierIfPossible(),S=d.val}var O=this.tryParsePluralOrSelectOptions(e,c,t,E);if(O.err)return O;var y=this.tryParseArgumentClose(a);if(y.err)return y;var w=td(a,this.clonePosition());if("select"===c)return{val:{type:o.select,value:n,options:t_(O.val),location:w},err:null};return{val:{type:o.plural,value:n,options:t_(O.val),offset:S,pluralType:"plural"===c?"cardinal":"ordinal",location:w},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,td(u,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,td(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,td(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=e8(e)}catch(e){return this.error(r.INVALID_NUMBER_SKELETON,t)}return{val:{type:i.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ts(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,o){for(var i,a=!1,s=[],u=new Set,c=o.value,l=o.location;;){if(0===c.length){var f=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_SELECTOR,r.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;l=td(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(u.has(c))return this.error("select"===t?r.DUPLICATE_SELECT_ARGUMENT_SELECTOR:r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,td(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var y=this.tryParseArgumentClose(d);if(y.err)return y;s.push([c,{value:h.val,location:td(d,this.clonePosition())}]),u.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR:r.EXPECT_PLURAL_ARGUMENT_SELECTOR,td(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(r.MISSING_OTHER_CLAUSE,td(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,i=10*i+(a-48),this.bump();else break}var s=td(r,this.clonePosition());return o?tE(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=tA(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(tw(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&tD(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function tx(e){return e>=97&&e<=122||e>=65&&e<=90}function tL(e){return tx(e)||47===e}function tk(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function tD(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function tM(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function tB(e){e.forEach(function(e){if(delete e.location,eX(e)||eJ(e))for(var t in e.options)delete e.options[t].location,tB(e.options[t].value);else eq(e)&&e1(e.style)?delete e.style.location:(eZ(e)||eY(e))&&e2(e.style)?delete e.style.location:e0(e)&&tB(e.children)})}function tj(e,t){void 0===t&&(t={});var n=new tC(e,t=(0,eV.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var o=SyntaxError(r[n.err.kind]);throw o.location=n.err.location,o.originalMessage=n.err.message,o}return(null==t?void 0:t.captureLocation)||tB(n.val),n.val}function tF(e,t){var n=t&&t.cache?t.cache:tq,r=t&&t.serializer?t.serializer:tW;return(t&&t.strategy?t.strategy:t$)(e,{cache:n,serializer:r})}function tU(e){return null==e||"number"==typeof e||"boolean"==typeof e}function tH(e,t,n,r){var o=tU(r)?r:n(r),i=t.get(o);return void 0===i&&(i=e.call(this,r),t.set(o,i)),i}function tG(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function tz(e,t,n,r,o){return n.bind(t,e,r,o)}function t$(e,t){var n=1===e.length?tH:tG;return tz(e,this,n,t.cache.create(),t.serializer)}function tV(e,t){return tz(e,this,tG,t.cache.create(),t.serializer)}var tW=function(){return JSON.stringify(arguments)};function tK(){this.cache=Object.create(null)}tK.prototype.get=function(e){return this.cache[e]},tK.prototype.set=function(e,t){this.cache[e]=t};var tq={create:function(){return new tK}},tZ=tV;!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(u||(u={}));var tY=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return(0,eV.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),tX=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),u.INVALID_VALUE,o)||this}return(0,eV.__extends)(t,e),t}(tY),tJ=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),u.INVALID_VALUE,r)||this}return(0,eV.__extends)(t,e),t}(tY),tQ=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),u.MISSING_VALUE,n)||this}return(0,eV.__extends)(t,e),t}(tY);function t0(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===c.literal&&t.type===c.literal?n.value+=t.value:e.push(t),e},[])}function t1(e){return"function"==typeof e}function t2(e,t,n,r,o,i,a){if(1===e.length&&eW(e[0]))return[{type:c.literal,value:e[0].value}];for(var s=[],l=0,f=e;l0?t[0]:"string"==typeof e?e:e[0])},e.__parse=tj,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function t7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t9(e){for(var t=1;te+1,1),n=nh(),r=(0,nf.useContext)(ng),o=nu,[i,a]=nf.useMemo(()=>{let e=r.cloneInstance();return e.changeLanguage(n),[e,e.loadNamespaces(o)]},[r,n,o]),s=!i.hasResourceBundle(n,o);return nf.useEffect(()=>{s&&a.then(t)},[s,a]),(0,nf.useMemo)(()=>nb(i,s,a),[i,s,a])}function nb(e,t,n){let r=e.t.bind(e);function o(e,t,n,o={}){return r(e,t,o)}return o.read=function(){if(t)throw n;return o},o}nb(ny,!1,Promise.resolve())},37668:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InternalSocketCode=void 0,function(e){e[e.CLOSE=4e3]="CLOSE",e[e.TIMEOUT=4001]="TIMEOUT"}(n=t.InternalSocketCode||(t.InternalSocketCode={}))},45316:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PluginEvent=void 0,function(e){e.TRANSPORT_AUTHENTICATE="transport_authenticate",e.TRANSPORT_AUTHENTICATE_FAILED="transport_authenticate_failed",e.TRANSPORT_CONNECT="transport_connect",e.TRANSPORT_DISCONNECT="transport_disconnect",e.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",e.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",e.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",e.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",e.TRANSPORT_REQUEST="transport_request",e.PLUGIN_CONNECTION_INFO="plugin_connection_info",e.PLUGIN_DISCONNECTED="plugin_disconnected",e.PLUGIN_MESSAGE="plugin_message",e.PLUGIN_REQUEST="plugin_request",e.PLUGIN_ERROR="plugin_error"}(n=t.PluginEvent||(t.PluginEvent={}))},28546:function(e,t,n){"use strict";var r=n(91620).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Dealer=void 0;var o=n(15767),i=n(35210),a=n(27461),s=n(71186),u=n(37668),c=n(97776),l=n(32644),f=function(){},p=/hm:\/\/pusher\/(?:[^]+)?\/connections\/([^]+)/,d=3e4,h=1e4,y="undefined"!=typeof window,g=function(e){function t(t){var n=e.call(this)||this;return n._socket=null,n._lastPingDeferred=null,n._waitingForConnectionId=!0,n._connectionId=null,n._connectionURI=null,n._heartbeatToken=0,n._heartbeatTimeoutToken=0,n._connected=!1,n._endpoint=null,n._closeBeforeEventsRejector=null,n._WebSocket=t.WebSocket||WebSocket,n._heartbeatTimeout=t.heartbeatTimeout||h,n}return o.__extends(t,e),t.create=function(e){return new t(e)},t.prototype._startHeartbeat=function(e){var t=this,n=function(){t.ping().then(function(){return t._onHeartbeatSuccess()},function(){return t._onHeartbeatError()}),t._heartbeatTimeoutToken=setTimeout(function(){return t._onHeartbeatError()},t._heartbeatTimeout)};e?n():this._heartbeatToken=setTimeout(function(){return n()},d)},t.prototype._onHeartbeatError=function(){this._stopHeartbeat(),this._socket&&this._socket.close(u.InternalSocketCode.TIMEOUT,"internal-timeout")},t.prototype._onHeartbeatSuccess=function(){this._stopHeartbeat(),this._startHeartbeat()},t.prototype._stopHeartbeat=function(){null!==this._heartbeatToken&&clearTimeout(this._heartbeatToken),null!==this._heartbeatTimeoutToken&&clearTimeout(this._heartbeatTimeoutToken)},t.prototype._prepareConnectionId=function(e){if(!e.uri)return!1;var t,n,r=(null!==(t=e.uri.match(p))&&void 0!==t?t:[])[1];return!!r&&(n=e.headers&&e.headers["Spotify-Connection-Id"]?e.headers["Spotify-Connection-Id"]:decodeURIComponent(r),this._connectionId=n,this._connectionURI=e.uri,this.emit(l.DealerEvent.CONNECTION_ID,{id:n,uri:e.uri}),!0)},t.prototype._reply=function(e,t){if(!e)throw TypeError("Invalid key.");var n=this._socket;if(n&&1===n.readyState){var r={type:"reply",key:e,payload:t};n.send(JSON.stringify(r))}},t.prototype._parseMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){return}if("message"===t.type)this._waitingForConnectionId&&this._prepareConnectionId(t)?(this._waitingForConnectionId=!1,this._startHeartbeat(!0)):this.emit(l.DealerEvent.MESSAGE,{message:t});else if("pong"===t.type&&this._lastPingDeferred)this._lastPingDeferred.resolve(!0),this._lastPingDeferred=null;else if("request"===t.type){var n=t.key;n&&this.emit(l.DealerEvent.REQUEST,{request:t,reply:this._reply.bind(this,n)})}},t.prototype._handleOpen=function(e){e.resolve(!0),this._connected=!0,this.emit(l.DealerEvent.AUTHENTICATED,null)},t.prototype._handleMessage=function(e){var t=this,n=e.data;if(y&&window.Blob&&n instanceof window.Blob){var o=new FileReader;o.onloadend=function(){if(this.result){if(this.result instanceof ArrayBuffer){e="";for(var e,n=new Uint8Array(this.result),r=0;r1&&(t+="&");let r=e[n];void 0!==r&&(t+=`${n}=${encodeURIComponent(r)}`)}return t}let ez=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;function e$(e){return ez.test(e)}let eV=()=>{let e={};return[(t,n)=>{e[t]||(e[t]=n)},e]},eW=()=>{let e={};return[(t,n)=>{e[t]||(e[t]=n)},e]},[eK,eq]=eV();eK(r.PLAYLIST,(e,t,{username:n})=>es(n,e.getBase62IdComponent())),eK(r.FOLDER,(e,t,{username:n})=>H(n,e.getIdComponent())),eK(r.COLLECTION_TRACK_LIST,(e,t,{username:n})=>N(n,e.getIdComponent())),eK(r.COLLECTION,(e,t,{username:n})=>{let o=e.getNextComponent();if(o===r.ALBUM){let t=e.getIdComponent();return"missing"===e.getNextComponent()?R(n,t):P(n,t)}return o===r.ARTIST?I(n,e.getIdComponent()):S(n,o)}),eK(r.STARRED,(e,t,{username:n})=>eb(n)),eK(r.FOLLOWERS,(e,t,{username:n})=>G(n)),eK(r.FOLLOWING,(e,t,{username:n})=>z(n)),eK(p.TOP,(e,t,{username:n})=>eA(n,e.getNextRequiredComponent())),eK(r.INBOX,(e,t,{username:n})=>V(n)),eK(r.ROOTLIST,(e,t,{username:n})=>ed(n)),eK(r.PUBLISHED_ROOTLIST,(e,t,{username:n})=>ef(n)),eK(r.TOPLIST,(e,t,{username:n})=>eP(n)),eK(r.LIBRARY,(e,t,{username:n})=>q(n,e.getNextComponent()));let[eZ,eY]=eV();function eX(e){return e.split("&").reduce((e,t)=>{let[n,r]=t.split("=");return n&&r&&(e[n]=decodeURIComponent(r)),e},{})}function eJ(e){let t,n,r,i;let p=e,[d,h]=p.split("?");if(d&&h){p=d;let[e,t]=h.split("#");e&&(r=eX(e),i=t)}let y=p.split("#");if(y.length>1&&(p=y.shift(),i=y.pop()),0===p.indexOf(a))t=p.slice(a.length).split(":"),n=o.URI;else{let[e]=p.split("?");if((null==e?void 0:e.indexOf(s))===0)t=e.slice(s.length).split("/");else if((null==e?void 0:e.indexOf(u))===0)t=e.slice(u.length).split("/");else if((null==e?void 0:e.indexOf(c))===0)t=e.slice(c.length).split("/");else if((null==e?void 0:e.indexOf(l))===0)t=e.slice(l.length).split("/");else if((null==e?void 0:e.indexOf(f))===0)t=e.slice(f.length).split("/");else throw TypeError("Invalid Spotify URI!");n=o.URL}return i&&t.push(i),{format:n,components:t,query:r}}function eQ(e,t,n,i){let a=0,s=()=>{let t=e[a++];if(t&&/\s/.test(t))throw TypeError("Invalid Spotify URI!");return t},u=()=>{let e=s();if(!e)throw TypeError("Invalid Spotify URI!");return e},c=()=>{let e=u();if(e.length>22)throw TypeError("Invalid Spotify URI!");return e},l=e=>{let t=u();if(t.length!==e)throw TypeError("Invalid Spotify URI!");if(!/^[a-fA-F0-9]+$/.test(t))throw Error("Invalid Hex ID");return t},f=()=>{let e=u();if(22!==e.length)throw TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(e))throw Error("Invalid ID");return e},p={getAllComponents:()=>e,getQueryParams:()=>n,getNextComponent:s,getNextRequiredComponent:u,getIdComponent:c,getHexIdComponent:l,getBase62IdComponent:f,getRemainingComponents:()=>e.slice(a),getRemainingString:()=>{let n=t===o.URI?":":"/";return e.slice(a).join(n)}},d=u(),h=eY[d];if(!h&&e$(d)&&(h=eY[d=u()]),h)return h(p,t,{});if(i)return eY[r.UNKNOWN](p,t,{});throw TypeError("Invalid or unknown Spotify URI!")}function e0(e,t){let n=eJ(e);return eQ(n.components,n.format,n.query,t)}eZ(r.ALBUM,e=>{let t=e.getBase62IdComponent(),n=e.getNextComponent();return h(t,n?parseInt(n,10):void 0)}),eZ(p.APP,(e,t)=>{let n=e.getNextRequiredComponent();if(eF(eH(n,t),t)!==n)throw TypeError("Invalid or unknown Spotify URI!");let r=e.getRemainingComponents();for(let e=0,n=r.length;ed(e.getNextRequiredComponent())),eZ(r.ARTIST,e=>{let t=e.getBase62IdComponent(),n=e.getNextComponent();return n===p.TOP?v(t,e.getNextRequiredComponent()):n===p.CONCERTS?b(t):g(t)}),eZ(r.AUDIO,e=>m(e.getIdComponent())),eZ(r.AUDIO_FILE,e=>E(e.getNextRequiredComponent(),e.getNextRequiredComponent())),eZ(r.DAILY_MIX,e=>B(e.getIdComponent())),eZ(r.TEMP_PLAYLIST,e=>eS(e.getNextRequiredComponent(),e.getRemainingString())),eZ(r.PLAYLIST,e=>eu(e.getBase62IdComponent())),eZ(r.SEARCH,(e,t)=>eh(eH(e.getRemainingString(),t))),eZ(r.TRACK,e=>{let t=e.getQueryParams();return eT(e.getBase62IdComponent(),e.getNextComponent(),null==t?void 0:t.context,null==t?void 0:t.play)}),eZ(r.TRACKSET,e=>{var t;let n=eH(e.getNextComponent()),r=e.getNextRequiredComponent(),o=e.getNextComponent(),i=parseInt(null!==(t=e.getNextComponent())&&void 0!==t?t:"",10);("%23"!==o||isNaN(i))&&(i=null);let a=[];if(r){r=eH(r).split(",");for(let e=0,t=r.length;ek(e.getNextRequiredComponent(),e.getNextRequiredComponent())),eZ(p.TOP,e=>{let t=e.getNextRequiredComponent();return e.getNextComponent()===p.GLOBAL?eO(t,void 0,!0):eO(t,e.getNextComponent(),!1)}),eZ(r.LOCAL_TRACK,(e,t)=>{let n=eH(e.getNextComponent(),t),r=e.getNextComponent(),o=eH(r,t),i=e.getNextComponent(),a=eH(i,t),s=e.getNextComponent(),u=s?parseInt(s,10):void 0;return void 0!==i?et(n,o,a,u):void 0!==r?en(n,o):er(n)}),eZ(r.IMAGE,e=>$(e.getHexIdComponent(40))),eZ(r.MOSAIC,e=>ea(e.getRemainingComponents())),eZ(r.RADIO,e=>ep(e.getRemainingString())),eZ(r.S4A_THIRD_PARTY,e=>eB(e.getBase62IdComponent())),eZ(r.SPECIAL,(e,t)=>{let n=e.getRemainingComponents();for(let e=0,r=n.length;eem(e.getRemainingComponents())),eZ(r.EPISODE,e=>{let t=e.getQueryParams();return j(e.getBase62IdComponent(),null==t?void 0:t.context,null==t?void 0:t.play)}),eZ(r.SHOW,e=>ey(e.getBase62IdComponent())),eZ(r.LIVE,e=>Z(e.getIdComponent())),eZ(r.ROOM,e=>Y(e.getIdComponent())),eZ(r.EXPRESSION,e=>X(e.getIdComponent())),eZ(r.CONCEPT,e=>x(e.getIdComponent())),eZ(r.CONCERT,e=>L(e.getIdComponent())),eZ(r.MERCH,e=>eo(e.getIdComponent())),eZ(r.MERCHHUB,()=>ei()),eZ(r.PRERELEASE,e=>ec(e.getIdComponent())),eZ(r.SOCIAL_SESSION,e=>eg(e.getNextRequiredComponent())),eZ(r.JAM,e=>{let[t,n,o,i]=e.getAllComponents();return n===r.ALBUM||n===r.ARTIST||n===r.PLAYLIST?K(o,n,!!i):K("")}),eZ(r.INTERRUPTION,e=>W(e.getNextRequiredComponent())),eZ(r.COLLECTION,e=>S(void 0,e.getNextComponent())),eZ(r.GENRE,e=>O(e.getNextRequiredComponent())),eZ(r.QUEUE,()=>w()),eZ(p.USER,(e,t)=>{let n=eH(e.getNextRequiredComponent(),t),o=e.getNextComponent();if(n===r.FACEBOOK&&o)return F(o);if(o&&eq[o]){let r=eq[o];if(!r)throw TypeError("Invalid Spotify URI!");return r(e,t,{username:n})}let i=e.getRemainingComponents();return el(n,o?[o].concat(i):void 0)}),eZ(r.UNKNOWN,e=>ej(e.getAllComponents())),eZ(r.MEDIA,e=>eI(e.getIdComponent())),eZ(r.POLL,e=>Q(e.getIdComponent())),eZ(r.QUESTION,e=>J(e.getIdComponent())),eZ(r.RESPONSE,e=>ee(e.getIdComponent())),eZ(r.CONTRIBUTOR,e=>D(e.getIdComponent())),eZ(r.CULTURAL_MOMENT,e=>{if(e.getNextComponent()!==p.HUB)throw TypeError("Invalid or unknown Spotify URI!");return M(e.getIdComponent())}),eZ(r.FESTIVAL,e=>U(e.getIdComponent())),eZ(r.TOUR,e=>ew(e.getIdComponent())),eZ(r.VENUE,e=>eR(e.getIdComponent())),eZ(r.VIDEO,e=>eN(e.getIdComponent())),eZ(r.CACHED_FILES,()=>T()),eZ(r.CANVAS,e=>_(e.getIdComponent())),eZ(r.CHAT_MESSAGE,e=>A(e.getIdComponent())),eZ(r.COURSE,e=>eC(e.getIdComponent())),eZ(r.LESSON,e=>ex(e.getIdComponent())),eZ(r.PROMOTER,e=>eL(e.getIdComponent())),eZ(r.COMMENT,e=>C(e.getIdComponent())),eZ(r.PROMOTION,e=>ek(e.getIdComponent())),eZ(r.SITE,e=>eD(e.getIdComponent())),eZ(r.SUPPLEMENTARY_MATERIAL,e=>eE(e.getIdComponent())),eZ(r.PRESENTS,e=>eM(e.getIdComponent()));let[e1,e2]=eW();function e5(e,t){let n=e2[e.type];if(!n)throw TypeError("Invalid Spotify URI!");return n(e,t)}e1(r.ALBUM,e=>{let t=[r.ALBUM,e.id];return e.disc&&t.push(e.disc),t}),e1(r.AD,e=>[r.AD,e.id]),e1(r.ARTIST,e=>[r.ARTIST,e.id]),e1(r.QUEUE,()=>[r.QUEUE]),e1(r.GENRE,e=>[r.GENRE,e.genre]),e1(r.ARTIST_TOPLIST,e=>[r.ARTIST,e.id,p.TOP,e.toplist]),e1(r.ARTIST_CONCERTS,e=>[r.ARTIST,e.id,p.CONCERTS]),e1(r.DAILY_MIX,e=>[r.DAILY_MIX,e.id]),e1(r.SEARCH,(e,t)=>[r.SEARCH,eF(e.query,t)]),e1(r.TRACK,e=>{let t=e.id;return(e.context||e.play)&&(t+=eG({context:e.context,play:e.play})),e.anchor&&(t+=`#${e.anchor}`),[r.TRACK,t]}),e1(r.TRACKSET,e=>{let t=[];if(e.tracks)for(let n=0,r=e.tracks.length;n[p.USER,r.FACEBOOK,e.uid]),e1(r.AUDIO_FILE,e=>[r.AUDIO_FILE,e.extension,e.id]),e1(r.FOLDER,(e,t)=>[p.USER,eF(e.username,t),r.FOLDER,e.id]),e1(r.FOLLOWERS,(e,t)=>[p.USER,eF(e.username,t),r.FOLLOWERS]),e1(r.FOLLOWING,(e,t)=>[p.USER,eF(e.username,t),r.FOLLOWING]),e1(r.PLAYLIST,(e,t)=>[p.USER,eF(e.username,t),r.PLAYLIST,e.id]),e1(r.PLAYLIST_V2,e=>[r.PLAYLIST,e.id]),e1(r.STARRED,(e,t)=>[p.USER,eF(e.username,t),r.STARRED]),e1(r.TEMP_PLAYLIST,e=>[r.TEMP_PLAYLIST,e.origin,e.data]),e1(r.CONTEXT_GROUP,e=>[r.CONTEXT_GROUP,e.origin,e.name]),e1(r.USER_TOPLIST,(e,t)=>[p.USER,eF(e.username,t),p.TOP,e.toplist]),e1(r.USER_TOP_TRACKS,(e,t)=>[p.USER,eF(e.username,t),r.TOPLIST]),e1(r.TOPLIST,e=>[p.TOP,e.toplist].concat(e.global||!e.country?[p.GLOBAL]:["country",e.country])),e1(r.INBOX,(e,t)=>[p.USER,eF(e.username,t),r.INBOX]),e1(r.ROOTLIST,(e,t)=>[p.USER,eF(e.username,t),r.ROOTLIST]),e1(r.PUBLISHED_ROOTLIST,(e,t)=>[p.USER,eF(e.username,t),r.PUBLISHED_ROOTLIST]),e1(r.COLLECTION_TRACK_LIST,(e,t)=>[p.USER,eF(e.username,t),r.COLLECTION_TRACK_LIST,e.id]),e1(r.PROFILE,(e,t)=>e.args&&e.args.length>0?[p.USER,eF(e.username,t)].concat(e.args):[p.USER,eF(e.username,t)]),e1(r.LOCAL_ARTIST,(e,t)=>[r.LOCAL_TRACK,eF(e.artist,t)]),e1(r.LOCAL_ALBUM,(e,t)=>[r.LOCAL_TRACK,eF(e.artist,t),eF(e.album,t)]),e1(r.LOCAL_TRACK,(e,t)=>[r.LOCAL_TRACK,eF(e.artist,t),eF(e.album,t),eF(e.track,t),e.duration]),e1(r.LIBRARY,(e,t)=>[p.USER,eF(e.username,t),r.LIBRARY].concat(e.category?[e.category]:[])),e1(r.IMAGE,e=>[r.IMAGE,e.id]),e1(r.MOSAIC,e=>{let t=[];return e.ids&&(t=e.ids.slice(0)),t.unshift(r.MOSAIC),t}),e1(r.RADIO,(e,t)=>eU(e.args,t,[r.RADIO])),e1(r.SPECIAL,(e,t)=>eU(e.args,t,[r.SPECIAL])),e1(r.STATION,(e,t)=>eU(e.args,t,[r.STATION])),e1(r.APPLICATION,(e,t)=>eU(e.args,t,[p.APP,e.id])),e1(r.COLLECTION_ALBUM,(e,t)=>[p.USER,eF(e.username,t),r.COLLECTION,r.ALBUM,e.id]),e1(r.COLLECTION_MISSING_ALBUM,(e,t)=>[p.USER,eF(e.username,t),r.COLLECTION,r.ALBUM,e.id,"missing"]),e1(r.COLLECTION_ARTIST,(e,t)=>[p.USER,eF(e.username,t),r.COLLECTION,r.ARTIST,e.id]),e1(r.COLLECTION,(e,t)=>{let n=[r.COLLECTION].concat(e.category?[e.category]:[]);return e.username?[p.USER,eF(e.username,t)].concat(n):n}),e1(r.COMMENT,e=>[r.COMMENT,e.id]),e1(r.EPISODE,e=>{let t=e.id;return(e.context||e.play)&&(t+=eG({context:e.context,play:e.play})),[r.EPISODE,t]}),e1(r.SHOW,e=>[r.SHOW,e.id]),e1(r.LIVE,e=>[r.LIVE,e.id]),e1(r.ROOM,e=>[r.ROOM,e.id]),e1(r.EXPRESSION,e=>[r.EXPRESSION,e.id]),e1(r.CONCEPT,e=>[r.CONCEPT,e.id]),e1(r.CONCERT,e=>[r.CONCERT,e.id]),e1(r.SOCIAL_SESSION,e=>[r.SOCIAL_SESSION,e.id]),e1(r.JAM,e=>{let t=[r.JAM];return e.contextType&&e.id&&t.push(e.contextType,e.id),e.play&&t.push("play"),t}),e1(r.INTERRUPTION,e=>[r.INTERRUPTION,e.id]),e1(r.MERCH,e=>[r.MERCH,e.id]),e1(r.MERCHHUB,()=>[r.MERCHHUB]),e1(r.PRERELEASE,e=>[r.PRERELEASE,e.id]),e1(r.UNKNOWN,(e,t)=>eU(e.args,t)),e1(r.MEDIA,e=>[r.MEDIA,e.id]),e1(r.POLL,e=>[r.POLL,e.id]),e1(r.QUESTION,e=>[r.QUESTION,e.id]),e1(r.RESPONSE,e=>[r.RESPONSE,e.id]),e1(r.FESTIVAL,e=>[r.FESTIVAL,e.id]),e1(r.TOUR,e=>[r.TOUR,e.id]),e1(r.CONTRIBUTOR,e=>[r.CONTRIBUTOR,e.id]),e1(r.CULTURAL_MOMENT,e=>[r.CULTURAL_MOMENT,p.HUB,e.id]),e1(r.VENUE,e=>[r.VENUE,e.id]),e1(r.VIDEO,e=>[r.VIDEO,e.id]),e1(r.CACHED_FILES,()=>[r.CACHED_FILES]),e1(r.CANVAS,e=>[r.CANVAS,e.id]),e1(r.CHAT_MESSAGE,e=>[r.CHAT_MESSAGE,e.id]),e1(r.COURSE,e=>[r.COURSE,e.id]),e1(r.LESSON,e=>[r.LESSON,e.id]),e1(r.PROMOTER,e=>[r.PROMOTER,e.id]),e1(r.PROMOTION,e=>[r.PROMOTION,e.id]),e1(r.SITE,e=>[r.SITE,e.id]),e1(r.PRESENTS,e=>[r.PRESENTS,e.id]),e1(r.S4A_THIRD_PARTY,e=>[r.S4A_THIRD_PARTY,e.id]),e1(r.SUPPLEMENTARY_MATERIAL,e=>[r.SUPPLEMENTARY_MATERIAL,e.id]),e1(r.AUDIO,e=>[r.AUDIO,e.id]);let e6="0123456789abcdef",e4="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",e3=[];e3.length=256;for(let e=0;e<256;e++)e3[e]=e6[e>>4]+e6[15&e];let e8=[];e8.length=128;for(let e=0;e{Object.assign(e,t)}:(e,t)=>{for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};class tt{constructor(e,t={}){this.type=e,this.hasBase62Id=!!t.hasBase62Id,te(this,t)}toURI(){let e=e5(this,o.URI);return`spotify:${e.join(":")}`}toString(){return this.toURI()}toURLPath(e=!1){let t=e5(this,o.URL);t[0]===p.APP&&t.shift();let n=t[0]===r.TRACKSET,i=t[0]===r.LOCAL_TRACK;if(!n&&!i){let e=[];for(let n=0,r=t.length;n{var t;return(null===(t=to(e))||void 0===t?void 0:t.type)===r.EPISODE},ta=e=>{var t;return(null===(t=to(e))||void 0===t?void 0:t.type)===r.LOCAL_TRACK},ts=e=>{var t;return(null===(t=to(e))||void 0===t?void 0:t.type)===r.TRACK}},52353:function(e,t,n){"use strict";n.d(t,{Id:function(){return h}});var r,o,i=n(75271);let a="en",s=a,u=["en","es"];function c(){if("undefined"!=typeof window){let e=document.documentElement.lang,t=l(d());s=p(e||t)}return s}function l(e){return e.find(f)||a}function f(e){return u.includes(e)}function p(e){return document.documentElement.lang=e,e}function d(){return navigator.languages.map(e=>new Intl.Locale(e).baseName)}(function(e){e.FULL="full",e.LONG="long",e.MEDIUM="medium",e.SHORT="short"})(r||(r={})),function(e){e.RIGHT_TO_LEFT="rtl",e.LEFT_TO_RIGHT="ltr"}(o||(o={})),(0,i.createContext)({locale:c()||"en",setPreferredLocale:()=>{}});var h=({locale:e,dateStyle:t,options:n,date:r})=>i.createElement(g,{locale:e,dateStyle:t,timeStyle:void 0,options:n,dateTime:r});function y({locale:e,options:t}){return new Intl.DateTimeFormat(e||c(),t)}var g=({locale:e,dateStyle:t,timeStyle:n,options:r,dateTime:o})=>{let a=y({locale:e,options:r||{dateStyle:t,timeStyle:n}}),s=o||new Date,u=a.format(s);return i.createElement("span",null,u)}},21366:function(e){"use strict";let{AbortController:t,AbortSignal}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=AbortSignal,e.exports.default=t},19496:function(e){!function(t,n){e.exports=n()}(0,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,(function(t){return e[t]}).bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(n),a=Math.max(o,i),s=0,u=e.map([t,n],function(t){var n=a-e.getVersionPrecision(t),r=t+Array(n+1).join(".0");return e.map(r.split("."),function(e){return Array(20-e.length).join("0")+e}).reverse()});for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]1?o-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,function(e){return t.isOS(e)});if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,function(e){return t.isPlatform(e)});if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(i>0){var p=Object.keys(o),d=s.default.find(p,function(e){return t.isBrowser(e,!0)});if(void 0!==d)return this.compareVersion(o[d])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(o,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(t),r={name:i.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=o.default.getAndroidVersionName(t),r={name:i.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:i.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})})},52830:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){!function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function d(e){var t=new FileReader,n=f(t);return t.readAsText(e),n}function h(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r-1?t:e}function m(e,t){var n=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=b(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function E(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function S(e){var t=new c;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function O(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},g.call(m.prototype),g.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];O.redirect=function(e,t){if(-1===w.indexOf(t))throw RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,r){return new Promise(function(o,i){var a=new m(e,r);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:S(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL"),o(new O("response"in s?s.response:s.responseText,e))},s.onerror=function(){i(TypeError("Network request failed"))},s.ontimeout=function(){i(TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}T.polyfill=!0,e.fetch||(e.fetch=T,e.Headers=c,e.Request=m,e.Response=O),t.Headers=c,t.Request=m,t.Response=O,t.fetch=T,Object.defineProperty(t,"__esModule",{value:!0})}({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},72100:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function o(e){console&&console.warn&&console.warn(e)}t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){if(u(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,a,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,o(l)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?v(o):y(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=Array(t),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else for(var c=u.length,l=y(u,c),n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():g(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var o,i=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},47196:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,r){if(r=r||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof r)throw new t("defaults must be an object");if(void 0!==r.retries&&!e(r.retries))throw new t("retries must be a positive integer");if(void 0!==r.retryDelay&&!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==r.retryOn&&!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");return r=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},r),function(o,i){var a=r.retries,s=r.retryDelay,u=r.retryOn;if(i&&void 0!==i.retries){if(e(i.retries))a=i.retries;else throw new t("retries must be a positive integer")}if(i&&void 0!==i.retryDelay){if(e(i.retryDelay)||"function"==typeof i.retryDelay)s=i.retryDelay;else throw new t("retryDelay must be a positive integer or a function returning a positive integer")}if(i&&i.retryOn){if(Array.isArray(i.retryOn)||"function"==typeof i.retryOn)u=i.retryOn;else throw new t("retryOn property expects an array or function")}return new Promise(function(e,t){var r=function(r){n("undefined"!=typeof Request&&o instanceof Request?o.clone():o,i).then(function(n){if(Array.isArray(u)&&-1===u.indexOf(n.status))e(n);else if("function"==typeof u)try{return Promise.resolve(u(r,null,n)).then(function(t){t?c(r,null,n):e(n)}).catch(t)}catch(e){t(e)}else r1?o-1:0),a=1;a element.");var n=function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]};return v.cloneElement(t,{ref:n})}return null}}])}(v.Component),O="undefined"==typeof Element?Function:Element;S.propTypes={active:b.bool,paused:b.bool,focusTrapOptions:b.shape({document:b.object,onActivate:b.func,onPostActivate:b.func,checkCanFocusTrap:b.func,onPause:b.func,onPostPause:b.func,onUnpause:b.func,onPostUnpause:b.func,onDeactivate:b.func,onPostDeactivate:b.func,checkCanReturnFocus:b.func,initialFocus:b.oneOfType([b.instanceOf(O),b.string,b.bool,b.func]),fallbackFocus:b.oneOfType([b.instanceOf(O),b.string,b.func]),escapeDeactivates:b.oneOfType([b.bool,b.func]),clickOutsideDeactivates:b.oneOfType([b.bool,b.func]),returnFocusOnDeactivate:b.bool,setReturnFocus:b.oneOfType([b.instanceOf(O),b.string,b.bool,b.func]),allowOutsideClick:b.oneOfType([b.bool,b.func]),preventScroll:b.bool,tabbableOptions:b.shape({displayCheck:b.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:b.oneOfType([b.bool,b.func])}),trapStack:b.array,isKeyForward:b.func,isKeyBackward:b.func}),containerElements:b.arrayOf(b.instanceOf(O)),children:b.oneOfType([b.element,b.instanceOf(O)])},S.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:m},e.exports=S},24460:function(e,t,n){"use strict";n.r(t),n.d(t,{createFocusTrap:function(){return P}});var r=n(30235);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},g=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},v=function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select},b=function(e){return(null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27},m=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},E=function(e){return m(e)&&!e.shiftKey},S=function(e){return m(e)&&e.shiftKey},O=function(e){return setTimeout(e,0)},w=function(e,t){var n=-1;return e.every(function(e,r){return!t(e)||(n=r,!1)}),n},T=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,r=void 0!==n&&n,i=t.params,s=void 0===i?[]:i,u=a[e];if("function"==typeof u&&(u=u.apply(void 0,f(s))),!0===u&&(u=void 0),!u){if(void 0===u||!1===u)return u;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=u;if("string"==typeof u){try{c=o.querySelector(u)}catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!r)throw Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=p("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.isFocusable)(e,a.tabbableOptions)){if(c(o.activeElement)>=0)e=o.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||p("fallbackFocus")}}else null===e&&(e=p("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},h=function(){if(s.containerGroups=s.containers.map(function(e){var t=(0,r.tabbable)(e,a.tabbableOptions),n=(0,r.focusable)(e,a.tabbableOptions),o=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,s=n.find(function(e){return(0,r.isTabbable)(e)}),u=n.slice().reverse().find(function(e){return(0,r.isTabbable)(e)}),c=!!t.find(function(e){return(0,r.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:o,lastTabbableNode:i,firstDomTabbableNode:s,lastDomTabbableNode:u,nextTabbableNode:function(e){var o=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=t.indexOf(e);return i<0?o?n.slice(n.indexOf(e)+1).find(function(e){return(0,r.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,r.isTabbable)(e)}):t[i+(o?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!p("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(e){return e.posTabIndexesFound})&&s.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},P=function(e){var t=e.activeElement;return t?t.shadowRoot&&null!==t.shadowRoot.activeElement?P(t.shadowRoot):t:void 0},I=function(e){if(!1!==e&&e!==P(document)){if(!e||!e.focus){I(d());return}e.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=e,v(e)&&e.select()}},R=function(e){var t=p("setReturnFocus",{params:[e]});return t||!1!==t&&e},N=function(e){var t=e.target,n=e.event,o=e.isBackward,i=void 0!==o&&o;t=t||_(n),h();var u=null;if(s.tabbableGroups.length>0){var l=c(t,n),f=l>=0?s.containerGroups[l]:void 0;if(l<0)u=i?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(i){var d=w(s.tabbableGroups,function(e){var n=e.firstTabbableNode;return t===n});if(d<0&&(f.container===t||(0,r.isFocusable)(t,a.tabbableOptions)&&!(0,r.isTabbable)(t,a.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(d=l),d>=0){var y=0===d?s.tabbableGroups.length-1:d-1,g=s.tabbableGroups[y];u=(0,r.getTabIndex)(t)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else m(n)||(u=f.nextTabbableNode(t,!1))}else{var v=w(s.tabbableGroups,function(e){var n=e.lastTabbableNode;return t===n});if(v<0&&(f.container===t||(0,r.isFocusable)(t,a.tabbableOptions)&&!(0,r.isTabbable)(t,a.tabbableOptions)&&!f.nextTabbableNode(t))&&(v=l),v>=0){var b=v===s.tabbableGroups.length-1?0:v+1,E=s.tabbableGroups[b];u=(0,r.getTabIndex)(t)>=0?E.firstTabbableNode:E.firstDomTabbableNode}else m(n)||(u=f.nextTabbableNode(t))}}else u=p("fallbackFocus");return u},C=function(e){if(!(c(_(e),e)>=0)){if(T(a.clickOutsideDeactivates,e)){n.deactivate({returnFocus:a.returnFocusOnDeactivate});return}T(a.allowOutsideClick,e)||e.preventDefault()}},x=function(e){var t=_(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var o,i=!0;if(s.mostRecentlyFocusedNode){if((0,r.getTabIndex)(s.mostRecentlyFocusedNode)>0){var u=c(s.mostRecentlyFocusedNode),l=s.containerGroups[u].tabbableNodes;if(l.length>0){var f=l.findIndex(function(e){return e===s.mostRecentlyFocusedNode});f>=0&&(a.isKeyForward(s.recentNavEvent)?f+1=0&&(o=l[f-1],i=!1))}}else s.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,r.getTabIndex)(e)>0})})||(i=!1)}else i=!1;i&&(o=N({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),o?I(o):I(s.mostRecentlyFocusedNode||d())}s.recentNavEvent=void 0},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=N({event:e,isBackward:t});n&&(m(e)&&e.preventDefault(),I(n))},k=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&L(e,a.isKeyBackward(e))},D=function(e){b(e)&&!1!==T(a.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},M=function(e){c(_(e),e)>=0||T(a.clickOutsideDeactivates,e)||T(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},B=function(){if(s.active)return y(i,n),s.delayInitialFocusTimer=a.delayInitialFocus?O(function(){I(d())}):I(d()),o.addEventListener("focusin",x,!0),o.addEventListener("mousedown",C,{capture:!0,passive:!1}),o.addEventListener("touchstart",C,{capture:!0,passive:!1}),o.addEventListener("click",M,{capture:!0,passive:!1}),o.addEventListener("keydown",k,{capture:!0,passive:!1}),o.addEventListener("keydown",D),n},j=function(){if(s.active)return o.removeEventListener("focusin",x,!0),o.removeEventListener("mousedown",C,!0),o.removeEventListener("touchstart",C,!0),o.removeEventListener("click",M,!0),o.removeEventListener("keydown",k,!0),o.removeEventListener("keydown",D),n},F=function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===s.mostRecentlyFocusedNode})})&&I(d())},U="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(F):void 0,H=function(){U&&(U.disconnect(),s.active&&!s.paused&&s.containers.map(function(e){U.observe(e,{subtree:!0,childList:!0})}))};return(n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=u(e,"onActivate"),n=u(e,"onPostActivate"),r=u(e,"checkCanFocusTrap");r||h(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=o.activeElement,null==t||t();var i=function(){r&&h(),B(),H(),null==n||n()};return r?r(s.containers.concat()).then(i,i):i(),this},deactivate:function(e){if(!s.active)return this;var t=l({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,j(),s.active=!1,s.paused=!1,H(),g(i,n);var r=u(t,"onDeactivate"),o=u(t,"onPostDeactivate"),c=u(t,"checkCanReturnFocus"),f=u(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var p=function(){O(function(){f&&I(R(s.nodeFocusedBeforeActivation)),null==o||o()})};return f&&c?c(R(s.nodeFocusedBeforeActivation)).then(p,p):p(),this},pause:function(e){if(s.paused||!s.active)return this;var t=u(e,"onPause"),n=u(e,"onPostPause");return s.paused=!0,null==t||t(),j(),H(),null==n||n(),this},unpause:function(e){if(!s.paused||!s.active)return this;var t=u(e,"onUnpause"),n=u(e,"onPostUnpause");return s.paused=!1,null==t||t(),h(),B(),H(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),s.active&&h(),H(),this}}).updateContainerElements(e),n}},42201:function(e,t,n){var r="/",o=n(12509);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function n(e,n,r){function o(e,t,r){return"string"==typeof n?n:n(e,t,r)}r||(r=Error);class i extends r{constructor(e,t,n){super(o(e,t,n))}}i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let n=e.length;return(e=e.map(e=>String(e)),n>2)?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function i(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function a(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){let s,u;if("string"==typeof t&&o(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",i(e," argument"))u=`The ${e} ${s} ${r(t,"type")}`;else{let n=a(e,".")?"property":"argument";u=`The "${e}" ${n} ${s} ${r(t,"type")}`}return u+`. Received type ${typeof n}`},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,n){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var i=n(709),a=n(337);n(782)(l,i);for(var s=r(a.prototype),u=0;u0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=h(t)),r)s.endEmitted?_(e,new T):C(e,s,t,!0);else if(s.ended)_(e,new O);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):F(e,s)):C(e,s,t,!1)}}else r||(s.reading=!1,F(e,s));return!s.ended&&(s.length=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=k(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function M(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}function B(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(j,e))}function j(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,W(e)}function F(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){a("readable nexttick read 0"),e.read(0)}function $(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(V,e,t))}function V(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function K(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function q(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Y(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return a("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?q(this):B(this),null;if(0===(e=D(e,n))&&n.ended)return 0===n.length&&q(this),null;var o=n.needReadable;return a("need readable",o),(0===n.length||n.length-e0?K(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&q(this)),null!==t&&this.emit("data",t),t},R.prototype._read=function(e){_(this,new w("_read()"))},R.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?v:u;function s(e,t){a("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function u(){a("onend"),e.end()}r.endEmitted?o.nextTick(i):n.once("end",i),e.on("unpipe",s);var c=H(n);e.on("drain",c);var f=!1;function p(){a("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",d),f=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function d(t){a("ondata");var o=e.write(t);a("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Y(r.pipes,e))&&!f&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){a("onerror",t),v(),e.removeListener("error",h),0===l(e,"error")&&_(e,t)}function y(){e.removeListener("finish",g),v()}function g(){a("onfinish"),e.removeListener("close",y),v()}function v(){a("unpipe"),n.unpipe(e)}return n.on("data",d),P(e,"error",h),e.once("close",y),e.once("finish",g),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==r.flowing&&this.resume()):"readable"!==e||r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?B(this):r.reading||o.nextTick(z,this)),n},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,t){var n=f.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(G,this),n},R.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(G,this),t},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,$(this,e)),e.paused=!1,this},R.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){a("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!=o)&&(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i-1))throw new T(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,n){n(new b("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||$(this,r,n),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=h.destroy,I.prototype._undestroy=h.undestroy,I.prototype._destroy=function(e,t){t(e)}},871:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,a=n(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var n=e[d].read();null!==n&&(e[f]=null,e[s]=null,e[u]=null,t(h(n,!1)))}}function g(e){o.nextTick(y,e)}function v(e,t){return function(n,r){e.then(function(){if(t[l]){n(h(void 0,!0));return}t[p](n,r)},r)}}var b=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((r(i={get stream(){return this[d]},next:function(){var e,t=this,n=this[c];if(null!==n)return Promise.reject(n);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(e,n){o.nextTick(function(){t[c]?n(t[c]):e(h(void 0,!0))})});var r=this[f];if(r)e=new Promise(v(r,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));e=new Promise(this[p])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),r(i,"return",function(){var e=this;return new Promise(function(t,n){e[d].destroy(null,function(e){if(e){n(e);return}t(h(void 0,!0))})})}),i),b),E=function(e){var t,n=Object.create(m,(r(t={},d,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,u,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:e._readableState.endEmitted,writable:!0}),r(t,p,{value:function(e,t){var r=n[d].read();r?(n[f]=null,n[s]=null,n[u]=null,e(h(r,!1))):(n[s]=e,n[u]=t)},writable:!0}),t));return n[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];null!==t&&(n[f]=null,n[s]=null,n[u]=null,t(e)),n[c]=e;return}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(h(void 0,!0))),n[l]=!0}),e.on("readable",g.bind(null,n)),n};e.exports=E},379:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return eo.length?o.length:e;if(i===o.length?r+=o:r+=o.slice(0,e),0==(e-=i)){i===o.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(i));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return l(this,o({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(r,i):(i._writableState.errorEmitted=!0,o.nextTick(n,i,e)):o.nextTick(n,i,e):t?(o.nextTick(r,i),t(e)):o.nextTick(r,i)})),this}function n(e,t){a(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:i,errorOrDestroy:s}},698:function(e,t,n){"use strict";var r=n(646).q.ERR_STREAM_PREMATURE_CLOSE;function o(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),o=0;o0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),o(e))})});return n.reduce(p)}e.exports=h},776:function(e,t,n){"use strict";var r=n(646).q.ERR_INVALID_OPT_VALUE;function o(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function i(e,t,n,i){var a=o(t,i,n);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:i}},678:function(e,t,n){e.exports=n(781)},55:function(e,t,n){var r=n(300),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return r.SlowBuffer(e)}},173:function(e,t,n){e.exports=o;var r=n(361).EventEmitter;function o(){r.call(this)}n(782)(o,r),o.Readable=n(709),o.Writable=n(337),o.Duplex=n(403),o.Transform=n(170),o.PassThrough=n(889),o.finished=n(698),o.pipeline=n(442),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",c),e.on("error",c),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},704:function(e,t,n){"use strict";var r=n(55).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=y,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:this.write=b,this.end=m;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,n){var r=t.length-1;if(r=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n-1?o(n):n}},139:function(e,t,n){"use strict";var r=n(174),o=n(925),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},144:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,o){if("[object Function]"!==n.call(r))throw TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=P(e),r=n.length>0?n[0]:"",i=I("%"+r+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],S(n,E([0,1],f)));for(var p=1,d=!0;p=n.length){var b=u(c,h);c=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else d=m(c,h),c=c[h];d&&!l&&(y[s]=c)}}return c}},925:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=n(115)(),p=n(504)(),d=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),h={},y="undefined"!=typeof Uint8Array&&d?d(Uint8Array):r,g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&d?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&d?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&d?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&d?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&d?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(d)try{null.error}catch(e){var v=d(d(e));g["%Error.prototype%"]=v}var b=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&d&&(n=d(o.prototype))}return g[t]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=n(174),S=n(101),O=E.call(Function.call,Array.prototype.concat),w=E.call(Function.apply,Array.prototype.splice),T=E.call(Function.call,String.prototype.replace),_=E.call(Function.call,String.prototype.slice),A=E.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,R=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,P,function(e,t,n,o){r[r.length]=n?T(o,I,"$1"):t||e}),r},N=function(e,t){var n,r=e;if(S(m,r)&&(r="%"+(n=m[r])[0]+"%"),S(g,r)){var i=g[r];if(i===h&&(i=b(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=R(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],w(n,O([0,1],f)));for(var p=1,d=!0;p=n.length){var b=u(c,h);c=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else d=S(c,h),c=c[h];d&&!l&&(g[s]=c)}}return c}},504:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof n)}},942:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(773);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==r||!0!==i.enumerable)return!1}return!0}},115:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(832);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==r||!0!==i.enumerable)return!1}return!0}},101:function(e,t,n){"use strict";var r=n(174);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,n=Object.prototype.toString,r=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===n.call(e)},o=function(e){return!!r(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==n.call(e)&&"[object Function]"===n.call(e.callee)},i=function(){return r(arguments)}();r.isLegacyArguments=o,e.exports=i?r:o},391:function(e){"use strict";var t=Object.prototype.toString,n=Function.prototype.toString,r=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.getPrototypeOf,a=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?i(a):{};e.exports=function(e){return"function"==typeof e&&(!!r.test(n.call(e))||(o?i(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,r){"use strict";var o=r(144),i=r(349),a=r(256),s=a("Object.prototype.toString"),u=r(942)()&&"symbol"==typeof Symbol.toStringTag,c=i(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1)}},369:function(e){e.exports=function(e){return e instanceof o}},584:function(e,t,n){"use strict";var r=n(157),o=n(391),i=n(490),a=n(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(c)var y=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||H(e)}function m(e){return"Uint8Array"===i(e)}function E(e){return"Uint8ClampedArray"===i(e)}function S(e){return"Uint16Array"===i(e)}function O(e){return"Uint32Array"===i(e)}function w(e){return"Int8Array"===i(e)}function T(e){return"Int16Array"===i(e)}function _(e){return"Int32Array"===i(e)}function A(e){return"Float32Array"===i(e)}function P(e){return"Float64Array"===i(e)}function I(e){return"BigInt64Array"===i(e)}function R(e){return"BigUint64Array"===i(e)}function N(e){return"[object Map]"===l(e)}function C(e){return"undefined"!=typeof Map&&(N.working?N(e):e instanceof Map)}function x(e){return"[object Set]"===l(e)}function L(e){return"undefined"!=typeof Set&&(x.working?x(e):e instanceof Set)}function k(e){return"[object WeakMap]"===l(e)}function D(e){return"undefined"!=typeof WeakMap&&(k.working?k(e):e instanceof WeakMap)}function M(e){return"[object WeakSet]"===l(e)}function B(e){return M(e)}function j(e){return"[object ArrayBuffer]"===l(e)}function F(e){return"undefined"!=typeof ArrayBuffer&&(j.working?j(e):e instanceof ArrayBuffer)}function U(e){return"[object DataView]"===l(e)}function H(e){return"undefined"!=typeof DataView&&(U.working?U(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=v,t.isArrayBufferView=b,t.isUint8Array=m,t.isUint8ClampedArray=E,t.isUint16Array=S,t.isUint32Array=O,t.isInt8Array=w,t.isInt16Array=T,t.isInt32Array=_,t.isFloat32Array=A,t.isFloat64Array=P,t.isBigInt64Array=I,t.isBigUint64Array=R,N.working="undefined"!=typeof Map&&N(new Map),t.isMap=C,x.working="undefined"!=typeof Set&&x(new Set),t.isSet=L,k.working="undefined"!=typeof WeakMap&&k(new WeakMap),t.isWeakMap=D,M.working="undefined"!=typeof WeakSet&&M(new WeakSet),t.isWeakSet=B,j.working="undefined"!=typeof ArrayBuffer&&j(new ArrayBuffer),t.isArrayBuffer=F,U.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&U(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=H;var G="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function z(e){return"[object SharedArrayBuffer]"===l(e)}function $(e){return void 0!==G&&(void 0===z.working&&(z.working=z(new G)),z.working?z(e):e instanceof G)}function V(e){return"[object AsyncFunction]"===l(e)}function W(e){return"[object Map Iterator]"===l(e)}function K(e){return"[object Set Iterator]"===l(e)}function q(e){return"[object Generator]"===l(e)}function Z(e){return"[object WebAssembly.Module]"===l(e)}function Y(e){return g(e,f)}function X(e){return g(e,p)}function J(e){return g(e,d)}function Q(e){return u&&g(e,h)}function ee(e){return c&&g(e,y)}function et(e){return Y(e)||X(e)||J(e)||Q(e)||ee(e)}function en(e){return"undefined"!=typeof Uint8Array&&(F(e)||$(e))}t.isSharedArrayBuffer=$,t.isAsyncFunction=V,t.isMapIterator=W,t.isSetIterator=K,t.isGeneratorObject=q,t.isWebAssemblyCompiledModule=Z,t.isNumberObject=Y,t.isStringObject=X,t.isBooleanObject=J,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=en,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,n){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),E(n)?r.showHidden=n:n&&t._extend(r,n),A(r.showHidden)&&(r.showHidden=!1),A(r.depth)&&(r.depth=2),A(r.colors)&&(r.colors=!1),A(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),d(r,e,r.depth)}function l(e,t){var n=c.styles[t];return n?"\x1b["+c.colors[n][0]+"m"+e+"\x1b["+c.colors[n][1]+"m":e}function f(e,t){return e}function p(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function d(e,n,r){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&!(n.constructor&&n.constructor.prototype===n)){var o,i=n.inspect(r,e);return T(i)||(i=d(e,i,r)),i}var a=h(e,n);if(a)return a;var s=Object.keys(n),u=p(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),N(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return y(n);if(0===s.length){if(C(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(P(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(R(n))return e.stylize(Date.prototype.toString.call(n),"date");if(N(n))return y(n)}var l="",f=!1,E=["{","}"];return(m(n)&&(f=!0,E=["[","]"]),C(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),P(n)&&(l=" "+RegExp.prototype.toString.call(n)),R(n)&&(l=" "+Date.prototype.toUTCString.call(n)),N(n)&&(l=" "+y(n)),0!==s.length||f&&0!=n.length)?r<0?P(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),o=f?g(e,n,r,u,s):s.map(function(t){return v(e,n,r,u,t,f)}),e.seen.pop(),b(o,l,E)):E[0]+l+E[1]}function h(e,t){if(A(t))return e.stylize("undefined","undefined");if(T(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return w(t)?e.stylize(""+t,"number"):E(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,o){for(var i=[],a=0,s=t.length;ae.seen.indexOf(u.value)?(s=S(n)?d(e,u.value,null):d(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),A(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function m(e){return Array.isArray(e)}function E(e){return"boolean"==typeof e}function S(e){return null===e}function O(e){return null==e}function w(e){return"number"==typeof e}function T(e){return"string"==typeof e}function _(e){return"symbol"==typeof e}function A(e){return void 0===e}function P(e){return I(e)&&"[object RegExp]"===L(e)}function I(e){return"object"==typeof e&&null!==e}function R(e){return I(e)&&"[object Date]"===L(e)}function N(e){return I(e)&&("[object Error]"===L(e)||e instanceof Error)}function C(e){return"function"==typeof e}function x(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function L(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var n=i.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(584),t.isArray=m,t.isBoolean=E,t.isNull=S,t.isNullOrUndefined=O,t.isNumber=w,t.isString=T,t.isSymbol=_,t.isUndefined=A,t.isRegExp=P,t.types.isRegExp=P,t.isObject=I,t.isDate=R,t.types.isDate=R,t.isError=N,t.types.isNativeError=N,t.isFunction=C,t.isPrimitive=x,t.isBuffer=n(369);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=n(782),t._extend=function(e,t){if(!t||!I(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function F(e,t){if(!e){var n=Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function U(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;na=e,u=()=>a;var c=n(75271);let l=Symbol.for("react-redux-context"),f="undefined"!=typeof globalThis?globalThis:{},p=function(){var e;if(!c.createContext)return{};let t=null!=(e=f[l])?e:f[l]=new Map,n=t.get(c.createContext);return n||(n=c.createContext(null),t.set(c.createContext,n)),n}();function d(e=p){return function(){return(0,c.useContext)(e)}}let h=d(),y=()=>{throw Error("uSES not initialized!")},g=e=>{y=e},v=(e,t)=>e===t,b=function(e=p){let t=e===p?h:d(e);return function(e,n={}){let{equalityFn:r=v,stabilityCheck:o,noopCheck:i}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:s,getServerState:u,stabilityCheck:l,noopCheck:f}=t();(0,c.useRef)(!0);let p=(0,c.useCallback)({[e.name]:t=>e(t)}[e.name],[e,l,o]),d=y(s.addNestedSub,a.getState,u||a.getState,p,r);return(0,c.useDebugValue)(d),d}}();function m(){let e=u(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}n(72535),n(36479);let E={notify(){},get:()=>[]};function S(e,t){let n;let r=E,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=m())}function u(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=E)}let c={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),u())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,u())},getListeners:()=>r};return c}let O="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect,w=null,T=e=>{w=e};var _=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){let a=c.useMemo(()=>{let t=S(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}},[e,r,o,i]),s=c.useMemo(()=>e.getState(),[e]);O(()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,s]);let u=t||p;return c.createElement(u.Provider,{value:a},n)};function A(e=p){let t=e===p?h:d(e);return function(){let{store:e}=t();return e}}let P=A(),I=function(e=p){let t=e===p?P:A(e);return function(){return t().dispatch}}();g(o.useSyncExternalStoreWithSelector),T(r.useSyncExternalStore),s(i.unstable_batchedUpdates)},28572:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,n){var r=t.length-1;if(r=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return nsummary:first-of-type:not([inert])","details:not([inert])"],o=r.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!i&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},u=function e(t,n){void 0===n&&(n=!0);var r,o=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},l=function(e,t,n){if(u(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r=r.filter(n)},f=function e(t,n,r){for(var i=[],s=Array.from(t);s.length;){var c=s.shift();if(!u(c,!1)){if("SLOT"===c.tagName){var l=c.assignedElements(),f=e(l.length?l:c.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:c,candidates:f})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),d=!u(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(p&&d){var h=e(!0===p?c.children:p.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}}return i},p=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||c(e))&&!p(e)?0:e.tabIndex},h=function(e,t){var n=d(e);return n<0&&t&&!p(e)?0:n},y=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},v=function(e){return g(e)&&"hidden"===e.type},b=function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})},m=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return T(e)}else{if("function"==typeof r){for(var i=e;e;){var u=e.parentElement,c=s(e);if(u&&!u.shadowRoot&&!0===r(u))return T(e);e=e.assignedSlot?e.assignedSlot:u||c===e.ownerDocument?u:c.host}e=i}if(w(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},A=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;nd(t))&&!!P(e,t)},R=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},N=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=h(a,i),u=i?e(t.candidates):a;0===s?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:u})}),r.sort(y).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},C=function(e,t){var n;return N(n=(t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:I.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:R}):l(e,t.includeContainer,I.bind(null,t)))},x=function(e,t){return(t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:P.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):l(e,t.includeContainer,P.bind(null,t))},L=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,o)&&I(t,e)},k=r.concat("iframe").join(","),D=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,k)&&P(t,e)}},42764:function(e,t,n){"use strict";n.d(t,{y1:function(){return o}});var r=n(75271);function o(e,t,n){var o=this,i=(0,r.useRef)(null),a=(0,r.useRef)(0),s=(0,r.useRef)(null),u=(0,r.useRef)([]),c=(0,r.useRef)(),l=(0,r.useRef)(),f=(0,r.useRef)(e),p=(0,r.useRef)(!0);(0,r.useEffect)(function(){f.current=e},[e]);var d=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,y=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v=g?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return p.current=!0,function(){p.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=u.current,n=c.current;return u.current=c.current=null,a.current=e,l.current=f.current.apply(n,t)},n=function(e,t){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!p.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||g&&e-a.current>=v},b=function(t){return s.current=null,y&&u.current?e(t):(u.current=c.current=null,l.current)},m=function e(){var o=Date.now();if(r(o))return b(o);if(p.current){var s=t-(o-i.current);n(e,g?Math.min(s,v-(o-a.current)):s)}},E=function(){var f=Date.now(),d=r(f);if(u.current=[].slice.call(arguments),c.current=o,i.current=f,d){if(!s.current&&p.current)return a.current=i.current,n(m,t),h?e(i.current):l.current;if(g)return n(m,t),e(i.current)}return s.current||n(m,t),l.current};return E.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,u.current=i.current=c.current=s.current=null},E.isPending=function(){return!!s.current},E.flush=function(){return s.current?b(Date.now()):l.current},E},[h,g,t,v,y,d])}},99752:function(e,t,n){"use strict";var r=n(75271);function o(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var i="function"==typeof Object.is?Object.is:o,a=r.useState,s=r.useEffect,u=r.useLayoutEffect,c=r.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return u(function(){o.value=n,o.getSnapshot=t,f(o)&&i({inst:o})},[e,n,t]),s(function(){return f(o)&&i({inst:o}),e(function(){f(o)&&i({inst:o})})},[e]),c(n),n}function f(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}function p(e,t){return t()}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?p:l;t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},44250:function(e,t,n){"use strict";var r=n(75271),o=n(48488);function i(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var a="function"==typeof Object.is?Object.is:i,s=o.useSyncExternalStore,u=r.useRef,c=r.useEffect,l=r.useMemo,f=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=u(null);if(null===i.current){var p={hasValue:!1,value:null};i.current=p}else p=i.current;var d=s(e,(i=l(function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,s=n)}var i,s,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,o]))[0],i[1]);return c(function(){p.hasValue=!0,p.value=d},[d]),f(d),d}},48488:function(e,t,n){"use strict";e.exports=n(99752)},8769:function(e,t,n){"use strict";e.exports=n(44250)},82187:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n"},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},99451:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},48072:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},12434:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},59350:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},46569:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},90294:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},72867:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},99454:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},32180:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(75271),o=n(67829);function i(e){var t,n=[{size:16,svgContent:""},{size:24,svgContent:""}],i=e.size?o.cy[e.size]:e.iconSize,a=(0,o.Lr)(n,i||24),s=function(e,t){return e?"").concat(e,""):""},u=function(e,t){return e?"").concat(e,""):""},c=null!==(t=e.autoMirror)&&void 0!==t&&t;return r.createElement(o.JO,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(a.size," ").concat(a.size),dangerouslySetInnerHTML:{__html:"".concat(s(e.title,e.titleId)).concat(u(e.desc,e.descId)).concat(a.svgContent)}}))}},67829:function(e,t,n){"use strict";n.d(t,{JO:function(){return b},cy:function(){return h},Lr:function(){return g}});var r=n(53162),o=n(75271),i=n(27106),a=n(67880),s=n(21275),u=n(84964),c=n(24159),l={xsmall:"smaller-2",small:"smaller",medium:"base",large:"larger",xlarge:"larger-3",xxlarge:"larger-4",xxxlarge:"larger-4",xxxxlarge:"larger-5"},f=function(e){return isNaN(Number(e))?e:"".concat(e,"px")},p=u.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," "," width:",";height:",";"],function(e){return e.$autoMirror&&(0,c.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])},function(e){return e.$iconColor?(0,c.iv)(["fill:",";"],(0,a.NE)(e.$iconColor)):(0,c.iv)(["fill:currentcolor;"])},function(e){var t=e.$width,n=e.$size,r=e.$tokenType,o=void 0===r?"decorative":r;return t?f(t):(0,s.cc)(l[n],o,"".concat(h[n],"px"))},function(e){var t=e.$height,n=e.$size,r=e.$tokenType,o=void 0===r?"decorative":r;return t?f(t):(0,s.cc)(l[n],o,"".concat(h[n],"px"))}),d=["iconSize","size","semanticColor","color","title","titleId","desc","descId","autoMirror","width","height","aria-label","aria-labelledby","aria-describedby"],h={xsmall:12,small:16,medium:24,large:32,xlarge:48,xxlarge:64},y=function(e){return Object.keys(h).find(function(t){return h[t]===e})},g=function(e,t){return e.sort(function(e,t){return e.size-t.size}).reduce(function(e,n){return n.size<=t&&n.size>e.size?n:e})};function v(e){return Object.values(e).some(function(e){return e})?"informative":"decorative"}var b=function(e){var t=e.iconSize,n=e.size,a=void 0===n?"medium":n,s=e.semanticColor,u=(e.color,e.title),c=e.titleId,l=e.desc,f=e.descId,h=e.autoMirror,g=e.width,b=e.height,m=e["aria-label"],E=e["aria-labelledby"],S=e["aria-describedby"],O=(0,r.Z)(e,d);return o.createElement(p,Object.assign({"data-encore-id":i.e.Icon,role:"img","aria-label":m,"aria-labelledby":u&&c?c:E,"aria-describedby":l&&f?f:S,"aria-hidden":"decorative"===v({ariaLabel:m,ariaLabelledBy:E,ariaDescribedBy:S,title:u,desc:l}),$size:t?y(t):a,$iconColor:s,$autoMirror:h,$width:g,$height:b,$tokenType:v({ariaLabel:m,ariaLabelledBy:E,ariaDescribedBy:S,title:u,desc:l})},O))}},40797:function(e,t,n){"use strict";n.d(t,{u:function(){return u}});var r=n(75271),o=n(76611),i=n(99459);function a(e){var t=(0,r.useState)(e),n=(0,i.Z)(t,2),o=n[0],a=n[1],s=function(){return a(!1)},u=function(e){switch(e.key){case"Tab":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":a(!0)}};return(0,r.useEffect)(function(){return window.addEventListener("keydown",u),window.addEventListener("mousedown",s),window.addEventListener("touchstart",s),function(){window.removeEventListener("keydown",u),window.removeEventListener("mousedown",s),window.removeEventListener("touchstart",s)}},[]),{isUsingKeyboard:o,setIsUsingKeyboard:a}}var s=o.Y.isUsingKeyboard,u=function(e){var t=a(s).isUsingKeyboard;return r.createElement(o.t.Provider,{value:{isUsingKeyboard:t}},e.children)}},71409:function(e,t,n){"use strict";n.d(t,{x:function(){return p}});var r=n(57904),o=n(53162),i=n(75271),a=n(82187),s=n(27106),u=n(21275),c=["color","semanticColor","paddingBottom","variant","className","as","style"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t-1},u=function(e,t){var n=void 0;return Object.keys(o).forEach(function(r){s(e,t[r])&&(n=r)}),n},c=r.createContext(a);c.displayName="Encore"},76611:function(e,t,n){"use strict";n.d(t,{Y:function(){return o},t:function(){return i}});var r=n(75271),o={isUsingKeyboard:!0},i=r.createContext(o);i.displayName="KeyboardDetection"},27106:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var r={Accordion:"accordion",AccordionContent:"accordionContent",AccordionItem:"accordionItem",AccordionTitle:"accordionTitle",AdaptiveTitle:"adaptiveTitle",App:"app",AppBanner:"appBanner",AppBannerLayout:"appBannerLayout",AppFooter:"appFooter",AppFooterLink:"appFooterLink",Backdrop:"backdrop",Banner:"banner",Box:"box",BrowserDefaultFocusStyleProvider:"browserDefaultFocusStyleProvider",Button:"button",ButtonIcon:"buttonIcon",ButtonPrimary:"buttonPrimary",ButtonSecondary:"buttonSecondary",ButtonTertiary:"buttonTertiary",Card:"card",CardDetails:"cardDetails",CardImage:"cardImage",CardSubtitle:"cardSubtitle",CardTitle:"cardTitle",Chip:"chip",ChipClear:"chipClear",ChipFilter:"chipFilter",ChipGroup:"chipGroup",ChipInput:"chipInput",CollapseButton:"collapseButton",DialogAlert:"dialogAlert",DialogConfirmation:"dialogConfirmation",DialogFullScreen:"dialogFullScreen",Dropdown:"dropdown",DropdownItem:"dropdownItem",DropdownLink:"dropdownLink",DropdownList:"dropdownList",DropdownTrigger:"dropdownTrigger",EmptyState:"emptyState",EmptyStateButton:"emptyStateButton",EmptyStateText:"emptyStateText",EmptyStateTitle:"emptyStateTitle",EncoreProvider:"encoreProvider",FormCheckbox:"formCheckbox",FormGroup:"formGroup",FormHelpText:"formHelpText",FormInput:"formInput",FormInputIcon:"formInputIcon",FormPopoverTrigger:"formPopoverTrigger",FormRadio:"formRadio",FormSelect:"formSelect",FormTextarea:"formTextarea",FormToggle:"formToggle",GlobalStyles:"globalStyles",HorizontalRule:"horizontalRule",Icon:"icon",IconWithText:"iconWithText",Image:"image",KeyboardDetectionProvider:"keyboardDetectionProvider",List:"list",ListItem:"listItem",ListRow:"listRow",ListRowDetails:"listRowDetails",ListRowImage:"listRowImage",ListRowSubtitle:"listRowSubtitle",ListRowTitle:"listRowTitle",LoadingIndicator:"loadingIndicator",LogoSpotify:"logoSpotify",LogoSpotifyForArtists:"logoSpotifyForArtists",NavBar:"navBar",NavBarList:"navBarList",NavBarListItem:"navBarListItem",NavPill:"navPill",NavPillList:"navPillList",NavPillListItem:"navPillListItem",NavPillPanel:"navPillPanel",NavStepper:"navStepper",NavStepperItem:"navStepperItem",Navigation:"navigation",NavigationAction:"navigationAction",NavigationList:"navigationList",NavigationListItem:"navigationListItem",NavigationListTitle:"navigationListTitle",OverlayPortal:"overlayPortal",OverlayTrigger:"overlayTrigger",PaginationControls:"paginationControls",PaginationDropdown:"paginationDropdown",PaginationDropdownItem:"paginationDropdownItem",PaginationDropdownLink:"paginationDropdownLink",PaginationDropdownList:"paginationDropdownList",PaginationDropdownTrigger:"paginationDropdownTrigger",Popover:"popover",PopoverNavigation:"popoverNavigation",PopoverNavigationItem:"popoverNavigationItem",PopoverNavigationLink:"popoverNavigationLink",PopoverOnboarding:"popoverOnboarding",PopoverTrigger:"popoverTrigger",ProgressBar:"progressBar",ProgressCircle:"progressCircle",ProgressDots:"progressDots",SkipLink:"skipLink",Snackbar:"snackbar",StatusIndicator:"statusIndicator",TabItem:"tabItem",Table:"table",TableCell:"tableCell",TableCheckbox:"tableCheckbox",TableContainer:"tableContainer",TableHeaderCell:"tableHeaderCell",TablePagination:"tablePagination",TableRow:"tableRow",TableSortIcon:"tableSortIcon",TableThumbnail:"tableThumbnail",TabList:"tabList",TabPanel:"tabPanel",Tabs:"tabs",Tag:"tag",Text:"text",TextLink:"textLink",Tooltip:"tooltip",TooltipTrigger:"tooltipTrigger",Type:"type",TypeList:"typeList",TypeListItem:"typeListItem",UnsupportedBrowser:"unsupportedBrowser",VerifiedBadge:"verifiedBadge",VisuallyHidden:"visuallyHidden"}},80485:function(e,t,n){"use strict";n.d(t,{ZK:function(){return c},u_:function(){return f}});var r,o,i=n(3652),a=n(12509),s="undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==a&&(null===(r=a)||void 0===a||null===(r=r.env)||void 0===r?void 0:r.MUTE_ENCORE_WARNINGS)||void 0,u="undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==a&&(null===(o=a)||void 0===a||null===(o=o.env)||void 0===o?void 0:"production")||void 0;function c(e){"true"!==s&&"production"!==u&&console.warn(e)}function l(e,t,n,r){c("The ".concat(e," prop in ").concat(n," has been deprecated. Please use ").concat(t," instead. ").concat(r||""))}function f(e,t){return Object.keys(i.F).filter(function(e){return"top"!==e&&"bottom"!==e}).includes(e)?l(e,(0,i.a)(e),t,"This allows us to support localization."):null}},84964:function(e,t,n){"use strict";var r=n(24159);t.ZP="function"==typeof r.ZP.div?r.ZP:r.ZP.default},21275:function(e,t,n){"use strict";function r(e){switch(e){case"small":return"smaller";case"large":return"larger";default:return"base"}}n.d(t,{$t:function(){return l},At:function(){return r},EW:function(){return c},Gk:function(){return a},Kh:function(){return h},MW:function(){return i},Sq:function(){return f},Y7:function(){return g},_S:function(){return s},cc:function(){return p},jj:function(){return u},ql:function(){return y}});var o=["tighter-5","tighter-4","tighter-3","tighter-2","tighter","base","looser","looser-2","looser-3","looser-4","looser-5","looser-6"];function i(e){return o.includes(e)}function a(e,t){var n=t?", ".concat(t):"";return"var(--encore-spacing-".concat(e).concat(n,")")}function s(e,t){var n=t?", ".concat(t):"";return"var(--encore-corner-radius-".concat(e).concat(n,")")}function u(e,t){var n=t?", ".concat(t):"";return"var(--encore-border-width-".concat(e).concat(n,")")}function c(e,t){var n=t?", ".concat(t):"";return"var(--encore-control-size-".concat(e).concat(n,")")}var l={small:"32px",medium:"48px",large:"56px",sm:"32px",md:"48px",lg:"56px"};function f(e,t,n){var r=t?", ".concat(t):"";return n?"calc(-1 * var(--encore-layout-margin-".concat(e).concat(r,"))"):"var(--encore-layout-margin-".concat(e).concat(r,")")}function p(e,t,n){var r=n?", ".concat(n):"";return"var(--encore-graphic-size-".concat(t,"-").concat(e).concat(r,")")}function d(e){return e.replace(/[A-Z0-9]/g,function(e){return"-".concat(e.toLowerCase())})}var h=function(e){return"encore-internal-padding-block-end-".concat(e)},y=function(e){return"encore-internal-color-".concat(d(e))},g=function(e){return"encore-text-".concat(d(e))}},56974:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(24159),o=function(){return(0,r.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])}},48789:function(e,t,n){"use strict";n.d(t,{O3:function(){return o},VZ:function(){return r},i8:function(){return i}});var r={sm:"sm",md:"md",lg:"lg"},o=function(e){switch(e){case"small":return"marginalBold";case"medium":default:return"bodySmallBold";case"large":return"bodyMediumBold"}},i={small:"8px",medium:"14px",large:"16px"}},22739:function(e,t,n){"use strict";n.d(t,{BX:function(){return C},Dx:function(){return f},FN:function(){return y},IT:function(){return R},Lm:function(){return P},Nw:function(){return w},Sm:function(){return v},WU:function(){return A},Z7:function(){return g},ZG:function(){return T},cS:function(){return p},cp:function(){return I},l_:function(){return N}});var r=n(39256),o=n(62450),i=n(21275),a=n(48789),s=n(457),u=n(56974),c=n(8506),l=n(24159),f="var(--encore-button-corner-radius, ".concat(o.qt,")"),p="33ms",d="none",h="1.04",y=function(e){switch(e){case"small":return(0,i.Gk)("tighter","12px");case"large":return(0,i.Gk)("looser","24px");default:return"20px"}},g={small:"5px",medium:"12px",large:"10px"},v=function(e,t){return t===r.k3.deprecated?(0,a.O3)(e):"small"===e?"bodySmallBold":"bodyMediumBold"};function b(e){var t=e.property,n=e.value,r=e.borderWidth,o=void 0===r?0:r;return o>0?(0,l.iv)(["",":calc("," - ","px);"],t,n,o):(0,l.iv)(["",":",";"],t,n)}function m(e){var t=e.buttonSize,n=e.borderWidth,r=void 0===n?0:n;if("deprecated"===e.status)switch(t){case"small":return(0,l.iv)(["",";"],b({property:"padding-block",value:a.i8.small,borderWidth:r}));case"large":return(0,l.iv)(["",";"],b({property:"padding-block",value:a.i8.large,borderWidth:r}));default:return(0,l.iv)(["",";"],b({property:"padding-block",value:a.i8.medium,borderWidth:r}))}switch(t){case"small":return(0,l.iv)(["",";"],b({property:"padding-block",value:(0,i.Gk)("tighter-4",s.sz.small),borderWidth:r}));case"large":return(0,l.iv)(["",";"],b({property:"padding-block",value:(0,i.Gk)("tighter",s.sz.large),borderWidth:r}));default:return(0,l.iv)(["",";"],b({property:"padding-block",value:(0,i.Gk)("tighter-2",s.sz.medium),borderWidth:r}))}}function E(e){var t=e.buttonSize,n=e.borderWidth,r=void 0===n?0:n,o=e.status,a=e.condensed,s=function(){switch(t){case"small":return(0,l.iv)(["",";"],b({property:"padding-inline",value:(0,i.Gk)("base","16px"),borderWidth:r}));case"large":return(0,l.iv)(["",";"],b({property:"padding-inline",value:(0,i.Gk)("looser-3","48px"),borderWidth:r}));default:return(0,l.iv)(["",";"],b({property:"padding-inline",value:(0,i.Gk)("looser-2","32px"),borderWidth:r}))}};return a&&(s=function(){return(0,l.iv)(["padding-inline:0;"])}),(0,l.iv)(["",";",";"],m({buttonSize:t,borderWidth:r,status:o}),s)}function S(e){var t=e.buttonSize,n=e.iconPlacement,r=e.borderWidth,o=void 0===r?0:r,a=e.status,s=function(){switch(t){case"small":switch(n){case"leading":return(0,l.iv)(["",";",";"],b({property:"padding-inline-start",value:"33px",borderWidth:o}),b({property:"padding-inline-end",value:(0,i.Gk)("base","16px"),borderWidth:o}));case"trailing":return(0,l.iv)(["",";",";"],b({property:"padding-inline-start",value:(0,i.Gk)("base","16px"),borderWidth:o}),b({property:"padding-inline-end",value:"33px",borderWidth:o}));default:return(0,l.iv)(["",";"],b({property:"padding-inline",value:"33px",borderWidth:o}))}case"large":switch(n){case"leading":return(0,l.iv)(["",";",";"],b({property:"padding-inline-start",value:"58px",borderWidth:o}),b({property:"padding-inline-end",value:(0,i.Gk)("looser-3","48px"),borderWidth:o}));case"trailing":return(0,l.iv)(["",";",";"],b({property:"padding-inline-start",value:(0,i.Gk)("looser-3","48px"),borderWidth:o}),b({property:"padding-inline-end",value:"58px",borderWidth:o}));default:return(0,l.iv)(["",";"],b({property:"padding-inline",value:"58px",borderWidth:o}))}default:switch(n){case"leading":return(0,l.iv)(["",";",";"],b({property:"padding-inline-start",value:"56px",borderWidth:o}),b({property:"padding-inline-end",value:(0,i.Gk)("looser-2","32px"),borderWidth:o}));case"trailing":return(0,l.iv)(["",";",";"],b({property:"padding-inline-start",value:(0,i.Gk)("looser-2","32px"),borderWidth:o}),b({property:"padding-inline-end",value:"56px",borderWidth:o}));default:return(0,l.iv)(["",";"],b({property:"padding-inline",value:"56px",borderWidth:o}))}}};return(0,l.iv)(["",";",";"],m({buttonSize:t,borderWidth:o,status:a}),s)}function O(e){var t=e.buttonSize,n=e.iconPlacement,r=e.condensed,o=e.status,a=function(){switch(t){case"small":switch(n){case"leading":return(0,l.iv)(["padding-inline:"," ",";"],(0,i.Gk)("tighter","12px"),(0,i.Gk)("base","16px"));case"trailing":return(0,l.iv)(["padding-inline:"," ",";"],(0,i.Gk)("base","16px"),(0,i.Gk)("tighter","12px"));default:return(0,l.iv)(["padding-inline:",";"],(0,i.Gk)("tighter","12px"))}case"large":switch(n){case"leading":return(0,l.iv)(["padding-inline:"," ",";"],(0,i.Gk)("looser-2","24px"),(0,i.Gk)("looser-3","48px"));case"trailing":return(0,l.iv)(["padding-inline:"," ",";"],(0,i.Gk)("looser-3","48px"),(0,i.Gk)("looser-2","24px"));default:return(0,l.iv)(["padding-inline:",";"],(0,i.Gk)("looser-2","24px"))}default:switch(n){case"leading":return(0,l.iv)(["padding-inline:20px ",";"],(0,i.Gk)("looser-2","32px"));case"trailing":return(0,l.iv)(["padding-inline:"," 20px;"],(0,i.Gk)("looser-2","32px"));default:return(0,l.iv)(["padding-inline:20px;"])}}};return r&&(a=function(){return(0,l.iv)(["padding-inline:0;"])}),(0,l.iv)(["",";",";"],m({buttonSize:t,borderWidth:"medium"===t?2:0,status:o}),a)}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iconOnly,n=e.iconLeading,r=e.iconTrailing;return t?"only":n&&r?"both":n?"leading":r?"trailing":"none"}var T=function(e){var t=e.buttonSize,n=e.borderWidth,r=void 0===n?0:n,o=e.status,a=e.iconPlacement,s=(0,l.iv)(["inline-size:",";block-size:",";"],(0,i.EW)((0,i.At)(t),i.$t[t]),(0,i.EW)((0,i.At)(t),i.$t[t]));return"only"===a?s:"none"===a?E({buttonSize:t,borderWidth:r,status:o}):S({buttonSize:t,iconPlacement:a,borderWidth:r,status:o})},_=function(e){var t=e.buttonSize,n=e.condensed,r=(0,l.iv)(["padding-block:",";"],(0,i.Gk)("tighter","12px")),o=(0,l.iv)(["padding-inline:",";"],(0,i.Gk)("tighter","12px"));return"small"===t&&(r=(0,l.iv)(["padding-block:",";"],(0,i.Gk)("tighter-2","8px")),o=(0,l.iv)(["padding-inline:",";"],(0,i.Gk)("tighter-2","8px"))),n&&(o=(0,l.iv)(["padding-inline:0;"])),(0,l.iv)(["",";",";"],r,o)},A=function(e){var t=e.buttonSize,n=e.status,r=e.iconPlacement,o=e.condensed;return e.condensedAll?(0,l.iv)(["padding:0;"]):"only"===r?_({buttonSize:t,condensed:o}):"none"===r?E({buttonSize:t,status:n,condensed:o}):O({buttonSize:t,iconPlacement:r,condensed:o,status:n})},P=function(e){return(0,l.iv)(["",";"," background-color:transparent;border:0;border-radius:",";cursor:pointer;display:inline-block;position:relative;text-align:center;text-decoration:none;text-transform:",";touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],(0,u.D)(),!e&&c.Cs,f,d,p)},I=(0,l.iv)(["cursor:",";opacity:",";transform:scale(1);"],o.fn,o.Zx),R=(0,l.iv)(["opacity:",";outline:none;transform:scale(1);"],o.MQ),N=(0,l.iv)(["transform:scale(",");"],h),C=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,l.iv)(["background-color:transparent;border:0;color:inherit;cursor:pointer;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&c.Cs)}},457:function(e,t,n){"use strict";n.d(t,{Qf:function(){return r},_:function(){return i},mf:function(){return a},sz:function(){return o}});var r=function(e){return({sm:"small",md:"medium",lg:"large",small:"small",medium:"medium",large:"large"})[e]},o={small:"4px",medium:"8px",large:"12px",sm:"4px",md:"8px",lg:"12px"},i={small:"small",medium:"medium",large:"medium"},a={small:"smaller",medium:"base",large:"base"}},8506:function(e,t,n){"use strict";n.d(t,{Bg:function(){return u},Cs:function(){return f},Ef:function(){return s},IW:function(){return c},k2:function(){return y},qr:function(){return l},qy:function(){return v}});var r=n(21275),o=n(67880),i=n(28167),a=n(24159),s=3,u="var(--parents-essential-base, ".concat((0,o.NE)(o.iK.essentialBase),")"),c=i.xy,l="ease-in",f=(0,a.iv)(["&:focus{outline:none;}"]);function p(e){var t="".concat(4*s,"px"),n="-".concat(2*s,"px"),o="calc(".concat(t," + (2 * ").concat((0,r.jj)("hairline","1px"),"))"),i="calc(".concat(n," - ").concat((0,r.jj)("hairline","1px"),")");return e?{dimension:o,position:i}:{dimension:t,position:n}}var d=function(e){var t=p(e),n=t.dimension,r=t.position;return(0,a.iv)(["inline-size:",";block-size:",";inset-block-start:",";inset-inline-start:",";"],"calc(100% + ".concat(n,")"),"calc(100% + ".concat(n,")"),r,r)},h=(0,a.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],c,l),y=function(e,t){return(0,a.iv)(["",";",";background:transparent;border-radius:",";border:","px solid transparent;"],h,d(t),e,s)},g=function(e){return(0,a.iv)(["",";bottom:","px;border-bottom:","px solid transparent;width:100%;"],h,e-2*s,s)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,a.iv)(["position:relative;"," ",""],f,t&&(0,a.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],g(e),n&&(0,a.iv)(["&::after{border-color:inherit;}"])))}},39092:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r={xsmall:12,small:16,medium:24,large:32,xlarge:48,xxlarge:64,xxxlarge:64,xxxxlarge:88},o=function(e){return r[e]}},24245:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(24159),o=function(){return(0,r.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"])}},28167:function(e,t,n){"use strict";n.d(t,{xy:function(){return s},u4:function(){return a}});var r="100ms",o="200ms",i=n(24159),a=r,s=o;(0,i.iv)(["@media (prefers-reduced-motion){transition-duration:0s;}"])},3652:function(e,t,n){"use strict";n.d(t,{F:function(){return o},a:function(){return s}});var r=n(34144),o={top:"top",topRight:"topRight",topLeft:"topLeft",left:"left",leftTop:"leftTop",leftBottom:"leftBottom",bottom:"bottom",bottomLeft:"bottomLeft",bottomRight:"bottomRight",right:"right",rightTop:"rightTop",rightBottom:"rightBottom"},i={top:"top",topRight:"topEnd",topLeft:"topStart",left:"start",leftTop:"startTop",leftBottom:"startBottom",bottom:"bottom",bottomLeft:"bottomStart",bottomRight:"bottomEnd",right:"end",rightTop:"endTop",rightBottom:"endBottom"};function a(e,t){return e in t}function s(e){if(e)return a(e,r.LR)?e:i[e]}},34144:function(e,t,n){"use strict";n.d(t,{IJ:function(){return c},LR:function(){return u}});var r=n(50629),o=n(21275),i=n(67880),a=n(24159),s="0 4px 12px 0 rgba(0, 0, 0, ".concat(r.Yh,")"),u={top:"top",topEnd:"topEnd",topStart:"topStart",start:"start",startTop:"startTop",startBottom:"startBottom",bottom:"bottom",bottomStart:"bottomStart",bottomEnd:"bottomEnd",end:"end",endTop:"endTop",endBottom:"endBottom"},c=function(e){var t=e.maxWidth,n=void 0===t?"296px":t,r=e.colorSet,u=void 0===r?"base":r;return(0,a.iv)(["background:",";color:",";border-radius:",";box-shadow:",";text-align:start;cursor:default;display:inline-block;max-inline-size:",";position:relative;"],(0,i.NE)(i.iK.backgroundElevatedBase,i.uH[u].background.elevated.base),(0,i.NE)(i.iK.textBase,i.uH[u].text.base),(0,o._S)("larger-2","8px"),s,n)}},67880:function(e,t,n){"use strict";n.d(t,{D6:function(){return O},Mg:function(){return E},NE:function(){return T},TY:function(){return S},cv:function(){return y},iK:function(){return d},uH:function(){return h}});var r=n(99459),o=n(57904),i=n(10605),a=n(24306);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).reduce(function(e,n){var o=(0,r.Z)(n,2),i=o[0],s=o[1],c=i;return(""!==t&&(c="".concat(t).concat((0,a.kC)(i))),"object"==typeof s)?u(u({},e),g(s,c)):("string"==typeof s&&(e[c]=s),e)},{})};function v(e){return e.replace(/[A-Z0-9]/g,function(e){return"-".concat(e.toLowerCase())})}function b(e){return e?"encore-".concat(v(e),"-set"):""}function m(e){if(!e)return"";var t=e.replace("Set","");return"encore-".concat(v(t),"-set")}function E(e,t){return e in i.Wb?[b(e),t].join(" ").trim():[m(e),t].join(" ").trim()}function S(e){return"--".concat(v(e))}function O(e){return Object.entries(g(e)).map(function(e){var t=(0,r.Z)(e,2),n=t[0],o=t[1];return"\n ".concat(S(n),": ").concat(o," !important;\n ")})}var w=g(y);function T(e,t){var n=w[e];return t&&(n=t),"var(".concat(S(e),", ").concat(n,")")}},62450:function(e,t,n){"use strict";n.d(t,{CV:function(){return a},MQ:function(){return c},Tu:function(){return i},Zx:function(){return u},fn:function(){return f},qt:function(){return l},rp:function(){return s}});var r=n(50629),o=n(21275),i=0,a=1040,s=1060;(0,o.Sq)("tighter","24px");var u=r.Yh,c=r.cr,l="9999px",f="not-allowed"},24306:function(e,t,n){"use strict";n.d(t,{Ax:function(){return r},kC:function(){return o},lq:function(){return i},zg:function(){return a}});var r=function(){return"undefined"!=typeof window},o=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};function i(e){return function(t){e.forEach(function(e){"function"==typeof e?e(t):null!==e&&(e.current=t)})}}var a=function(e){return parseInt(e,10)}},47883:function(e,t,n){"use strict";var r,o;function i(e){return 9===e||32===e}function a(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,a=r.length>1&&r.slice(1).every(e=>0===e.length||i(e.charCodeAt(0))),s=n.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s),p="",d=o&&i(e.charCodeAt(0));return(f&&!d||a)&&(p+="\n"),p+=n,(f||l)&&(p+="\n"),'"""'+p+'"""'}function s(e){return`"${e.replace(u,c)}"`}n.d(t,{S:function(){return P}});let u=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function c(e){return l[e.charCodeAt(0)]}let l=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function f(e,t){if(!e)throw Error(t)}let p=10,d=2;function h(e){return y(e,[])}function y(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return g(e,t);default:return String(e)}}function g(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(v(e)){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:y(t,n)}else if(Array.isArray(e))return m(e,n);return b(e,n)}function v(e){return"function"==typeof e.toJSON}function b(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.length>d?"["+E(e)+"]":"{ "+n.map(([e,n])=>e+": "+y(n,t)).join(", ")+" }"}function m(e,t){if(0===e.length)return"[]";if(t.length>d)return"[Array]";let n=Math.min(p,e.length),r=e.length-n,o=[];for(let r=0;r1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function E(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}let S={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},O=new Set(Object.keys(S));function w(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&O.has(t)}(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(r||(r={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(o||(o={}));let T=Object.freeze({});function _(e,t,n=S){let r,i,a;let s=new Map;for(let e of Object.values(o))s.set(e,A(t,e));let u=Array.isArray(e),c=[e],l=-1,p=[],d=e,y=[],g=[];do{var v,b,m;let e;let o=++l===c.length,E=o&&0!==p.length;if(o){if(i=0===g.length?void 0:y[y.length-1],d=a,a=g.pop(),E){if(u){d=d.slice();let e=0;for(let[t,n]of p){let r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else for(let[e,t]of(d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d)),p))d[e]=t}l=r.index,c=r.keys,p=r.edits,u=r.inArray,r=r.prev}else if(a){if(null==(d=a[i=u?l:c[l]]))continue;y.push(i)}if(!Array.isArray(d)){w(d)||f(!1,`Invalid AST Node: ${h(d)}.`);let n=o?null===(v=s.get(d.kind))||void 0===v?void 0:v.leave:null===(b=s.get(d.kind))||void 0===b?void 0:b.enter;if((e=null==n?void 0:n.call(t,d,i,a,y,g))===T)break;if(!1===e){if(!o){y.pop();continue}}else if(void 0!==e&&(p.push([i,e]),!o)){if(w(e))d=e;else{y.pop();continue}}}void 0===e&&E&&p.push([i,d]),o?y.pop():(r={inArray:u,index:l,keys:c,edits:p,prev:r},c=(u=Array.isArray(d))?d:null!==(m=n[d.kind])&&void 0!==m?m:[],l=-1,p=[],a&&g.push(a),a=d)}while(void 0!==r);return 0!==p.length?p[p.length-1][1]:e}function A(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function P(e){return _(e,R)}let I=80,R={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>N(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=x("(",N(e.variableDefinitions,", "),")"),n=N([e.operation,N([e.name,t]),N(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+x(" = ",n)+x(" ",N(r," "))},SelectionSet:{leave:({selections:e})=>C(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){let i=x("",e,": ")+t,a=i+x("(",N(n,", "),")");return a.length>I&&(a=i+x("(\n",L(N(n,"\n")),"\n)")),N([a,N(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+x(" ",N(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>N(["...",x("on ",e),N(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${x("(",N(n,", "),")")} on ${t} ${x("",N(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?a(e):s(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+N(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+N(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+x("(",N(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>x("",e,"\n")+N(["schema",N(t," "),C(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>x("",e,"\n")+N(["scalar",t,N(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>x("",e,"\n")+N(["type",t,x("implements ",N(n," & ")),N(r," "),C(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>x("",e,"\n")+t+(k(n)?x("(\n",L(N(n,"\n")),"\n)"):x("(",N(n,", "),")"))+": "+r+x(" ",N(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>x("",e,"\n")+N([t+": "+n,x("= ",r),N(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>x("",e,"\n")+N(["interface",t,x("implements ",N(n," & ")),N(r," "),C(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>x("",e,"\n")+N(["union",t,N(n," "),x("= ",N(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>x("",e,"\n")+N(["enum",t,N(n," "),C(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>x("",e,"\n")+N([t,N(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>x("",e,"\n")+N(["input",t,N(n," "),C(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>x("",e,"\n")+"directive @"+t+(k(n)?x("(\n",L(N(n,"\n")),"\n)"):x("(",N(n,", "),")"))+(r?" repeatable":"")+" on "+N(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>N(["extend schema",N(e," "),C(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>N(["extend scalar",e,N(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>N(["extend type",e,x("implements ",N(t," & ")),N(n," "),C(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>N(["extend interface",e,x("implements ",N(t," & ")),N(n," "),C(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>N(["extend union",e,N(t," "),x("= ",N(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>N(["extend enum",e,N(t," "),C(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>N(["extend input",e,N(t," "),C(n)]," ")}};function N(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function C(e){return x("{\n",L(N(e,"\n")),"\n}")}function x(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function L(e){return x(" ",e.replace(/\n/g,"\n "))}function k(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}}}]);