@auth0/auth0-react 1.7.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth0-context.d.ts +9 -3
- package/dist/auth0-context.d.ts.map +1 -1
- package/dist/auth0-provider.d.ts +7 -1
- package/dist/auth0-provider.d.ts.map +1 -1
- package/dist/auth0-react.cjs.js +58 -42
- package/dist/auth0-react.cjs.js.map +1 -1
- package/dist/auth0-react.esm.js +51 -36
- package/dist/auth0-react.esm.js.map +1 -1
- package/dist/auth0-react.js +60 -43
- package/dist/auth0-react.js.map +1 -1
- package/dist/auth0-react.min.js +13 -13
- package/dist/auth0-react.min.js.map +1 -1
- package/dist/reducer.d.ts +1 -1
- package/dist/reducer.d.ts.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/with-auth0.d.ts +2 -2
- package/dist/with-auth0.d.ts.map +1 -1
- package/dist/with-authentication-required.d.ts +1 -1
- package/dist/with-authentication-required.d.ts.map +1 -1
- package/package.json +42 -42
- package/src/auth0-context.tsx +13 -4
- package/src/auth0-provider.tsx +45 -22
- package/src/with-auth0.tsx +11 -7
- package/src/with-authentication-required.tsx +2 -2
package/dist/auth0-react.js
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
|
|
4
|
-
(global = global || self, factory(global.reactAuth0 = {}, global.React));
|
|
5
|
-
}(this, (function (exports, React) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.reactAuth0 = {}, global.React));
|
|
5
|
+
})(this, (function (exports, React) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
8
10
|
|
|
9
11
|
/*! *****************************************************************************
|
|
10
|
-
Copyright (c) Microsoft Corporation.
|
|
11
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
12
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
13
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
Copyright (c) Microsoft Corporation.
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
18
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
14
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
15
|
+
purpose with or without fee is hereby granted.
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
18
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
19
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
20
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
21
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
22
24
|
***************************************************************************** */
|
|
23
25
|
/* global Reflect, Promise */
|
|
24
26
|
|
|
25
27
|
var extendStatics = function(d, b) {
|
|
26
28
|
extendStatics = Object.setPrototypeOf ||
|
|
27
29
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28
|
-
function (d, b) { for (var p in b) if (
|
|
30
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
29
31
|
return extendStatics(d, b);
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
function __extends(d, b) {
|
|
35
|
+
if (typeof b !== "function" && b !== null)
|
|
36
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
37
|
extendStatics(d, b);
|
|
34
38
|
function __() { this.constructor = d; }
|
|
35
39
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -110,7 +114,7 @@
|
|
|
110
114
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
111
115
|
PERFORMANCE OF THIS SOFTWARE.
|
|
112
116
|
***************************************************************************** */
|
|
113
|
-
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)};function t(t,n){if("function"!=typeof n&&null!==n)throw new 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);}var n=function(){return (n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);}return n}function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e));}catch(e){i(e);}}function c(e){try{s(r.throw(e));}catch(e){i(e);}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t);}))).then(a,c);}s((r=r.apply(e,t||[])).next());}))}function i(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:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new 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=a.trys,(o=o.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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a);}catch(e){i=[6,e],r=0;}finally{n=o=0;}if(5&i[0])throw i[1];return {value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value);}catch(e){o={error:e};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e,t){return e(t={exports:{}},t.exports),t.exports}var f,d,h=function(e){return e&&e.Math==Math&&e},p=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof s&&s)||function(){return this}()||Function("return this")(),y=function(e){try{return !!e()}catch(e){return !0}},v=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,b={f:g&&!m.call({1:2},1)?function(e){var t=g(this,e);return !!t&&t.enumerable}:m},w=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},S={}.toString,_=function(e){return S.call(e).slice(8,-1)},k="".split,I=y((function(){return !Object("z").propertyIsEnumerable(0)}))?function(e){return "String"==_(e)?k.call(e,""):Object(e)}:Object,T=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},O=function(e){return I(T(e))},E=function(e){return "object"==typeof e?null!==e:"function"==typeof e},x=function(e){return "function"==typeof e?e:void 0},R=function(e,t){return arguments.length<2?x(p[e]):p[e]&&p[e][t]},C=R("navigator","userAgent")||"",j=p.process,F=p.Deno,A=j&&j.versions||F&&F.version,U=A&&A.v8;U?d=(f=U.split("."))[0]<4?1:f[0]+f[1]:C&&(!(f=C.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=C.match(/Chrome\/(\d+)/))&&(d=f[1]);var K=d&&+d,L=!!Object.getOwnPropertySymbols&&!y((function(){var e=Symbol();return !String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&K&&K<41})),P=L&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=P?function(e){return "symbol"==typeof e}:function(e){var t=R("Symbol");return "function"==typeof t&&Object(e)instanceof t},Z=function(e,t){try{Object.defineProperty(p,e,{value:t,configurable:!0,writable:!0});}catch(n){p[e]=t;}return t},V=p["__core-js_shared__"]||Z("__core-js_shared__",{}),X=l((function(e){(e.exports=function(e,t){return V[e]||(V[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});})),N=function(e){return Object(T(e))},Y={}.hasOwnProperty,z=Object.hasOwn||function(e,t){return Y.call(N(e),t)},D=0,J=Math.random(),B=function(e){return "Symbol("+String(void 0===e?"":e)+")_"+(++D+J).toString(36)},G=X("wks"),M=p.Symbol,H=P?M:M&&M.withoutSetter||B,q=function(e){return z(G,e)&&(L||"string"==typeof G[e])||(L&&z(M,e)?G[e]=M[e]:G[e]=H("Symbol."+e)),G[e]},Q=q("toPrimitive"),$=function(e,t){if(!E(e)||W(e))return e;var n,r=e[Q];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!E(n)||W(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!E(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},ee=function(e){var t=$(e,"string");return W(t)?t:String(t)},te=p.document,ne=E(te)&&E(te.createElement),re=function(e){return ne?te.createElement(e):{}},oe=!v&&!y((function(){return 7!=Object.defineProperty(re("div"),"a",{get:function(){return 7}}).a})),ie=Object.getOwnPropertyDescriptor,ae={f:v?ie:function(e,t){if(e=O(e),t=ee(t),oe)try{return ie(e,t)}catch(e){}if(z(e,t))return w(!b.f.call(e,t),e[t])}},ce=function(e){if(!E(e))throw TypeError(String(e)+" is not an object");return e},se=Object.defineProperty,ue={f:v?se:function(e,t,n){if(ce(e),t=ee(t),ce(n),oe)try{return se(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return "value"in n&&(e[t]=n.value),e}},le=v?function(e,t,n){return ue.f(e,t,w(1,n))}:function(e,t,n){return e[t]=n,e},fe=Function.toString;"function"!=typeof V.inspectSource&&(V.inspectSource=function(e){return fe.call(e)});var de,he,pe,ye=V.inspectSource,ve=p.WeakMap,me="function"==typeof ve&&/native code/.test(ye(ve)),ge=X("keys"),be=function(e){return ge[e]||(ge[e]=B(e))},we={},Se=p.WeakMap;if(me||V.state){var _e=V.state||(V.state=new Se),ke=_e.get,Ie=_e.has,Te=_e.set;de=function(e,t){if(Ie.call(_e,e))throw new TypeError("Object already initialized");return t.facade=e,Te.call(_e,e,t),t},he=function(e){return ke.call(_e,e)||{}},pe=function(e){return Ie.call(_e,e)};}else {var Oe=be("state");we[Oe]=!0,de=function(e,t){if(z(e,Oe))throw new TypeError("Object already initialized");return t.facade=e,le(e,Oe,t),t},he=function(e){return z(e,Oe)?e[Oe]:{}},pe=function(e){return z(e,Oe)};}var Ee,xe={set:de,get:he,has:pe,enforce:function(e){return pe(e)?he(e):de(e,{})},getterFor:function(e){return function(t){var n;if(!E(t)||(n=he(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Re=l((function(e){var t=xe.get,n=xe.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,c=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||z(o,"name")||le(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==p?(c?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=o:le(e,t,o)):s?e[t]=o:Z(t,o);})(Function.prototype,"toString",(function(){return "function"==typeof this&&t(this).source||ye(this)}));})),Ce=Math.ceil,je=Math.floor,Fe=function(e){return isNaN(e=+e)?0:(e>0?je:Ce)(e)},Ae=Math.min,Ue=function(e){return e>0?Ae(Fe(e),9007199254740991):0},Ke=Math.max,Le=Math.min,Pe=function(e){return function(t,n,r){var o,i=O(t),a=Ue(i.length),c=function(e,t){var n=Fe(e);return n<0?Ke(n+t,0):Le(n,t)}(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return !0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return !e&&-1}},We={includes:Pe(!0),indexOf:Pe(!1)},Ze=We.indexOf,Ve=function(e,t){var n,r=O(e),o=0,i=[];for(n in r)!z(we,n)&&z(r,n)&&i.push(n);for(;t.length>o;)z(r,n=t[o++])&&(~Ze(i,n)||i.push(n));return i},Xe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ne=Xe.concat("length","prototype"),Ye={f:Object.getOwnPropertyNames||function(e){return Ve(e,Ne)}},ze={f:Object.getOwnPropertySymbols},De=R("Reflect","ownKeys")||function(e){var t=Ye.f(ce(e)),n=ze.f;return n?t.concat(n(e)):t},Je=function(e,t){for(var n=De(t),r=ue.f,o=ae.f,i=0;i<n.length;i++){var a=n[i];z(e,a)||r(e,a,o(t,a));}},Be=/#|\.prototype\./,Ge=function(e,t){var n=He[Me(e)];return n==Qe||n!=qe&&("function"==typeof t?y(t):!!t)},Me=Ge.normalize=function(e){return String(e).replace(Be,".").toLowerCase()},He=Ge.data={},qe=Ge.NATIVE="N",Qe=Ge.POLYFILL="P",$e=Ge,et=ae.f,tt=function(e,t){var n,r,o,i,a,c=e.target,s=e.global,u=e.stat;if(n=s?p:u?p[c]||Z(c,{}):(p[c]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=et(n,r))&&a.value:n[r],!$e(s?r:c+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Je(i,o);}(e.sham||o&&o.sham)&&le(i,"sham",!0),Re(n,r,i,e);}},nt=function(e){if(W(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},rt=q("match"),ot=function(e){if(function(e){var t;return E(e)&&(void 0!==(t=e[rt])?!!t:"RegExp"==_(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},it=q("match"),at=function(e){var t=/./;try{"/./"[e](t);}catch(n){try{return t[it]=!1,"/./"[e](t)}catch(e){}}return !1},ct=ae.f,st="".startsWith,ut=Math.min,lt=at("startsWith"),ft=!(lt||(Ee=ct(String.prototype,"startsWith"),!Ee||Ee.writable));tt({target:"String",proto:!0,forced:!ft&&!lt},{startsWith:function(e){var t=nt(T(this));ot(e);var n=Ue(ut(arguments.length>1?arguments[1]:void 0,t.length)),r=nt(e);return st?st.call(t,r,n):t.slice(n,n+r.length)===r}});var dt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},ht=function(e,t,n){if(dt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},pt=Function.call,yt=function(e,t,n){return ht(pt,p[e].prototype[t],n)};yt("String","startsWith");var vt,mt=Array.isArray||function(e){return "Array"==_(e)},gt=function(e,t,n){var r=ee(t);r in e?ue.f(e,r,w(0,n)):e[r]=n;},bt=q("species"),wt=function(e,t){return new(function(e){var t;return mt(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!mt(t.prototype)?E(t)&&null===(t=t[bt])&&(t=void 0):t=void 0),void 0===t?Array:t}(e))(0===t?0:t)},St=q("species"),_t=q("isConcatSpreadable"),kt=K>=51||!y((function(){var e=[];return e[_t]=!1,e.concat()[0]!==e})),It=(vt="concat",K>=51||!y((function(){var e=[];return (e.constructor={})[St]=function(){return {foo:1}},1!==e[vt](Boolean).foo}))),Tt=function(e){if(!E(e))return !1;var t=e[_t];return void 0!==t?!!t:mt(e)};tt({target:"Array",proto:!0,forced:!kt||!It},{concat:function(e){var t,n,r,o,i,a=N(this),c=wt(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Tt(i=-1===t?a:arguments[t])){if(s+(o=Ue(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&>(c,s,i[n]);}else {if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");gt(c,s++,i);}return c.length=s,c}});var Ot={};Ot[q("toStringTag")]="z";var Et="[object z]"===String(Ot),xt=q("toStringTag"),Rt="Arguments"==_(function(){return arguments}()),Ct=Et?_:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),xt))?n:Rt?_(t):"Object"==(r=_(t))&&"function"==typeof t.callee?"Arguments":r},jt=Et?{}.toString:function(){return "[object "+Ct(this)+"]"};Et||Re(Object.prototype,"toString",jt,{unsafe:!0});var Ft,At=Object.keys||function(e){return Ve(e,Xe)},Ut=v?Object.defineProperties:function(e,t){ce(e);for(var n,r=At(t),o=r.length,i=0;o>i;)ue.f(e,n=r[i++],t[n]);return e},Kt=R("document","documentElement"),Lt=be("IE_PROTO"),Pt=function(){},Wt=function(e){return "<script>"+e+"<\/script>"},Zt=function(e){e.write(Wt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Vt=function(){try{Ft=new ActiveXObject("htmlfile");}catch(e){}Vt=document.domain&&Ft?Zt(Ft):function(){var e,t=re("iframe");if(t.style)return t.style.display="none",Kt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Wt("document.F=Object")),e.close(),e.F}()||Zt(Ft);for(var e=Xe.length;e--;)delete Vt.prototype[Xe[e]];return Vt()};we[Lt]=!0;var Xt=Object.create||function(e,t){var n;return null!==e?(Pt.prototype=ce(e),n=new Pt,Pt.prototype=null,n[Lt]=e):n=Vt(),void 0===t?n:Ut(n,t)},Nt=Ye.f,Yt={}.toString,zt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dt={f:function(e){return zt&&"[object Window]"==Yt.call(e)?function(e){try{return Nt(e)}catch(e){return zt.slice()}}(e):Nt(O(e))}},Jt={f:q},Bt=p,Gt=ue.f,Mt=function(e){var t=Bt.Symbol||(Bt.Symbol={});z(t,e)||Gt(t,e,{value:Jt.f(e)});},Ht=ue.f,qt=q("toStringTag"),Qt=function(e,t,n){e&&!z(e=n?e:e.prototype,qt)&&Ht(e,qt,{configurable:!0,value:t});},$t=[].push,en=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(s,u,l,f){for(var d,h,p=N(s),y=I(p),v=ht(u,l,3),m=Ue(y.length),g=0,b=f||wt,w=t?b(s,m):n||a?b(s,0):void 0;m>g;g++)if((c||g in y)&&(h=v(d=y[g],g,p),e))if(t)w[g]=h;else if(h)switch(e){case 3:return !0;case 5:return d;case 6:return g;case 2:$t.call(w,d);}else switch(e){case 4:return !1;case 7:$t.call(w,d);}return i?-1:r||o?o:w}},tn={forEach:en(0),map:en(1),filter:en(2),some:en(3),every:en(4),find:en(5),findIndex:en(6),filterReject:en(7)}.forEach,nn=be("hidden"),rn=q("toPrimitive"),on=xe.set,an=xe.getterFor("Symbol"),cn=Object.prototype,sn=p.Symbol,un=R("JSON","stringify"),ln=ae.f,fn=ue.f,dn=Dt.f,hn=b.f,pn=X("symbols"),yn=X("op-symbols"),vn=X("string-to-symbol-registry"),mn=X("symbol-to-string-registry"),gn=X("wks"),bn=p.QObject,wn=!bn||!bn.prototype||!bn.prototype.findChild,Sn=v&&y((function(){return 7!=Xt(fn({},"a",{get:function(){return fn(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ln(cn,t);r&&delete cn[t],fn(e,t,n),r&&e!==cn&&fn(cn,t,r);}:fn,_n=function(e,t){var n=pn[e]=Xt(sn.prototype);return on(n,{type:"Symbol",tag:e,description:t}),v||(n.description=t),n},kn=function(e,t,n){e===cn&&kn(yn,t,n),ce(e);var r=ee(t);return ce(n),z(pn,r)?(n.enumerable?(z(e,nn)&&e[nn][r]&&(e[nn][r]=!1),n=Xt(n,{enumerable:w(0,!1)})):(z(e,nn)||fn(e,nn,w(1,{})),e[nn][r]=!0),Sn(e,r,n)):fn(e,r,n)},In=function(e,t){ce(e);var n=O(t),r=At(n).concat(xn(n));return tn(r,(function(t){v&&!Tn.call(n,t)||kn(e,t,n[t]);})),e},Tn=function(e){var t=ee(e),n=hn.call(this,t);return !(this===cn&&z(pn,t)&&!z(yn,t))&&(!(n||!z(this,t)||!z(pn,t)||z(this,nn)&&this[nn][t])||n)},On=function(e,t){var n=O(e),r=ee(t);if(n!==cn||!z(pn,r)||z(yn,r)){var o=ln(n,r);return !o||!z(pn,r)||z(n,nn)&&n[nn][r]||(o.enumerable=!0),o}},En=function(e){var t=dn(O(e)),n=[];return tn(t,(function(e){z(pn,e)||z(we,e)||n.push(e);})),n},xn=function(e){var t=e===cn,n=dn(t?yn:O(e)),r=[];return tn(n,(function(e){!z(pn,e)||t&&!z(cn,e)||r.push(pn[e]);})),r};if(L||(Re((sn=function(){if(this instanceof sn)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?nt(arguments[0]):void 0,t=B(e),n=function(e){this===cn&&n.call(yn,e),z(this,nn)&&z(this[nn],t)&&(this[nn][t]=!1),Sn(this,t,w(1,e));};return v&&wn&&Sn(cn,t,{configurable:!0,set:n}),_n(t,e)}).prototype,"toString",(function(){return an(this).tag})),Re(sn,"withoutSetter",(function(e){return _n(B(e),e)})),b.f=Tn,ue.f=kn,ae.f=On,Ye.f=Dt.f=En,ze.f=xn,Jt.f=function(e){return _n(q(e),e)},v&&(fn(sn.prototype,"description",{configurable:!0,get:function(){return an(this).description}}),Re(cn,"propertyIsEnumerable",Tn,{unsafe:!0}))),tt({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:sn}),tn(At(gn),(function(e){Mt(e);})),tt({target:"Symbol",stat:!0,forced:!L},{for:function(e){var t=nt(e);if(z(vn,t))return vn[t];var n=sn(t);return vn[t]=n,mn[n]=t,n},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol");if(z(mn,e))return mn[e]},useSetter:function(){wn=!0;},useSimple:function(){wn=!1;}}),tt({target:"Object",stat:!0,forced:!L,sham:!v},{create:function(e,t){return void 0===t?Xt(e):In(Xt(e),t)},defineProperty:kn,defineProperties:In,getOwnPropertyDescriptor:On}),tt({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:En,getOwnPropertySymbols:xn}),tt({target:"Object",stat:!0,forced:y((function(){ze.f(1);}))},{getOwnPropertySymbols:function(e){return ze.f(N(e))}}),un){var Rn=!L||y((function(){var e=sn();return "[null]"!=un([e])||"{}"!=un({a:e})||"{}"!=un(Object(e))}));tt({target:"JSON",stat:!0,forced:Rn},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(E(t)||void 0!==e)&&!W(e))return mt(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!W(t))return t}),o[1]=t,un.apply(null,o)}});}sn.prototype[rn]||le(sn.prototype,rn,sn.prototype.valueOf),Qt(sn,"Symbol"),we[nn]=!0,Mt("asyncIterator");var Cn=ue.f,jn=p.Symbol;if(v&&"function"==typeof jn&&(!("description"in jn.prototype)||void 0!==jn().description)){var Fn={},An=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof An?new jn(e):void 0===e?jn():jn(e);return ""===e&&(Fn[t]=!0),t};Je(An,jn);var Un=An.prototype=jn.prototype;Un.constructor=An;var Kn=Un.toString,Ln="Symbol(test)"==String(jn("test")),Pn=/^Symbol\((.*)\)[^)]+$/;Cn(Un,"description",{configurable:!0,get:function(){var e=E(this)?this.valueOf():this,t=Kn.call(e);if(z(Fn,e))return "";var n=Ln?t.slice(7,-1):t.replace(Pn,"$1");return ""===n?void 0:n}}),tt({global:!0,forced:!0},{Symbol:An});}Mt("hasInstance"),Mt("isConcatSpreadable"),Mt("iterator"),Mt("match"),Mt("matchAll"),Mt("replace"),Mt("search"),Mt("species"),Mt("split"),Mt("toPrimitive"),Mt("toStringTag"),Mt("unscopables"),Qt(p.JSON,"JSON",!0),Qt(Math,"Math",!0),tt({global:!0},{Reflect:{}}),Qt(p.Reflect,"Reflect",!0),Bt.Symbol;var Wn,Zn,Vn,Xn=function(e){return function(t,n){var r,o,i=nt(T(t)),a=Fe(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Nn={codeAt:Xn(!1),charAt:Xn(!0)},Yn=!y((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zn=be("IE_PROTO"),Dn=Object.prototype,Jn=Yn?Object.getPrototypeOf:function(e){return e=N(e),z(e,zn)?e[zn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Dn:null},Bn=q("iterator"),Gn=!1;[].keys&&("next"in(Vn=[].keys())?(Zn=Jn(Jn(Vn)))!==Object.prototype&&(Wn=Zn):Gn=!0),(null==Wn||y((function(){var e={};return Wn[Bn].call(e)!==e})))&&(Wn={}),z(Wn,Bn)||le(Wn,Bn,(function(){return this}));var Mn={IteratorPrototype:Wn,BUGGY_SAFARI_ITERATORS:Gn},Hn={},qn=Mn.IteratorPrototype,Qn=function(){return this},$n=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array;}catch(e){}return function(n,r){return ce(n),function(e){if(!E(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),er=Mn.IteratorPrototype,tr=Mn.BUGGY_SAFARI_ITERATORS,nr=q("iterator"),rr=function(){return this},or=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Xt(qn,{next:w(1,n)}),Qt(e,r,!1),Hn[r]=Qn;}(n,t,r);var c,s,u,l=function(e){if(e===o&&y)return y;if(!tr&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[nr]||h["@@iterator"]||o&&h[o],y=!tr&&p||l(o),v="Array"==t&&h.entries||p;if(v&&(c=Jn(v.call(new e)),er!==Object.prototype&&c.next&&(Jn(c)!==er&&($n?$n(c,er):"function"!=typeof c[nr]&&le(c,nr,rr)),Qt(c,f,!0))),"values"==o&&p&&"values"!==p.name&&(d=!0,y=function(){return p.call(this)}),h[nr]!==y&&le(h,nr,y),Hn[t]=y,o)if(s={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},a)for(u in s)(tr||d||!(u in h))&&Re(h,u,s[u]);else tt({target:t,proto:!0,forced:tr||d},s);return s},ir=Nn.charAt,ar=xe.set,cr=xe.getterFor("String Iterator");or(String,"String",(function(e){ar(this,{type:"String Iterator",string:nt(e),index:0});}),(function(){var e,t=cr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ir(n,r),t.index+=e.length,{value:e,done:!1})}));var sr=function(e){var t=e.return;if(void 0!==t)return ce(t.call(e)).value},ur=function(e,t,n,r){try{return r?t(ce(n)[0],n[1]):t(n)}catch(t){throw sr(e),t}},lr=q("iterator"),fr=Array.prototype,dr=function(e){return void 0!==e&&(Hn.Array===e||fr[lr]===e)},hr=q("iterator"),pr=function(e){if(null!=e)return e[hr]||e["@@iterator"]||Hn[Ct(e)]},yr=q("iterator"),vr=!1;try{var mr=0,gr={next:function(){return {done:!!mr++}},return:function(){vr=!0;}};gr[yr]=function(){return this},Array.from(gr,(function(){throw 2}));}catch(e){}var br=function(e,t){if(!t&&!vr)return !1;var n=!1;try{var r={};r[yr]=function(){return {next:function(){return {done:n=!0}}}},e(r);}catch(e){}return n},wr=!br((function(e){Array.from(e);}));tt({target:"Array",stat:!0,forced:wr},{from:function(e){var t,n,r,o,i,a,c=N(e),s="function"==typeof this?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=pr(c),h=0;if(f&&(l=ht(l,u>2?arguments[2]:void 0,2)),null==d||s==Array&&dr(d))for(n=new s(t=Ue(c.length));t>h;h++)a=f?l(c[h],h):c[h],gt(n,h,a);else for(i=(o=d.call(c)).next,n=new s;!(r=i.call(o)).done;h++)a=f?ur(o,l,[r.value,h],!0):r.value,gt(n,h,a);return n.length=h,n}}),Bt.Array.from;var Sr,_r,kr,Ir="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Tr=ue.f,Or=p.Int8Array,Er=Or&&Or.prototype,xr=p.Uint8ClampedArray,Rr=xr&&xr.prototype,Cr=Or&&Jn(Or),jr=Er&&Jn(Er),Fr=Object.prototype,Ar=Fr.isPrototypeOf,Ur=q("toStringTag"),Kr=B("TYPED_ARRAY_TAG"),Lr=B("TYPED_ARRAY_CONSTRUCTOR"),Pr=Ir&&!!$n&&"Opera"!==Ct(p.opera),Wr=!1,Zr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Vr={BigInt64Array:8,BigUint64Array:8},Xr=function(e){if(!E(e))return !1;var t=Ct(e);return z(Zr,t)||z(Vr,t)};for(Sr in Zr)(kr=(_r=p[Sr])&&_r.prototype)?le(kr,Lr,_r):Pr=!1;for(Sr in Vr)(kr=(_r=p[Sr])&&_r.prototype)&&le(kr,Lr,_r);if((!Pr||"function"!=typeof Cr||Cr===Function.prototype)&&(Cr=function(){throw TypeError("Incorrect invocation")},Pr))for(Sr in Zr)p[Sr]&&$n(p[Sr],Cr);if((!Pr||!jr||jr===Fr)&&(jr=Cr.prototype,Pr))for(Sr in Zr)p[Sr]&&$n(p[Sr].prototype,jr);if(Pr&&Jn(Rr)!==jr&&$n(Rr,jr),v&&!z(jr,Ur))for(Sr in Wr=!0,Tr(jr,Ur,{get:function(){return E(this)?this[Kr]:void 0}}),Zr)p[Sr]&&le(p[Sr],Kr,Sr);var Nr={NATIVE_ARRAY_BUFFER_VIEWS:Pr,TYPED_ARRAY_CONSTRUCTOR:Lr,TYPED_ARRAY_TAG:Wr&&Kr,aTypedArray:function(e){if(Xr(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if($n&&!Ar.call(Cr,e))throw TypeError("Target is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n){if(v){if(n)for(var r in Zr){var o=p[r];if(o&&z(o.prototype,e))try{delete o.prototype[e];}catch(e){}}jr[e]&&!n||Re(jr,e,n?t:Pr&&Er[e]||t);}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(v){if($n){if(n)for(r in Zr)if((o=p[r])&&z(o,e))try{delete o[e];}catch(e){}if(Cr[e]&&!n)return;try{return Re(Cr,e,n?t:Pr&&Cr[e]||t)}catch(e){}}for(r in Zr)!(o=p[r])||o[e]&&!n||Re(o,e,t);}},isView:function(e){if(!E(e))return !1;var t=Ct(e);return "DataView"===t||z(Zr,t)||z(Vr,t)},isTypedArray:Xr,TypedArray:Cr,TypedArrayPrototype:jr},Yr=q("species"),zr=Nr.TYPED_ARRAY_CONSTRUCTOR,Dr=Nr.aTypedArrayConstructor,Jr=function(e){return Dr((t=e,n=e[zr],void 0===(o=ce(t).constructor)||null==(r=ce(o)[Yr])?n:dt(r)));var t,n,r,o;},Br=Nr.aTypedArray,Gr=[].slice;(0, Nr.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Gr.call(Br(this),e,t),r=Jr(this),o=0,i=n.length,a=new r(i);i>o;)a[o]=n[o++];return a}),y((function(){new Int8Array(1).slice();})));var Mr=q("unscopables"),Hr=Array.prototype;null==Hr[Mr]&&ue.f(Hr,Mr,{configurable:!0,value:Xt(null)});var qr=function(e){Hr[Mr][e]=!0;},Qr=We.includes;tt({target:"Array",proto:!0},{includes:function(e){return Qr(this,e,arguments.length>1?arguments[1]:void 0)}}),qr("includes"),yt("Array","includes"),tt({target:"String",proto:!0,forced:!at("includes")},{includes:function(e){return !!~nt(T(this)).indexOf(nt(ot(e)),arguments.length>1?arguments[1]:void 0)}}),yt("String","includes");var $r=xe.set,eo=xe.getterFor("Array Iterator");or(Array,"Array",(function(e,t){$r(this,{type:"Array Iterator",target:O(e),index:0,kind:t});}),(function(){var e=eo(this),t=e.target,n=e.kind,r=e.index++;return !t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Hn.Arguments=Hn.Array,qr("keys"),qr("values"),qr("entries");var to=!y((function(){return Object.isExtensible(Object.preventExtensions({}))})),no=l((function(e){var t=ue.f,n=!1,r=B("meta"),o=0,i=Object.isExtensible||function(){return !0},a=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}});},c=e.exports={enable:function(){c.enable=function(){},n=!0;var e=Ye.f,t=[].splice,o={};o[r]=1,e(o).length&&(Ye.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t.call(o,i,1);break}return o},tt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Dt.f}));},fastKey:function(e,t){if(!E(e))return "symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!z(e,r)){if(!i(e))return "F";if(!t)return "E";a(e);}return e[r].objectID},getWeakData:function(e,t){if(!z(e,r)){if(!i(e))return !0;if(!t)return !1;a(e);}return e[r].weakData},onFreeze:function(e){return to&&n&&i(e)&&!z(e,r)&&a(e),e}};we[r]=!0;}));no.enable,no.fastKey,no.getWeakData,no.onFreeze;var ro=function(e,t){this.stopped=e,this.result=t;},oo=function(e,t,n){var r,o,i,a,c,s,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=ht(t,l,1+f+h),y=function(e){return r&&sr(r),new ro(!0,e)},v=function(e){return f?(ce(e),h?p(e[0],e[1],y):p(e[0],e[1])):h?p(e,y):p(e)};if(d)r=e;else {if("function"!=typeof(o=pr(e)))throw TypeError("Target is not iterable");if(dr(o)){for(i=0,a=Ue(e.length);a>i;i++)if((c=v(e[i]))&&c instanceof ro)return c;return new ro(!1)}r=o.call(e);}for(s=r.next;!(u=s.call(r)).done;){try{c=v(u.value);}catch(e){throw sr(r),e}if("object"==typeof c&&c&&c instanceof ro)return c}return new ro(!1)},io=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},ao=function(e,t,n){for(var r in t)Re(e,r,t[r],n);return e},co=q("species"),so=ue.f,uo=no.fastKey,lo=xe.set,fo=xe.getterFor,ho={getConstructor:function(e,t,n,r){var o=e((function(e,i){io(e,o,t),lo(e,{type:t,index:Xt(null),first:void 0,last:void 0,size:0}),v||(e.size=0),null!=i&&oo(i,e[r],{that:e,AS_ENTRIES:n});})),i=fo(t),a=function(e,t,n){var r,o,a=i(e),s=c(e,t);return s?s.value=n:(a.last=s={index:o=uo(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),v?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},c=function(e,t){var n,r=i(e),o=uo(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return ao(o.prototype,{clear:function(){for(var e=i(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,v?e.size=0:this.size=0;},delete:function(e){var t=this,n=i(t),r=c(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),v?n.size--:t.size--;}return !!r},forEach:function(e){for(var t,n=i(this),r=ht(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous;},has:function(e){return !!c(this,e)}}),ao(o.prototype,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),v&&so(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=fo(t),i=fo(r);or(e,t,(function(e,t){lo(this,{type:r,target:e,state:o(e),kind:t,last:void 0});}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(e){var t=R(e),n=ue.f;v&&t&&!t[co]&&n(t,co,{configurable:!0,get:function(){return this}});}(t);}};function po(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function yo(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){i(e,t);}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r);}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r);}for(var a=0;a<r.length;a++)i(a,r[a]);}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=p[e],c=a&&a.prototype,s=a,u={},l=function(e){var t=c[e];Re(c,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return !(o&&!E(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!E(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return !(o&&!E(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this});};if($e(e,"function"!=typeof a||!(o||c.forEach&&!y((function(){(new a).entries().next();})))))s=n.getConstructor(t,e,r,i),no.enable();else if($e(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,h=y((function(){f.has(1);})),v=br((function(e){new a(e);})),m=!o&&y((function(){for(var e=new a,t=5;t--;)e[i](t,t);return !e.has(-0)}));v||((s=t((function(t,n){io(t,s,e);var o=function(e,t,n){var r,o;return $n&&"function"==typeof(r=t.constructor)&&r!==n&&E(o=r.prototype)&&o!==n.prototype&&$n(e,o),e}(new a,t,s);return null!=n&&oo(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=c,c.constructor=s),(h||m)&&(l("delete"),l("has"),r&&l("get")),(m||d)&&l(i),o&&c.clear&&delete c.clear;}u[e]=s,tt({global:!0,forced:s!=a},u),Qt(s,e),o||n.setStrong(s,e,r);}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ho),Bt.Set;var vo=setTimeout;function mo(e){return Boolean(e&&void 0!==e.length)}function go(){}function bo(e){if(!(this instanceof bo))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],To(e,this);}function wo(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,bo._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value);}catch(e){return void _o(t.promise,e)}So(t.promise,r);}else (1===e._state?So:_o)(t.promise,e._value);}))):e._deferreds.push(t);}function So(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof bo)return e._state=3,e._value=t,void ko(e);if("function"==typeof n)return void To((r=n,o=t,function(){r.apply(o,arguments);}),e)}e._state=1,e._value=t,ko(e);}catch(t){_o(e,t);}var r,o;}function _o(e,t){e._state=2,e._value=t,ko(e);}function ko(e){2===e._state&&0===e._deferreds.length&&bo._immediateFn((function(){e._handled||bo._unhandledRejectionFn(e._value);}));for(var t=0,n=e._deferreds.length;t<n;t++)wo(e,e._deferreds[t]);e._deferreds=null;}function Io(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n;}function To(e,t){var n=!1;try{e((function(e){n||(n=!0,So(t,e));}),(function(e){n||(n=!0,_o(t,e));}));}catch(e){if(n)return;n=!0,_o(t,e);}}bo.prototype.catch=function(e){return this.then(null,e)},bo.prototype.then=function(e,t){var n=new this.constructor(go);return wo(this,new Io(e,t,n)),n},bo.prototype.finally=po,bo.all=function(e){return new bo((function(t,n){if(!mo(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,(function(t){i(e,t);}),n)}r[e]=a,0==--o&&t(r);}catch(e){n(e);}}for(var a=0;a<r.length;a++)i(a,r[a]);}))},bo.allSettled=yo,bo.resolve=function(e){return e&&"object"==typeof e&&e.constructor===bo?e:new bo((function(t){t(e);}))},bo.reject=function(e){return new bo((function(t,n){n(e);}))},bo.race=function(e){return new bo((function(t,n){if(!mo(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)bo.resolve(e[r]).then(t,n);}))},bo._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e);}||function(e){vo(e,0);},bo._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e);};var Oo=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"function"!=typeof Oo.Promise?Oo.Promise=bo:Oo.Promise.prototype.finally?Oo.Promise.allSettled||(Oo.Promise.allSettled=yo):Oo.Promise.prototype.finally=po,function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===o.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function r(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],i=0;;){var a=t<e.length;if(!a||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!a)return o.join("");e=e.subarray(t),i=t=0;}if(0==(128&(a=e[t++])))r[i++]=a;else if(192==(224&a)){var c=63&e[t++];r[i++]=(31&a)<<6|c;}else if(224==(240&a)){c=63&e[t++];var s=63&e[t++];r[i++]=(31&a)<<12|c<<6|s;}else if(240==(248&a)){65535<(a=(7&a)<<18|(c=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(a-=65536,r[i++]=a>>>10&1023|55296,a=56320|1023&a),r[i++]=a;}}}if(e.TextEncoder&&e.TextDecoder)return !1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(o>>>3<<3);t<n;){var a=e.charCodeAt(t++);if(55296<=a&&56319>=a){if(t<n){var c=e.charCodeAt(t);56320==(64512&c)&&(++t,a=((1023&a)<<10)+(1023&c)+65536);}if(55296<=a&&56319>=a)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(c=new Uint8Array(o)).set(i),i=c),0==(4294967168&a))i[r++]=a;else {if(0==(4294965248&a))i[r++]=a>>>6&31|192;else if(0==(4294901760&a))i[r++]=a>>>12&15|224,i[r++]=a>>>6&63|128;else {if(0!=(4292870144&a))continue;i[r++]=a>>>18&7|240,i[r++]=a>>>12&63|128,i[r++]=a>>>6&63|128;}i[r++]=63&a|128;}}return i.slice?i.slice(0,r):i.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=r;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{URL.revokeObjectURL(t);}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n;}("undefined"!=typeof window?window:s),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t);}function o(e){return (o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return (i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return !1}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return !t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function l(e){var t=a();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i);}else n=r.apply(this,arguments);return u(this,n)}}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function d(e,t,n){return (d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var h=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0});}return n(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n});}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e);}catch(e){Promise.resolve().then((function(){throw e}));}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback);}return !e.defaultPrevented}}}]),t}(),p=function(t){r(a,t);var i=l(a);function a(){var t;return e(this,a),(t=i.call(this)).listeners||h.call(c(t)),Object.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(a,[{key:"toString",value:function(){return "[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),d(o(a.prototype),"dispatchEvent",this).call(this,e);}}]),a}(h),y=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new p,writable:!0,configurable:!0});}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort");}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1};}this.signal.dispatchEvent(e);}},{key:"toString",value:function(){return "[object AbortController]"}}]),t}();function v(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(y.prototype[Symbol.toStringTag]="AbortController",p.prototype[Symbol.toStringTag]="AbortSignal"),function(e){v(e)&&(e.AbortController=y,e.AbortSignal=p);}("undefined"!=typeof self?self:s);}();var Eo=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r));},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n());}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0);}else e.locked.delete(t);};}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()};}));u(Eo);var xo=u(l((function(e,t){var n=s&&s.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e));}catch(e){i(e);}}function c(e){try{s(r.throw(e));}catch(e){i(e);}}function s(e){e.done?o(e.value):new n((function(t){t(e.value);})).then(a,c);}s((r=r.apply(e,t||[])).next());}))},r=s&&s.__generator||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:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new 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=a.trys,(o=o.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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a);}catch(e){i=[6,e],r=0;}finally{n=o=0;}if(5&i[0])throw i[1];return {value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function a(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++){n+=t[Math.floor(Math.random()*t.length)];}return n}var c=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),void 0===e.waiters&&(e.waiters=[]);}return e.prototype.acquireLock=function(t,c){return void 0===c&&(c=5e3),n(this,void 0,void 0,(function(){var n,s,u,l,f,d;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+a(4),s=Date.now()+c,u=o+"-"+t,l=window.localStorage,r.label=1;case 1:return Date.now()<s?[4,i(30)]:[3,8];case 2:return r.sent(),null!==l.getItem(u)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),l.setItem(u,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(d=l.getItem(u))&&(d=JSON.parse(d)).id===this.id&&d.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(u,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(s)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+a(4),[3,1];case 8:return [2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var o=this;return r(this,(function(i){return setTimeout((function(){return n(o,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return [4,Eo.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(Eo.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),Eo.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(Eo.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return [4,new Promise((function(n){var r=!1,o=Date.now(),i=!1;function a(){if(i||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(c),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n();}}window.addEventListener("storage",a),e.addToWaiting(a);var c=setTimeout(a,Math.max(0,t-Date.now()));}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t);},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})));},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}));},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return [4,this.releaseLock__private__(e)];case 1:return [2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,a;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(a=n.getItem(i))?[2]:(a=JSON.parse(a)).id!==this.id?[3,2]:[4,Eo.default().lock(a.iat)];case 1:r.sent(),this.acquiredIatSet.delete(a.iat),n.removeItem(i),Eo.default().unlock(a.iat),e.notifyWaiters(),r.label=2;case 2:return [2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,a=0;a<r.length;a++){var c=r[a];if(c.includes(o)){var s=n.getItem(c);null!==s&&(void 0===(s=JSON.parse(s)).timeRefreshed&&s.timeAcquired<t||void 0!==s.timeRefreshed&&s.timeRefreshed<t)&&(n.removeItem(c),i=!0);}}i&&e.notifyWaiters();},e.waiters=void 0,e}();t.default=c;}))),Ro={timeoutInSeconds:60},Co=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],jo={name:"auth0-spa-js",version:"1.17.1"},Fo=function(e){function n(t,r){var o=e.call(this,r)||this;return o.error=t,o.error_description=r,Object.setPrototypeOf(o,n.prototype),o}return t(n,e),n.fromPayload=function(e){return new n(e.error,e.error_description)},n}(Error),Ao=function(e){function n(t,r,o,i){void 0===i&&(i=null);var a=e.call(this,t,r)||this;return a.state=o,a.appState=i,Object.setPrototypeOf(a,n.prototype),a}return t(n,e),n}(Fo),Uo=function(e){function n(){var t=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(t,n.prototype),t}return t(n,e),n}(Fo),Ko=function(e){function n(t){var r=e.call(this)||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(Uo),Lo=function(e){function n(t){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(Fo),Po=function(e){return new Promise((function(t,n){var r,o=setInterval((function(){e.popup&&e.popup.closed&&(clearInterval(o),clearTimeout(i),window.removeEventListener("message",r,!1),n(new Lo(e.popup)));}),1e3),i=setTimeout((function(){clearInterval(o),n(new Ko(e.popup)),window.removeEventListener("message",r,!1);}),1e3*(e.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),a.data.response.error)return n(Fo.fromPayload(a.data.response));t(a.data.response);}},window.addEventListener("message",r);}))},Wo=function(){return window.crypto||window.msCrypto},Zo=function(){var e=Wo();return e.subtle||e.webkitSubtle},Vo=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(Wo().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},Xo=function(e){return btoa(e)},No=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},Yo=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return t=Zo().digest({name:"SHA-256"},(new TextEncoder).encode(e)),window.msCrypto?[2,new Promise((function(e,n){t.oncomplete=function(t){e(t.target.result);},t.onerror=function(e){n(e.error);},t.onabort=function(){n("The digest operation was aborted");};}))]:[4,t];case 1:return [2,n.sent()]}}))}))},zo=function(e){return function(e){return decodeURIComponent(atob(e).split("").map((function(e){return "%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(e.replace(/_/g,"/").replace(/-/g,"+"))},Do=function(e){var t=new Uint8Array(e);return function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))}(window.btoa(String.fromCharCode.apply(String,c([],a(Array.from(t))))))};var Jo=function(e,t){return o(void 0,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return [4,(i=e,a=t,a=a||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],c={},s=function(){return {ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:s,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return c[e.toLowerCase()]},has:function(e){return e.toLowerCase()in c}}}};for(var u in n.open(a.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){r.push(t=t.toLowerCase()),o.push([t,n]),c[t]=c[t]?c[t]+","+n:n;})),e(s());},n.onerror=t,n.withCredentials="include"==a.credentials,a.headers)n.setRequestHeader(u,a.headers[u]);n.send(a.body||null);})))];case 1:return n=o.sent(),r={ok:n.ok},[4,n.json()];case 2:return [2,(r.json=o.sent(),r)]}var i,a;}))}))},Bo=function(e,t,n){return o(void 0,void 0,void 0,(function(){var r,o;return i(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([Jo(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"));}),n);}))]).finally((function(){clearTimeout(o);}))]}))}))},Go=function(e,t,n,r,a,c,s){return o(void 0,void 0,void 0,(function(){return i(this,(function(o){return [2,(i={auth:{audience:t,scope:n},timeout:a,fetchUrl:e,fetchOptions:r,useFormData:s},u=c,new Promise((function(e,t){var n=new MessageChannel;n.port1.onmessage=function(n){n.data.error?t(new Error(n.data.error)):e(n.data);},u.postMessage(i,[n.port2]);})))];var i,u;}))}))},Mo=function(e,t,n,r,a,c,s){return void 0===s&&(s=1e4),o(void 0,void 0,void 0,(function(){return i(this,(function(o){return a?[2,Go(e,t,n,r,s,a,c)]:[2,Bo(e,r,s)]}))}))};function Ho(e,t,n,a,c,s,u){return o(this,void 0,void 0,(function(){var o,l,f,d,h,p,y,v;return i(this,(function(i){switch(i.label){case 0:o=null,f=0,i.label=1;case 1:if(!(f<3))return [3,6];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,Mo(e,n,a,c,s,u,t)];case 3:return l=i.sent(),o=null,[3,6];case 4:return d=i.sent(),o=d,[3,5];case 5:return f++,[3,1];case 6:if(o)throw o.message=o.message||"Failed to fetch",o;if(h=l.json,p=h.error,y=h.error_description,v=r(h,["error","error_description"]),!l.ok)throw new Fo(p||"request_error",y||"HTTP error. Unable to fetch "+e);return [2,v]}}))}))}function qo(e,t){var n=e.baseUrl,a=e.timeout,c=e.audience,s=e.scope,u=e.auth0Client,l=e.useFormData,f=r(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return o(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return e=l?No(f):JSON.stringify(f),[4,Ho(n+"/oauth/token",a,c||"default",s,{method:"POST",body:e,headers:{"Content-Type":l?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(u||jo))}},t,l)];case 1:return [2,r.sent()]}}))}))}var Qo=function(e){return Array.from(new Set(e))},$o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qo(e.join(" ").trim().split(/\s+/)).join(" ")},ei=function(){function e(e,t){void 0===t&&(t="@@auth0spajs@@"),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience;}return e.prototype.toKey=function(){return this.prefix+"::"+this.client_id+"::"+this.audience+"::"+this.scope},e.fromKey=function(t){var n=a(t.split("::"),4),r=n[0],o=n[1],i=n[2];return new e({client_id:o,scope:n[3],audience:i},r)},e.fromCacheEntry=function(t){return new e({scope:t.scope,audience:t.audience,client_id:t.client_id})},e}(),ti=function(){function e(){}return e.prototype.set=function(e,t){localStorage.setItem(e,JSON.stringify(t));},e.prototype.get=function(e){var t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}},e.prototype.remove=function(e){localStorage.removeItem(e);},e.prototype.allKeys=function(){return Object.keys(window.localStorage).filter((function(e){return e.startsWith("@@auth0spajs@@")}))},e}(),ni=function(){var e;this.enclosedCache=(e={},{set:function(t,n){e[t]=n;},get:function(t){var n=e[t];if(n)return n},remove:function(t){delete e[t];},allKeys:function(){return Object.keys(e)}});},ri=function(){function e(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(t);}return e.prototype.add=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return (n=new(r.apply(Set,[void 0,(null===(t=o.sent())||void 0===t?void 0:t.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:c([],a(n))})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return [4,this.cache.get(this.manifestKey)];case 1:return (t=r.sent())?((n=new Set(t.keys)).delete(e),n.size>0?[4,this.cache.set(this.manifestKey,{keys:c([],a(n))})]:[3,3]):[3,5];case 2:return [2,r.sent()];case 3:return [4,this.cache.remove(this.manifestKey)];case 4:return [2,r.sent()];case 5:return [2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return "@@auth0spajs@@::"+e},e}(),oi=function(){function e(e,t){this.cache=e,e.allKeys||(this.keyManifest=new ri(this.cache,t));}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),o(this,void 0,void 0,(function(){var r,o,a,c;return i(this,(function(i){switch(i.label){case 0:return [4,this.cache.get(e.toKey())];case 1:return (r=i.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return (o=i.sent())?(a=this.matchExistingCacheKey(e,o),[4,this.cache.get(a)]):[2];case 3:r=i.sent(),i.label=4;case 4:return r?(c=Math.floor(Date.now()/1e3),r.expiresAt-t<c?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,6]:[3,9]):[2];case 5:return i.sent(),[2,r.body];case 6:return [4,this.cache.remove(e.toKey())];case 7:return i.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 8:return i.sent(),[2];case 9:return [2,r.body]}}))}))},e.prototype.set=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return n=new ei({client_id:e.client_id,scope:e.scope,audience:e.audience}),r=this.wrapCacheEntry(e),[4,this.cache.set(n.toKey(),r)];case 1:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 2:return o.sent(),[2]}}))}))},e.prototype.clear=function(){var e;return o(this,void 0,void 0,(function(){var t,n=this;return i(this,(function(r){switch(r.label){case 0:return [4,this.getCacheKeys()];case 1:return (t=r.sent())?(t.forEach((function(e){return o(n,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return [4,this.cache.remove(e)];case 1:return t.sent(),[2]}}))}))})),[4,null===(e=this.keyManifest)||void 0===e?void 0:e.clear()]):[2];case 2:return r.sent(),[2]}}))}))},e.prototype.clearSync=function(){var e=this,t=this.cache.allKeys();t&&t.forEach((function(t){e.cache.remove(t);}));},e.prototype.wrapCacheEntry=function(e){var t=Math.floor(Date.now()/1e3)+e.expires_in;return {body:e,expiresAt:Math.min(t,e.decodedToken.claims.exp)}},e.prototype.getCacheKeys=function(){var e;return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return t=null===(e=n.sent())||void 0===e?void 0:e.keys,[3,4];case 2:return [4,this.cache.allKeys()];case 3:t=n.sent(),n.label=4;case 4:return [2,t]}}))}))},e.prototype.matchExistingCacheKey=function(e,t){return t.filter((function(t){var n=ei.fromKey(t),r=new Set(n.scope&&n.scope.split(" ")),o=e.scope.split(" "),i=n.scope&&o.reduce((function(e,t){return e&&r.has(t)}),!0);return "@@auth0spajs@@"===n.prefix&&n.client_id===e.client_id&&n.audience===e.audience&&i}))[0]},e}(),ii=function(){function e(e){this.storage=e,this.transaction=this.storage.get("a0.spajs.txs");}return e.prototype.create=function(e){this.transaction=e,this.storage.save("a0.spajs.txs",e,{daysUntilExpire:1});},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove("a0.spajs.txs");},e}(),ai=function(e){return "number"==typeof e},ci=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],si=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=a(t,3),r=n[0],o=n[1],i=n[2];if(3!==t.length||!r||!o||!i)throw new Error("ID token could not be decoded");var c=JSON.parse(zo(o)),s={__raw:e},u={};return Object.keys(c).forEach((function(e){s[e]=c[e],ci.includes(e)||(u[e]=c[e]);})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(zo(r)),claims:s,user:u}}(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'+e.iss+'", found "'+t.claims.iss+'"');if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'+t.header.alg+'" is not supported. Expected the ID token to be signed with "RS256".');if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but was not one of "'+t.claims.aud.join(", ")+'"');if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'+e.aud+'", found "'+t.claims.azp+'"')}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but found "'+t.claims.aud+'"');if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'+e.nonce+'", found "'+t.claims.nonce+'"')}if(e.max_age&&!ai(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(!ai(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!ai(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=e.leeway||60,r=new Date(Date.now()),o=new Date(0),i=new Date(0),c=new Date(0);if(c.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),o.setUTCSeconds(t.claims.exp+n),i.setUTCSeconds(t.claims.nbf-n),r>o)throw new Error("Expiration Time (exp) claim error in the ID token; current time ("+r+") is after expiration time ("+o+")");if(ai(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time ("+r+") is before "+i);if(ai(t.claims.auth_time)&&r>c)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time ("+r+") is after last auth at "+c);if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'+e.organizationId+'", found "'+t.claims.org_id+'"')}return t},ui=l((function(e,t){var n=s&&s.__assign||function(){return (n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){if(!t)return "";var n="; "+e;return !0===t?n:n+"="+t}function o(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t;}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent);}catch(e){}}return t}function a(){return i(document.cookie)}function c(e,t,r){document.cookie=o(e,t,n({path:"/"},r));}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=a,t.get=function(e){return a()[e]},t.set=c,t.remove=function(e,t){c(e,"",n(n({},t),{expires:-1}));};}));u(ui),ui.encode,ui.parse,ui.getAll;var li=ui.get,fi=ui.set,di=ui.remove,hi={get:function(e){var t=li(e);if(void 0!==t)return JSON.parse(t)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),r.expires=n.daysUntilExpire,fi(e,JSON.stringify(t),r);},remove:function(e){di(e);}},pi={get:function(e){var t=hi.get(e);return t||hi.get("_legacy_"+e)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),r.expires=n.daysUntilExpire,fi("_legacy_"+e,JSON.stringify(t),r),hi.save(e,t,n);},remove:function(e){hi.remove(e),hi.remove("_legacy_"+e);}},yi={get:function(e){if("undefined"!=typeof sessionStorage){var t=sessionStorage.getItem(e);if(void 0!==t)return JSON.parse(t)}},save:function(e,t){sessionStorage.setItem(e,JSON.stringify(t));},remove:function(e){sessionStorage.removeItem(e);}};function vi(e,t,n){var r=void 0===t?null:t,o=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),o=0,i=n.length;o<i;++o)r[o]=n.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),i=o.indexOf("\n",10)+1,a=o.substring(i)+(r?"//# sourceMappingURL="+r:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}var mi,gi,bi,wi,Si=(mi="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQogICAgQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULAogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NCiAgICBMT1NTIE9GIFVTRSwgREFUQSBPUiBQUk9GSVRTLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgTkVHTElHRU5DRSBPUgogICAgT1RIRVIgVE9SVElPVVMgQUNUSU9OLCBBUklTSU5HIE9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFVTRSBPUgogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4KICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqICovdmFyIGU9ZnVuY3Rpb24oKXtyZXR1cm4oZT1PYmplY3QuYXNzaWdufHxmdW5jdGlvbihlKXtmb3IodmFyIHIsdD0xLG49YXJndW1lbnRzLmxlbmd0aDt0PG47dCsrKWZvcih2YXIgbyBpbiByPWFyZ3VtZW50c1t0XSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocixvKSYmKGVbb109cltvXSk7cmV0dXJuIGV9KS5hcHBseSh0aGlzLGFyZ3VtZW50cyl9O2Z1bmN0aW9uIHIoZSxyLHQsbil7cmV0dXJuIG5ldyh0fHwodD1Qcm9taXNlKSkoKGZ1bmN0aW9uKG8sYSl7ZnVuY3Rpb24gcyhlKXt0cnl7dShuLm5leHQoZSkpfWNhdGNoKGUpe2EoZSl9fWZ1bmN0aW9uIGkoZSl7dHJ5e3Uobi50aHJvdyhlKSl9Y2F0Y2goZSl7YShlKX19ZnVuY3Rpb24gdShlKXt2YXIgcjtlLmRvbmU/byhlLnZhbHVlKToocj1lLnZhbHVlLHIgaW5zdGFuY2VvZiB0P3I6bmV3IHQoKGZ1bmN0aW9uKGUpe2Uocil9KSkpLnRoZW4ocyxpKX11KChuPW4uYXBwbHkoZSxyfHxbXSkpLm5leHQoKSl9KSl9ZnVuY3Rpb24gdChlLHIpe3ZhciB0LG4sbyxhLHM9e2xhYmVsOjAsc2VudDpmdW5jdGlvbigpe2lmKDEmb1swXSl0aHJvdyBvWzFdO3JldHVybiBvWzFdfSx0cnlzOltdLG9wczpbXX07cmV0dXJuIGE9e25leHQ6aSgwKSx0aHJvdzppKDEpLHJldHVybjppKDIpfSwiZnVuY3Rpb24iPT10eXBlb2YgU3ltYm9sJiYoYVtTeW1ib2wuaXRlcmF0b3JdPWZ1bmN0aW9uKCl7cmV0dXJuIHRoaXN9KSxhO2Z1bmN0aW9uIGkoYSl7cmV0dXJuIGZ1bmN0aW9uKGkpe3JldHVybiBmdW5jdGlvbihhKXtpZih0KXRocm93IG5ldyBUeXBlRXJyb3IoIkdlbmVyYXRvciBpcyBhbHJlYWR5IGV4ZWN1dGluZy4iKTtmb3IoO3M7KXRyeXtpZih0PTEsbiYmKG89MiZhWzBdP24ucmV0dXJuOmFbMF0/bi50aHJvd3x8KChvPW4ucmV0dXJuKSYmby5jYWxsKG4pLDApOm4ubmV4dCkmJiEobz1vLmNhbGwobixhWzFdKSkuZG9uZSlyZXR1cm4gbztzd2l0Y2gobj0wLG8mJihhPVsyJmFbMF0sby52YWx1ZV0pLGFbMF0pe2Nhc2UgMDpjYXNlIDE6bz1hO2JyZWFrO2Nhc2UgNDpyZXR1cm4gcy5sYWJlbCsrLHt2YWx1ZTphWzFdLGRvbmU6ITF9O2Nhc2UgNTpzLmxhYmVsKyssbj1hWzFdLGE9WzBdO2NvbnRpbnVlO2Nhc2UgNzphPXMub3BzLnBvcCgpLHMudHJ5cy5wb3AoKTtjb250aW51ZTtkZWZhdWx0OmlmKCEobz1zLnRyeXMsKG89by5sZW5ndGg+MCYmb1tvLmxlbmd0aC0xXSl8fDYhPT1hWzBdJiYyIT09YVswXSkpe3M9MDtjb250aW51ZX1pZigzPT09YVswXSYmKCFvfHxhWzFdPm9bMF0mJmFbMV08b1szXSkpe3MubGFiZWw9YVsxXTticmVha31pZig2PT09YVswXSYmcy5sYWJlbDxvWzFdKXtzLmxhYmVsPW9bMV0sbz1hO2JyZWFrfWlmKG8mJnMubGFiZWw8b1syXSl7cy5sYWJlbD1vWzJdLHMub3BzLnB1c2goYSk7YnJlYWt9b1syXSYmcy5vcHMucG9wKCkscy50cnlzLnBvcCgpO2NvbnRpbnVlfWE9ci5jYWxsKGUscyl9Y2F0Y2goZSl7YT1bNixlXSxuPTB9ZmluYWxseXt0PW89MH1pZig1JmFbMF0pdGhyb3cgYVsxXTtyZXR1cm57dmFsdWU6YVswXT9hWzFdOnZvaWQgMCxkb25lOiEwfX0oW2EsaV0pfX19dmFyIG49e30sbz1mdW5jdGlvbihlLHIpe3JldHVybiBlKyJ8IityfTthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoZnVuY3Rpb24oYSl7dmFyIHM9YS5kYXRhLGk9cy50aW1lb3V0LHU9cy5hdXRoLGM9cy5mZXRjaFVybCxmPXMuZmV0Y2hPcHRpb25zLGw9cy51c2VGb3JtRGF0YSxoPWZ1bmN0aW9uKGUscil7dmFyIHQ9ImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmZVtTeW1ib2wuaXRlcmF0b3JdO2lmKCF0KXJldHVybiBlO3ZhciBuLG8sYT10LmNhbGwoZSkscz1bXTt0cnl7Zm9yKDsodm9pZCAwPT09cnx8ci0tID4wKSYmIShuPWEubmV4dCgpKS5kb25lOylzLnB1c2gobi52YWx1ZSl9Y2F0Y2goZSl7bz17ZXJyb3I6ZX19ZmluYWxseXt0cnl7biYmIW4uZG9uZSYmKHQ9YS5yZXR1cm4pJiZ0LmNhbGwoYSl9ZmluYWxseXtpZihvKXRocm93IG8uZXJyb3J9fXJldHVybiBzfShhLnBvcnRzLDEpWzBdO3JldHVybiByKHZvaWQgMCx2b2lkIDAsdm9pZCAwLChmdW5jdGlvbigpe3ZhciByLGEscyxwLHksYixkLHYsdyxnO3JldHVybiB0KHRoaXMsKGZ1bmN0aW9uKHQpe3N3aXRjaCh0LmxhYmVsKXtjYXNlIDA6cz0oYT11fHx7fSkuYXVkaWVuY2UscD1hLnNjb3BlLHQubGFiZWw9MTtjYXNlIDE6aWYodC50cnlzLnB1c2goWzEsNywsOF0pLCEoeT1sPyhrPWYuYm9keSxTPW5ldyBVUkxTZWFyY2hQYXJhbXMoayksXz17fSxTLmZvckVhY2goKGZ1bmN0aW9uKGUscil7X1tyXT1lfSkpLF8pOkpTT04ucGFyc2UoZi5ib2R5KSkucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09eS5ncmFudF90eXBlKXtpZighKGI9ZnVuY3Rpb24oZSxyKXtyZXR1cm4gbltvKGUscildfShzLHApKSl0aHJvdyBuZXcgRXJyb3IoIlRoZSB3ZWIgd29ya2VyIGlzIG1pc3NpbmcgdGhlIHJlZnJlc2ggdG9rZW4iKTtmLmJvZHk9bD9uZXcgVVJMU2VhcmNoUGFyYW1zKGUoZSh7fSx5KSx7cmVmcmVzaF90b2tlbjpifSkpLnRvU3RyaW5nKCk6SlNPTi5zdHJpbmdpZnkoZShlKHt9LHkpLHtyZWZyZXNoX3Rva2VuOmJ9KSl9ZD12b2lkIDAsImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixmLnNpZ25hbD1kLnNpZ25hbCksdj12b2lkIDAsdC5sYWJlbD0yO2Nhc2UgMjpyZXR1cm4gdC50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKG09aSxuZXcgUHJvbWlzZSgoZnVuY3Rpb24oZSl7cmV0dXJuIHNldFRpbWVvdXQoZSxtKX0pKSksZmV0Y2goYyxlKHt9LGYpKV0pXTtjYXNlIDM6cmV0dXJuIHY9dC5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiB3PXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOncubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHY/WzQsdi5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4ocj10LnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",gi=null,bi=!1,function(e){return wi=wi||vi(mi,gi,bi),new Worker(wi,e)}),_i={},ki=new xo,Ii={memory:function(){return (new ni).enclosedCache},localstorage:function(){return new ti}},Ti=function(e){return Ii[e]},Oi=function(){return !/Trident.*rv:11\.0/.test(navigator.userAgent)},Ei=function(){function e(e){var t,n,o;if(this.options=e,"undefined"!=typeof window&&function(){if(!Wo())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Zo())throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")}(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)o=e.cache;else {if(this.cacheLocation=e.cacheLocation||"memory",!Ti(this.cacheLocation))throw new Error('Invalid cache location "'+this.cacheLocation+'"');o=Ti(this.cacheLocation)();}this.cookieStorage=!1===e.legacySameSiteCookie?hi:pi,this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var i,a=e.useCookiesForTransactions?this.cookieStorage:yi;this.scope=this.options.scope,this.transactionManager=new ii(a),this.cacheManager=new oi(o,this.options.client_id),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:"https://"+i),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://"+e+"/":t+"/"}(this.options.issuer,this.domainUrl),this.defaultScope=$o("openid",void 0!==(null===(n=null===(t=this.options)||void 0===t?void 0:t.advancedOptions)||void 0===n?void 0:n.defaultScope)?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=$o(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&Oi()&&(this.worker=new Si),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.redirect_uri,e.scope,e.useRefreshTokens,e.useCookiesForTransactions,e.useFormData,r(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","client_id","domain","issuer","leeway","max_age","redirect_uri","scope","useRefreshTokens","useCookiesForTransactions","useFormData"])}(e);}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||jo)));return ""+this.domainUrl+e+"&auth0Client="+t},e.prototype._getParams=function(e,t,o,i,a){var c=this.options;c.domain,c.leeway,c.useRefreshTokens,c.useCookiesForTransactions,c.useFormData,c.auth0Client,c.cacheLocation,c.advancedOptions;var s=r(c,["domain","leeway","useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions"]);return n(n(n({},s),e),{scope:$o(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:o,redirect_uri:a||this.options.redirect_uri,code_challenge:i,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?"+No(e))},e.prototype._verifyIdToken=function(e,t,n){return si({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age)})},e.prototype._parseNumber=function(e){return "string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y;return i(this,(function(i){switch(i.label){case 0:return t=e.redirect_uri,o=e.appState,a=r(e,["redirect_uri","appState"]),c=Xo(Vo()),s=Xo(Vo()),u=Vo(),[4,Yo(u)];case 1:return l=i.sent(),f=Do(l),d=e.fragment?"#"+e.fragment:"",h=this._getParams(a,c,s,f,t),p=this._authorizeUrl(h),y=e.organization||this.options.organization,this.transactionManager.create(n({nonce:s,code_verifier:u,appState:o,scope:h.scope,audience:h.audience||"default",redirect_uri:h.redirect_uri},y&&{organizationId:y})),[2,p+d]}}))}))},e.prototype.loginWithPopup=function(e,t){return o(this,void 0,void 0,(function(){var o,a,c,s,u,l,f,d,h,p,y,v,m;return i(this,(function(i){switch(i.label){case 0:return e=e||{},(t=t||{}).popup||(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open(e,"auth0:authorize:popup","left="+t+",top="+n+",width=400,height=600,resizable,scrollbars=yes,status=1")}("")),o=r(e,[]),a=Xo(Vo()),c=Xo(Vo()),s=Vo(),[4,Yo(s)];case 1:return u=i.sent(),l=Do(u),f=this._getParams(o,a,c,l,this.options.redirect_uri||window.location.origin),d=this._authorizeUrl(n(n({},f),{response_mode:"web_message"})),t.popup.location.href=d,[4,Po(n(n({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(h=i.sent(),a!==h.state)throw new Error("Invalid state");return [4,qo({audience:f.audience,scope:f.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:s,code:h.code,grant_type:"authorization_code",redirect_uri:f.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},this.worker)];case 3:return p=i.sent(),y=e.organization||this.options.organization,v=this._verifyIdToken(p.id_token,c,y),m=n(n({},p),{decodedToken:v,scope:f.scope,audience:f.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 4:return i.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=$o(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ei({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return [2,(r=o.sent())&&r.decodedToken&&r.decodedToken.user]}}))}))},e.prototype.getIdTokenClaims=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=$o(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ei({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return [2,(r=o.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},e.prototype.loginWithRedirect=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,o;return i(this,(function(i){switch(i.label){case 0:return t=e.redirectMethod,n=r(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return o=i.sent(),window.location[t||"assign"](o),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),o(this,void 0,void 0,(function(){var t,r,o,c,s,u,l,f,d,h,p;return i(this,(function(i){switch(i.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(r=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=a(e.split("="),2),r=t[0],o=t[1];n[r]=decodeURIComponent(o);})),n.expires_in&&(n.expires_in=parseInt(n.expires_in)),n}(t.join("")),o=r.state,c=r.code,s=r.error,u=r.error_description,!(l=this.transactionManager.get())||!l.code_verifier)throw new Error("Invalid state");if(this.transactionManager.remove(),s)throw new Ao(s,u,o,l.appState);return f={audience:l.audience,scope:l.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:l.code_verifier,grant_type:"authorization_code",code:c,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},void 0!==l.redirect_uri&&(f.redirect_uri=l.redirect_uri),[4,qo(f,this.worker)];case 1:return d=i.sent(),h=this._verifyIdToken(d.id_token,l.nonce,l.organizationId),p=n(n({},d),{decodedToken:h,audience:l.audience,scope:l.scope,client_id:this.options.client_id}),[4,this.cacheManager.set(p)];case 2:return i.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2,{appState:l.appState}]}}))}))},e.prototype.checkSession=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(!this.cookieStorage.get("auth0.is.authenticated"))return [2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return n.sent(),[3,4];case 3:if(t=n.sent(),!Co.includes(t.error))throw t;return [3,4];case 4:return [2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c=this;return i(this,(function(i){return t=n(n({audience:this.options.audience,ignoreCache:!1},e),{scope:$o(this.defaultScope,this.scope,e.scope)}),o=t.ignoreCache,a=r(t,["ignoreCache"]),[2,(s=function(){return c._getTokenSilently(n({ignoreCache:o},a))},u=this.options.client_id+"::"+a.audience+"::"+a.scope,l=_i[u],l||(l=s().finally((function(){delete _i[u],l=null;})),_i[u]=l),l)];var s,u,l;}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,a,c,s,u,l,f=this;return i(this,(function(d){switch(d.label){case 0:return t=e.ignoreCache,a=r(e,["ignoreCache"]),c=function(){return o(f,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return [4,this.cacheManager.get(new ei({scope:a.scope,audience:a.audience||"default",client_id:this.options.client_id}),60)];case 1:return [2,(e=t.sent())&&e.access_token]}}))}))},t?[3,2]:[4,c()];case 1:if(s=d.sent())return [2,s];d.label=2;case 2:return [4,(h=function(){return ki.acquireLock("auth0.lock.getTokenSilently",5e3)},p=10,void 0===p&&(p=3),o(void 0,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<p?[4,h()]:[3,4];case 2:if(t.sent())return [2,!0];t.label=3;case 3:return e++,[3,1];case 4:return [2,!1]}}))})))];case 3:if(!d.sent())return [3,15];d.label=4;case 4:return d.trys.push([4,,12,14]),t?[3,6]:[4,c()];case 5:if(s=d.sent())return [2,s];d.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(a)]:[3,8];case 7:return l=d.sent(),[3,10];case 8:return [4,this._getTokenFromIFrame(a)];case 9:l=d.sent(),d.label=10;case 10:return u=l,[4,this.cacheManager.set(n({client_id:this.options.client_id},u))];case 11:return d.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2,u.access_token];case 12:return [4,ki.releaseLock("auth0.lock.getTokenSilently")];case 13:return d.sent(),[7];case 14:return [3,16];case 15:throw new Uo;case 16:return [2]}var h,p;}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=$o(this.defaultScope,this.scope,e.scope),t=n(n({},Ro),t),[4,this.loginWithPopup(e,t)];case 1:return r.sent(),[4,this.cacheManager.get(new ei({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return [2,r.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return [4,this.getUser()];case 1:return [2,!!e.sent()]}}))}))},e.prototype.buildLogoutUrl=function(e){void 0===e&&(e={}),null!==e.client_id?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var t=e.federated,n=r(e,["federated"]),o=t?"&federated":"";return this._url("/v2/logout?"+No(n))+o},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,o=r(e,["localOnly"]);if(n&&o.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var i=function(){if(t.cookieStorage.remove("auth0.is.authenticated"),!n){var e=t.buildLogoutUrl(o);window.location.assign(e);}};if(this.options.cache)return this.cacheManager.clear().then((function(){return i()}));this.cacheManager.clearSync(),i();},e.prototype._getTokenFromIFrame=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y,v,m,g;return i(this,(function(i){switch(i.label){case 0:return t=Xo(Vo()),o=Xo(Vo()),a=Vo(),[4,Yo(a)];case 1:c=i.sent(),s=Do(c),u=this._getParams(e,t,o,s,e.redirect_uri||this.options.redirect_uri||window.location.origin),l=this._authorizeUrl(n(n({},u),{prompt:"none",response_mode:"web_message"})),f=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,i.label=2;case 2:return i.trys.push([2,5,,6]),[4,(b=l,w=this.domainUrl,S=f,void 0===S&&(S=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,o=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1));},i=setTimeout((function(){t(new Uo),o();}),1e3*S);r=function(n){if(n.origin==w&&n.data&&"authorization_response"===n.data.type){var a=n.source;a&&a.close(),n.data.response.error?t(Fo.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3);}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",b);})))];case 3:if(d=i.sent(),t!==d.state)throw new Error("Invalid state");return h=e.scope,p=e.audience,y=r(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds"]),[4,qo(n(n(n({},this.customOptions),y),{scope:h,audience:p,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:u.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 4:return v=i.sent(),m=this._verifyIdToken(v.id_token,o),[2,n(n({},v),{decodedToken:m,scope:u.scope,audience:u.audience||"default"})];case 5:throw "login_required"===(g=i.sent()).error&&this.logout({localOnly:!0}),g;case 6:return [2]}var b,w,S;}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d;return i(this,(function(i){switch(i.label){case 0:return e.scope=$o(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new ei({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return (t=i.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return [2,i.sent()];case 3:o=e.redirect_uri||this.options.redirect_uri||window.location.origin,c=e.scope,s=e.audience,u=r(e,["scope","audience","ignoreCache","timeoutInSeconds"]),l="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,i.label=4;case 4:return i.trys.push([4,6,,9]),[4,qo(n(n(n(n(n({},this.customOptions),u),{audience:s,scope:c,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:o}),l&&{timeout:l}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 5:return a=i.sent(),[3,9];case 6:return "The web worker is missing the refresh token"===(f=i.sent()).message||f.message&&f.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return [2,i.sent()];case 8:throw f;case 9:return d=this._verifyIdToken(a.id_token),[2,n(n({},a),{decodedToken:d,scope:e.scope,audience:e.audience||"default"})]}}))}))},e}(),xi=function(){};
|
|
117
|
+
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]);},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new 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);}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);}return n}function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e));}catch(e){i(e);}}function c(e){try{s(r.throw(e));}catch(e){i(e);}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t);}))).then(a,c);}s((r=r.apply(e,t||[])).next());}))}function i(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:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new 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=a.trys,(o=o.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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a);}catch(e){i=[6,e],r=0;}finally{n=o=0;}if(5&i[0])throw i[1];return {value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value);}catch(e){o={error:e};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e,t){return e(t={exports:{}},t.exports),t.exports}var f,d,h=function(e){return e&&e.Math==Math&&e},p=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof s&&s)||function(){return this}()||Function("return this")(),y=function(e){try{return !!e()}catch(e){return !0}},v=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=!y((function(){var e=function(){}.bind();return "function"!=typeof e||e.hasOwnProperty("prototype")})),g=Function.prototype.call,b=m?g.bind(g):function(){return g.apply(g,arguments)},w={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,_=S&&!w.call({1:2},1)?function(e){var t=S(this,e);return !!t&&t.enumerable}:w,k={f:_},I=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T=Function.prototype,O=T.bind,E=T.call,x=m&&O.bind(E,E),C=m?function(e){return e&&x(e)}:function(e){return e&&function(){return E.apply(e,arguments)}},R=C({}.toString),j=C("".slice),A=function(e){return j(R(e),8,-1)},U=p.Object,P=C("".split),K=y((function(){return !U("z").propertyIsEnumerable(0)}))?function(e){return "String"==A(e)?P(e,""):U(e)}:U,F=p.TypeError,W=function(e){if(null==e)throw F("Can't call method on "+e);return e},L=function(e){return K(W(e))},Z=function(e){return "function"==typeof e},G=function(e){return "object"==typeof e?null!==e:Z(e)},X=function(e){return Z(e)?e:void 0},V=function(e,t){return arguments.length<2?X(p[e]):p[e]&&p[e][t]},N=C({}.isPrototypeOf),D=V("navigator","userAgent")||"",Y=p.process,M=p.Deno,z=Y&&Y.versions||M&&M.version,B=z&&z.v8;B&&(d=(f=B.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!d&&D&&(!(f=D.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=D.match(/Chrome\/(\d+)/))&&(d=+f[1]);var J=d,H=!!Object.getOwnPropertySymbols&&!y((function(){var e=Symbol();return !String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41})),q=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=p.Object,$=q?function(e){return "symbol"==typeof e}:function(e){var t=V("Symbol");return Z(t)&&N(t.prototype,Q(e))},ee=p.String,te=function(e){try{return ee(e)}catch(e){return "Object"}},ne=p.TypeError,re=function(e){if(Z(e))return e;throw ne(te(e)+" is not a function")},oe=function(e,t){var n=e[t];return null==n?void 0:re(n)},ie=p.TypeError,ae=Object.defineProperty,ce=function(e,t){try{ae(p,e,{value:t,configurable:!0,writable:!0});}catch(n){p[e]=t;}return t},se=p["__core-js_shared__"]||ce("__core-js_shared__",{}),ue=l((function(e){(e.exports=function(e,t){return se[e]||(se[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),le=p.Object,fe=function(e){return le(W(e))},de=C({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return de(fe(e),t)},pe=0,ye=Math.random(),ve=C(1..toString),me=function(e){return "Symbol("+(void 0===e?"":e)+")_"+ve(++pe+ye,36)},ge=ue("wks"),be=p.Symbol,we=be&&be.for,Se=q?be:be&&be.withoutSetter||me,_e=function(e){if(!he(ge,e)||!H&&"string"!=typeof ge[e]){var t="Symbol."+e;H&&he(be,e)?ge[e]=be[e]:ge[e]=q&&we?we(t):Se(t);}return ge[e]},ke=p.TypeError,Ie=_e("toPrimitive"),Te=function(e,t){if(!G(e)||$(e))return e;var n,r=oe(e,Ie);if(r){if(void 0===t&&(t="default"),n=b(r,e,t),!G(n)||$(n))return n;throw ke("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Z(n=e.toString)&&!G(r=b(n,e)))return r;if(Z(n=e.valueOf)&&!G(r=b(n,e)))return r;if("string"!==t&&Z(n=e.toString)&&!G(r=b(n,e)))return r;throw ie("Can't convert object to primitive value")}(e,t)},Oe=function(e){var t=Te(e,"string");return $(t)?t:t+""},Ee=p.document,xe=G(Ee)&&G(Ee.createElement),Ce=function(e){return xe?Ee.createElement(e):{}},Re=!v&&!y((function(){return 7!=Object.defineProperty(Ce("div"),"a",{get:function(){return 7}}).a})),je=Object.getOwnPropertyDescriptor,Ae={f:v?je:function(e,t){if(e=L(e),t=Oe(t),Re)try{return je(e,t)}catch(e){}if(he(e,t))return I(!b(k.f,e,t),e[t])}},Ue=v&&y((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pe=p.String,Ke=p.TypeError,Fe=function(e){if(G(e))return e;throw Ke(Pe(e)+" is not an object")},We=p.TypeError,Le=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Ge={f:v?Ue?function(e,t,n){if(Fe(e),t=Oe(t),Fe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Ze(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1});}return Le(e,t,n)}:Le:function(e,t,n){if(Fe(e),t=Oe(t),Fe(n),Re)try{return Le(e,t,n)}catch(e){}if("get"in n||"set"in n)throw We("Accessors not supported");return "value"in n&&(e[t]=n.value),e}},Xe=v?function(e,t,n){return Ge.f(e,t,I(1,n))}:function(e,t,n){return e[t]=n,e},Ve=C(Function.toString);Z(se.inspectSource)||(se.inspectSource=function(e){return Ve(e)});var Ne,De,Ye,Me=se.inspectSource,ze=p.WeakMap,Be=Z(ze)&&/native code/.test(Me(ze)),Je=ue("keys"),He=function(e){return Je[e]||(Je[e]=me(e))},qe={},Qe=p.TypeError,$e=p.WeakMap;if(Be||se.state){var et=se.state||(se.state=new $e),tt=C(et.get),nt=C(et.has),rt=C(et.set);Ne=function(e,t){if(nt(et,e))throw new Qe("Object already initialized");return t.facade=e,rt(et,e,t),t},De=function(e){return tt(et,e)||{}},Ye=function(e){return nt(et,e)};}else {var ot=He("state");qe[ot]=!0,Ne=function(e,t){if(he(e,ot))throw new Qe("Object already initialized");return t.facade=e,Xe(e,ot,t),t},De=function(e){return he(e,ot)?e[ot]:{}},Ye=function(e){return he(e,ot)};}var it={set:Ne,get:De,has:Ye,enforce:function(e){return Ye(e)?De(e):Ne(e,{})},getterFor:function(e){return function(t){var n;if(!G(t)||(n=De(t)).type!==e)throw Qe("Incompatible receiver, "+e+" required");return n}}},at=Function.prototype,ct=v&&Object.getOwnPropertyDescriptor,st=he(at,"name"),ut={EXISTS:st,PROPER:st&&"something"===function(){}.name,CONFIGURABLE:st&&(!v||v&&ct(at,"name").configurable)},lt=l((function(e){var t=ut.CONFIGURABLE,n=it.get,r=it.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var c,s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Z(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!he(i,"name")||t&&i.name!==f)&&Xe(i,"name",f),(c=r(i)).source||(c.source=o.join("string"==typeof f?f:""))),e!==p?(s?!l&&e[n]&&(u=!0):delete e[n],u?e[n]=i:Xe(e,n,i)):u?e[n]=i:ce(n,i);})(Function.prototype,"toString",(function(){return Z(this)&&n(this).source||Me(this)}));})),ft=Math.ceil,dt=Math.floor,ht=function(e){var t=+e;return t!=t||0===t?0:(t>0?dt:ft)(t)},pt=Math.max,yt=Math.min,vt=function(e,t){var n=ht(e);return n<0?pt(n+t,0):yt(n,t)},mt=Math.min,gt=function(e){return e>0?mt(ht(e),9007199254740991):0},bt=function(e){return gt(e.length)},wt=function(e){return function(t,n,r){var o,i=L(t),a=bt(i),c=vt(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return !0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return !e&&-1}},St={includes:wt(!0),indexOf:wt(!1)},_t=St.indexOf,kt=C([].push),It=function(e,t){var n,r=L(e),o=0,i=[];for(n in r)!he(qe,n)&&he(r,n)&&kt(i,n);for(;t.length>o;)he(r,n=t[o++])&&(~_t(i,n)||kt(i,n));return i},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ot=Tt.concat("length","prototype"),Et={f:Object.getOwnPropertyNames||function(e){return It(e,Ot)}},xt={f:Object.getOwnPropertySymbols},Ct=C([].concat),Rt=V("Reflect","ownKeys")||function(e){var t=Et.f(Fe(e)),n=xt.f;return n?Ct(t,n(e)):t},jt=function(e,t,n){for(var r=Rt(t),o=Ge.f,i=Ae.f,a=0;a<r.length;a++){var c=r[a];he(e,c)||n&&he(n,c)||o(e,c,i(t,c));}},At=/#|\.prototype\./,Ut=function(e,t){var n=Kt[Pt(e)];return n==Wt||n!=Ft&&(Z(t)?y(t):!!t)},Pt=Ut.normalize=function(e){return String(e).replace(At,".").toLowerCase()},Kt=Ut.data={},Ft=Ut.NATIVE="N",Wt=Ut.POLYFILL="P",Lt=Ut,Zt=Ae.f,Gt=function(e,t){var n,r,o,i,a,c=e.target,s=e.global,u=e.stat;if(n=s?p:u?p[c]||ce(c,{}):(p[c]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Zt(n,r))&&a.value:n[r],!Lt(s?r:c+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jt(i,o);}(e.sham||o&&o.sham)&&Xe(i,"sham",!0),lt(n,r,i,e);}},Xt={};Xt[_e("toStringTag")]="z";var Vt,Nt="[object z]"===String(Xt),Dt=_e("toStringTag"),Yt=p.Object,Mt="Arguments"==A(function(){return arguments}()),zt=Nt?A:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yt(e),Dt))?n:Mt?A(t):"Object"==(r=A(t))&&Z(t.callee)?"Arguments":r},Bt=p.String,Jt=function(e){if("Symbol"===zt(e))throw TypeError("Cannot convert a Symbol value to a string");return Bt(e)},Ht=_e("match"),qt=p.TypeError,Qt=function(e){if(function(e){var t;return G(e)&&(void 0!==(t=e[Ht])?!!t:"RegExp"==A(e))}(e))throw qt("The method doesn't accept regular expressions");return e},$t=_e("match"),en=function(e){var t=/./;try{"/./"[e](t);}catch(n){try{return t[$t]=!1,"/./"[e](t)}catch(e){}}return !1},tn=Ae.f,nn=C("".startsWith),rn=C("".slice),on=Math.min,an=en("startsWith"),cn=!(an||(Vt=tn(String.prototype,"startsWith"),!Vt||Vt.writable));Gt({target:"String",proto:!0,forced:!cn&&!an},{startsWith:function(e){var t=Jt(W(this));Qt(e);var n=gt(on(arguments.length>1?arguments[1]:void 0,t.length)),r=Jt(e);return nn?nn(t,r,n):rn(t,n,n+r.length)===r}});var sn=function(e,t){return C(p[e].prototype[t])};sn("String","startsWith");var un=Array.isArray||function(e){return "Array"==A(e)},ln=function(e,t,n){var r=Oe(t);r in e?Ge.f(e,r,I(0,n)):e[r]=n;},fn=function(){},dn=[],hn=V("Reflect","construct"),pn=/^\s*(?:class|function)\b/,yn=C(pn.exec),vn=!pn.exec(fn),mn=function(e){if(!Z(e))return !1;try{return hn(fn,dn,e),!0}catch(e){return !1}},gn=function(e){if(!Z(e))return !1;switch(zt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return vn||!!yn(pn,Me(e))}catch(e){return !0}};gn.sham=!0;var bn,wn=!hn||y((function(){var e;return mn(mn.call)||!mn(Object)||!mn((function(){e=!0;}))||e}))?gn:mn,Sn=_e("species"),_n=p.Array,kn=function(e,t){return new(function(e){var t;return un(e)&&(t=e.constructor,(wn(t)&&(t===_n||un(t.prototype))||G(t)&&null===(t=t[Sn]))&&(t=void 0)),void 0===t?_n:t}(e))(0===t?0:t)},In=_e("species"),Tn=_e("isConcatSpreadable"),On=p.TypeError,En=J>=51||!y((function(){var e=[];return e[Tn]=!1,e.concat()[0]!==e})),xn=(bn="concat",J>=51||!y((function(){var e=[];return (e.constructor={})[In]=function(){return {foo:1}},1!==e[bn](Boolean).foo}))),Cn=function(e){if(!G(e))return !1;var t=e[Tn];return void 0!==t?!!t:un(e)};Gt({target:"Array",proto:!0,forced:!En||!xn},{concat:function(e){var t,n,r,o,i,a=fe(this),c=kn(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Cn(i=-1===t?a:arguments[t])){if(s+(o=bt(i))>9007199254740991)throw On("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&ln(c,s,i[n]);}else {if(s>=9007199254740991)throw On("Maximum allowed index exceeded");ln(c,s++,i);}return c.length=s,c}});var Rn=Nt?{}.toString:function(){return "[object "+zt(this)+"]"};Nt||lt(Object.prototype,"toString",Rn,{unsafe:!0});var jn,An=Function.prototype,Un=An.apply,Pn=An.call,Kn="object"==typeof Reflect&&Reflect.apply||(m?Pn.bind(Un):function(){return Pn.apply(Un,arguments)}),Fn=Object.keys||function(e){return It(e,Tt)},Wn=v&&!Ue?Object.defineProperties:function(e,t){Fe(e);for(var n,r=L(t),o=Fn(t),i=o.length,a=0;i>a;)Ge.f(e,n=o[a++],r[n]);return e},Ln={f:Wn},Zn=V("document","documentElement"),Gn=He("IE_PROTO"),Xn=function(){},Vn=function(e){return "<script>"+e+"<\/script>"},Nn=function(e){e.write(Vn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Dn=function(){try{jn=new ActiveXObject("htmlfile");}catch(e){}var e,t;Dn="undefined"!=typeof document?document.domain&&jn?Nn(jn):((t=Ce("iframe")).style.display="none",Zn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Vn("document.F=Object")),e.close(),e.F):Nn(jn);for(var n=Tt.length;n--;)delete Dn.prototype[Tt[n]];return Dn()};qe[Gn]=!0;var Yn=Object.create||function(e,t){var n;return null!==e?(Xn.prototype=Fe(e),n=new Xn,Xn.prototype=null,n[Gn]=e):n=Dn(),void 0===t?n:Ln.f(n,t)},Mn=p.Array,zn=Math.max,Bn=Et.f,Jn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hn=function(e){try{return Bn(e)}catch(e){return function(e,t,n){for(var r=bt(e),o=vt(t,r),i=vt(void 0===n?r:n,r),a=Mn(zn(i-o,0)),c=0;o<i;o++,c++)ln(a,c,e[o]);return a.length=c,a}(Jn)}},qn={f:function(e){return Jn&&"Window"==A(e)?Hn(e):Bn(L(e))}},Qn=C([].slice),$n={f:_e},er=p,tr=Ge.f,nr=function(e){var t=er.Symbol||(er.Symbol={});he(t,e)||tr(t,e,{value:$n.f(e)});},rr=Ge.f,or=_e("toStringTag"),ir=function(e,t,n){e&&!n&&(e=e.prototype),e&&!he(e,or)&&rr(e,or,{configurable:!0,value:t});},ar=C(C.bind),cr=function(e,t){return re(e),void 0===t?e:m?ar(e,t):function(){return e.apply(t,arguments)}},sr=C([].push),ur=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(s,u,l,f){for(var d,h,p=fe(s),y=K(p),v=cr(u,l),m=bt(y),g=0,b=f||kn,w=t?b(s,m):n||a?b(s,0):void 0;m>g;g++)if((c||g in y)&&(h=v(d=y[g],g,p),e))if(t)w[g]=h;else if(h)switch(e){case 3:return !0;case 5:return d;case 6:return g;case 2:sr(w,d);}else switch(e){case 4:return !1;case 7:sr(w,d);}return i?-1:r||o?o:w}},lr={forEach:ur(0),map:ur(1),filter:ur(2),some:ur(3),every:ur(4),find:ur(5),findIndex:ur(6),filterReject:ur(7)}.forEach,fr=He("hidden"),dr=_e("toPrimitive"),hr=it.set,pr=it.getterFor("Symbol"),yr=Object.prototype,vr=p.Symbol,mr=vr&&vr.prototype,gr=p.TypeError,br=p.QObject,wr=V("JSON","stringify"),Sr=Ae.f,_r=Ge.f,kr=qn.f,Ir=k.f,Tr=C([].push),Or=ue("symbols"),Er=ue("op-symbols"),xr=ue("string-to-symbol-registry"),Cr=ue("symbol-to-string-registry"),Rr=ue("wks"),jr=!br||!br.prototype||!br.prototype.findChild,Ar=v&&y((function(){return 7!=Yn(_r({},"a",{get:function(){return _r(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Sr(yr,t);r&&delete yr[t],_r(e,t,n),r&&e!==yr&&_r(yr,t,r);}:_r,Ur=function(e,t){var n=Or[e]=Yn(mr);return hr(n,{type:"Symbol",tag:e,description:t}),v||(n.description=t),n},Pr=function(e,t,n){e===yr&&Pr(Er,t,n),Fe(e);var r=Oe(t);return Fe(n),he(Or,r)?(n.enumerable?(he(e,fr)&&e[fr][r]&&(e[fr][r]=!1),n=Yn(n,{enumerable:I(0,!1)})):(he(e,fr)||_r(e,fr,I(1,{})),e[fr][r]=!0),Ar(e,r,n)):_r(e,r,n)},Kr=function(e,t){Fe(e);var n=L(t),r=Fn(n).concat(Zr(n));return lr(r,(function(t){v&&!b(Fr,n,t)||Pr(e,t,n[t]);})),e},Fr=function(e){var t=Oe(e),n=b(Ir,this,t);return !(this===yr&&he(Or,t)&&!he(Er,t))&&(!(n||!he(this,t)||!he(Or,t)||he(this,fr)&&this[fr][t])||n)},Wr=function(e,t){var n=L(e),r=Oe(t);if(n!==yr||!he(Or,r)||he(Er,r)){var o=Sr(n,r);return !o||!he(Or,r)||he(n,fr)&&n[fr][r]||(o.enumerable=!0),o}},Lr=function(e){var t=kr(L(e)),n=[];return lr(t,(function(e){he(Or,e)||he(qe,e)||Tr(n,e);})),n},Zr=function(e){var t=e===yr,n=kr(t?Er:L(e)),r=[];return lr(n,(function(e){!he(Or,e)||t&&!he(yr,e)||Tr(r,Or[e]);})),r};if(H||(mr=(vr=function(){if(N(mr,this))throw gr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Jt(arguments[0]):void 0,t=me(e),n=function(e){this===yr&&b(n,Er,e),he(this,fr)&&he(this[fr],t)&&(this[fr][t]=!1),Ar(this,t,I(1,e));};return v&&jr&&Ar(yr,t,{configurable:!0,set:n}),Ur(t,e)}).prototype,lt(mr,"toString",(function(){return pr(this).tag})),lt(vr,"withoutSetter",(function(e){return Ur(me(e),e)})),k.f=Fr,Ge.f=Pr,Ln.f=Kr,Ae.f=Wr,Et.f=qn.f=Lr,xt.f=Zr,$n.f=function(e){return Ur(_e(e),e)},v&&(_r(mr,"description",{configurable:!0,get:function(){return pr(this).description}}),lt(yr,"propertyIsEnumerable",Fr,{unsafe:!0}))),Gt({global:!0,wrap:!0,forced:!H,sham:!H},{Symbol:vr}),lr(Fn(Rr),(function(e){nr(e);})),Gt({target:"Symbol",stat:!0,forced:!H},{for:function(e){var t=Jt(e);if(he(xr,t))return xr[t];var n=vr(t);return xr[t]=n,Cr[n]=t,n},keyFor:function(e){if(!$(e))throw gr(e+" is not a symbol");if(he(Cr,e))return Cr[e]},useSetter:function(){jr=!0;},useSimple:function(){jr=!1;}}),Gt({target:"Object",stat:!0,forced:!H,sham:!v},{create:function(e,t){return void 0===t?Yn(e):Kr(Yn(e),t)},defineProperty:Pr,defineProperties:Kr,getOwnPropertyDescriptor:Wr}),Gt({target:"Object",stat:!0,forced:!H},{getOwnPropertyNames:Lr,getOwnPropertySymbols:Zr}),Gt({target:"Object",stat:!0,forced:y((function(){xt.f(1);}))},{getOwnPropertySymbols:function(e){return xt.f(fe(e))}}),wr){var Gr=!H||y((function(){var e=vr();return "[null]"!=wr([e])||"{}"!=wr({a:e})||"{}"!=wr(Object(e))}));Gt({target:"JSON",stat:!0,forced:Gr},{stringify:function(e,t,n){var r=Qn(arguments),o=t;if((G(t)||void 0!==e)&&!$(e))return un(t)||(t=function(e,t){if(Z(o)&&(t=b(o,this,e,t)),!$(t))return t}),r[1]=t,Kn(wr,null,r)}});}if(!mr[dr]){var Xr=mr.valueOf;lt(mr,dr,(function(e){return b(Xr,this)}));}ir(vr,"Symbol"),qe[fr]=!0,nr("asyncIterator");var Vr=Ge.f,Nr=p.Symbol,Dr=Nr&&Nr.prototype;if(v&&Z(Nr)&&(!("description"in Dr)||void 0!==Nr().description)){var Yr={},Mr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Jt(arguments[0]),t=N(Dr,this)?new Nr(e):void 0===e?Nr():Nr(e);return ""===e&&(Yr[t]=!0),t};jt(Mr,Nr),Mr.prototype=Dr,Dr.constructor=Mr;var zr="Symbol(test)"==String(Nr("test")),Br=C(Dr.toString),Jr=C(Dr.valueOf),Hr=/^Symbol\((.*)\)[^)]+$/,qr=C("".replace),Qr=C("".slice);Vr(Dr,"description",{configurable:!0,get:function(){var e=Jr(this),t=Br(e);if(he(Yr,e))return "";var n=zr?Qr(t,7,-1):qr(t,Hr,"$1");return ""===n?void 0:n}}),Gt({global:!0,forced:!0},{Symbol:Mr});}nr("hasInstance"),nr("isConcatSpreadable"),nr("iterator"),nr("match"),nr("matchAll"),nr("replace"),nr("search"),nr("species"),nr("split"),nr("toPrimitive"),nr("toStringTag"),nr("unscopables"),ir(p.JSON,"JSON",!0),ir(Math,"Math",!0),Gt({global:!0},{Reflect:{}}),ir(p.Reflect,"Reflect",!0),er.Symbol;var $r,eo,to,no=C("".charAt),ro=C("".charCodeAt),oo=C("".slice),io=function(e){return function(t,n){var r,o,i=Jt(W(t)),a=ht(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=ro(i,a))<55296||r>56319||a+1===c||(o=ro(i,a+1))<56320||o>57343?e?no(i,a):r:e?oo(i,a,a+2):o-56320+(r-55296<<10)+65536}},ao={codeAt:io(!1),charAt:io(!0)},co=!y((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),so=He("IE_PROTO"),uo=p.Object,lo=uo.prototype,fo=co?uo.getPrototypeOf:function(e){var t=fe(e);if(he(t,so))return t[so];var n=t.constructor;return Z(n)&&t instanceof n?n.prototype:t instanceof uo?lo:null},ho=_e("iterator"),po=!1;[].keys&&("next"in(to=[].keys())?(eo=fo(fo(to)))!==Object.prototype&&($r=eo):po=!0);var yo=null==$r||y((function(){var e={};return $r[ho].call(e)!==e}));yo&&($r={}),Z($r[ho])||lt($r,ho,(function(){return this}));var vo={IteratorPrototype:$r,BUGGY_SAFARI_ITERATORS:po},mo={},go=vo.IteratorPrototype,bo=function(){return this},wo=p.String,So=p.TypeError,_o=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=C(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array;}catch(e){}return function(n,r){return Fe(n),function(e){if("object"==typeof e||Z(e))return e;throw So("Can't set "+wo(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ko=ut.PROPER,Io=ut.CONFIGURABLE,To=vo.IteratorPrototype,Oo=vo.BUGGY_SAFARI_ITERATORS,Eo=_e("iterator"),xo=function(){return this},Co=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Yn(go,{next:I(+!r,n)}),ir(e,o,!1),mo[o]=bo;}(n,t,r);var c,s,u,l=function(e){if(e===o&&y)return y;if(!Oo&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[Eo]||h["@@iterator"]||o&&h[o],y=!Oo&&p||l(o),v="Array"==t&&h.entries||p;if(v&&(c=fo(v.call(new e)))!==Object.prototype&&c.next&&(fo(c)!==To&&(_o?_o(c,To):Z(c[Eo])||lt(c,Eo,xo)),ir(c,f,!0)),ko&&"values"==o&&p&&"values"!==p.name&&(Io?Xe(h,"name","values"):(d=!0,y=function(){return b(p,this)})),o)if(s={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},a)for(u in s)(Oo||d||!(u in h))&<(h,u,s[u]);else Gt({target:t,proto:!0,forced:Oo||d},s);return h[Eo]!==y&<(h,Eo,y,{name:o}),mo[t]=y,s},Ro=ao.charAt,jo=it.set,Ao=it.getterFor("String Iterator");Co(String,"String",(function(e){jo(this,{type:"String Iterator",string:Jt(e),index:0});}),(function(){var e,t=Ao(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ro(n,r),t.index+=e.length,{value:e,done:!1})}));var Uo=function(e,t,n){var r,o;Fe(e);try{if(!(r=oe(e,"return"))){if("throw"===t)throw n;return n}r=b(r,e);}catch(e){o=!0,r=e;}if("throw"===t)throw n;if(o)throw r;return Fe(r),n},Po=function(e,t,n,r){try{return r?t(Fe(n)[0],n[1]):t(n)}catch(t){Uo(e,"throw",t);}},Ko=_e("iterator"),Fo=Array.prototype,Wo=function(e){return void 0!==e&&(mo.Array===e||Fo[Ko]===e)},Lo=_e("iterator"),Zo=function(e){if(null!=e)return oe(e,Lo)||oe(e,"@@iterator")||mo[zt(e)]},Go=p.TypeError,Xo=function(e,t){var n=arguments.length<2?Zo(e):t;if(re(n))return Fe(b(n,e));throw Go(te(e)+" is not iterable")},Vo=p.Array,No=_e("iterator"),Do=!1;try{var Yo=0,Mo={next:function(){return {done:!!Yo++}},return:function(){Do=!0;}};Mo[No]=function(){return this},Array.from(Mo,(function(){throw 2}));}catch(e){}var zo=function(e,t){if(!t&&!Do)return !1;var n=!1;try{var r={};r[No]=function(){return {next:function(){return {done:n=!0}}}},e(r);}catch(e){}return n},Bo=!zo((function(e){Array.from(e);}));Gt({target:"Array",stat:!0,forced:Bo},{from:function(e){var t=fe(e),n=wn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=cr(o,r>2?arguments[2]:void 0));var a,c,s,u,l,f,d=Zo(t),h=0;if(!d||this==Vo&&Wo(d))for(a=bt(t),c=n?new this(a):Vo(a);a>h;h++)f=i?o(t[h],h):t[h],ln(c,h,f);else for(l=(u=Xo(t,d)).next,c=n?new this:[];!(s=b(l,u)).done;h++)f=i?Po(u,o,[s.value,h],!0):s.value,ln(c,h,f);return c.length=h,c}}),er.Array.from;var Jo,Ho,qo,Qo="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,$o=Ge.f,ei=p.Int8Array,ti=ei&&ei.prototype,ni=p.Uint8ClampedArray,ri=ni&&ni.prototype,oi=ei&&fo(ei),ii=ti&&fo(ti),ai=Object.prototype,ci=p.TypeError,si=_e("toStringTag"),ui=me("TYPED_ARRAY_TAG"),li=me("TYPED_ARRAY_CONSTRUCTOR"),fi=Qo&&!!_o&&"Opera"!==zt(p.opera),di=!1,hi={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pi={BigInt64Array:8,BigUint64Array:8},yi=function(e){if(!G(e))return !1;var t=zt(e);return he(hi,t)||he(pi,t)};for(Jo in hi)(qo=(Ho=p[Jo])&&Ho.prototype)?Xe(qo,li,Ho):fi=!1;for(Jo in pi)(qo=(Ho=p[Jo])&&Ho.prototype)&&Xe(qo,li,Ho);if((!fi||!Z(oi)||oi===Function.prototype)&&(oi=function(){throw ci("Incorrect invocation")},fi))for(Jo in hi)p[Jo]&&_o(p[Jo],oi);if((!fi||!ii||ii===ai)&&(ii=oi.prototype,fi))for(Jo in hi)p[Jo]&&_o(p[Jo].prototype,ii);if(fi&&fo(ri)!==ii&&_o(ri,ii),v&&!he(ii,si))for(Jo in di=!0,$o(ii,si,{get:function(){return G(this)?this[ui]:void 0}}),hi)p[Jo]&&Xe(p[Jo],ui,Jo);var vi={NATIVE_ARRAY_BUFFER_VIEWS:fi,TYPED_ARRAY_CONSTRUCTOR:li,TYPED_ARRAY_TAG:di&&ui,aTypedArray:function(e){if(yi(e))return e;throw ci("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Z(e)&&(!_o||N(oi,e)))return e;throw ci(te(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(v){if(n)for(var o in hi){var i=p[o];if(i&&he(i.prototype,e))try{delete i.prototype[e];}catch(n){try{i.prototype[e]=t;}catch(e){}}}ii[e]&&!n||lt(ii,e,n?t:fi&&ti[e]||t,r);}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(v){if(_o){if(n)for(r in hi)if((o=p[r])&&he(o,e))try{delete o[e];}catch(e){}if(oi[e]&&!n)return;try{return lt(oi,e,n?t:fi&&oi[e]||t)}catch(e){}}for(r in hi)!(o=p[r])||o[e]&&!n||lt(o,e,t);}},isView:function(e){if(!G(e))return !1;var t=zt(e);return "DataView"===t||he(hi,t)||he(pi,t)},isTypedArray:yi,TypedArray:oi,TypedArrayPrototype:ii},mi=p.TypeError,gi=_e("species"),bi=function(e,t){var n,r=Fe(e).constructor;return void 0===r||null==(n=Fe(r)[gi])?t:function(e){if(wn(e))return e;throw mi(te(e)+" is not a constructor")}(n)},wi=vi.TYPED_ARRAY_CONSTRUCTOR,Si=vi.aTypedArrayConstructor,_i=vi.aTypedArray;(0, vi.exportTypedArrayMethod)("slice",(function(e,t){for(var n,r=Qn(_i(this),e,t),o=Si(bi(n=this,n[wi])),i=0,a=r.length,c=new o(a);a>i;)c[i]=r[i++];return c}),y((function(){new Int8Array(1).slice();})));var ki=_e("unscopables"),Ii=Array.prototype;null==Ii[ki]&&Ge.f(Ii,ki,{configurable:!0,value:Yn(null)});var Ti=function(e){Ii[ki][e]=!0;},Oi=St.includes;Gt({target:"Array",proto:!0},{includes:function(e){return Oi(this,e,arguments.length>1?arguments[1]:void 0)}}),Ti("includes"),sn("Array","includes");var Ei=C("".indexOf);Gt({target:"String",proto:!0,forced:!en("includes")},{includes:function(e){return !!~Ei(Jt(W(this)),Jt(Qt(e)),arguments.length>1?arguments[1]:void 0)}}),sn("String","includes");var xi=Ge.f,Ci=it.set,Ri=it.getterFor("Array Iterator");Co(Array,"Array",(function(e,t){Ci(this,{type:"Array Iterator",target:L(e),index:0,kind:t});}),(function(){var e=Ri(this),t=e.target,n=e.kind,r=e.index++;return !t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var ji=mo.Arguments=mo.Array;if(Ti("keys"),Ti("values"),Ti("entries"),v&&"values"!==ji.name)try{xi(ji,"name",{value:"values"});}catch(e){}var Ai=y((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8});}})),Ui=Object.isExtensible,Pi=y((function(){Ui(1);}))||Ai?function(e){return !!G(e)&&((!Ai||"ArrayBuffer"!=A(e))&&(!Ui||Ui(e)))}:Ui,Ki=!y((function(){return Object.isExtensible(Object.preventExtensions({}))})),Fi=l((function(e){var t=Ge.f,n=!1,r=me("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}});},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Et.f,t=C([].splice),o={};o[r]=1,e(o).length&&(Et.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Gt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qn.f}));},fastKey:function(e,t){if(!G(e))return "symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!he(e,r)){if(!Pi(e))return "F";if(!t)return "E";i(e);}return e[r].objectID},getWeakData:function(e,t){if(!he(e,r)){if(!Pi(e))return !0;if(!t)return !1;i(e);}return e[r].weakData},onFreeze:function(e){return Ki&&n&&Pi(e)&&!he(e,r)&&i(e),e}};qe[r]=!0;}));Fi.enable,Fi.fastKey,Fi.getWeakData,Fi.onFreeze;var Wi=p.TypeError,Li=function(e,t){this.stopped=e,this.result=t;},Zi=Li.prototype,Gi=function(e,t,n){var r,o,i,a,c,s,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=cr(t,l),y=function(e){return r&&Uo(r,"normal",e),new Li(!0,e)},v=function(e){return f?(Fe(e),h?p(e[0],e[1],y):p(e[0],e[1])):h?p(e,y):p(e)};if(d)r=e;else {if(!(o=Zo(e)))throw Wi(te(e)+" is not iterable");if(Wo(o)){for(i=0,a=bt(e);a>i;i++)if((c=v(e[i]))&&N(Zi,c))return c;return new Li(!1)}r=Xo(e,o);}for(s=r.next;!(u=b(s,r)).done;){try{c=v(u.value);}catch(e){Uo(r,"throw",e);}if("object"==typeof c&&c&&N(Zi,c))return c}return new Li(!1)},Xi=p.TypeError,Vi=function(e,t){if(N(t,e))return e;throw Xi("Incorrect invocation")},Ni=function(e,t,n){for(var r in t)lt(e,r,t[r],n);return e},Di=_e("species"),Yi=Ge.f,Mi=Fi.fastKey,zi=it.set,Bi=it.getterFor,Ji={getConstructor:function(e,t,n,r){var o=e((function(e,o){Vi(e,i),zi(e,{type:t,index:Yn(null),first:void 0,last:void 0,size:0}),v||(e.size=0),null!=o&&Gi(o,e[r],{that:e,AS_ENTRIES:n});})),i=o.prototype,a=Bi(t),c=function(e,t,n){var r,o,i=a(e),c=s(e,t);return c?c.value=n:(i.last=c={index:o=Mi(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=c),r&&(r.next=c),v?i.size++:e.size++,"F"!==o&&(i.index[o]=c)),e},s=function(e,t){var n,r=a(e),o=Mi(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Ni(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,v?e.size=0:this.size=0;},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),v?n.size--:t.size--;}return !!r},forEach:function(e){for(var t,n=a(this),r=cr(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous;},has:function(e){return !!s(this,e)}}),Ni(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return c(this,0===e?0:e,t)}}:{add:function(e){return c(this,e=0===e?0:e,e)}}),v&&Yi(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Bi(t),i=Bi(r);Co(e,t,(function(e,t){zi(this,{type:r,target:e,state:o(e),kind:t,last:void 0});}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(e){var t=V(e),n=Ge.f;v&&t&&!t[Di]&&n(t,Di,{configurable:!0,get:function(){return this}});}(t);}};function Hi(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function qi(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){i(e,t);}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r);}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r);}for(var a=0;a<r.length;a++)i(a,r[a]);}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=p[e],c=a&&a.prototype,s=a,u={},l=function(e){var t=C(c[e]);lt(c,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return !(o&&!G(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!G(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return !(o&&!G(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this});};if(Lt(e,!Z(a)||!(o||c.forEach&&!y((function(){(new a).entries().next();})))))s=n.getConstructor(t,e,r,i),Fi.enable();else if(Lt(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,h=y((function(){f.has(1);})),v=zo((function(e){new a(e);})),m=!o&&y((function(){for(var e=new a,t=5;t--;)e[i](t,t);return !e.has(-0)}));v||((s=t((function(e,t){Vi(e,c);var n=function(e,t,n){var r,o;return _o&&Z(r=t.constructor)&&r!==n&&G(o=r.prototype)&&o!==n.prototype&&_o(e,o),e}(new a,e,s);return null!=t&&Gi(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=c,c.constructor=s),(h||m)&&(l("delete"),l("has"),r&&l("get")),(m||d)&&l(i),o&&c.clear&&delete c.clear;}u[e]=s,Gt({global:!0,forced:s!=a},u),ir(s,e),o||n.setStrong(s,e,r);}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ji),er.Set;var Qi=setTimeout,$i="undefined"!=typeof setImmediate?setImmediate:null;function ea(e){return Boolean(e&&void 0!==e.length)}function ta(){}function na(e){if(!(this instanceof na))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],sa(e,this);}function ra(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,na._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value);}catch(e){return void ia(t.promise,e)}oa(t.promise,r);}else (1===e._state?oa:ia)(t.promise,e._value);}))):e._deferreds.push(t);}function oa(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof na)return e._state=3,e._value=t,void aa(e);if("function"==typeof n)return void sa((r=n,o=t,function(){r.apply(o,arguments);}),e)}e._state=1,e._value=t,aa(e);}catch(t){ia(e,t);}var r,o;}function ia(e,t){e._state=2,e._value=t,aa(e);}function aa(e){2===e._state&&0===e._deferreds.length&&na._immediateFn((function(){e._handled||na._unhandledRejectionFn(e._value);}));for(var t=0,n=e._deferreds.length;t<n;t++)ra(e,e._deferreds[t]);e._deferreds=null;}function ca(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n;}function sa(e,t){var n=!1;try{e((function(e){n||(n=!0,oa(t,e));}),(function(e){n||(n=!0,ia(t,e));}));}catch(e){if(n)return;n=!0,ia(t,e);}}na.prototype.catch=function(e){return this.then(null,e)},na.prototype.then=function(e,t){var n=new this.constructor(ta);return ra(this,new ca(e,t,n)),n},na.prototype.finally=Hi,na.all=function(e){return new na((function(t,n){if(!ea(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,(function(t){i(e,t);}),n)}r[e]=a,0==--o&&t(r);}catch(e){n(e);}}for(var a=0;a<r.length;a++)i(a,r[a]);}))},na.allSettled=qi,na.resolve=function(e){return e&&"object"==typeof e&&e.constructor===na?e:new na((function(t){t(e);}))},na.reject=function(e){return new na((function(t,n){n(e);}))},na.race=function(e){return new na((function(t,n){if(!ea(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)na.resolve(e[r]).then(t,n);}))},na._immediateFn="function"==typeof $i&&function(e){$i(e);}||function(e){Qi(e,0);},na._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e);};var ua=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"function"!=typeof ua.Promise?ua.Promise=na:(ua.Promise.prototype.finally||(ua.Promise.prototype.finally=Hi),ua.Promise.allSettled||(ua.Promise.allSettled=qi)),function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===o.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function r(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],i=0;;){var a=t<e.length;if(!a||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!a)return o.join("");e=e.subarray(t),i=t=0;}if(0==(128&(a=e[t++])))r[i++]=a;else if(192==(224&a)){var c=63&e[t++];r[i++]=(31&a)<<6|c;}else if(224==(240&a)){c=63&e[t++];var s=63&e[t++];r[i++]=(31&a)<<12|c<<6|s;}else if(240==(248&a)){65535<(a=(7&a)<<18|(c=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(a-=65536,r[i++]=a>>>10&1023|55296,a=56320|1023&a),r[i++]=a;}}}if(e.TextEncoder&&e.TextDecoder)return !1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(o>>>3<<3);t<n;){var a=e.charCodeAt(t++);if(55296<=a&&56319>=a){if(t<n){var c=e.charCodeAt(t);56320==(64512&c)&&(++t,a=((1023&a)<<10)+(1023&c)+65536);}if(55296<=a&&56319>=a)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(c=new Uint8Array(o)).set(i),i=c),0==(4294967168&a))i[r++]=a;else {if(0==(4294965248&a))i[r++]=a>>>6&31|192;else if(0==(4294901760&a))i[r++]=a>>>12&15|224,i[r++]=a>>>6&63|128;else {if(0!=(4292870144&a))continue;i[r++]=a>>>18&7|240,i[r++]=a>>>12&63|128,i[r++]=a>>>6&63|128;}i[r++]=63&a|128;}}return i.slice?i.slice(0,r):i.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=r;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{URL.revokeObjectURL(t);}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n;}("undefined"!=typeof window?window:s),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t);}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return !1}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return !t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function l(e){var t=a();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i);}else n=r.apply(this,arguments);return u(this,n)}}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function d(e,t,n){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},d(e,t,n||e)}var h=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0});}return n(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n});}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e);}catch(e){Promise.resolve().then((function(){throw e}));}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback);}return !e.defaultPrevented}}}]),t}(),p=function(t){r(a,t);var i=l(a);function a(){var t;return e(this,a),(t=i.call(this)).listeners||h.call(c(t)),Object.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(a,[{key:"toString",value:function(){return "[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),d(o(a.prototype),"dispatchEvent",this).call(this,e);}}]),a}(h),y=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new p,writable:!0,configurable:!0});}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort");}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1};}this.signal.dispatchEvent(e);}},{key:"toString",value:function(){return "[object AbortController]"}}]),t}();function v(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(y.prototype[Symbol.toStringTag]="AbortController",p.prototype[Symbol.toStringTag]="AbortSignal"),function(e){v(e)&&(e.AbortController=y,e.AbortSignal=p);}("undefined"!=typeof self?self:s);}();var la=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r));},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n());}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0);}else e.locked.delete(t);};}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()};}));u(la);var fa=l((function(e,t){var n=s&&s.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e));}catch(e){i(e);}}function c(e){try{s(r.throw(e));}catch(e){i(e);}}function s(e){e.done?o(e.value):new n((function(t){t(e.value);})).then(a,c);}s((r=r.apply(e,t||[])).next());}))},r=s&&s.__generator||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:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new 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=a.trys,(o=o.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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a);}catch(e){i=[6,e],r=0;}finally{n=o=0;}if(5&i[0])throw i[1];return {value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function a(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++){n+=t[Math.floor(Math.random()*t.length)];}return n}var c=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),void 0===e.waiters&&(e.waiters=[]);}return e.prototype.acquireLock=function(t,c){return void 0===c&&(c=5e3),n(this,void 0,void 0,(function(){var n,s,u,l,f,d;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+a(4),s=Date.now()+c,u=o+"-"+t,l=window.localStorage,r.label=1;case 1:return Date.now()<s?[4,i(30)]:[3,8];case 2:return r.sent(),null!==l.getItem(u)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),l.setItem(u,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(d=l.getItem(u))&&(d=JSON.parse(d)).id===this.id&&d.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(u,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(s)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+a(4),[3,1];case 8:return [2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var o=this;return r(this,(function(i){return setTimeout((function(){return n(o,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return [4,la.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(la.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),la.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(la.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return [4,new Promise((function(n){var r=!1,o=Date.now(),i=!1;function a(){if(i||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(c),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n();}}window.addEventListener("storage",a),e.addToWaiting(a);var c=setTimeout(a,Math.max(0,t-Date.now()));}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t);},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})));},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}));},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return [4,this.releaseLock__private__(e)];case 1:return [2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,a;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(a=n.getItem(i))?[2]:(a=JSON.parse(a)).id!==this.id?[3,2]:[4,la.default().lock(a.iat)];case 1:r.sent(),this.acquiredIatSet.delete(a.iat),n.removeItem(i),la.default().unlock(a.iat),e.notifyWaiters(),r.label=2;case 2:return [2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,a=0;a<r.length;a++){var c=r[a];if(c.includes(o)){var s=n.getItem(c);null!==s&&(void 0===(s=JSON.parse(s)).timeRefreshed&&s.timeAcquired<t||void 0!==s.timeRefreshed&&s.timeRefreshed<t)&&(n.removeItem(c),i=!0);}}i&&e.notifyWaiters();},e.waiters=void 0,e}();t.default=c;})),da=u(fa),ha={timeoutInSeconds:60},pa=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],ya={name:"auth0-spa-js",version:"1.21.0"},va=function(){return Date.now()},ma=function(e){function n(t,r){var o=e.call(this,r)||this;return o.error=t,o.error_description=r,Object.setPrototypeOf(o,n.prototype),o}return t(n,e),n.fromPayload=function(e){return new n(e.error,e.error_description)},n}(Error),ga=function(e){function n(t,r,o,i){void 0===i&&(i=null);var a=e.call(this,t,r)||this;return a.state=o,a.appState=i,Object.setPrototypeOf(a,n.prototype),a}return t(n,e),n}(ma),ba=function(e){function n(){var t=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(t,n.prototype),t}return t(n,e),n}(ma),wa=function(e){function n(t){var r=e.call(this)||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(ba),Sa=function(e){function n(t){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(ma),_a=function(e){function n(t,r,o){var i=e.call(this,t,r)||this;return i.mfa_token=o,Object.setPrototypeOf(i,n.prototype),i}return t(n,e),n}(ma),ka=function(e){return new Promise((function(t,n){var r,o=setInterval((function(){e.popup&&e.popup.closed&&(clearInterval(o),clearTimeout(i),window.removeEventListener("message",r,!1),n(new Sa(e.popup)));}),1e3),i=setTimeout((function(){clearInterval(o),n(new wa(e.popup)),window.removeEventListener("message",r,!1);}),1e3*(e.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),a.data.response.error)return n(ma.fromPayload(a.data.response));t(a.data.response);}},window.addEventListener("message",r);}))},Ia=function(){return window.crypto||window.msCrypto},Ta=function(){var e=Ia();return e.subtle||e.webkitSubtle},Oa=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(Ia().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},Ea=function(e){return btoa(e)},xa=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},Ca=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return t=Ta().digest({name:"SHA-256"},(new TextEncoder).encode(e)),window.msCrypto?[2,new Promise((function(e,n){t.oncomplete=function(t){e(t.target.result);},t.onerror=function(e){n(e.error);},t.onabort=function(){n("The digest operation was aborted");};}))]:[4,t];case 1:return [2,n.sent()]}}))}))},Ra=function(e){return function(e){return decodeURIComponent(atob(e).split("").map((function(e){return "%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(e.replace(/_/g,"/").replace(/-/g,"+"))},ja=function(e){var t=new Uint8Array(e);return function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))}(window.btoa(String.fromCharCode.apply(String,c([],a(Array.from(t)),!1))))};var Aa=function(e,t){return o(void 0,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return [4,(i=e,a=t,a=a||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],c={},s=function(){return {ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:s,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return c[e.toLowerCase()]},has:function(e){return e.toLowerCase()in c}}}};for(var u in n.open(a.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){r.push(t=t.toLowerCase()),o.push([t,n]),c[t]=c[t]?c[t]+","+n:n;})),e(s());},n.onerror=t,n.withCredentials="include"==a.credentials,a.headers)n.setRequestHeader(u,a.headers[u]);n.send(a.body||null);})))];case 1:return n=o.sent(),r={ok:n.ok},[4,n.json()];case 2:return [2,(r.json=o.sent(),r)]}var i,a;}))}))},Ua=function(e,t,n){return o(void 0,void 0,void 0,(function(){var r,o;return i(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([Aa(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"));}),n);}))]).finally((function(){clearTimeout(o);}))]}))}))},Pa=function(e,t,n,r,a,c,s){return o(void 0,void 0,void 0,(function(){return i(this,(function(o){return [2,(i={auth:{audience:t,scope:n},timeout:a,fetchUrl:e,fetchOptions:r,useFormData:s},u=c,new Promise((function(e,t){var n=new MessageChannel;n.port1.onmessage=function(n){n.data.error?t(new Error(n.data.error)):e(n.data);},u.postMessage(i,[n.port2]);})))];var i,u;}))}))},Ka=function(e,t,n,r,a,c,s){return void 0===s&&(s=1e4),o(void 0,void 0,void 0,(function(){return i(this,(function(o){return a?[2,Pa(e,t,n,r,s,a,c)]:[2,Ua(e,r,s)]}))}))};function Fa(e,t,n,a,c,s,u){return o(this,void 0,void 0,(function(){var o,l,f,d,h,p,y,v,m;return i(this,(function(i){switch(i.label){case 0:o=null,f=0,i.label=1;case 1:if(!(f<3))return [3,6];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,Ka(e,n,a,c,s,u,t)];case 3:return l=i.sent(),o=null,[3,6];case 4:return d=i.sent(),o=d,[3,5];case 5:return f++,[3,1];case 6:if(o)throw o.message=o.message||"Failed to fetch",o;if(h=l.json,p=h.error,y=h.error_description,v=r(h,["error","error_description"]),!l.ok){if(m=y||"HTTP error. Unable to fetch ".concat(e),"mfa_required"===p)throw new _a(p,m,v.mfa_token);throw new ma(p||"request_error",m)}return [2,v]}}))}))}function Wa(e,t){var n=e.baseUrl,a=e.timeout,c=e.audience,s=e.scope,u=e.auth0Client,l=e.useFormData,f=r(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return o(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return e=l?xa(f):JSON.stringify(f),[4,Fa("".concat(n,"/oauth/token"),a,c||"default",s,{method:"POST",body:e,headers:{"Content-Type":l?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(u||ya))}},t,l)];case 1:return [2,r.sent()]}}))}))}var La=function(e){return Array.from(new Set(e))},Za=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return La(e.join(" ").trim().split(/\s+/)).join(" ")},Ga=function(){function e(e,t){void 0===t&&(t="@@auth0spajs@@"),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience;}return e.prototype.toKey=function(){return "".concat(this.prefix,"::").concat(this.client_id,"::").concat(this.audience,"::").concat(this.scope)},e.fromKey=function(t){var n=a(t.split("::"),4),r=n[0],o=n[1],i=n[2];return new e({client_id:o,scope:n[3],audience:i},r)},e.fromCacheEntry=function(t){return new e({scope:t.scope,audience:t.audience,client_id:t.client_id})},e}(),Xa=function(){function e(){}return e.prototype.set=function(e,t){localStorage.setItem(e,JSON.stringify(t));},e.prototype.get=function(e){var t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}},e.prototype.remove=function(e){localStorage.removeItem(e);},e.prototype.allKeys=function(){return Object.keys(window.localStorage).filter((function(e){return e.startsWith("@@auth0spajs@@")}))},e}(),Va=function(){var e;this.enclosedCache=(e={},{set:function(t,n){e[t]=n;},get:function(t){var n=e[t];if(n)return n},remove:function(t){delete e[t];},allKeys:function(){return Object.keys(e)}});},Na=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||va;}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),o(this,void 0,void 0,(function(){var r,o,a,c,s;return i(this,(function(i){switch(i.label){case 0:return [4,this.cache.get(e.toKey())];case 1:return (r=i.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return (o=i.sent())?(a=this.matchExistingCacheKey(e,o))?[4,this.cache.get(a)]:[3,4]:[2];case 3:r=i.sent(),i.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return c=i.sent(),s=Math.floor(c/1e3),r.expiresAt-t<s?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return i.sent(),[2,r.body];case 7:return [4,this.cache.remove(e.toKey())];case 8:return i.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return i.sent(),[2];case 10:return [2,r.body]}}))}))},e.prototype.set=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return n=new Ga({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=o.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return o.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return o(this,void 0,void 0,(function(){var n,r=this;return i(this,(function(a){switch(a.label){case 0:return [4,this.getCacheKeys()];case 1:return (n=a.sent())?[4,n.filter((function(t){return !e||t.includes(e)})).reduce((function(e,t){return o(r,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return [4,e];case 1:return n.sent(),[4,this.cache.remove(t)];case 2:return n.sent(),[2]}}))}))}),Promise.resolve())]:[2];case 2:return a.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.clear()];case 3:return a.sent(),[2]}}))}))},e.prototype.clearSync=function(e){var t=this,n=this.cache.allKeys();n&&n.filter((function(t){return !e||t.includes(e)})).forEach((function(e){t.cache.remove(e);}));},e.prototype.wrapCacheEntry=function(e){return o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return [4,this.nowProvider()];case 1:return t=o.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return t=null===(e=n.sent())||void 0===e?void 0:e.keys,[3,4];case 2:return [4,this.cache.allKeys()];case 3:t=n.sent(),n.label=4;case 4:return [2,t]}}))}))},e.prototype.matchExistingCacheKey=function(e,t){return t.filter((function(t){var n=Ga.fromKey(t),r=new Set(n.scope&&n.scope.split(" ")),o=e.scope.split(" "),i=n.scope&&o.reduce((function(e,t){return e&&r.has(t)}),!0);return "@@auth0spajs@@"===n.prefix&&n.client_id===e.client_id&&n.audience===e.audience&&i}))[0]},e}(),Da=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId),this.transaction=this.storage.get(this.storageKey);}return e.prototype.create=function(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1});},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove(this.storageKey);},e}(),Ya=function(e){return "number"==typeof e},Ma=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],za=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=a(t,3),r=n[0],o=n[1],i=n[2];if(3!==t.length||!r||!o||!i)throw new Error("ID token could not be decoded");var c=JSON.parse(Ra(o)),s={__raw:e},u={};return Object.keys(c).forEach((function(e){s[e]=c[e],Ma.includes(e)||(u[e]=c[e]);})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Ra(r)),claims:s,user:u}}(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!Ya(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(!Ya(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Ya(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=e.leeway||60,r=new Date(e.now||Date.now()),o=new Date(0),i=new Date(0),c=new Date(0);if(c.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),o.setUTCSeconds(t.claims.exp+n),i.setUTCSeconds(t.claims.nbf-n),r>o)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(o,")"));if(Ya(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time (".concat(r,") is before ").concat(i));if(Ya(t.claims.auth_time)&&r>c)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time (".concat(r,") is after last auth at ").concat(c));if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(e.organizationId,'", found "').concat(t.claims.org_id,'"'))}return t},Ba=l((function(e,t){var n=s&&s.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t){if(!t)return "";var n="; "+e;return !0===t?n:n+"="+t}function o(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t;}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent);}catch(e){}}return t}function a(){return i(document.cookie)}function c(e,t,r){document.cookie=o(e,t,n({path:"/"},r));}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=a,t.get=function(e){return a()[e]},t.set=c,t.remove=function(e,t){c(e,"",n(n({},t),{expires:-1}));};}));u(Ba),Ba.encode,Ba.parse,Ba.getAll;var Ja=Ba.get,Ha=Ba.set,qa=Ba.remove,Qa={get:function(e){var t=Ja(e);if(void 0!==t)return JSON.parse(t)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),Ha(e,JSON.stringify(t),r);},remove:function(e){qa(e);}},$a={get:function(e){var t=Qa.get(e);return t||Qa.get("".concat("_legacy_").concat(e))},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),Ha("".concat("_legacy_").concat(e),JSON.stringify(t),r),Qa.save(e,t,n);},remove:function(e){Qa.remove(e),Qa.remove("".concat("_legacy_").concat(e));}},ec={get:function(e){if("undefined"!=typeof sessionStorage){var t=sessionStorage.getItem(e);if(void 0!==t)return JSON.parse(t)}},save:function(e,t){sessionStorage.setItem(e,JSON.stringify(t));},remove:function(e){sessionStorage.removeItem(e);}};function tc(e,t,n){var r=void 0===t?null:t,o=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),o=0,i=n.length;o<i;++o)r[o]=n.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),i=o.indexOf("\n",10)+1,a=o.substring(i)+(r?"//# sourceMappingURL="+r:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}var nc,rc,oc,ic,ac=(nc="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQogICAgQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULAogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NCiAgICBMT1NTIE9GIFVTRSwgREFUQSBPUiBQUk9GSVRTLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgTkVHTElHRU5DRSBPUgogICAgT1RIRVIgVE9SVElPVVMgQUNUSU9OLCBBUklTSU5HIE9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFVTRSBPUgogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4KICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqICovdmFyIGU9ZnVuY3Rpb24oKXtyZXR1cm4gZT1PYmplY3QuYXNzaWdufHxmdW5jdGlvbihlKXtmb3IodmFyIHIsdD0xLG49YXJndW1lbnRzLmxlbmd0aDt0PG47dCsrKWZvcih2YXIgbyBpbiByPWFyZ3VtZW50c1t0XSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocixvKSYmKGVbb109cltvXSk7cmV0dXJuIGV9LGUuYXBwbHkodGhpcyxhcmd1bWVudHMpfTtmdW5jdGlvbiByKGUscix0LG4pe3JldHVybiBuZXcodHx8KHQ9UHJvbWlzZSkpKChmdW5jdGlvbihvLGEpe2Z1bmN0aW9uIHMoZSl7dHJ5e2Mobi5uZXh0KGUpKX1jYXRjaChlKXthKGUpfX1mdW5jdGlvbiBpKGUpe3RyeXtjKG4udGhyb3coZSkpfWNhdGNoKGUpe2EoZSl9fWZ1bmN0aW9uIGMoZSl7dmFyIHI7ZS5kb25lP28oZS52YWx1ZSk6KHI9ZS52YWx1ZSxyIGluc3RhbmNlb2YgdD9yOm5ldyB0KChmdW5jdGlvbihlKXtlKHIpfSkpKS50aGVuKHMsaSl9Yygobj1uLmFwcGx5KGUscnx8W10pKS5uZXh0KCkpfSkpfWZ1bmN0aW9uIHQoZSxyKXt2YXIgdCxuLG8sYSxzPXtsYWJlbDowLHNlbnQ6ZnVuY3Rpb24oKXtpZigxJm9bMF0pdGhyb3cgb1sxXTtyZXR1cm4gb1sxXX0sdHJ5czpbXSxvcHM6W119O3JldHVybiBhPXtuZXh0OmkoMCksdGhyb3c6aSgxKSxyZXR1cm46aSgyKX0sImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmKGFbU3ltYm9sLml0ZXJhdG9yXT1mdW5jdGlvbigpe3JldHVybiB0aGlzfSksYTtmdW5jdGlvbiBpKGEpe3JldHVybiBmdW5jdGlvbihpKXtyZXR1cm4gZnVuY3Rpb24oYSl7aWYodCl0aHJvdyBuZXcgVHlwZUVycm9yKCJHZW5lcmF0b3IgaXMgYWxyZWFkeSBleGVjdXRpbmcuIik7Zm9yKDtzOyl0cnl7aWYodD0xLG4mJihvPTImYVswXT9uLnJldHVybjphWzBdP24udGhyb3d8fCgobz1uLnJldHVybikmJm8uY2FsbChuKSwwKTpuLm5leHQpJiYhKG89by5jYWxsKG4sYVsxXSkpLmRvbmUpcmV0dXJuIG87c3dpdGNoKG49MCxvJiYoYT1bMiZhWzBdLG8udmFsdWVdKSxhWzBdKXtjYXNlIDA6Y2FzZSAxOm89YTticmVhaztjYXNlIDQ6cmV0dXJuIHMubGFiZWwrKyx7dmFsdWU6YVsxXSxkb25lOiExfTtjYXNlIDU6cy5sYWJlbCsrLG49YVsxXSxhPVswXTtjb250aW51ZTtjYXNlIDc6YT1zLm9wcy5wb3AoKSxzLnRyeXMucG9wKCk7Y29udGludWU7ZGVmYXVsdDppZighKG89cy50cnlzLChvPW8ubGVuZ3RoPjAmJm9bby5sZW5ndGgtMV0pfHw2IT09YVswXSYmMiE9PWFbMF0pKXtzPTA7Y29udGludWV9aWYoMz09PWFbMF0mJighb3x8YVsxXT5vWzBdJiZhWzFdPG9bM10pKXtzLmxhYmVsPWFbMV07YnJlYWt9aWYoNj09PWFbMF0mJnMubGFiZWw8b1sxXSl7cy5sYWJlbD1vWzFdLG89YTticmVha31pZihvJiZzLmxhYmVsPG9bMl0pe3MubGFiZWw9b1syXSxzLm9wcy5wdXNoKGEpO2JyZWFrfW9bMl0mJnMub3BzLnBvcCgpLHMudHJ5cy5wb3AoKTtjb250aW51ZX1hPXIuY2FsbChlLHMpfWNhdGNoKGUpe2E9WzYsZV0sbj0wfWZpbmFsbHl7dD1vPTB9aWYoNSZhWzBdKXRocm93IGFbMV07cmV0dXJue3ZhbHVlOmFbMF0/YVsxXTp2b2lkIDAsZG9uZTohMH19KFthLGldKX19fXZhciBuPXt9LG89ZnVuY3Rpb24oZSxyKXtyZXR1cm4iIi5jb25jYXQoZSwifCIpLmNvbmNhdChyKX07YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGZ1bmN0aW9uKGEpe3ZhciBzPWEuZGF0YSxpPXMudGltZW91dCxjPXMuYXV0aCx1PXMuZmV0Y2hVcmwsZj1zLmZldGNoT3B0aW9ucyxsPXMudXNlRm9ybURhdGEsaD1mdW5jdGlvbihlLHIpe3ZhciB0PSJmdW5jdGlvbiI9PXR5cGVvZiBTeW1ib2wmJmVbU3ltYm9sLml0ZXJhdG9yXTtpZighdClyZXR1cm4gZTt2YXIgbixvLGE9dC5jYWxsKGUpLHM9W107dHJ5e2Zvcig7KHZvaWQgMD09PXJ8fHItLSA+MCkmJiEobj1hLm5leHQoKSkuZG9uZTspcy5wdXNoKG4udmFsdWUpfWNhdGNoKGUpe289e2Vycm9yOmV9fWZpbmFsbHl7dHJ5e24mJiFuLmRvbmUmJih0PWEucmV0dXJuKSYmdC5jYWxsKGEpfWZpbmFsbHl7aWYobyl0aHJvdyBvLmVycm9yfX1yZXR1cm4gc30oYS5wb3J0cywxKVswXTtyZXR1cm4gcih2b2lkIDAsdm9pZCAwLHZvaWQgMCwoZnVuY3Rpb24oKXt2YXIgcixhLHMscCx5LGIsZCx2LHcsZztyZXR1cm4gdCh0aGlzLChmdW5jdGlvbih0KXtzd2l0Y2godC5sYWJlbCl7Y2FzZSAwOnM9KGE9Y3x8e30pLmF1ZGllbmNlLHA9YS5zY29wZSx0LmxhYmVsPTE7Y2FzZSAxOmlmKHQudHJ5cy5wdXNoKFsxLDcsLDhdKSwhKHk9bD8oaz1mLmJvZHksUz1uZXcgVVJMU2VhcmNoUGFyYW1zKGspLF89e30sUy5mb3JFYWNoKChmdW5jdGlvbihlLHIpe19bcl09ZX0pKSxfKTpKU09OLnBhcnNlKGYuYm9keSkpLnJlZnJlc2hfdG9rZW4mJiJyZWZyZXNoX3Rva2VuIj09PXkuZ3JhbnRfdHlwZSl7aWYoYj1mdW5jdGlvbihlLHIpe3JldHVybiBuW28oZSxyKV19KHMscCksIWIpdGhyb3cgbmV3IEVycm9yKCJUaGUgd2ViIHdvcmtlciBpcyBtaXNzaW5nIHRoZSByZWZyZXNoIHRva2VuIik7Zi5ib2R5PWw/bmV3IFVSTFNlYXJjaFBhcmFtcyhlKGUoe30seSkse3JlZnJlc2hfdG9rZW46Yn0pKS50b1N0cmluZygpOkpTT04uc3RyaW5naWZ5KGUoZSh7fSx5KSx7cmVmcmVzaF90b2tlbjpifSkpfWQ9dm9pZCAwLCJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihkPW5ldyBBYm9ydENvbnRyb2xsZXIsZi5zaWduYWw9ZC5zaWduYWwpLHY9dm9pZCAwLHQubGFiZWw9MjtjYXNlIDI6cmV0dXJuIHQudHJ5cy5wdXNoKFsyLDQsLDVdKSxbNCxQcm9taXNlLnJhY2UoWyhtPWksbmV3IFByb21pc2UoKGZ1bmN0aW9uKGUpe3JldHVybiBzZXRUaW1lb3V0KGUsbSl9KSkpLGZldGNoKHUsZSh7fSxmKSldKV07Y2FzZSAzOnJldHVybiB2PXQuc2VudCgpLFszLDVdO2Nhc2UgNDpyZXR1cm4gdz10LnNlbnQoKSxoLnBvc3RNZXNzYWdlKHtlcnJvcjp3Lm1lc3NhZ2V9KSxbMl07Y2FzZSA1OnJldHVybiB2P1s0LHYuanNvbigpXTooZCYmZC5hYm9ydCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOiJUaW1lb3V0IHdoZW4gZXhlY3V0aW5nICdmZXRjaCcifSksWzJdKTtjYXNlIDY6cmV0dXJuKHI9dC5zZW50KCkpLnJlZnJlc2hfdG9rZW4/KGZ1bmN0aW9uKGUscix0KXtuW28ocix0KV09ZX0oci5yZWZyZXNoX3Rva2VuLHMscCksZGVsZXRlIHIucmVmcmVzaF90b2tlbik6ZnVuY3Rpb24oZSxyKXtkZWxldGUgbltvKGUscildfShzLHApLGgucG9zdE1lc3NhZ2Uoe29rOnYub2ssanNvbjpyfSksWzMsOF07Y2FzZSA3OnJldHVybiBnPXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yX2Rlc2NyaXB0aW9uOmcubWVzc2FnZX19KSxbMyw4XTtjYXNlIDg6cmV0dXJuWzJdfXZhciBtLGssUyxffSkpfSkpfSkpfSgpOwoK",rc=null,oc=!1,function(e){return ic=ic||tc(nc,rc,oc),new Worker(ic,e)}),cc={},sc=function(){function e(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId);}return e.prototype.add=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return (n=new(r.apply(Set,[void 0,(null===(t=o.sent())||void 0===t?void 0:t.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:c([],a(n),!1)})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return [4,this.cache.get(this.manifestKey)];case 1:return (t=r.sent())?((n=new Set(t.keys)).delete(e),n.size>0?[4,this.cache.set(this.manifestKey,{keys:c([],a(n),!1)})]:[3,3]):[3,5];case 2:case 4:return [2,r.sent()];case 3:return [4,this.cache.remove(this.manifestKey)];case 5:return [2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return "".concat("@@auth0spajs@@","::").concat(e)},e}(),uc=new da,lc={memory:function(){return (new Va).enclosedCache},localstorage:function(){return new Xa}},fc=function(e){return lc[e]},dc=function(){return !/Trident.*rv:11\.0/.test(navigator.userAgent)},hc=function(){function e(e){var t,n,o,i;if(this.options=e,"undefined"!=typeof window&&function(){if(!Ia())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Ta())throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")}(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)o=e.cache;else {if(this.cacheLocation=e.cacheLocation||"memory",!fc(this.cacheLocation))throw new Error('Invalid cache location "'.concat(this.cacheLocation,'"'));o=fc(this.cacheLocation)();}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?Qa:$a,this.orgHintCookieName=(i=this.options.client_id,"auth0.".concat(i,".organization_hint")),this.isAuthenticatedCookieName=function(e){return "auth0.".concat(e,".is.authenticated")}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var a,c=e.useCookiesForTransactions?this.cookieStorage:ec;this.scope=this.options.scope,this.transactionManager=new Da(c,this.options.client_id),this.nowProvider=this.options.nowProvider||va,this.cacheManager=new Na(o,o.allKeys?null:new sc(o,this.options.client_id),this.nowProvider),this.domainUrl=(a=this.options.domain,/^https?:\/\//.test(a)?a:"https://".concat(a)),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://".concat(e,"/"):"".concat(t,"/")}(this.options.issuer,this.domainUrl),this.defaultScope=Za("openid",void 0!==(null===(n=null===(t=this.options)||void 0===t?void 0:t.advancedOptions)||void 0===n?void 0:n.defaultScope)?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=Za(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&dc()&&(this.worker=new ac),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.redirect_uri,e.scope,e.useRefreshTokens,e.useCookiesForTransactions,e.useFormData,r(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","client_id","domain","issuer","leeway","max_age","redirect_uri","scope","useRefreshTokens","useCookiesForTransactions","useFormData"])}(e);}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ya)));return "".concat(this.domainUrl).concat(e,"&auth0Client=").concat(t)},e.prototype._getParams=function(e,t,o,i,a){var c=this.options;c.useRefreshTokens,c.useCookiesForTransactions,c.useFormData,c.auth0Client,c.cacheLocation,c.advancedOptions,c.detailedResponse,c.nowProvider,c.authorizeTimeoutInSeconds,c.legacySameSiteCookie,c.sessionCheckExpiryDays,c.domain,c.leeway,c.httpTimeoutInSeconds;var s=r(c,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway","httpTimeoutInSeconds"]);return n(n(n({},s),e),{scope:Za(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:o,redirect_uri:a||this.options.redirect_uri,code_challenge:i,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?".concat(xa(e)))},e.prototype._verifyIdToken=function(e,t,n){return o(this,void 0,void 0,(function(){var r;return i(this,(function(o){switch(o.label){case 0:return [4,this.nowProvider()];case 1:return r=o.sent(),[2,za({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:r})]}}))}))},e.prototype._parseNumber=function(e){return "string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays}):this.cookieStorage.remove(this.orgHintCookieName);},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y;return i(this,(function(i){switch(i.label){case 0:return t=e.redirect_uri,o=e.appState,a=r(e,["redirect_uri","appState"]),c=Ea(Oa()),s=Ea(Oa()),u=Oa(),[4,Ca(u)];case 1:return l=i.sent(),f=ja(l),d=e.fragment?"#".concat(e.fragment):"",h=this._getParams(a,c,s,f,t),p=this._authorizeUrl(h),y=e.organization||this.options.organization,this.transactionManager.create(n({nonce:s,code_verifier:u,appState:o,scope:h.scope,audience:h.audience||"default",redirect_uri:h.redirect_uri,state:c},y&&{organizationId:y})),[2,p+d]}}))}))},e.prototype.loginWithPopup=function(e,t){return o(this,void 0,void 0,(function(){var o,a,c,s,u,l,f,d,h,p,y,v,m;return i(this,(function(i){switch(i.label){case 0:if(e=e||{},!(t=t||{}).popup&&(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open(e,"auth0:authorize:popup","left=".concat(t,",top=").concat(n,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))}(""),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");return o=r(e,[]),a=Ea(Oa()),c=Ea(Oa()),s=Oa(),[4,Ca(s)];case 1:return u=i.sent(),l=ja(u),f=this._getParams(o,a,c,l,this.options.redirect_uri||window.location.origin),d=this._authorizeUrl(n(n({},f),{response_mode:"web_message"})),t.popup.location.href=d,[4,ka(n(n({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(h=i.sent(),a!==h.state)throw new Error("Invalid state");return [4,Wa({audience:f.audience,scope:f.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:s,code:h.code,grant_type:"authorization_code",redirect_uri:f.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},this.worker)];case 3:return p=i.sent(),y=e.organization||this.options.organization,[4,this._verifyIdToken(p.id_token,c,y)];case 4:return v=i.sent(),m=n(n({},p),{decodedToken:v,scope:f.scope,audience:f.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 5:return i.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(v.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=Za(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Ga({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return [2,(r=o.sent())&&r.decodedToken&&r.decodedToken.user]}}))}))},e.prototype.getIdTokenClaims=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=Za(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Ga({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return [2,(r=o.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},e.prototype.loginWithRedirect=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,o;return i(this,(function(i){switch(i.label){case 0:return t=e.redirectMethod,n=r(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return o=i.sent(),window.location[t||"assign"](o),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),o(this,void 0,void 0,(function(){var t,r,o,c,s,u,l,f,d,h;return i(this,(function(i){switch(i.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(r=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=a(e.split("="),2),r=t[0],o=t[1];n[r]=decodeURIComponent(o);})),n.expires_in&&(n.expires_in=parseInt(n.expires_in)),n}(t.join("")),o=r.state,c=r.code,s=r.error,u=r.error_description,!(l=this.transactionManager.get()))throw new Error("Invalid state");if(this.transactionManager.remove(),s)throw new ga(s,u,o,l.appState);if(!l.code_verifier||l.state&&l.state!==o)throw new Error("Invalid state");return f={audience:l.audience,scope:l.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:l.code_verifier,grant_type:"authorization_code",code:c,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},void 0!==l.redirect_uri&&(f.redirect_uri=l.redirect_uri),[4,Wa(f,this.worker)];case 1:return d=i.sent(),[4,this._verifyIdToken(d.id_token,l.nonce,l.organizationId)];case 2:return h=i.sent(),[4,this.cacheManager.set(n(n(n(n({},d),{decodedToken:h,audience:l.audience,scope:l.scope}),d.scope?{oauthTokenScope:d.scope}:null),{client_id:this.options.client_id}))];case 3:return i.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(h.claims.org_id),[2,{appState:l.appState}]}}))}))},e.prototype.checkSession=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return [2];this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated");}n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return n.sent(),[3,4];case 3:if(t=n.sent(),!pa.includes(t.error))throw t;return [3,4];case 4:return [2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c=this;return i(this,(function(i){return t=n(n({audience:this.options.audience,ignoreCache:!1},e),{scope:Za(this.defaultScope,this.scope,e.scope)}),o=t.ignoreCache,a=r(t,["ignoreCache"]),[2,(s=function(){return c._getTokenSilently(n({ignoreCache:o},a))},u="".concat(this.options.client_id,"::").concat(a.audience,"::").concat(a.scope),l=cc[u],l||(l=s().finally((function(){delete cc[u],l=null;})),cc[u]=l),l)];var s,u,l;}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,a,c,s,u,l,f,d,h;return i(this,(function(p){switch(p.label){case 0:return t=e.ignoreCache,a=r(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:a.scope,audience:a.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 1:if(c=p.sent())return [2,c];p.label=2;case 2:return [4,(y=function(){return uc.acquireLock("auth0.lock.getTokenSilently",5e3)},v=10,void 0===v&&(v=3),o(void 0,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<v?[4,y()]:[3,4];case 2:if(t.sent())return [2,!0];t.label=3;case 3:return e++,[3,1];case 4:return [2,!1]}}))})))];case 3:if(!p.sent())return [3,15];p.label=4;case 4:return p.trys.push([4,,12,14]),t?[3,6]:[4,this._getEntryFromCache({scope:a.scope,audience:a.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 5:if(c=p.sent())return [2,c];p.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(a)]:[3,8];case 7:return u=p.sent(),[3,10];case 8:return [4,this._getTokenFromIFrame(a)];case 9:u=p.sent(),p.label=10;case 10:return s=u,[4,this.cacheManager.set(n({client_id:this.options.client_id},s))];case 11:return p.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),e.detailedResponse?(l=s.id_token,f=s.access_token,d=s.oauthTokenScope,h=s.expires_in,[2,n(n({id_token:l,access_token:f},d?{scope:d}:null),{expires_in:h})]):[2,s.access_token];case 12:return [4,uc.releaseLock("auth0.lock.getTokenSilently")];case 13:return p.sent(),[7];case 14:return [3,16];case 15:throw new ba;case 16:return [2]}var y,v;}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=Za(this.defaultScope,this.scope,e.scope),t=n(n({},ha),t),[4,this.loginWithPopup(e,t)];case 1:return r.sent(),[4,this.cacheManager.get(new Ga({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return [2,r.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return [4,this.getUser()];case 1:return [2,!!e.sent()]}}))}))},e.prototype.buildLogoutUrl=function(e){void 0===e&&(e={}),null!==e.client_id?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var t=e.federated,n=r(e,["federated"]),o=t?"&federated":"";return this._url("/v2/logout?".concat(xa(n)))+o},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,o=r(e,["localOnly"]);if(n&&o.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var i=function(){if(t.cookieStorage.remove(t.orgHintCookieName),t.cookieStorage.remove(t.isAuthenticatedCookieName),!n){var e=t.buildLogoutUrl(o);window.location.assign(e);}};if(this.options.cache)return this.cacheManager.clear().then((function(){return i()}));this.cacheManager.clearSync(),i();},e.prototype._getTokenFromIFrame=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:return t=Ea(Oa()),o=Ea(Oa()),a=Oa(),[4,Ca(a)];case 1:c=i.sent(),s=ja(c),u=r(e,["detailedResponse"]),l=this._getParams(u,t,o,s,e.redirect_uri||this.options.redirect_uri||window.location.origin),(f=this.cookieStorage.get(this.orgHintCookieName))&&!l.organization&&(l.organization=f),d=this._authorizeUrl(n(n({},l),{prompt:"none",response_mode:"web_message"})),i.label=2;case 2:if(i.trys.push([2,6,,7]),window.crossOriginIsolated)throw new ma("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return h=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,[4,(S=d,_=this.domainUrl,k=h,void 0===k&&(k=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,o=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1));},i=setTimeout((function(){t(new ba),o();}),1e3*k);r=function(n){if(n.origin==_&&n.data&&"authorization_response"===n.data.type){var a=n.source;a&&a.close(),n.data.response.error?t(ma.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3);}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",S);})))];case 3:if(p=i.sent(),t!==p.state)throw new Error("Invalid state");return y=e.scope,v=e.audience,m=r(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,Wa(n(n(n({},this.customOptions),m),{scope:y,audience:v,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a,code:p.code,grant_type:"authorization_code",redirect_uri:l.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:m.timeout||this.httpTimeoutMs}),this.worker)];case 4:return g=i.sent(),[4,this._verifyIdToken(g.id_token,o)];case 5:return b=i.sent(),this._processOrgIdHint(b.claims.org_id),[2,n(n({},g),{decodedToken:b,scope:l.scope,oauthTokenScope:g.scope,audience:l.audience||"default"})];case 6:throw "login_required"===(w=i.sent()).error&&this.logout({localOnly:!0}),w;case 7:return [2]}var S,_,k;}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d;return i(this,(function(i){switch(i.label){case 0:return e.scope=Za(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new Ga({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return (t=i.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return [2,i.sent()];case 3:o=e.redirect_uri||this.options.redirect_uri||window.location.origin,c=e.scope,s=e.audience,u=r(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),l="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,i.label=4;case 4:return i.trys.push([4,6,,9]),[4,Wa(n(n(n(n(n({},this.customOptions),u),{audience:s,scope:c,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:o}),l&&{timeout:l}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs}),this.worker)];case 5:return a=i.sent(),[3,9];case 6:return "The web worker is missing the refresh token"===(f=i.sent()).message||f.message&&f.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return [2,i.sent()];case 8:throw f;case 9:return [4,this._verifyIdToken(a.id_token)];case 10:return d=i.sent(),[2,n(n({},a),{decodedToken:d,scope:e.scope,oauthTokenScope:a.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,r=e.audience,a=e.client_id,c=e.getDetailedEntry,s=void 0!==c&&c;return o(this,void 0,void 0,(function(){var e,o,c,u,l;return i(this,(function(i){switch(i.label){case 0:return [4,this.cacheManager.get(new Ga({scope:t,audience:r,client_id:a}),60)];case 1:return (e=i.sent())&&e.access_token?s?(o=e.id_token,c=e.access_token,u=e.oauthTokenScope,l=e.expires_in,[2,n(n({id_token:o,access_token:c},u?{scope:u}:null),{expires_in:l})]):[2,e.access_token]:[2]}}))}))},e}(),pc=function(){};
|
|
114
118
|
|
|
115
119
|
/**
|
|
116
120
|
* The initial auth state.
|
|
@@ -203,7 +207,7 @@
|
|
|
203
207
|
var clientId = opts.clientId, redirectUri = opts.redirectUri, maxAge = opts.maxAge, validOpts = __rest(opts, ["clientId", "redirectUri", "maxAge"]);
|
|
204
208
|
return __assign(__assign({}, validOpts), { client_id: clientId, redirect_uri: redirectUri, max_age: maxAge, auth0Client: {
|
|
205
209
|
name: 'auth0-react',
|
|
206
|
-
version: '1.
|
|
210
|
+
version: '1.10.0',
|
|
207
211
|
} });
|
|
208
212
|
};
|
|
209
213
|
/**
|
|
@@ -236,7 +240,7 @@
|
|
|
236
240
|
*/
|
|
237
241
|
var Auth0Provider = function (opts) {
|
|
238
242
|
var children = opts.children, skipRedirectCallback = opts.skipRedirectCallback, _a = opts.onRedirectCallback, onRedirectCallback = _a === void 0 ? defaultOnRedirectCallback : _a, clientOpts = __rest(opts, ["children", "skipRedirectCallback", "onRedirectCallback"]);
|
|
239
|
-
var client = React.useState(function () { return new
|
|
243
|
+
var client = React.useState(function () { return new hc(toAuth0ClientOptions(clientOpts)); })[0];
|
|
240
244
|
var _b = React.useReducer(reducer, initialAuthState), state = _b[0], dispatch = _b[1];
|
|
241
245
|
React.useEffect(function () {
|
|
242
246
|
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -312,8 +316,11 @@
|
|
|
312
316
|
}
|
|
313
317
|
return maybePromise;
|
|
314
318
|
}, [client]);
|
|
315
|
-
var getAccessTokenSilently = React.useCallback(
|
|
316
|
-
|
|
319
|
+
var getAccessTokenSilently = React.useCallback(
|
|
320
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
321
|
+
function (opts) { return __awaiter(void 0, void 0, void 0, function () {
|
|
322
|
+
var token, error_3, _a;
|
|
323
|
+
var _b;
|
|
317
324
|
return __generator(this, function (_c) {
|
|
318
325
|
switch (_c.label) {
|
|
319
326
|
case 0:
|
|
@@ -340,7 +347,8 @@
|
|
|
340
347
|
});
|
|
341
348
|
}); }, [client]);
|
|
342
349
|
var getAccessTokenWithPopup = React.useCallback(function (opts, config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
343
|
-
var token, error_4, _a
|
|
350
|
+
var token, error_4, _a;
|
|
351
|
+
var _b;
|
|
344
352
|
return __generator(this, function (_c) {
|
|
345
353
|
switch (_c.label) {
|
|
346
354
|
case 0:
|
|
@@ -366,11 +374,10 @@
|
|
|
366
374
|
}
|
|
367
375
|
});
|
|
368
376
|
}); }, [client]);
|
|
369
|
-
var getIdTokenClaims = React.useCallback(function (opts) {
|
|
370
|
-
return client.getIdTokenClaims(opts);
|
|
371
|
-
}, [client]);
|
|
377
|
+
var getIdTokenClaims = React.useCallback(function (opts) { return client.getIdTokenClaims(opts); }, [client]);
|
|
372
378
|
var handleRedirectCallback = React.useCallback(function (url) { return __awaiter(void 0, void 0, void 0, function () {
|
|
373
|
-
var error_5, _a
|
|
379
|
+
var error_5, _a;
|
|
380
|
+
var _b;
|
|
374
381
|
return __generator(this, function (_c) {
|
|
375
382
|
switch (_c.label) {
|
|
376
383
|
case 0:
|
|
@@ -394,15 +401,21 @@
|
|
|
394
401
|
}
|
|
395
402
|
});
|
|
396
403
|
}); }, [client]);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
var contextValue = React.useMemo(function () {
|
|
405
|
+
return __assign(__assign({}, state), { buildAuthorizeUrl: buildAuthorizeUrl, buildLogoutUrl: buildLogoutUrl, getAccessTokenSilently: getAccessTokenSilently, getAccessTokenWithPopup: getAccessTokenWithPopup, getIdTokenClaims: getIdTokenClaims, loginWithRedirect: loginWithRedirect, loginWithPopup: loginWithPopup, logout: logout, handleRedirectCallback: handleRedirectCallback });
|
|
406
|
+
}, [
|
|
407
|
+
state,
|
|
408
|
+
buildAuthorizeUrl,
|
|
409
|
+
buildLogoutUrl,
|
|
410
|
+
getAccessTokenSilently,
|
|
411
|
+
getAccessTokenWithPopup,
|
|
412
|
+
getIdTokenClaims,
|
|
413
|
+
loginWithRedirect,
|
|
414
|
+
loginWithPopup,
|
|
415
|
+
logout,
|
|
416
|
+
handleRedirectCallback,
|
|
417
|
+
]);
|
|
418
|
+
return (React__default["default"].createElement(Auth0Context.Provider, { value: contextValue }, children));
|
|
406
419
|
};
|
|
407
420
|
|
|
408
421
|
/**
|
|
@@ -446,17 +459,21 @@
|
|
|
446
459
|
*
|
|
447
460
|
* Wrap your class components in this Higher Order Component to give them access to the Auth0Context
|
|
448
461
|
*/
|
|
449
|
-
var withAuth0 = function (Component) {
|
|
462
|
+
var withAuth0 = function (Component) {
|
|
463
|
+
return function WithAuth(props) {
|
|
464
|
+
return (React__default["default"].createElement(Auth0Context.Consumer, null, function (auth) { return (React__default["default"].createElement(Component, __assign({}, props, { auth0: auth }))); }));
|
|
465
|
+
};
|
|
466
|
+
};
|
|
450
467
|
|
|
451
468
|
/**
|
|
452
469
|
* @ignore
|
|
453
470
|
*/
|
|
454
|
-
var defaultOnRedirecting = function () { return React__default.createElement(React__default.Fragment, null); };
|
|
471
|
+
var defaultOnRedirecting = function () { return React__default["default"].createElement(React__default["default"].Fragment, null); };
|
|
455
472
|
/**
|
|
456
473
|
* @ignore
|
|
457
474
|
*/
|
|
458
475
|
var defaultReturnTo = function () {
|
|
459
|
-
return ""
|
|
476
|
+
return "".concat(window.location.pathname).concat(window.location.search);
|
|
460
477
|
};
|
|
461
478
|
/**
|
|
462
479
|
* ```js
|
|
@@ -471,7 +488,7 @@
|
|
|
471
488
|
return function WithAuthenticationRequired(props) {
|
|
472
489
|
var _this = this;
|
|
473
490
|
var _a = useAuth0(), user = _a.user, isAuthenticated = _a.isAuthenticated, isLoading = _a.isLoading, loginWithRedirect = _a.loginWithRedirect;
|
|
474
|
-
var _b = options.returnTo, returnTo = _b === void 0 ? defaultReturnTo : _b, _c = options.onRedirecting, onRedirecting = _c === void 0 ? defaultOnRedirecting : _c, _d = options.
|
|
491
|
+
var _b = options.returnTo, returnTo = _b === void 0 ? defaultReturnTo : _b, _c = options.onRedirecting, onRedirecting = _c === void 0 ? defaultOnRedirecting : _c, _d = options.claimCheck, claimCheck = _d === void 0 ? function () { return true; } : _d, loginOptions = options.loginOptions;
|
|
475
492
|
/**
|
|
476
493
|
* The route is authenticated if the user has valid auth and there are no
|
|
477
494
|
* JWT claim mismatches.
|
|
@@ -481,7 +498,7 @@
|
|
|
481
498
|
if (isLoading || routeIsAuthenticated) {
|
|
482
499
|
return;
|
|
483
500
|
}
|
|
484
|
-
var opts = __assign(__assign({}, loginOptions), { appState: __assign(__assign({}, loginOptions.appState), { returnTo: typeof returnTo === 'function' ? returnTo() : returnTo }) });
|
|
501
|
+
var opts = __assign(__assign({}, loginOptions), { appState: __assign(__assign({}, (loginOptions && loginOptions.appState)), { returnTo: typeof returnTo === 'function' ? returnTo() : returnTo }) });
|
|
485
502
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
486
503
|
return __generator(this, function (_a) {
|
|
487
504
|
switch (_a.label) {
|
|
@@ -499,21 +516,21 @@
|
|
|
499
516
|
loginOptions,
|
|
500
517
|
returnTo,
|
|
501
518
|
]);
|
|
502
|
-
return routeIsAuthenticated ? React__default.createElement(Component, __assign({}, props)) : onRedirecting();
|
|
519
|
+
return routeIsAuthenticated ? React__default["default"].createElement(Component, __assign({}, props)) : onRedirecting();
|
|
503
520
|
};
|
|
504
521
|
};
|
|
505
522
|
|
|
506
523
|
exports.Auth0Context = Auth0Context;
|
|
507
524
|
exports.Auth0Provider = Auth0Provider;
|
|
508
|
-
exports.InMemoryCache =
|
|
509
|
-
exports.LocalStorageCache =
|
|
525
|
+
exports.InMemoryCache = Va;
|
|
526
|
+
exports.LocalStorageCache = Xa;
|
|
510
527
|
exports.OAuthError = OAuthError;
|
|
511
|
-
exports.User =
|
|
528
|
+
exports.User = pc;
|
|
512
529
|
exports.useAuth0 = useAuth0;
|
|
513
530
|
exports.withAuth0 = withAuth0;
|
|
514
531
|
exports.withAuthenticationRequired = withAuthenticationRequired;
|
|
515
532
|
|
|
516
533
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
517
534
|
|
|
518
|
-
}))
|
|
535
|
+
}));
|
|
519
536
|
//# sourceMappingURL=auth0-react.js.map
|