@auth0/auth0-react 1.7.0 → 1.8.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-react.cjs.js +6 -6
- package/dist/auth0-react.cjs.js.map +1 -1
- package/dist/auth0-react.esm.js +4 -4
- package/dist/auth0-react.esm.js.map +1 -1
- package/dist/auth0-react.js +6 -6
- package/dist/auth0-react.js.map +1 -1
- package/dist/auth0-react.min.js +2 -2
- package/dist/auth0-react.min.js.map +1 -1
- package/package.json +2 -2
package/dist/auth0-react.min.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
|
-
***************************************************************************** */var o=function(){return(o=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 i(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 c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{
|
|
15
|
+
***************************************************************************** */var o=function(){return(o=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 i(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 c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(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(c,a)}s((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)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 c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}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,a])}}}
|
|
16
16
|
/*! *****************************************************************************
|
|
17
17
|
Copyright (c) Microsoft Corporation.
|
|
18
18
|
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
27
27
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
28
28
|
PERFORMANCE OF THIS SOFTWARE.
|
|
29
|
-
***************************************************************************** */var u=function(e,t){return(u=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)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return(l=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 f(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 d(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}u((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)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 c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}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,a])}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.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 c}function y(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 v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t){return e(t={exports:{}},t.exports),t.exports}var g,w,S=function(e){return e&&e.Math==Math&&e},I=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof v&&v)||function(){return this}()||Function("return this")(),k=function(e){try{return!!e()}catch(e){return!0}},T=!k((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,O={f:E&&!_.call({1:2},1)?function(e){var t=E(this,e);return!!t&&t.enumerable}:_},K=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},R={}.toString,Z=function(e){return R.call(e).slice(8,-1)},C="".split,x=k((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==Z(e)?C.call(e,""):Object(e)}:Object,U=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},W=function(e){return x(U(e))},F=function(e){return"object"==typeof e?null!==e:"function"==typeof e},V=function(e){return"function"==typeof e?e:void 0},L=function(e,t){return arguments.length<2?V(I[e]):I[e]&&I[e][t]},X=L("navigator","userAgent")||"",Y=I.process,P=I.Deno,A=Y&&Y.versions||P&&P.version,j=A&&A.v8;j?w=(g=j.split("."))[0]<4?1:g[0]+g[1]:X&&(!(g=X.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=X.match(/Chrome\/(\d+)/))&&(w=g[1]);var G=w&&+w,J=!!Object.getOwnPropertySymbols&&!k((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&G&&G<41})),N=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,B=N?function(e){return"symbol"==typeof e}:function(e){var t=L("Symbol");return"function"==typeof t&&Object(e)instanceof t},z=function(e,t){try{Object.defineProperty(I,e,{value:t,configurable:!0,writable:!0})}catch(n){I[e]=t}return t},H=I["__core-js_shared__"]||z("__core-js_shared__",{}),D=b((function(e){(e.exports=function(e,t){return H[e]||(H[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),M=function(e){return Object(U(e))},q={}.hasOwnProperty,Q=Object.hasOwn||function(e,t){return q.call(M(e),t)},$=0,ee=Math.random(),te=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++$+ee).toString(36)},ne=D("wks"),re=I.Symbol,oe=N?re:re&&re.withoutSetter||te,ie=function(e){return Q(ne,e)&&(J||"string"==typeof ne[e])||(J&&Q(re,e)?ne[e]=re[e]:ne[e]=oe("Symbol."+e)),ne[e]},ce=ie("toPrimitive"),ae=function(e){var t=function(e,t){if(!F(e)||B(e))return e;var n,r=e[ce];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!F(n)||B(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)&&!F(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!F(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!F(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)}(e,"string");return B(t)?t:String(t)},ue=I.document,se=F(ue)&&F(ue.createElement),le=function(e){return se?ue.createElement(e):{}},fe=!T&&!k((function(){return 7!=Object.defineProperty(le("div"),"a",{get:function(){return 7}}).a})),de=Object.getOwnPropertyDescriptor,pe={f:T?de:function(e,t){if(e=W(e),t=ae(t),fe)try{return de(e,t)}catch(e){}if(Q(e,t))return K(!O.f.call(e,t),e[t])}},he=function(e){if(!F(e))throw TypeError(String(e)+" is not an object");return e},ye=Object.defineProperty,ve={f:T?ye:function(e,t,n){if(he(e),t=ae(t),he(n),fe)try{return ye(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}},me=T?function(e,t,n){return ve.f(e,t,K(1,n))}:function(e,t,n){return e[t]=n,e},be=Function.toString;"function"!=typeof H.inspectSource&&(H.inspectSource=function(e){return be.call(e)});var ge,we,Se,Ie=H.inspectSource,ke=I.WeakMap,Te="function"==typeof ke&&/native code/.test(Ie(ke)),_e=D("keys"),Ee=function(e){return _e[e]||(_e[e]=te(e))},Oe={},Ke=I.WeakMap;if(Te||H.state){var Re=H.state||(H.state=new Ke),Ze=Re.get,Ce=Re.has,xe=Re.set;ge=function(e,t){if(Ce.call(Re,e))throw new TypeError("Object already initialized");return t.facade=e,xe.call(Re,e,t),t},we=function(e){return Ze.call(Re,e)||{}},Se=function(e){return Ce.call(Re,e)}}else{var Ue=Ee("state");Oe[Ue]=!0,ge=function(e,t){if(Q(e,Ue))throw new TypeError("Object already initialized");return t.facade=e,me(e,Ue,t),t},we=function(e){return Q(e,Ue)?e[Ue]:{}},Se=function(e){return Q(e,Ue)}}var We,Fe={set:ge,get:we,has:Se,enforce:function(e){return Se(e)?we(e):ge(e,{})},getterFor:function(e){return function(t){var n;if(!F(t)||(n=we(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ve=b((function(e){var t=Fe.get,n=Fe.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var c,a=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,s=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||Q(o,"name")||me(o,"name",t),(c=n(o)).source||(c.source=r.join("string"==typeof t?t:""))),e!==I?(a?!s&&e[t]&&(u=!0):delete e[t],u?e[t]=o:me(e,t,o)):u?e[t]=o:z(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Ie(this)}))})),Le=Math.ceil,Xe=Math.floor,Ye=function(e){return isNaN(e=+e)?0:(e>0?Xe:Le)(e)},Pe=Math.min,Ae=function(e){return e>0?Pe(Ye(e),9007199254740991):0},je=Math.max,Ge=Math.min,Je=function(e){return function(t,n,r){var o,i=W(t),c=Ae(i.length),a=function(e,t){var n=Ye(e);return n<0?je(n+t,0):Ge(n,t)}(r,c);if(e&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Ne={includes:Je(!0),indexOf:Je(!1)},Be=Ne.indexOf,ze=function(e,t){var n,r=W(e),o=0,i=[];for(n in r)!Q(Oe,n)&&Q(r,n)&&i.push(n);for(;t.length>o;)Q(r,n=t[o++])&&(~Be(i,n)||i.push(n));return i},He=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],De=He.concat("length","prototype"),Me={f:Object.getOwnPropertyNames||function(e){return ze(e,De)}},qe={f:Object.getOwnPropertySymbols},Qe=L("Reflect","ownKeys")||function(e){var t=Me.f(he(e)),n=qe.f;return n?t.concat(n(e)):t},$e=function(e,t){for(var n=Qe(t),r=ve.f,o=pe.f,i=0;i<n.length;i++){var c=n[i];Q(e,c)||r(e,c,o(t,c))}},et=/#|\.prototype\./,tt=function(e,t){var n=rt[nt(e)];return n==it||n!=ot&&("function"==typeof t?k(t):!!t)},nt=tt.normalize=function(e){return String(e).replace(et,".").toLowerCase()},rt=tt.data={},ot=tt.NATIVE="N",it=tt.POLYFILL="P",ct=tt,at=pe.f,ut=function(e,t){var n,r,o,i,c,a=e.target,u=e.global,s=e.stat;if(n=u?I:s?I[a]||z(a,{}):(I[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(c=at(n,r))&&c.value:n[r],!ct(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$e(i,o)}(e.sham||o&&o.sham)&&me(i,"sham",!0),Ve(n,r,i,e)}},st=function(e){if(B(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},lt=ie("match"),ft=function(e){if(function(e){var t;return F(e)&&(void 0!==(t=e[lt])?!!t:"RegExp"==Z(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},dt=ie("match"),pt=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[dt]=!1,"/./"[e](t)}catch(e){}}return!1},ht=pe.f,yt="".startsWith,vt=Math.min,mt=pt("startsWith"),bt=!(mt||(We=ht(String.prototype,"startsWith"),!We||We.writable));ut({target:"String",proto:!0,forced:!bt&&!mt},{startsWith:function(e){var t=st(U(this));ft(e);var n=Ae(vt(arguments.length>1?arguments[1]:void 0,t.length)),r=st(e);return yt?yt.call(t,r,n):t.slice(n,n+r.length)===r}});var gt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},wt=function(e,t,n){if(gt(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)}},St=Function.call,It=function(e,t,n){return wt(St,I[e].prototype[t],n)};It("String","startsWith");var kt=Array.isArray||function(e){return"Array"==Z(e)},Tt=function(e,t,n){var r=ae(t);r in e?ve.f(e,r,K(0,n)):e[r]=n},_t=ie("species"),Et=function(e,t){return new(function(e){var t;return kt(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!kt(t.prototype)?F(t)&&null===(t=t[_t])&&(t=void 0):t=void 0),void 0===t?Array:t}(e))(0===t?0:t)},Ot=ie("species"),Kt=ie("isConcatSpreadable"),Rt=G>=51||!k((function(){var e=[];return e[Kt]=!1,e.concat()[0]!==e})),Zt=("concat",G>=51||!k((function(){var e=[];return(e.constructor={})[Ot]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Ct=function(e){if(!F(e))return!1;var t=e[Kt];return void 0!==t?!!t:kt(e)};ut({target:"Array",proto:!0,forced:!Rt||!Zt},{concat:function(e){var t,n,r,o,i,c=M(this),a=Et(c,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ct(i=-1===t?c:arguments[t])){if(u+(o=Ae(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&Tt(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Tt(a,u++,i)}return a.length=u,a}});var xt={};xt[ie("toStringTag")]="z";var Ut="[object z]"===String(xt),Wt=ie("toStringTag"),Ft="Arguments"==Z(function(){return arguments}()),Vt=Ut?Z: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),Wt))?n:Ft?Z(t):"Object"==(r=Z(t))&&"function"==typeof t.callee?"Arguments":r},Lt=Ut?{}.toString:function(){return"[object "+Vt(this)+"]"};Ut||Ve(Object.prototype,"toString",Lt,{unsafe:!0});var Xt,Yt=Object.keys||function(e){return ze(e,He)},Pt=T?Object.defineProperties:function(e,t){he(e);for(var n,r=Yt(t),o=r.length,i=0;o>i;)ve.f(e,n=r[i++],t[n]);return e},At=L("document","documentElement"),jt=Ee("IE_PROTO"),Gt=function(){},Jt=function(e){return"<script>"+e+"<\/script>"},Nt=function(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Bt=function(){try{Xt=new ActiveXObject("htmlfile")}catch(e){}Bt=document.domain&&Xt?Nt(Xt):function(){var e,t=le("iframe");if(t.style)return t.style.display="none",At.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F}()||Nt(Xt);for(var e=He.length;e--;)delete Bt.prototype[He[e]];return Bt()};Oe[jt]=!0;var zt=Object.create||function(e,t){var n;return null!==e?(Gt.prototype=he(e),n=new Gt,Gt.prototype=null,n[jt]=e):n=Bt(),void 0===t?n:Pt(n,t)},Ht=Me.f,Dt={}.toString,Mt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qt={f:function(e){return Mt&&"[object Window]"==Dt.call(e)?function(e){try{return Ht(e)}catch(e){return Mt.slice()}}(e):Ht(W(e))}},Qt={f:ie},$t=I,en=ve.f,tn=function(e){var t=$t.Symbol||($t.Symbol={});Q(t,e)||en(t,e,{value:Qt.f(e)})},nn=ve.f,rn=ie("toStringTag"),on=function(e,t,n){e&&!Q(e=n?e:e.prototype,rn)&&nn(e,rn,{configurable:!0,value:t})},cn=[].push,an=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,c=7==e,a=5==e||i;return function(u,s,l,f){for(var d,p,h=M(u),y=x(h),v=wt(s,l,3),m=Ae(y.length),b=0,g=f||Et,w=t?g(u,m):n||c?g(u,0):void 0;m>b;b++)if((a||b in y)&&(p=v(d=y[b],b,h),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:cn.call(w,d)}else switch(e){case 4:return!1;case 7:cn.call(w,d)}return i?-1:r||o?o:w}},un=[an(0),an(1),an(2),an(3),an(4),an(5),an(6),an(7)][0],sn=Ee("hidden"),ln=ie("toPrimitive"),fn=Fe.set,dn=Fe.getterFor("Symbol"),pn=Object.prototype,hn=I.Symbol,yn=L("JSON","stringify"),vn=pe.f,mn=ve.f,bn=qt.f,gn=O.f,wn=D("symbols"),Sn=D("op-symbols"),In=D("string-to-symbol-registry"),kn=D("symbol-to-string-registry"),Tn=D("wks"),_n=I.QObject,En=!_n||!_n.prototype||!_n.prototype.findChild,On=T&&k((function(){return 7!=zt(mn({},"a",{get:function(){return mn(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=vn(pn,t);r&&delete pn[t],mn(e,t,n),r&&e!==pn&&mn(pn,t,r)}:mn,Kn=function(e,t){var n=wn[e]=zt(hn.prototype);return fn(n,{type:"Symbol",tag:e,description:t}),T||(n.description=t),n},Rn=function(e,t,n){e===pn&&Rn(Sn,t,n),he(e);var r=ae(t);return he(n),Q(wn,r)?(n.enumerable?(Q(e,sn)&&e[sn][r]&&(e[sn][r]=!1),n=zt(n,{enumerable:K(0,!1)})):(Q(e,sn)||mn(e,sn,K(1,{})),e[sn][r]=!0),On(e,r,n)):mn(e,r,n)},Zn=function(e,t){he(e);var n=W(t),r=Yt(n).concat(Wn(n));return un(r,(function(t){T&&!Cn.call(n,t)||Rn(e,t,n[t])})),e},Cn=function(e){var t=ae(e),n=gn.call(this,t);return!(this===pn&&Q(wn,t)&&!Q(Sn,t))&&(!(n||!Q(this,t)||!Q(wn,t)||Q(this,sn)&&this[sn][t])||n)},xn=function(e,t){var n=W(e),r=ae(t);if(n!==pn||!Q(wn,r)||Q(Sn,r)){var o=vn(n,r);return!o||!Q(wn,r)||Q(n,sn)&&n[sn][r]||(o.enumerable=!0),o}},Un=function(e){var t=bn(W(e)),n=[];return un(t,(function(e){Q(wn,e)||Q(Oe,e)||n.push(e)})),n},Wn=function(e){var t=e===pn,n=bn(t?Sn:W(e)),r=[];return un(n,(function(e){!Q(wn,e)||t&&!Q(pn,e)||r.push(wn[e])})),r};if(J||(Ve((hn=function(){if(this instanceof hn)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?st(arguments[0]):void 0,t=te(e),n=function(e){this===pn&&n.call(Sn,e),Q(this,sn)&&Q(this[sn],t)&&(this[sn][t]=!1),On(this,t,K(1,e))};return T&&En&&On(pn,t,{configurable:!0,set:n}),Kn(t,e)}).prototype,"toString",(function(){return dn(this).tag})),Ve(hn,"withoutSetter",(function(e){return Kn(te(e),e)})),O.f=Cn,ve.f=Rn,pe.f=xn,Me.f=qt.f=Un,qe.f=Wn,Qt.f=function(e){return Kn(ie(e),e)},T&&(mn(hn.prototype,"description",{configurable:!0,get:function(){return dn(this).description}}),Ve(pn,"propertyIsEnumerable",Cn,{unsafe:!0}))),ut({global:!0,wrap:!0,forced:!J,sham:!J},{Symbol:hn}),un(Yt(Tn),(function(e){tn(e)})),ut({target:"Symbol",stat:!0,forced:!J},{for:function(e){var t=st(e);if(Q(In,t))return In[t];var n=hn(t);return In[t]=n,kn[n]=t,n},keyFor:function(e){if(!B(e))throw TypeError(e+" is not a symbol");if(Q(kn,e))return kn[e]},useSetter:function(){En=!0},useSimple:function(){En=!1}}),ut({target:"Object",stat:!0,forced:!J,sham:!T},{create:function(e,t){return void 0===t?zt(e):Zn(zt(e),t)},defineProperty:Rn,defineProperties:Zn,getOwnPropertyDescriptor:xn}),ut({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:Un,getOwnPropertySymbols:Wn}),ut({target:"Object",stat:!0,forced:k((function(){qe.f(1)}))},{getOwnPropertySymbols:function(e){return qe.f(M(e))}}),yn){var Fn=!J||k((function(){var e=hn();return"[null]"!=yn([e])||"{}"!=yn({a:e})||"{}"!=yn(Object(e))}));ut({target:"JSON",stat:!0,forced:Fn},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(F(t)||void 0!==e)&&!B(e))return kt(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!B(t))return t}),o[1]=t,yn.apply(null,o)}})}hn.prototype[ln]||me(hn.prototype,ln,hn.prototype.valueOf),on(hn,"Symbol"),Oe[sn]=!0,tn("asyncIterator");var Vn=ve.f,Ln=I.Symbol;if(T&&"function"==typeof Ln&&(!("description"in Ln.prototype)||void 0!==Ln().description)){var Xn={},Yn=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Yn?new Ln(e):void 0===e?Ln():Ln(e);return""===e&&(Xn[t]=!0),t};$e(Yn,Ln);var Pn=Yn.prototype=Ln.prototype;Pn.constructor=Yn;var An=Pn.toString,jn="Symbol(test)"==String(Ln("test")),Gn=/^Symbol\((.*)\)[^)]+$/;Vn(Pn,"description",{configurable:!0,get:function(){var e=F(this)?this.valueOf():this,t=An.call(e);if(Q(Xn,e))return"";var n=jn?t.slice(7,-1):t.replace(Gn,"$1");return""===n?void 0:n}}),ut({global:!0,forced:!0},{Symbol:Yn})}tn("hasInstance"),tn("isConcatSpreadable"),tn("iterator"),tn("match"),tn("matchAll"),tn("replace"),tn("search"),tn("species"),tn("split"),tn("toPrimitive"),tn("toStringTag"),tn("unscopables"),on(I.JSON,"JSON",!0),on(Math,"Math",!0),ut({global:!0},{Reflect:{}}),on(I.Reflect,"Reflect",!0),$t.Symbol;var Jn,Nn,Bn,zn=function(e){return function(t,n){var r,o,i=st(U(t)),c=Ye(n),a=i.length;return c<0||c>=a?e?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?e?i.charAt(c):r:e?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},Hn={codeAt:zn(!1),charAt:zn(!0)},Dn=!k((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mn=Ee("IE_PROTO"),qn=Object.prototype,Qn=Dn?Object.getPrototypeOf:function(e){return e=M(e),Q(e,Mn)?e[Mn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?qn:null},$n=ie("iterator"),er=!1;[].keys&&("next"in(Bn=[].keys())?(Nn=Qn(Qn(Bn)))!==Object.prototype&&(Jn=Nn):er=!0),(null==Jn||k((function(){var e={};return Jn[$n].call(e)!==e})))&&(Jn={}),Q(Jn,$n)||me(Jn,$n,(function(){return this}));var tr={IteratorPrototype:Jn,BUGGY_SAFARI_ITERATORS:er},nr={},rr=tr.IteratorPrototype,or=function(){return this},ir=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 he(n),function(e){if(!F(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),cr=tr.IteratorPrototype,ar=tr.BUGGY_SAFARI_ITERATORS,ur=ie("iterator"),sr=function(){return this},lr=function(e,t,n,r,o,i,c){!function(e,t,n){var r=t+" Iterator";e.prototype=zt(rr,{next:K(1,n)}),on(e,r,!1),nr[r]=or}(n,t,r);var a,u,s,l=function(e){if(e===o&&y)return y;if(!ar&&e in p)return p[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,p=e.prototype,h=p[ur]||p["@@iterator"]||o&&p[o],y=!ar&&h||l(o),v="Array"==t&&p.entries||h;if(v&&(a=Qn(v.call(new e)),cr!==Object.prototype&&a.next&&(Qn(a)!==cr&&(ir?ir(a,cr):"function"!=typeof a[ur]&&me(a,ur,sr)),on(a,f,!0))),"values"==o&&h&&"values"!==h.name&&(d=!0,y=function(){return h.call(this)}),p[ur]!==y&&me(p,ur,y),nr[t]=y,o)if(u={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},c)for(s in u)(ar||d||!(s in p))&&Ve(p,s,u[s]);else ut({target:t,proto:!0,forced:ar||d},u);return u},fr=Hn.charAt,dr=Fe.set,pr=Fe.getterFor("String Iterator");lr(String,"String",(function(e){dr(this,{type:"String Iterator",string:st(e),index:0})}),(function(){var e,t=pr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=fr(n,r),t.index+=e.length,{value:e,done:!1})}));var hr=function(e){var t=e.return;if(void 0!==t)return he(t.call(e)).value},yr=function(e,t,n,r){try{return r?t(he(n)[0],n[1]):t(n)}catch(t){throw hr(e),t}},vr=ie("iterator"),mr=Array.prototype,br=function(e){return void 0!==e&&(nr.Array===e||mr[vr]===e)},gr=ie("iterator"),wr=function(e){if(null!=e)return e[gr]||e["@@iterator"]||nr[Vt(e)]},Sr=ie("iterator"),Ir=!1;try{var kr=0,Tr={next:function(){return{done:!!kr++}},return:function(){Ir=!0}};Tr[Sr]=function(){return this},Array.from(Tr,(function(){throw 2}))}catch(u){}var _r=function(e,t){if(!t&&!Ir)return!1;var n=!1;try{var r={};r[Sr]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Er=!_r((function(e){Array.from(e)}));ut({target:"Array",stat:!0,forced:Er},{from:function(e){var t,n,r,o,i,c,a=M(e),u="function"==typeof this?this:Array,s=arguments.length,l=s>1?arguments[1]:void 0,f=void 0!==l,d=wr(a),p=0;if(f&&(l=wt(l,s>2?arguments[2]:void 0,2)),null==d||u==Array&&br(d))for(n=new u(t=Ae(a.length));t>p;p++)c=f?l(a[p],p):a[p],Tt(n,p,c);else for(i=(o=d.call(a)).next,n=new u;!(r=i.call(o)).done;p++)c=f?yr(o,l,[r.value,p],!0):r.value,Tt(n,p,c);return n.length=p,n}}),$t.Array.from;var Or,Kr,Rr,Zr="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Cr=ve.f,xr=I.Int8Array,Ur=xr&&xr.prototype,Wr=I.Uint8ClampedArray,Fr=Wr&&Wr.prototype,Vr=xr&&Qn(xr),Lr=Ur&&Qn(Ur),Xr=Object.prototype,Yr=Xr.isPrototypeOf,Pr=ie("toStringTag"),Ar=te("TYPED_ARRAY_TAG"),jr=te("TYPED_ARRAY_CONSTRUCTOR"),Gr=Zr&&!!ir&&"Opera"!==Vt(I.opera),Jr=!1,Nr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Br={BigInt64Array:8,BigUint64Array:8},zr=function(e){if(!F(e))return!1;var t=Vt(e);return Q(Nr,t)||Q(Br,t)};for(Or in Nr)(Rr=(Kr=I[Or])&&Kr.prototype)?me(Rr,jr,Kr):Gr=!1;for(Or in Br)(Rr=(Kr=I[Or])&&Kr.prototype)&&me(Rr,jr,Kr);if((!Gr||"function"!=typeof Vr||Vr===Function.prototype)&&(Vr=function(){throw TypeError("Incorrect invocation")},Gr))for(Or in Nr)I[Or]&&ir(I[Or],Vr);if((!Gr||!Lr||Lr===Xr)&&(Lr=Vr.prototype,Gr))for(Or in Nr)I[Or]&&ir(I[Or].prototype,Lr);if(Gr&&Qn(Fr)!==Lr&&ir(Fr,Lr),T&&!Q(Lr,Pr))for(Or in Jr=!0,Cr(Lr,Pr,{get:function(){return F(this)?this[Ar]:void 0}}),Nr)I[Or]&&me(I[Or],Ar,Or);var Hr={NATIVE_ARRAY_BUFFER_VIEWS:Gr,TYPED_ARRAY_CONSTRUCTOR:jr,TYPED_ARRAY_TAG:Jr&&Ar,aTypedArray:function(e){if(zr(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(ir&&!Yr.call(Vr,e))throw TypeError("Target is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n){if(T){if(n)for(var r in Nr){var o=I[r];if(o&&Q(o.prototype,e))try{delete o.prototype[e]}catch(e){}}Lr[e]&&!n||Ve(Lr,e,n?t:Gr&&Ur[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(T){if(ir){if(n)for(r in Nr)if((o=I[r])&&Q(o,e))try{delete o[e]}catch(e){}if(Vr[e]&&!n)return;try{return Ve(Vr,e,n?t:Gr&&Vr[e]||t)}catch(e){}}for(r in Nr)!(o=I[r])||o[e]&&!n||Ve(o,e,t)}},isView:function(e){if(!F(e))return!1;var t=Vt(e);return"DataView"===t||Q(Nr,t)||Q(Br,t)},isTypedArray:zr,TypedArray:Vr,TypedArrayPrototype:Lr},Dr=ie("species"),Mr=Hr.TYPED_ARRAY_CONSTRUCTOR,qr=Hr.aTypedArrayConstructor,Qr=Hr.aTypedArray,$r=[].slice;(0,Hr.exportTypedArrayMethod)("slice",(function(e,t){for(var n=$r.call(Qr(this),e,t),r=function(e){return qr((t=e,n=e[Mr],void 0===(o=he(t).constructor)||null==(r=he(o)[Dr])?n:gt(r)));var t,n,r,o}(this),o=0,i=n.length,c=new r(i);i>o;)c[o]=n[o++];return c}),k((function(){new Int8Array(1).slice()})));var eo=ie("unscopables"),to=Array.prototype;null==to[eo]&&ve.f(to,eo,{configurable:!0,value:zt(null)});var no=function(e){to[eo][e]=!0},ro=Ne.includes;ut({target:"Array",proto:!0},{includes:function(e){return ro(this,e,arguments.length>1?arguments[1]:void 0)}}),no("includes"),It("Array","includes"),ut({target:"String",proto:!0,forced:!pt("includes")},{includes:function(e){return!!~st(U(this)).indexOf(st(ft(e)),arguments.length>1?arguments[1]:void 0)}}),It("String","includes");var oo=Fe.set,io=Fe.getterFor("Array Iterator");lr(Array,"Array",(function(e,t){oo(this,{type:"Array Iterator",target:W(e),index:0,kind:t})}),(function(){var e=io(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"),nr.Arguments=nr.Array,no("keys"),no("values"),no("entries");var co=!k((function(){return Object.isExtensible(Object.preventExtensions({}))})),ao=b((function(e){var t=ve.f,n=!1,r=te("meta"),o=0,i=Object.isExtensible||function(){return!0},c=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Me.f,t=[].splice,o={};o[r]=1,e(o).length&&(Me.f=function(n){for(var o=e(n),i=0,c=o.length;i<c;i++)if(o[i]===r){t.call(o,i,1);break}return o},ut({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qt.f}))},fastKey:function(e,t){if(!F(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Q(e,r)){if(!i(e))return"F";if(!t)return"E";c(e)}return e[r].objectID},getWeakData:function(e,t){if(!Q(e,r)){if(!i(e))return!0;if(!t)return!1;c(e)}return e[r].weakData},onFreeze:function(e){return co&&n&&i(e)&&!Q(e,r)&&c(e),e}};Oe[r]=!0}));ao.enable,ao.fastKey,ao.getWeakData,ao.onFreeze;var uo=function(e,t){this.stopped=e,this.result=t},so=function(e,t,n){var r,o,i,c,a,u,s,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=wt(t,l,1+f+p),y=function(e){return r&&hr(r),new uo(!0,e)},v=function(e){return f?(he(e),p?h(e[0],e[1],y):h(e[0],e[1])):p?h(e,y):h(e)};if(d)r=e;else{if("function"!=typeof(o=wr(e)))throw TypeError("Target is not iterable");if(br(o)){for(i=0,c=Ae(e.length);c>i;i++)if((a=v(e[i]))&&a instanceof uo)return a;return new uo(!1)}r=o.call(e)}for(u=r.next;!(s=u.call(r)).done;){try{a=v(s.value)}catch(e){throw hr(r),e}if("object"==typeof a&&a&&a instanceof uo)return a}return new uo(!1)},lo=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},fo=function(e,t,n){for(var r in t)Ve(e,r,t[r],n);return e},po=ie("species"),ho=ve.f,yo=ao.fastKey,vo=Fe.set,mo=Fe.getterFor;function bo(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 go(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 c=n.then;if("function"==typeof c)return void c.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 c=0;c<r.length;c++)i(c,r[c])}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",c=I.Set,a=c&&c.prototype,u=c,s={},l=function(e){var t=a[e];Ve(a,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!F(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!F(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!F(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(ct(e,"function"!=typeof c||!(o||a.forEach&&!k((function(){(new c).entries().next()})))))u=n.getConstructor(t,e,r,i),ao.enable();else if(ct(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=k((function(){f.has(1)})),h=_r((function(e){new c(e)})),y=!o&&k((function(){for(var e=new c,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(t,n){lo(t,u,e);var o=function(e,t,n){var r,o;return ir&&"function"==typeof(r=t.constructor)&&r!==n&&F(o=r.prototype)&&o!==n.prototype&&ir(e,o),e}(new c,t,u);return null!=n&&so(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=a,a.constructor=u),(p||y)&&(l("delete"),l("has"),r&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}s.Set=u,ut({global:!0,forced:u!=c},s),on(u,e),o||n.setStrong(u,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,i){lo(e,o,t),vo(e,{type:t,index:zt(null),first:void 0,last:void 0,size:0}),T||(e.size=0),null!=i&&so(i,e[r],{that:e,AS_ENTRIES:n})})),i=mo(t),c=function(e,t,n){var r,o,c=i(e),u=a(e,t);return u?u.value=n:(c.last=u={index:o=yo(t,!0),key:t,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=u),r&&(r.next=u),T?c.size++:e.size++,"F"!==o&&(c.index[o]=u)),e},a=function(e,t){var n,r=i(e),o=yo(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return fo(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,T?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=a(t,e);if(r){var o=r.next,c=r.previous;delete n.index[r.index],r.removed=!0,c&&(c.next=o),o&&(o.previous=c),n.first==r&&(n.first=o),n.last==r&&(n.last=c),T?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=wt(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!!a(this,e)}}),fo(o.prototype,n?{get:function(e){var t=a(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)}}),T&&ho(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=mo(t),i=mo(r);lr(e,t,(function(e,t){vo(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=L(e),n=ve.f;T&&t&&!t[po]&&n(t,po,{configurable:!0,get:function(){return this}})}(t)}}),$t.Set;var wo=setTimeout;function So(e){return Boolean(e&&void 0!==e.length)}function Io(){}function ko(e){if(!(this instanceof ko))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=[],Ro(e,this)}function To(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,ko._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 Eo(t.promise,e)}_o(t.promise,r)}else(1===e._state?_o:Eo)(t.promise,e._value)}))):e._deferreds.push(t)}function _o(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 ko)return e._state=3,e._value=t,void Oo(e);if("function"==typeof n)return void Ro((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,Oo(e)}catch(t){Eo(e,t)}var r,o}function Eo(e,t){e._state=2,e._value=t,Oo(e)}function Oo(e){2===e._state&&0===e._deferreds.length&&ko._immediateFn((function(){e._handled||ko._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)To(e,e._deferreds[t]);e._deferreds=null}function Ko(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function Ro(e,t){var n=!1;try{e((function(e){n||(n=!0,_o(t,e))}),(function(e){n||(n=!0,Eo(t,e))}))}catch(e){if(n)return;n=!0,Eo(t,e)}}ko.prototype.catch=function(e){return this.then(null,e)},ko.prototype.then=function(e,t){var n=new this.constructor(Io);return To(this,new Ko(e,t,n)),n},ko.prototype.finally=bo,ko.all=function(e){return new ko((function(t,n){if(!So(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,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,(function(t){i(e,t)}),n)}r[e]=c,0==--o&&t(r)}catch(e){n(e)}}for(var c=0;c<r.length;c++)i(c,r[c])}))},ko.allSettled=go,ko.resolve=function(e){return e&&"object"==typeof e&&e.constructor===ko?e:new ko((function(t){t(e)}))},ko.reject=function(e){return new ko((function(t,n){n(e)}))},ko.race=function(e){return new ko((function(t,n){if(!So(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)ko.resolve(e[r]).then(t,n)}))},ko._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){wo(e,0)},ko._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var Zo=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 Zo.Promise?Zo.Promise=ko:Zo.Promise.prototype.finally?Zo.Promise.allSettled||(Zo.Promise.allSettled=go):Zo.Promise.prototype.finally=bo,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 c=t<e.length;if(!c||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!c)return o.join("");e=e.subarray(t),i=t=0}if(0==(128&(c=e[t++])))r[i++]=c;else if(192==(224&c)){var a=63&e[t++];r[i++]=(31&c)<<6|a}else if(224==(240&c)){a=63&e[t++];var u=63&e[t++];r[i++]=(31&c)<<12|a<<6|u}else 240==(248&c)&&(65535<(c=(7&c)<<18|(a=63&e[t++])<<12|(u=63&e[t++])<<6|63&e[t++])&&(c-=65536,r[i++]=c>>>10&1023|55296,c=56320|1023&c),r[i++]=c)}}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 c=e.charCodeAt(t++);if(55296<=c&&56319>=c){if(t<n){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,c=((1023&c)<<10)+(1023&a)+65536)}if(55296<=c&&56319>=c)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(a=new Uint8Array(o)).set(i),i=a),0==(4294967168&c))i[r++]=c;else{if(0==(4294965248&c))i[r++]=c>>>6&31|192;else if(0==(4294901760&c))i[r++]=c>>>12&15|224,i[r++]=c>>>6&63|128;else{if(0!=(4292870144&c))continue;i[r++]=c>>>18&7|240,i[r++]=c>>>12&63|128,i[r++]=c>>>6&63|128}i[r++]=63&c|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:v),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&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?i(e):t}function a(e){var t=function(){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}}();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 c(this,n)}}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var l=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}(),f=function(t){r(u,t);var c=a(u);function u(){var t;return e(this,u),(t=c.call(this)).listeners||l.call(i(t)),Object.defineProperty(i(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(i(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(u,[{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)),s(o(u.prototype),"dispatchEvent",this).call(this,e)}}]),u}(l),d=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new f,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}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(d.prototype[Symbol.toStringTag]="AbortController",f.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(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})(e)&&(e.AbortController=d,e.AbortSignal=f)}("undefined"!=typeof self?self:v)}();var Co=b((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()}}));m(Co);var xo=m(b((function(e,t){var n=v&&v.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(c,a)}u((r=r.apply(e,t||[])).next())}))},r=v&&v.__generator||function(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)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 c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}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,a])}}};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 c(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}var a=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(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,a){return void 0===a&&(a=5e3),n(this,void 0,void 0,(function(){var n,u,s,l,f,d;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+c(4),u=Date.now()+a,s=o+"-"+t,l=window.localStorage,r.label=1;case 1:return Date.now()<u?[4,i(30)]:[3,8];case 2:return r.sent(),null!==l.getItem(s)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),l.setItem(s,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(s))&&(d=JSON.parse(d)).id===this.id&&d.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(s,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(u)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+c(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,Co.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(Co.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),Co.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(Co.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 c(){if(i||(window.removeEventListener("storage",c),e.removeFromWaiting(c),clearTimeout(a),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n()}}window.addEventListener("storage",c),e.addToWaiting(c);var a=setTimeout(c,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,c;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(c=n.getItem(i))?[2]:(c=JSON.parse(c)).id!==this.id?[3,2]:[4,Co.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItem(i),Co.default().unlock(c.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,c=0;c<r.length;c++){var a=r[c];if(a.includes(o)){var u=n.getItem(a);null!==u&&(void 0===(u=JSON.parse(u)).timeRefreshed&&u.timeAcquired<t||void 0!==u.timeRefreshed&&u.timeRefreshed<t)&&(n.removeItem(a),i=!0)}}i&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=a}))),Uo={timeoutInSeconds:60},Wo=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],Fo={name:"auth0-spa-js",version:"1.17.1"},Vo=function(e){function t(n,r){var o=e.call(this,r)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return s(t,e),t.fromPayload=function(e){return new t(e.error,e.error_description)},t}(Error),Lo=function(e){function t(n,r,o,i){void 0===i&&(i=null);var c=e.call(this,n,r)||this;return c.state=o,c.appState=i,Object.setPrototypeOf(c,t.prototype),c}return s(t,e),t}(Vo),Xo=function(e){function t(){var n=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,t.prototype),n}return s(t,e),t}(Vo),Yo=function(e){function t(n){var r=e.call(this)||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return s(t,e),t}(Xo),Po=function(e){function t(n){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return s(t,e),t}(Vo),Ao=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 Po(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new Yo(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(c){if(c.data&&"authorization_response"===c.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),c.data.response.error)return n(Vo.fromPayload(c.data.response));t(c.data.response)}},window.addEventListener("message",r)}))},jo=function(){return window.crypto||window.msCrypto},Go=function(){var e=jo();return e.subtle||e.webkitSubtle},Jo=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(jo().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},No=function(e){return btoa(e)},Bo=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},zo=function(e){return d(void 0,void 0,void 0,(function(){var t;return p(this,(function(n){switch(n.label){case 0:return t=Go().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()]}}))}))},Ho=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,y([],h(Array.from(t))))))},Mo=function(e,t){return d(void 0,void 0,void 0,(function(){var n,r;return p(this,(function(o){switch(o.label){case 0:return[4,(i=e,c=t,c=c||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],a={},u=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:u,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var s in n.open(c.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]),a[t]=a[t]?a[t]+","+n:n})),e(u())},n.onerror=t,n.withCredentials="include"==c.credentials,c.headers)n.setRequestHeader(s,c.headers[s]);n.send(c.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,c}))}))},qo=function(e,t,n){return d(void 0,void 0,void 0,(function(){var r,o;return p(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([Mo(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},Qo=function(e,t,n,r,o,i,c){return d(void 0,void 0,void 0,(function(){return p(this,(function(a){return[2,(u={auth:{audience:t,scope:n},timeout:o,fetchUrl:e,fetchOptions:r,useFormData:c},s=i,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)},s.postMessage(u,[n.port2])})))];var u,s}))}))},$o=function(e,t,n,r,o,i,c){return void 0===c&&(c=1e4),d(void 0,void 0,void 0,(function(){return p(this,(function(a){return o?[2,Qo(e,t,n,r,c,o,i)]:[2,qo(e,r,c)]}))}))};function ei(e,t,n,r,o,i,c){return d(this,void 0,void 0,(function(){var a,u,s,l,d,h,y,v;return p(this,(function(p){switch(p.label){case 0:a=null,s=0,p.label=1;case 1:if(!(s<3))return[3,6];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,$o(e,n,r,o,i,c,t)];case 3:return u=p.sent(),a=null,[3,6];case 4:return l=p.sent(),a=l,[3,5];case 5:return s++,[3,1];case 6:if(a)throw a.message=a.message||"Failed to fetch",a;if(d=u.json,h=d.error,y=d.error_description,v=f(d,["error","error_description"]),!u.ok)throw new Vo(h||"request_error",y||"HTTP error. Unable to fetch "+e);return[2,v]}}))}))}function ti(e,t){var n=e.baseUrl,r=e.timeout,o=e.audience,i=e.scope,c=e.auth0Client,a=e.useFormData,u=f(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return d(this,void 0,void 0,(function(){var e;return p(this,(function(s){switch(s.label){case 0:return e=a?Bo(u):JSON.stringify(u),[4,ei(n+"/oauth/token",r,o||"default",i,{method:"POST",body:e,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(c||Fo))}},t,a)];case 1:return[2,s.sent()]}}))}))}var ni=function(e){return Array.from(new Set(e))},ri=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ni(e.join(" ").trim().split(/\s+/)).join(" ")},oi=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=h(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}(),ii=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}(),ci=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)}})},ai=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 d(this,void 0,void 0,(function(){var n,r;return p(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:y([],h(n))})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return d(this,void 0,void 0,(function(){var t,n;return p(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:y([],h(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}(),ui=function(){function e(e,t){this.cache=e,e.allKeys||(this.keyManifest=new ai(this.cache,t))}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),d(this,void 0,void 0,(function(){var r,o,i,c;return p(this,(function(a){switch(a.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=a.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=a.sent())?(i=this.matchExistingCacheKey(e,o),[4,this.cache.get(i)]):[2];case 3:r=a.sent(),a.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 a.sent(),[2,r.body];case 6:return[4,this.cache.remove(e.toKey())];case 7:return a.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 8:return a.sent(),[2];case 9:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return d(this,void 0,void 0,(function(){var n,r;return p(this,(function(o){switch(o.label){case 0:return n=new oi({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 d(this,void 0,void 0,(function(){var t,n=this;return p(this,(function(r){switch(r.label){case 0:return[4,this.getCacheKeys()];case 1:return(t=r.sent())?(t.forEach((function(e){return d(n,void 0,void 0,(function(){return p(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 d(this,void 0,void 0,(function(){var t;return p(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=oi.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}(),si=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}(),li=function(e){return"number"==typeof e},fi=["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"],di=b((function(e,t){var n=v&&v.__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("="),c=i.slice(1).join("=");'"'===c.charAt(0)&&(c=c.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=c.replace(r,decodeURIComponent)}catch(e){}}return t}function c(){return i(document.cookie)}function a(e,t,r){document.cookie=o(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=c,t.get=function(e){return c()[e]},t.set=a,t.remove=function(e,t){a(e,"",n(n({},t),{expires:-1}))}}));m(di),di.encode,di.parse,di.getAll;var pi=di.get,hi=di.set,yi=di.remove,vi={get:function(e){var t=pi(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,hi(e,JSON.stringify(t),r)},remove:function(e){yi(e)}},mi={get:function(e){return vi.get(e)||vi.get("_legacy_"+e)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),r.expires=n.daysUntilExpire,hi("_legacy_"+e,JSON.stringify(t),r),vi.save(e,t,n)},remove:function(e){vi.remove(e),vi.remove("_legacy_"+e)}},bi={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)}};var gi,wi=("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQogICAgQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULAogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NCiAgICBMT1NTIE9GIFVTRSwgRE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2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4ocj10LnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",null,!1,function(e){return gi=gi||function(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,c=o.substring(i)+(r?"//# sourceMappingURL="+r:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb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Fib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixmLnNpZ25hbD1kLnNpZ25hbCksdj12b2lkIDAsdC5sYWJlbD0yO2Nhc2UgMjpyZXR1cm4gdC50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKG09aSxuZXcgUHJvbWlzZSgoZnVuY3Rpb24oZSl7cmV0dXJuIHNldFRpbWVvdXQoZSxtKX0pKSksZmV0Y2goYyxlKHt9LGYpKV0pXTtjYXNlIDM6cmV0dXJuIHY9dC5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiB3PXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOncubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHY/WzQsdi5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4ocj10LnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",null,false),new Worker(gi,e)}),Si={},Ii=new xo,ki={memory:function(){return(new ci).enclosedCache},localstorage:function(){return new ii}},Ti=function(e){return ki[e]},_i=function(){function e(e){var t,n,r;if(this.options=e,"undefined"!=typeof window&&function(){if(!jo())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Go())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)r=e.cache;else{if(this.cacheLocation=e.cacheLocation||"memory",!Ti(this.cacheLocation))throw new Error('Invalid cache location "'+this.cacheLocation+'"');r=Ti(this.cacheLocation)()}this.cookieStorage=!1===e.legacySameSiteCookie?vi:mi,this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var o,i=e.useCookiesForTransactions?this.cookieStorage:bi;this.scope=this.options.scope,this.transactionManager=new si(i),this.cacheManager=new ui(r,this.options.client_id),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:"https://"+o),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://"+e+"/":t+"/"}(this.options.issuer,this.domainUrl),this.defaultScope=ri("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=ri(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&!/Trident.*rv:11\.0/.test(navigator.userAgent)&&(this.worker=new wi),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,f(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||Fo)));return""+this.domainUrl+e+"&auth0Client="+t},e.prototype._getParams=function(e,t,n,r,o){var i=this.options;i.domain,i.leeway,i.useRefreshTokens,i.useCookiesForTransactions,i.useFormData,i.auth0Client,i.cacheLocation,i.advancedOptions;var c=f(i,["domain","leeway","useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions"]);return l(l(l({},c),e),{scope:ri(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:n,redirect_uri:o||this.options.redirect_uri,code_challenge:r,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?"+Bo(e))},e.prototype._verifyIdToken=function(e,t,n){return function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=h(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(Ho(o)),a={__raw:e},u={};return Object.keys(c).forEach((function(e){a[e]=c[e],fi.includes(e)||(u[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Ho(r)),claims:a,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&&!li(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(!li(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!li(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(li(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(li(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}({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={}),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,u,s,d,h,y;return p(this,(function(p){switch(p.label){case 0:return t=e.redirect_uri,n=e.appState,r=f(e,["redirect_uri","appState"]),o=No(Jo()),i=No(Jo()),c=Jo(),[4,zo(c)];case 1:return a=p.sent(),u=Do(a),s=e.fragment?"#"+e.fragment:"",d=this._getParams(r,o,i,u,t),h=this._authorizeUrl(d),y=e.organization||this.options.organization,this.transactionManager.create(l({nonce:i,code_verifier:c,appState:n,scope:d.scope,audience:d.audience||"default",redirect_uri:d.redirect_uri},y&&{organizationId:y})),[2,h+s]}}))}))},e.prototype.loginWithPopup=function(e,t){return d(this,void 0,void 0,(function(){var n,r,o,i,c,a,u,s,d,h,y,v,m;return p(this,(function(p){switch(p.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("","auth0:authorize:popup","left="+t+",top="+n+",width=400,height=600,resizable,scrollbars=yes,status=1")}()),n=f(e,[]),r=No(Jo()),o=No(Jo()),i=Jo(),[4,zo(i)];case 1:return c=p.sent(),a=Do(c),u=this._getParams(n,r,o,a,this.options.redirect_uri||window.location.origin),s=this._authorizeUrl(l(l({},u),{response_mode:"web_message"})),t.popup.location.href=s,[4,Ao(l(l({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(d=p.sent(),r!==d.state)throw new Error("Invalid state");return[4,ti({audience:u.audience,scope:u.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:i,code:d.code,grant_type:"authorization_code",redirect_uri:u.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},this.worker)];case 3:return h=p.sent(),y=e.organization||this.options.organization,v=this._verifyIdToken(h.id_token,o,y),m=l(l({},h),{decodedToken:v,scope:u.scope,audience:u.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 4:return p.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=ri(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new oi({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={}),d(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=ri(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new oi({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={}),d(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:return t=e.redirectMethod,n=f(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return r=o.sent(),window.location[t||"assign"](r),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,u,s,f,d;return p(this,(function(p){switch(p.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(n=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=h(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("")),r=n.state,o=n.code,i=n.error,c=n.error_description,!(a=this.transactionManager.get())||!a.code_verifier)throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Lo(i,c,r,a.appState);return u={audience:a.audience,scope:a.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},void 0!==a.redirect_uri&&(u.redirect_uri=a.redirect_uri),[4,ti(u,this.worker)];case 1:return s=p.sent(),f=this._verifyIdToken(s.id_token,a.nonce,a.organizationId),d=l(l({},s),{decodedToken:f,audience:a.audience,scope:a.scope,client_id:this.options.client_id}),[4,this.cacheManager.set(d)];case 2:return p.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2,{appState:a.appState}]}}))}))},e.prototype.checkSession=function(e){return d(this,void 0,void 0,(function(){var t;return p(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(),!Wo.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o=this;return p(this,(function(i){return t=l(l({audience:this.options.audience,ignoreCache:!1},e),{scope:ri(this.defaultScope,this.scope,e.scope)}),n=t.ignoreCache,r=f(t,["ignoreCache"]),[2,(c=function(){return o._getTokenSilently(l({ignoreCache:n},r))},a=this.options.client_id+"::"+r.audience+"::"+r.scope,u=Si[a],u||(u=c().finally((function(){delete Si[a],u=null})),Si[a]=u),u)];var c,a,u}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a=this;return p(this,(function(u){switch(u.label){case 0:return t=e.ignoreCache,n=f(e,["ignoreCache"]),r=function(){return d(a,void 0,void 0,(function(){var e;return p(this,(function(t){switch(t.label){case 0:return[4,this.cacheManager.get(new oi({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id}),60)];case 1:return[2,(e=t.sent())&&e.access_token]}}))}))},t?[3,2]:[4,r()];case 1:if(o=u.sent())return[2,o];u.label=2;case 2:return[4,(s=function(){return Ii.acquireLock("auth0.lock.getTokenSilently",5e3)},h=10,void 0===h&&(h=3),d(void 0,void 0,void 0,(function(){var e;return p(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<h?[4,s()]:[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(!u.sent())return[3,15];u.label=4;case 4:return u.trys.push([4,,12,14]),t?[3,6]:[4,r()];case 5:if(o=u.sent())return[2,o];u.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(n)]:[3,8];case 7:return c=u.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(n)];case 9:c=u.sent(),u.label=10;case 10:return i=c,[4,this.cacheManager.set(l({client_id:this.options.client_id},i))];case 11:return u.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2,i.access_token];case 12:return[4,Ii.releaseLock("auth0.lock.getTokenSilently")];case 13:return u.sent(),[7];case 14:return[3,16];case 15:throw new Xo;case 16:return[2]}var s,h}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),d(this,void 0,void 0,(function(){return p(this,(function(n){switch(n.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=ri(this.defaultScope,this.scope,e.scope),t=l(l({},Uo),t),[4,this.loginWithPopup(e,t)];case 1:return n.sent(),[4,this.cacheManager.get(new oi({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,n.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return d(this,void 0,void 0,(function(){return p(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=f(e,["federated"]),r=t?"&federated":"";return this._url("/v2/logout?"+Bo(n))+r},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,r=f(e,["localOnly"]);if(n&&r.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var o=function(){if(t.cookieStorage.remove("auth0.is.authenticated"),!n){var e=t.buildLogoutUrl(r);window.location.assign(e)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return o()}));this.cacheManager.clearSync(),o()},e.prototype._getTokenFromIFrame=function(e){return d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,u,s,d,h,y,v,m,b;return p(this,(function(p){switch(p.label){case 0:return t=No(Jo()),n=No(Jo()),r=Jo(),[4,zo(r)];case 1:o=p.sent(),i=Do(o),c=this._getParams(e,t,n,i,e.redirect_uri||this.options.redirect_uri||window.location.origin),a=this._authorizeUrl(l(l({},c),{prompt:"none",response_mode:"web_message"})),u=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,p.label=2;case 2:return p.trys.push([2,5,,6]),[4,(g=a,w=this.domainUrl,S=u,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 Xo),o()}),1e3*S);r=function(n){if(n.origin==w&&n.data&&"authorization_response"===n.data.type){var c=n.source;c&&c.close(),n.data.response.error?t(Vo.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",g)})))];case 3:if(s=p.sent(),t!==s.state)throw new Error("Invalid state");return d=e.scope,h=e.audience,y=f(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds"]),[4,ti(l(l(l({},this.customOptions),y),{scope:d,audience:h,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:s.code,grant_type:"authorization_code",redirect_uri:c.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 4:return v=p.sent(),m=this._verifyIdToken(v.id_token,n),[2,l(l({},v),{decodedToken:m,scope:c.scope,audience:c.audience||"default"})];case 5:throw"login_required"===(b=p.sent()).error&&this.logout({localOnly:!0}),b;case 6:return[2]}var g,w,S}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,u,s;return p(this,(function(d){switch(d.label){case 0:return e.scope=ri(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new oi({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=d.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return[2,d.sent()];case 3:n=e.redirect_uri||this.options.redirect_uri||window.location.origin,o=e.scope,i=e.audience,c=f(e,["scope","audience","ignoreCache","timeoutInSeconds"]),a="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,d.label=4;case 4:return d.trys.push([4,6,,9]),[4,ti(l(l(l(l(l({},this.customOptions),c),{audience:i,scope:o,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),a&&{timeout:a}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 5:return r=d.sent(),[3,9];case 6:return"The web worker is missing the refresh token"===(u=d.sent()).message||u.message&&u.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return[2,d.sent()];case 8:throw u;case 9:return s=this._verifyIdToken(r.id_token),[2,l(l({},r),{decodedToken:s,scope:e.scope,audience:e.audience||"default"})]}}))}))},e}(),Ei={isAuthenticated:!1,isLoading:!0},Oi=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},Ki=o(o({},Ei),{buildAuthorizeUrl:Oi,buildLogoutUrl:Oi,getAccessTokenSilently:Oi,getAccessTokenWithPopup:Oi,getIdTokenClaims:Oi,loginWithRedirect:Oi,loginWithPopup:Oi,logout:Oi,handleRedirectCallback:Oi}),Ri=t.createContext(Ki),Zi=function(e){function t(t,n){var r=e.call(this,n||t)||this;return r.error=t,r.error_description=n,r}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),Ci=/[?&]code=[^&]+/,xi=/[?&]state=[^&]+/,Ui=/[?&]error=[^&]+/,Wi=function(e){return function(t){return"error"in t?new Zi(t.error,t.error_description):t instanceof Error?t:new Error(e)}},Fi=Wi("Login failed"),Vi=Wi("Get access token failed"),Li=function(e,t){var n,r;switch(t.type){case"LOGIN_POPUP_STARTED":return o(o({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return o(o({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return(null===(n=e.user)||void 0===n?void 0:n.updated_at)===(null===(r=t.user)||void 0===r?void 0:r.updated_at)?e:o(o({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return o(o({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return o(o({},e),{isLoading:!1,error:t.error})}},Xi=function(e){if(e){var t=e.redirectUri,n=i(e,["redirectUri"]);return o(o({},n),{redirect_uri:t})}},Yi=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},Pi=function(){return t.useContext(Ri)},Ai=function(){return n.createElement(n.Fragment,null)},ji=function(){return""+window.location.pathname+window.location.search};e.Auth0Context=Ri,e.Auth0Provider=function(e){var r=e.children,u=e.skipRedirectCallback,s=e.onRedirectCallback,l=void 0===s?Yi:s,f=i(e,["children","skipRedirectCallback","onRedirectCallback"]),d=t.useState((function(){return new _i(function(e){var t=e.clientId,n=e.redirectUri,r=e.maxAge,c=i(e,["clientId","redirectUri","maxAge"]);return o(o({},c),{client_id:t,redirect_uri:n,max_age:r,auth0Client:{name:"auth0-react",version:"1.7.0"}})}(f))}))[0],p=t.useReducer(Li,Ei),h=p[0],y=p[1];t.useEffect((function(){c(void 0,void 0,void 0,(function(){var e,t,n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),void 0===o&&(o=window.location.search),!Ci.test(o)&&!Ui.test(o)||!xi.test(o)||u?[3,2]:[4,d.handleRedirectCallback()];case 1:return e=r.sent().appState,l(e),[3,4];case 2:return[4,d.checkSession()];case 3:r.sent(),r.label=4;case 4:return[4,d.getUser()];case 5:return t=r.sent(),y({type:"INITIALISED",user:t}),[3,7];case 6:return n=r.sent(),y({type:"ERROR",error:Fi(n)}),[3,7];case 7:return[2]}var o}))}))}),[d,l,u]);var v=t.useCallback((function(e){return d.buildAuthorizeUrl(Xi(e))}),[d]),m=t.useCallback((function(e){return d.buildLogoutUrl(e)}),[d]),b=t.useCallback((function(e){return d.loginWithRedirect(Xi(e))}),[d]),g=t.useCallback((function(e,t){return c(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:y({type:"LOGIN_POPUP_STARTED"}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,d.loginWithPopup(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),y({type:"ERROR",error:Fi(n)}),[2];case 4:return[4,d.getUser()];case 5:return r=o.sent(),y({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[d]),w=t.useCallback((function(e){void 0===e&&(e={});var t=d.logout(e);if(e.localOnly){if(t&&"function"==typeof t.then)return t.then((function(){return y({type:"LOGOUT"})}));y({type:"LOGOUT"})}return t}),[d]),S=t.useCallback((function(e){return c(void 0,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,d.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw n=i.sent(),Vi(n);case 3:return r=y,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return r.apply(void 0,[(o.user=i.sent(),o)]),[7];case 5:return[2,t]}}))}))}),[d]),I=t.useCallback((function(e,t){return c(void 0,void 0,void 0,(function(){var n,r,o,i;return a(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,5]),[4,d.getTokenWithPopup(e,t)];case 1:return n=c.sent(),[3,5];case 2:throw r=c.sent(),Vi(r);case 3:return o=y,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return o.apply(void 0,[(i.user=c.sent(),i)]),[7];case 5:return[2,n]}}))}))}),[d]),k=t.useCallback((function(e){return d.getIdTokenClaims(e)}),[d]),T=t.useCallback((function(e){return c(void 0,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,d.handleRedirectCallback(e)];case 1:return[2,o.sent()];case 2:throw t=o.sent(),Vi(t);case 3:return n=y,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,d.getUser()];case 4:return n.apply(void 0,[(r.user=o.sent(),r)]),[7];case 5:return[2]}}))}))}),[d]);return n.createElement(Ri.Provider,{value:o(o({},h),{buildAuthorizeUrl:v,buildLogoutUrl:m,getAccessTokenSilently:S,getAccessTokenWithPopup:I,getIdTokenClaims:k,loginWithRedirect:b,loginWithPopup:g,logout:w,handleRedirectCallback:T})},r)},e.InMemoryCache=ci,e.LocalStorageCache=ii,e.OAuthError=Zi,e.User=function(){},e.useAuth0=Pi,e.withAuth0=function(e){return function(t){return n.createElement(Ri.Consumer,null,(function(r){return n.createElement(e,o({auth0:r},t))}))}},e.withAuthenticationRequired=function(e,r){return void 0===r&&(r={}),function(i){var u=this,s=Pi(),l=s.user,f=s.isAuthenticated,d=s.isLoading,p=s.loginWithRedirect,h=r.returnTo,y=void 0===h?ji:h,v=r.onRedirecting,m=void 0===v?Ai:v,b=r.loginOptions,g=void 0===b?{}:b,w=r.claimCheck,S=f&&(void 0===w?function(){return!0}:w)(l);return t.useEffect((function(){if(!d&&!S){var e=o(o({},g),{appState:o(o({},g.appState),{returnTo:"function"==typeof y?y():y})});c(u,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,p(e)];case 1:return t.sent(),[2]}}))}))}}),[d,S,p,g,y]),S?n.createElement(e,o({},i)):m()}},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
29
|
+
***************************************************************************** */var s=function(e,t){return(s=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)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return(l=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 f(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 d(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(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(c,a)}s((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)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 c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}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,a])}}}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.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 c}function y(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 v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t){return e(t={exports:{}},t.exports),t.exports}var g,w,S=function(e){return e&&e.Math==Math&&e},I=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof v&&v)||function(){return this}()||Function("return this")(),k=function(e){try{return!!e()}catch(e){return!0}},T=!k((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,O={f:E&&!_.call({1:2},1)?function(e){var t=E(this,e);return!!t&&t.enumerable}:_},K=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C={}.toString,R=function(e){return C.call(e).slice(8,-1)},Z="".split,x=k((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==R(e)?Z.call(e,""):Object(e)}:Object,U=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},W=function(e){return x(U(e))},F=function(e){return"object"==typeof e?null!==e:"function"==typeof e},V=function(e){return"function"==typeof e?e:void 0},L=function(e,t){return arguments.length<2?V(I[e]):I[e]&&I[e][t]},X=L("navigator","userAgent")||"",Y=I.process,A=I.Deno,P=Y&&Y.versions||A&&A.version,N=P&&P.v8;N?w=(g=N.split("."))[0]<4?1:g[0]+g[1]:X&&(!(g=X.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=X.match(/Chrome\/(\d+)/))&&(w=g[1]);var j=w&&+w,G=!!Object.getOwnPropertySymbols&&!k((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j&&j<41})),J=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,B=J?function(e){return"symbol"==typeof e}:function(e){var t=L("Symbol");return"function"==typeof t&&Object(e)instanceof t},z=function(e,t){try{Object.defineProperty(I,e,{value:t,configurable:!0,writable:!0})}catch(n){I[e]=t}return t},H=I["__core-js_shared__"]||z("__core-js_shared__",{}),D=b((function(e){(e.exports=function(e,t){return H[e]||(H[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),M=function(e){return Object(U(e))},q={}.hasOwnProperty,Q=Object.hasOwn||function(e,t){return q.call(M(e),t)},$=0,ee=Math.random(),te=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++$+ee).toString(36)},ne=D("wks"),re=I.Symbol,oe=J?re:re&&re.withoutSetter||te,ie=function(e){return Q(ne,e)&&(G||"string"==typeof ne[e])||(G&&Q(re,e)?ne[e]=re[e]:ne[e]=oe("Symbol."+e)),ne[e]},ce=ie("toPrimitive"),ae=function(e){var t=function(e,t){if(!F(e)||B(e))return e;var n,r=e[ce];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!F(n)||B(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)&&!F(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!F(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!F(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)}(e,"string");return B(t)?t:String(t)},se=I.document,ue=F(se)&&F(se.createElement),le=function(e){return ue?se.createElement(e):{}},fe=!T&&!k((function(){return 7!=Object.defineProperty(le("div"),"a",{get:function(){return 7}}).a})),de=Object.getOwnPropertyDescriptor,he={f:T?de:function(e,t){if(e=W(e),t=ae(t),fe)try{return de(e,t)}catch(e){}if(Q(e,t))return K(!O.f.call(e,t),e[t])}},pe=function(e){if(!F(e))throw TypeError(String(e)+" is not an object");return e},ye=Object.defineProperty,ve={f:T?ye:function(e,t,n){if(pe(e),t=ae(t),pe(n),fe)try{return ye(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}},me=T?function(e,t,n){return ve.f(e,t,K(1,n))}:function(e,t,n){return e[t]=n,e},be=Function.toString;"function"!=typeof H.inspectSource&&(H.inspectSource=function(e){return be.call(e)});var ge,we,Se,Ie=H.inspectSource,ke=I.WeakMap,Te="function"==typeof ke&&/native code/.test(Ie(ke)),_e=D("keys"),Ee=function(e){return _e[e]||(_e[e]=te(e))},Oe={},Ke=I.WeakMap;if(Te||H.state){var Ce=H.state||(H.state=new Ke),Re=Ce.get,Ze=Ce.has,xe=Ce.set;ge=function(e,t){if(Ze.call(Ce,e))throw new TypeError("Object already initialized");return t.facade=e,xe.call(Ce,e,t),t},we=function(e){return Re.call(Ce,e)||{}},Se=function(e){return Ze.call(Ce,e)}}else{var Ue=Ee("state");Oe[Ue]=!0,ge=function(e,t){if(Q(e,Ue))throw new TypeError("Object already initialized");return t.facade=e,me(e,Ue,t),t},we=function(e){return Q(e,Ue)?e[Ue]:{}},Se=function(e){return Q(e,Ue)}}var We,Fe={set:ge,get:we,has:Se,enforce:function(e){return Se(e)?we(e):ge(e,{})},getterFor:function(e){return function(t){var n;if(!F(t)||(n=we(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ve=b((function(e){var t=Fe.get,n=Fe.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var c,a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||Q(o,"name")||me(o,"name",t),(c=n(o)).source||(c.source=r.join("string"==typeof t?t:""))),e!==I?(a?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=o:me(e,t,o)):s?e[t]=o:z(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Ie(this)}))})),Le=Math.ceil,Xe=Math.floor,Ye=function(e){return isNaN(e=+e)?0:(e>0?Xe:Le)(e)},Ae=Math.min,Pe=function(e){return e>0?Ae(Ye(e),9007199254740991):0},Ne=Math.max,je=Math.min,Ge=function(e){return function(t,n,r){var o,i=W(t),c=Pe(i.length),a=function(e,t){var n=Ye(e);return n<0?Ne(n+t,0):je(n,t)}(r,c);if(e&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Je={includes:Ge(!0),indexOf:Ge(!1)},Be=Je.indexOf,ze=function(e,t){var n,r=W(e),o=0,i=[];for(n in r)!Q(Oe,n)&&Q(r,n)&&i.push(n);for(;t.length>o;)Q(r,n=t[o++])&&(~Be(i,n)||i.push(n));return i},He=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],De=He.concat("length","prototype"),Me={f:Object.getOwnPropertyNames||function(e){return ze(e,De)}},qe={f:Object.getOwnPropertySymbols},Qe=L("Reflect","ownKeys")||function(e){var t=Me.f(pe(e)),n=qe.f;return n?t.concat(n(e)):t},$e=function(e,t){for(var n=Qe(t),r=ve.f,o=he.f,i=0;i<n.length;i++){var c=n[i];Q(e,c)||r(e,c,o(t,c))}},et=/#|\.prototype\./,tt=function(e,t){var n=rt[nt(e)];return n==it||n!=ot&&("function"==typeof t?k(t):!!t)},nt=tt.normalize=function(e){return String(e).replace(et,".").toLowerCase()},rt=tt.data={},ot=tt.NATIVE="N",it=tt.POLYFILL="P",ct=tt,at=he.f,st=function(e,t){var n,r,o,i,c,a=e.target,s=e.global,u=e.stat;if(n=s?I:u?I[a]||z(a,{}):(I[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(c=at(n,r))&&c.value:n[r],!ct(s?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$e(i,o)}(e.sham||o&&o.sham)&&me(i,"sham",!0),Ve(n,r,i,e)}},ut=function(e){if(B(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},lt=ie("match"),ft=function(e){if(function(e){var t;return F(e)&&(void 0!==(t=e[lt])?!!t:"RegExp"==R(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},dt=ie("match"),ht=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[dt]=!1,"/./"[e](t)}catch(e){}}return!1},pt=he.f,yt="".startsWith,vt=Math.min,mt=ht("startsWith"),bt=!(mt||(We=pt(String.prototype,"startsWith"),!We||We.writable));st({target:"String",proto:!0,forced:!bt&&!mt},{startsWith:function(e){var t=ut(U(this));ft(e);var n=Pe(vt(arguments.length>1?arguments[1]:void 0,t.length)),r=ut(e);return yt?yt.call(t,r,n):t.slice(n,n+r.length)===r}});var gt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},wt=function(e,t,n){if(gt(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)}},St=Function.call,It=function(e,t,n){return wt(St,I[e].prototype[t],n)};It("String","startsWith");var kt=Array.isArray||function(e){return"Array"==R(e)},Tt=function(e,t,n){var r=ae(t);r in e?ve.f(e,r,K(0,n)):e[r]=n},_t=ie("species"),Et=function(e,t){return new(function(e){var t;return kt(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!kt(t.prototype)?F(t)&&null===(t=t[_t])&&(t=void 0):t=void 0),void 0===t?Array:t}(e))(0===t?0:t)},Ot=ie("species"),Kt=ie("isConcatSpreadable"),Ct=j>=51||!k((function(){var e=[];return e[Kt]=!1,e.concat()[0]!==e})),Rt=("concat",j>=51||!k((function(){var e=[];return(e.constructor={})[Ot]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Zt=function(e){if(!F(e))return!1;var t=e[Kt];return void 0!==t?!!t:kt(e)};st({target:"Array",proto:!0,forced:!Ct||!Rt},{concat:function(e){var t,n,r,o,i,c=M(this),a=Et(c,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Zt(i=-1===t?c:arguments[t])){if(s+(o=Pe(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Tt(a,s,i[n])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Tt(a,s++,i)}return a.length=s,a}});var xt={};xt[ie("toStringTag")]="z";var Ut="[object z]"===String(xt),Wt=ie("toStringTag"),Ft="Arguments"==R(function(){return arguments}()),Vt=Ut?R: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),Wt))?n:Ft?R(t):"Object"==(r=R(t))&&"function"==typeof t.callee?"Arguments":r},Lt=Ut?{}.toString:function(){return"[object "+Vt(this)+"]"};Ut||Ve(Object.prototype,"toString",Lt,{unsafe:!0});var Xt,Yt=Object.keys||function(e){return ze(e,He)},At=T?Object.defineProperties:function(e,t){pe(e);for(var n,r=Yt(t),o=r.length,i=0;o>i;)ve.f(e,n=r[i++],t[n]);return e},Pt=L("document","documentElement"),Nt=Ee("IE_PROTO"),jt=function(){},Gt=function(e){return"<script>"+e+"<\/script>"},Jt=function(e){e.write(Gt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Bt=function(){try{Xt=new ActiveXObject("htmlfile")}catch(e){}var e,t;Bt="undefined"!=typeof document?document.domain&&Xt?Jt(Xt):((t=le("iframe")).style.display="none",Pt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Gt("document.F=Object")),e.close(),e.F):Jt(Xt);for(var n=He.length;n--;)delete Bt.prototype[He[n]];return Bt()};Oe[Nt]=!0;var zt=Object.create||function(e,t){var n;return null!==e?(jt.prototype=pe(e),n=new jt,jt.prototype=null,n[Nt]=e):n=Bt(),void 0===t?n:At(n,t)},Ht=Me.f,Dt={}.toString,Mt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qt={f:function(e){return Mt&&"[object Window]"==Dt.call(e)?function(e){try{return Ht(e)}catch(e){return Mt.slice()}}(e):Ht(W(e))}},Qt={f:ie},$t=I,en=ve.f,tn=function(e){var t=$t.Symbol||($t.Symbol={});Q(t,e)||en(t,e,{value:Qt.f(e)})},nn=ve.f,rn=ie("toStringTag"),on=function(e,t,n){e&&!Q(e=n?e:e.prototype,rn)&&nn(e,rn,{configurable:!0,value:t})},cn=[].push,an=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,c=7==e,a=5==e||i;return function(s,u,l,f){for(var d,h,p=M(s),y=x(p),v=wt(u,l,3),m=Pe(y.length),b=0,g=f||Et,w=t?g(s,m):n||c?g(s,0):void 0;m>b;b++)if((a||b in y)&&(h=v(d=y[b],b,p),e))if(t)w[b]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:cn.call(w,d)}else switch(e){case 4:return!1;case 7:cn.call(w,d)}return i?-1:r||o?o:w}},sn=[an(0),an(1),an(2),an(3),an(4),an(5),an(6),an(7)][0],un=Ee("hidden"),ln=ie("toPrimitive"),fn=Fe.set,dn=Fe.getterFor("Symbol"),hn=Object.prototype,pn=I.Symbol,yn=L("JSON","stringify"),vn=he.f,mn=ve.f,bn=qt.f,gn=O.f,wn=D("symbols"),Sn=D("op-symbols"),In=D("string-to-symbol-registry"),kn=D("symbol-to-string-registry"),Tn=D("wks"),_n=I.QObject,En=!_n||!_n.prototype||!_n.prototype.findChild,On=T&&k((function(){return 7!=zt(mn({},"a",{get:function(){return mn(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=vn(hn,t);r&&delete hn[t],mn(e,t,n),r&&e!==hn&&mn(hn,t,r)}:mn,Kn=function(e,t){var n=wn[e]=zt(pn.prototype);return fn(n,{type:"Symbol",tag:e,description:t}),T||(n.description=t),n},Cn=function(e,t,n){e===hn&&Cn(Sn,t,n),pe(e);var r=ae(t);return pe(n),Q(wn,r)?(n.enumerable?(Q(e,un)&&e[un][r]&&(e[un][r]=!1),n=zt(n,{enumerable:K(0,!1)})):(Q(e,un)||mn(e,un,K(1,{})),e[un][r]=!0),On(e,r,n)):mn(e,r,n)},Rn=function(e,t){pe(e);var n=W(t),r=Yt(n).concat(Wn(n));return sn(r,(function(t){T&&!Zn.call(n,t)||Cn(e,t,n[t])})),e},Zn=function(e){var t=ae(e),n=gn.call(this,t);return!(this===hn&&Q(wn,t)&&!Q(Sn,t))&&(!(n||!Q(this,t)||!Q(wn,t)||Q(this,un)&&this[un][t])||n)},xn=function(e,t){var n=W(e),r=ae(t);if(n!==hn||!Q(wn,r)||Q(Sn,r)){var o=vn(n,r);return!o||!Q(wn,r)||Q(n,un)&&n[un][r]||(o.enumerable=!0),o}},Un=function(e){var t=bn(W(e)),n=[];return sn(t,(function(e){Q(wn,e)||Q(Oe,e)||n.push(e)})),n},Wn=function(e){var t=e===hn,n=bn(t?Sn:W(e)),r=[];return sn(n,(function(e){!Q(wn,e)||t&&!Q(hn,e)||r.push(wn[e])})),r};if(G||(Ve((pn=function(){if(this instanceof pn)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ut(arguments[0]):void 0,t=te(e),n=function(e){this===hn&&n.call(Sn,e),Q(this,un)&&Q(this[un],t)&&(this[un][t]=!1),On(this,t,K(1,e))};return T&&En&&On(hn,t,{configurable:!0,set:n}),Kn(t,e)}).prototype,"toString",(function(){return dn(this).tag})),Ve(pn,"withoutSetter",(function(e){return Kn(te(e),e)})),O.f=Zn,ve.f=Cn,he.f=xn,Me.f=qt.f=Un,qe.f=Wn,Qt.f=function(e){return Kn(ie(e),e)},T&&(mn(pn.prototype,"description",{configurable:!0,get:function(){return dn(this).description}}),Ve(hn,"propertyIsEnumerable",Zn,{unsafe:!0}))),st({global:!0,wrap:!0,forced:!G,sham:!G},{Symbol:pn}),sn(Yt(Tn),(function(e){tn(e)})),st({target:"Symbol",stat:!0,forced:!G},{for:function(e){var t=ut(e);if(Q(In,t))return In[t];var n=pn(t);return In[t]=n,kn[n]=t,n},keyFor:function(e){if(!B(e))throw TypeError(e+" is not a symbol");if(Q(kn,e))return kn[e]},useSetter:function(){En=!0},useSimple:function(){En=!1}}),st({target:"Object",stat:!0,forced:!G,sham:!T},{create:function(e,t){return void 0===t?zt(e):Rn(zt(e),t)},defineProperty:Cn,defineProperties:Rn,getOwnPropertyDescriptor:xn}),st({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Un,getOwnPropertySymbols:Wn}),st({target:"Object",stat:!0,forced:k((function(){qe.f(1)}))},{getOwnPropertySymbols:function(e){return qe.f(M(e))}}),yn){var Fn=!G||k((function(){var e=pn();return"[null]"!=yn([e])||"{}"!=yn({a:e})||"{}"!=yn(Object(e))}));st({target:"JSON",stat:!0,forced:Fn},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(F(t)||void 0!==e)&&!B(e))return kt(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!B(t))return t}),o[1]=t,yn.apply(null,o)}})}pn.prototype[ln]||me(pn.prototype,ln,pn.prototype.valueOf),on(pn,"Symbol"),Oe[un]=!0,tn("asyncIterator");var Vn=ve.f,Ln=I.Symbol;if(T&&"function"==typeof Ln&&(!("description"in Ln.prototype)||void 0!==Ln().description)){var Xn={},Yn=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Yn?new Ln(e):void 0===e?Ln():Ln(e);return""===e&&(Xn[t]=!0),t};$e(Yn,Ln);var An=Yn.prototype=Ln.prototype;An.constructor=Yn;var Pn=An.toString,Nn="Symbol(test)"==String(Ln("test")),jn=/^Symbol\((.*)\)[^)]+$/;Vn(An,"description",{configurable:!0,get:function(){var e=F(this)?this.valueOf():this,t=Pn.call(e);if(Q(Xn,e))return"";var n=Nn?t.slice(7,-1):t.replace(jn,"$1");return""===n?void 0:n}}),st({global:!0,forced:!0},{Symbol:Yn})}tn("hasInstance"),tn("isConcatSpreadable"),tn("iterator"),tn("match"),tn("matchAll"),tn("replace"),tn("search"),tn("species"),tn("split"),tn("toPrimitive"),tn("toStringTag"),tn("unscopables"),on(I.JSON,"JSON",!0),on(Math,"Math",!0),st({global:!0},{Reflect:{}}),on(I.Reflect,"Reflect",!0),$t.Symbol;var Gn,Jn,Bn,zn=function(e){return function(t,n){var r,o,i=ut(U(t)),c=Ye(n),a=i.length;return c<0||c>=a?e?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?e?i.charAt(c):r:e?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},Hn={codeAt:zn(!1),charAt:zn(!0)},Dn=!k((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mn=Ee("IE_PROTO"),qn=Object.prototype,Qn=Dn?Object.getPrototypeOf:function(e){return e=M(e),Q(e,Mn)?e[Mn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?qn:null},$n=ie("iterator"),er=!1;[].keys&&("next"in(Bn=[].keys())?(Jn=Qn(Qn(Bn)))!==Object.prototype&&(Gn=Jn):er=!0),(null==Gn||k((function(){var e={};return Gn[$n].call(e)!==e})))&&(Gn={}),Q(Gn,$n)||me(Gn,$n,(function(){return this}));var tr={IteratorPrototype:Gn,BUGGY_SAFARI_ITERATORS:er},nr={},rr=tr.IteratorPrototype,or=function(){return this},ir=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 pe(n),function(e){if(!F(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),cr=tr.IteratorPrototype,ar=tr.BUGGY_SAFARI_ITERATORS,sr=ie("iterator"),ur=function(){return this},lr=function(e,t,n,r,o,i,c){!function(e,t,n){var r=t+" Iterator";e.prototype=zt(rr,{next:K(1,n)}),on(e,r,!1),nr[r]=or}(n,t,r);var a,s,u,l=function(e){if(e===o&&y)return y;if(!ar&&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[sr]||h["@@iterator"]||o&&h[o],y=!ar&&p||l(o),v="Array"==t&&h.entries||p;if(v&&(a=Qn(v.call(new e)),cr!==Object.prototype&&a.next&&(Qn(a)!==cr&&(ir?ir(a,cr):"function"!=typeof a[sr]&&me(a,sr,ur)),on(a,f,!0))),"values"==o&&p&&"values"!==p.name&&(d=!0,y=function(){return p.call(this)}),h[sr]!==y&&me(h,sr,y),nr[t]=y,o)if(s={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},c)for(u in s)(ar||d||!(u in h))&&Ve(h,u,s[u]);else st({target:t,proto:!0,forced:ar||d},s);return s},fr=Hn.charAt,dr=Fe.set,hr=Fe.getterFor("String Iterator");lr(String,"String",(function(e){dr(this,{type:"String Iterator",string:ut(e),index:0})}),(function(){var e,t=hr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=fr(n,r),t.index+=e.length,{value:e,done:!1})}));var pr=function(e){var t=e.return;if(void 0!==t)return pe(t.call(e)).value},yr=function(e,t,n,r){try{return r?t(pe(n)[0],n[1]):t(n)}catch(t){throw pr(e),t}},vr=ie("iterator"),mr=Array.prototype,br=function(e){return void 0!==e&&(nr.Array===e||mr[vr]===e)},gr=ie("iterator"),wr=function(e){if(null!=e)return e[gr]||e["@@iterator"]||nr[Vt(e)]},Sr=ie("iterator"),Ir=!1;try{var kr=0,Tr={next:function(){return{done:!!kr++}},return:function(){Ir=!0}};Tr[Sr]=function(){return this},Array.from(Tr,(function(){throw 2}))}catch(s){}var _r=function(e,t){if(!t&&!Ir)return!1;var n=!1;try{var r={};r[Sr]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Er=!_r((function(e){Array.from(e)}));st({target:"Array",stat:!0,forced:Er},{from:function(e){var t,n,r,o,i,c,a=M(e),s="function"==typeof this?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=wr(a),h=0;if(f&&(l=wt(l,u>2?arguments[2]:void 0,2)),null==d||s==Array&&br(d))for(n=new s(t=Pe(a.length));t>h;h++)c=f?l(a[h],h):a[h],Tt(n,h,c);else for(i=(o=d.call(a)).next,n=new s;!(r=i.call(o)).done;h++)c=f?yr(o,l,[r.value,h],!0):r.value,Tt(n,h,c);return n.length=h,n}}),$t.Array.from;var Or,Kr,Cr,Rr="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Zr=ve.f,xr=I.Int8Array,Ur=xr&&xr.prototype,Wr=I.Uint8ClampedArray,Fr=Wr&&Wr.prototype,Vr=xr&&Qn(xr),Lr=Ur&&Qn(Ur),Xr=Object.prototype,Yr=Xr.isPrototypeOf,Ar=ie("toStringTag"),Pr=te("TYPED_ARRAY_TAG"),Nr=te("TYPED_ARRAY_CONSTRUCTOR"),jr=Rr&&!!ir&&"Opera"!==Vt(I.opera),Gr=!1,Jr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Br={BigInt64Array:8,BigUint64Array:8},zr=function(e){if(!F(e))return!1;var t=Vt(e);return Q(Jr,t)||Q(Br,t)};for(Or in Jr)(Cr=(Kr=I[Or])&&Kr.prototype)?me(Cr,Nr,Kr):jr=!1;for(Or in Br)(Cr=(Kr=I[Or])&&Kr.prototype)&&me(Cr,Nr,Kr);if((!jr||"function"!=typeof Vr||Vr===Function.prototype)&&(Vr=function(){throw TypeError("Incorrect invocation")},jr))for(Or in Jr)I[Or]&&ir(I[Or],Vr);if((!jr||!Lr||Lr===Xr)&&(Lr=Vr.prototype,jr))for(Or in Jr)I[Or]&&ir(I[Or].prototype,Lr);if(jr&&Qn(Fr)!==Lr&&ir(Fr,Lr),T&&!Q(Lr,Ar))for(Or in Gr=!0,Zr(Lr,Ar,{get:function(){return F(this)?this[Pr]:void 0}}),Jr)I[Or]&&me(I[Or],Pr,Or);var Hr={NATIVE_ARRAY_BUFFER_VIEWS:jr,TYPED_ARRAY_CONSTRUCTOR:Nr,TYPED_ARRAY_TAG:Gr&&Pr,aTypedArray:function(e){if(zr(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(ir&&!Yr.call(Vr,e))throw TypeError("Target is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n){if(T){if(n)for(var r in Jr){var o=I[r];if(o&&Q(o.prototype,e))try{delete o.prototype[e]}catch(e){}}Lr[e]&&!n||Ve(Lr,e,n?t:jr&&Ur[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(T){if(ir){if(n)for(r in Jr)if((o=I[r])&&Q(o,e))try{delete o[e]}catch(e){}if(Vr[e]&&!n)return;try{return Ve(Vr,e,n?t:jr&&Vr[e]||t)}catch(e){}}for(r in Jr)!(o=I[r])||o[e]&&!n||Ve(o,e,t)}},isView:function(e){if(!F(e))return!1;var t=Vt(e);return"DataView"===t||Q(Jr,t)||Q(Br,t)},isTypedArray:zr,TypedArray:Vr,TypedArrayPrototype:Lr},Dr=ie("species"),Mr=Hr.TYPED_ARRAY_CONSTRUCTOR,qr=Hr.aTypedArrayConstructor,Qr=Hr.aTypedArray,$r=[].slice;(0,Hr.exportTypedArrayMethod)("slice",(function(e,t){for(var n=$r.call(Qr(this),e,t),r=function(e){return qr((t=e,n=e[Mr],void 0===(o=pe(t).constructor)||null==(r=pe(o)[Dr])?n:gt(r)));var t,n,r,o}(this),o=0,i=n.length,c=new r(i);i>o;)c[o]=n[o++];return c}),k((function(){new Int8Array(1).slice()})));var eo=ie("unscopables"),to=Array.prototype;null==to[eo]&&ve.f(to,eo,{configurable:!0,value:zt(null)});var no=function(e){to[eo][e]=!0},ro=Je.includes;st({target:"Array",proto:!0},{includes:function(e){return ro(this,e,arguments.length>1?arguments[1]:void 0)}}),no("includes"),It("Array","includes"),st({target:"String",proto:!0,forced:!ht("includes")},{includes:function(e){return!!~ut(U(this)).indexOf(ut(ft(e)),arguments.length>1?arguments[1]:void 0)}}),It("String","includes");var oo=Fe.set,io=Fe.getterFor("Array Iterator");lr(Array,"Array",(function(e,t){oo(this,{type:"Array Iterator",target:W(e),index:0,kind:t})}),(function(){var e=io(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"),nr.Arguments=nr.Array,no("keys"),no("values"),no("entries");var co=!k((function(){return Object.isExtensible(Object.preventExtensions({}))})),ao=b((function(e){var t=ve.f,n=!1,r=te("meta"),o=0,i=Object.isExtensible||function(){return!0},c=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Me.f,t=[].splice,o={};o[r]=1,e(o).length&&(Me.f=function(n){for(var o=e(n),i=0,c=o.length;i<c;i++)if(o[i]===r){t.call(o,i,1);break}return o},st({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qt.f}))},fastKey:function(e,t){if(!F(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Q(e,r)){if(!i(e))return"F";if(!t)return"E";c(e)}return e[r].objectID},getWeakData:function(e,t){if(!Q(e,r)){if(!i(e))return!0;if(!t)return!1;c(e)}return e[r].weakData},onFreeze:function(e){return co&&n&&i(e)&&!Q(e,r)&&c(e),e}};Oe[r]=!0}));ao.enable,ao.fastKey,ao.getWeakData,ao.onFreeze;var so=function(e,t){this.stopped=e,this.result=t},uo=function(e,t,n){var r,o,i,c,a,s,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=wt(t,l,1+f+h),y=function(e){return r&&pr(r),new so(!0,e)},v=function(e){return f?(pe(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=wr(e)))throw TypeError("Target is not iterable");if(br(o)){for(i=0,c=Pe(e.length);c>i;i++)if((a=v(e[i]))&&a instanceof so)return a;return new so(!1)}r=o.call(e)}for(s=r.next;!(u=s.call(r)).done;){try{a=v(u.value)}catch(e){throw pr(r),e}if("object"==typeof a&&a&&a instanceof so)return a}return new so(!1)},lo=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},fo=function(e,t,n){for(var r in t)Ve(e,r,t[r],n);return e},ho=ie("species"),po=ve.f,yo=ao.fastKey,vo=Fe.set,mo=Fe.getterFor;function bo(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 go(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 c=n.then;if("function"==typeof c)return void c.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 c=0;c<r.length;c++)i(c,r[c])}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",c=I.Set,a=c&&c.prototype,s=c,u={},l=function(e){var t=a[e];Ve(a,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!F(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!F(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!F(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(ct(e,"function"!=typeof c||!(o||a.forEach&&!k((function(){(new c).entries().next()})))))s=n.getConstructor(t,e,r,i),ao.enable();else if(ct(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,h=k((function(){f.has(1)})),p=_r((function(e){new c(e)})),y=!o&&k((function(){for(var e=new c,t=5;t--;)e[i](t,t);return!e.has(-0)}));p||((s=t((function(t,n){lo(t,s,e);var o=function(e,t,n){var r,o;return ir&&"function"==typeof(r=t.constructor)&&r!==n&&F(o=r.prototype)&&o!==n.prototype&&ir(e,o),e}(new c,t,s);return null!=n&&uo(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=a,a.constructor=s),(h||y)&&(l("delete"),l("has"),r&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}u.Set=s,st({global:!0,forced:s!=c},u),on(s,e),o||n.setStrong(s,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,i){lo(e,o,t),vo(e,{type:t,index:zt(null),first:void 0,last:void 0,size:0}),T||(e.size=0),null!=i&&uo(i,e[r],{that:e,AS_ENTRIES:n})})),i=mo(t),c=function(e,t,n){var r,o,c=i(e),s=a(e,t);return s?s.value=n:(c.last=s={index:o=yo(t,!0),key:t,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=s),r&&(r.next=s),T?c.size++:e.size++,"F"!==o&&(c.index[o]=s)),e},a=function(e,t){var n,r=i(e),o=yo(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return fo(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,T?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=a(t,e);if(r){var o=r.next,c=r.previous;delete n.index[r.index],r.removed=!0,c&&(c.next=o),o&&(o.previous=c),n.first==r&&(n.first=o),n.last==r&&(n.last=c),T?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=wt(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!!a(this,e)}}),fo(o.prototype,n?{get:function(e){var t=a(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)}}),T&&po(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=mo(t),i=mo(r);lr(e,t,(function(e,t){vo(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=L(e),n=ve.f;T&&t&&!t[ho]&&n(t,ho,{configurable:!0,get:function(){return this}})}(t)}}),$t.Set;var wo=setTimeout;function So(e){return Boolean(e&&void 0!==e.length)}function Io(){}function ko(e){if(!(this instanceof ko))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=[],Co(e,this)}function To(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,ko._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 Eo(t.promise,e)}_o(t.promise,r)}else(1===e._state?_o:Eo)(t.promise,e._value)}))):e._deferreds.push(t)}function _o(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 ko)return e._state=3,e._value=t,void Oo(e);if("function"==typeof n)return void Co((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,Oo(e)}catch(t){Eo(e,t)}var r,o}function Eo(e,t){e._state=2,e._value=t,Oo(e)}function Oo(e){2===e._state&&0===e._deferreds.length&&ko._immediateFn((function(){e._handled||ko._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)To(e,e._deferreds[t]);e._deferreds=null}function Ko(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function Co(e,t){var n=!1;try{e((function(e){n||(n=!0,_o(t,e))}),(function(e){n||(n=!0,Eo(t,e))}))}catch(e){if(n)return;n=!0,Eo(t,e)}}ko.prototype.catch=function(e){return this.then(null,e)},ko.prototype.then=function(e,t){var n=new this.constructor(Io);return To(this,new Ko(e,t,n)),n},ko.prototype.finally=bo,ko.all=function(e){return new ko((function(t,n){if(!So(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,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,(function(t){i(e,t)}),n)}r[e]=c,0==--o&&t(r)}catch(e){n(e)}}for(var c=0;c<r.length;c++)i(c,r[c])}))},ko.allSettled=go,ko.resolve=function(e){return e&&"object"==typeof e&&e.constructor===ko?e:new ko((function(t){t(e)}))},ko.reject=function(e){return new ko((function(t,n){n(e)}))},ko.race=function(e){return new ko((function(t,n){if(!So(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)ko.resolve(e[r]).then(t,n)}))},ko._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){wo(e,0)},ko._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var Ro=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 Ro.Promise?Ro.Promise=ko:Ro.Promise.prototype.finally?Ro.Promise.allSettled||(Ro.Promise.allSettled=go):Ro.Promise.prototype.finally=bo,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 c=t<e.length;if(!c||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!c)return o.join("");e=e.subarray(t),i=t=0}if(0==(128&(c=e[t++])))r[i++]=c;else if(192==(224&c)){var a=63&e[t++];r[i++]=(31&c)<<6|a}else if(224==(240&c)){a=63&e[t++];var s=63&e[t++];r[i++]=(31&c)<<12|a<<6|s}else 240==(248&c)&&(65535<(c=(7&c)<<18|(a=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(c-=65536,r[i++]=c>>>10&1023|55296,c=56320|1023&c),r[i++]=c)}}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 c=e.charCodeAt(t++);if(55296<=c&&56319>=c){if(t<n){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,c=((1023&c)<<10)+(1023&a)+65536)}if(55296<=c&&56319>=c)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(a=new Uint8Array(o)).set(i),i=a),0==(4294967168&c))i[r++]=c;else{if(0==(4294965248&c))i[r++]=c>>>6&31|192;else if(0==(4294901760&c))i[r++]=c>>>12&15|224,i[r++]=c>>>6&63|128;else{if(0!=(4292870144&c))continue;i[r++]=c>>>18&7|240,i[r++]=c>>>12&63|128,i[r++]=c>>>6&63|128}i[r++]=63&c|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:v),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&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?i(e):t}function a(e){var t=function(){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}}();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 c(this,n)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var l=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}(),f=function(t){r(s,t);var c=a(s);function s(){var t;return e(this,s),(t=c.call(this)).listeners||l.call(i(t)),Object.defineProperty(i(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(i(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(s,[{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)),u(o(s.prototype),"dispatchEvent",this).call(this,e)}}]),s}(l),d=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new f,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}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(d.prototype[Symbol.toStringTag]="AbortController",f.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(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})(e)&&(e.AbortController=d,e.AbortSignal=f)}("undefined"!=typeof self?self:v)}();var Zo=b((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()}}));m(Zo);var xo=m(b((function(e,t){var n=v&&v.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(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(c,a)}s((r=r.apply(e,t||[])).next())}))},r=v&&v.__generator||function(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)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 c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}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,a])}}};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 c(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}var a=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(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,a){return void 0===a&&(a=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()+c(4),s=Date.now()+a,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()+c(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,Zo.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(Zo.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),Zo.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(Zo.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 c(){if(i||(window.removeEventListener("storage",c),e.removeFromWaiting(c),clearTimeout(a),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n()}}window.addEventListener("storage",c),e.addToWaiting(c);var a=setTimeout(c,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,c;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(c=n.getItem(i))?[2]:(c=JSON.parse(c)).id!==this.id?[3,2]:[4,Zo.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItem(i),Zo.default().unlock(c.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,c=0;c<r.length;c++){var a=r[c];if(a.includes(o)){var s=n.getItem(a);null!==s&&(void 0===(s=JSON.parse(s)).timeRefreshed&&s.timeAcquired<t||void 0!==s.timeRefreshed&&s.timeRefreshed<t)&&(n.removeItem(a),i=!0)}}i&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=a}))),Uo={timeoutInSeconds:60},Wo=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],Fo={name:"auth0-spa-js",version:"1.18.0"},Vo=function(e){function t(n,r){var o=e.call(this,r)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return u(t,e),t.fromPayload=function(e){return new t(e.error,e.error_description)},t}(Error),Lo=function(e){function t(n,r,o,i){void 0===i&&(i=null);var c=e.call(this,n,r)||this;return c.state=o,c.appState=i,Object.setPrototypeOf(c,t.prototype),c}return u(t,e),t}(Vo),Xo=function(e){function t(){var n=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,t.prototype),n}return u(t,e),t}(Vo),Yo=function(e){function t(n){var r=e.call(this)||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return u(t,e),t}(Xo),Ao=function(e){function t(n){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return u(t,e),t}(Vo),Po=function(e){function t(n,r,o){var i=e.call(this,n,r)||this;return i.mfa_token=o,Object.setPrototypeOf(i,t.prototype),i}return u(t,e),t}(Vo),No=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 Ao(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new Yo(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(c){if(c.data&&"authorization_response"===c.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),c.data.response.error)return n(Vo.fromPayload(c.data.response));t(c.data.response)}},window.addEventListener("message",r)}))},jo=function(){return window.crypto||window.msCrypto},Go=function(){var e=jo();return e.subtle||e.webkitSubtle},Jo=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(jo().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},Bo=function(e){return btoa(e)},zo=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},Ho=function(e){return d(void 0,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:return t=Go().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()]}}))}))},Do=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,"+"))},Mo=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,y([],p(Array.from(t))))))},qo=function(e,t){return d(void 0,void 0,void 0,(function(){var n,r;return h(this,(function(o){switch(o.label){case 0:return[4,(i=e,c=t,c=c||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],a={},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 a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in n.open(c.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]),a[t]=a[t]?a[t]+","+n:n})),e(s())},n.onerror=t,n.withCredentials="include"==c.credentials,c.headers)n.setRequestHeader(u,c.headers[u]);n.send(c.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,c}))}))},Qo=function(e,t,n){return d(void 0,void 0,void 0,(function(){var r,o;return h(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([qo(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},$o=function(e,t,n,r,o,i,c){return d(void 0,void 0,void 0,(function(){return h(this,(function(a){return[2,(s={auth:{audience:t,scope:n},timeout:o,fetchUrl:e,fetchOptions:r,useFormData:c},u=i,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(s,[n.port2])})))];var s,u}))}))},ei=function(e,t,n,r,o,i,c){return void 0===c&&(c=1e4),d(void 0,void 0,void 0,(function(){return h(this,(function(a){return o?[2,$o(e,t,n,r,c,o,i)]:[2,Qo(e,r,c)]}))}))};function ti(e,t,n,r,o,i,c){return d(this,void 0,void 0,(function(){var a,s,u,l,d,p,y,v,m;return h(this,(function(h){switch(h.label){case 0:a=null,u=0,h.label=1;case 1:if(!(u<3))return[3,6];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,ei(e,n,r,o,i,c,t)];case 3:return s=h.sent(),a=null,[3,6];case 4:return l=h.sent(),a=l,[3,5];case 5:return u++,[3,1];case 6:if(a)throw a.message=a.message||"Failed to fetch",a;if(d=s.json,p=d.error,y=d.error_description,v=f(d,["error","error_description"]),!s.ok){if(m=y||"HTTP error. Unable to fetch "+e,"mfa_required"===p)throw new Po(p,m,v.mfa_token);throw new Vo(p||"request_error",m)}return[2,v]}}))}))}function ni(e,t){var n=e.baseUrl,r=e.timeout,o=e.audience,i=e.scope,c=e.auth0Client,a=e.useFormData,s=f(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return d(this,void 0,void 0,(function(){var e;return h(this,(function(u){switch(u.label){case 0:return e=a?zo(s):JSON.stringify(s),[4,ti(n+"/oauth/token",r,o||"default",i,{method:"POST",body:e,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(c||Fo))}},t,a)];case 1:return[2,u.sent()]}}))}))}var ri=function(e){return Array.from(new Set(e))},oi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ri(e.join(" ").trim().split(/\s+/)).join(" ")},ii=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=p(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}(),ci=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}(),ai=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)}})},si=function(){function e(e,t){this.cache=e,this.keyManifest=t}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),d(this,void 0,void 0,(function(){var r,o,i,c;return h(this,(function(a){switch(a.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=a.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=a.sent())?(i=this.matchExistingCacheKey(e,o),[4,this.cache.get(i)]):[2];case 3:r=a.sent(),a.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 a.sent(),[2,r.body];case 6:return[4,this.cache.remove(e.toKey())];case 7:return a.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 8:return a.sent(),[2];case 9:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return d(this,void 0,void 0,(function(){var n,r;return h(this,(function(o){switch(o.label){case 0:return n=new ii({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(e){var t;return d(this,void 0,void 0,(function(){var n,r=this;return h(this,(function(o){switch(o.label){case 0:return[4,this.getCacheKeys()];case 1:return(n=o.sent())?[4,n.filter((function(t){return!e||t.includes(e)})).reduce((function(e,t){return d(r,void 0,void 0,(function(){return h(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 o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.clear()];case 3:return o.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){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 d(this,void 0,void 0,(function(){var t;return h(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=ii.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}(),ui=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="a0.spajs.txs."+t,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}(),li=function(e){return"number"==typeof e},fi=["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"],di=b((function(e,t){var n=v&&v.__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("="),c=i.slice(1).join("=");'"'===c.charAt(0)&&(c=c.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=c.replace(r,decodeURIComponent)}catch(e){}}return t}function c(){return i(document.cookie)}function a(e,t,r){document.cookie=o(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=c,t.get=function(e){return c()[e]},t.set=a,t.remove=function(e,t){a(e,"",n(n({},t),{expires:-1}))}}));m(di),di.encode,di.parse,di.getAll;var hi=di.get,pi=di.set,yi=di.remove,vi={get:function(e){var t=hi(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),pi(e,JSON.stringify(t),r)},remove:function(e){yi(e)}},mi={get:function(e){return vi.get(e)||vi.get("_legacy_"+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),pi("_legacy_"+e,JSON.stringify(t),r),vi.save(e,t,n)},remove:function(e){vi.remove(e),vi.remove("_legacy_"+e)}},bi={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)}};var gi,wi=("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQogICAgQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULAogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NCiAgICBMT1NTIE9GIFVTRSwgREFUQSBPUiBQUk9GSVRTLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgTkVHTElHRU5DRSBPUgogICAgT1RIRVIg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8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",null,!1,function(e){return gi=gi||function(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,c=o.substring(i)+(r?"//# sourceMappingURL="+r:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU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D0yO2Nhc2UgMjpyZXR1cm4gdC50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKG09aSxuZXcgUHJvbWlzZSgoZnVuY3Rpb24oZSl7cmV0dXJuIHNldFRpbWVvdXQoZSxtKX0pKSksZmV0Y2goYyxlKHt9LGYpKV0pXTtjYXNlIDM6cmV0dXJuIHY9dC5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiB3PXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOncubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHY/WzQsdi5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4ocj10LnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",null,false),new Worker(gi,e)}),Si={},Ii=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 d(this,void 0,void 0,(function(){var n,r;return h(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:y([],p(n))})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return d(this,void 0,void 0,(function(){var t,n;return h(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:y([],p(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}(),ki=new xo,Ti={memory:function(){return(new ai).enclosedCache},localstorage:function(){return new ci}},_i=function(e){return Ti[e]},Ei=function(){function e(e){var t,n,r;if(this.options=e,"undefined"!=typeof window&&function(){if(!jo())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Go())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)r=e.cache;else{if(this.cacheLocation=e.cacheLocation||"memory",!_i(this.cacheLocation))throw new Error('Invalid cache location "'+this.cacheLocation+'"');r=_i(this.cacheLocation)()}this.cookieStorage=!1===e.legacySameSiteCookie?vi:mi,this.orgHintCookieName="auth0."+this.options.client_id+".organization_hint",this.isAuthenticatedCookieName=function(e){return"auth0."+e+".is.authenticated"}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var o,i=e.useCookiesForTransactions?this.cookieStorage:bi;this.scope=this.options.scope,this.transactionManager=new ui(i,this.options.client_id),this.cacheManager=new si(r,r.allKeys?null:new Ii(r,this.options.client_id)),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:"https://"+o),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://"+e+"/":t+"/"}(this.options.issuer,this.domainUrl),this.defaultScope=oi("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=oi(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&!/Trident.*rv:11\.0/.test(navigator.userAgent)&&(this.worker=new wi),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,f(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||Fo)));return""+this.domainUrl+e+"&auth0Client="+t},e.prototype._getParams=function(e,t,n,r,o){var i=this.options;i.domain,i.leeway,i.useRefreshTokens,i.useCookiesForTransactions,i.useFormData,i.auth0Client,i.cacheLocation,i.advancedOptions;var c=f(i,["domain","leeway","useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions"]);return l(l(l({},c),e),{scope:oi(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:n,redirect_uri:o||this.options.redirect_uri,code_challenge:r,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?"+zo(e))},e.prototype._verifyIdToken=function(e,t,n){return function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=p(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(Do(o)),a={__raw:e},s={};return Object.keys(c).forEach((function(e){a[e]=c[e],fi.includes(e)||(s[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Do(r)),claims:a,user:s}}(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&&!li(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(!li(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!li(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(li(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(li(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}({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._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e):this.cookieStorage.remove(this.orgHintCookieName)},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,d,p,y;return h(this,(function(h){switch(h.label){case 0:return t=e.redirect_uri,n=e.appState,r=f(e,["redirect_uri","appState"]),o=Bo(Jo()),i=Bo(Jo()),c=Jo(),[4,Ho(c)];case 1:return a=h.sent(),s=Mo(a),u=e.fragment?"#"+e.fragment:"",d=this._getParams(r,o,i,s,t),p=this._authorizeUrl(d),y=e.organization||this.options.organization,this.transactionManager.create(l({nonce:i,code_verifier:c,appState:n,scope:d.scope,audience:d.audience||"default",redirect_uri:d.redirect_uri},y&&{organizationId:y})),[2,p+u]}}))}))},e.prototype.loginWithPopup=function(e,t){return d(this,void 0,void 0,(function(){var n,r,o,i,c,a,s,u,d,p,y,v,m;return h(this,(function(h){switch(h.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("","auth0:authorize:popup","left="+t+",top="+n+",width=400,height=600,resizable,scrollbars=yes,status=1")}()),n=f(e,[]),r=Bo(Jo()),o=Bo(Jo()),i=Jo(),[4,Ho(i)];case 1:return c=h.sent(),a=Mo(c),s=this._getParams(n,r,o,a,this.options.redirect_uri||window.location.origin),u=this._authorizeUrl(l(l({},s),{response_mode:"web_message"})),t.popup.location.href=u,[4,No(l(l({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(d=h.sent(),r!==d.state)throw new Error("Invalid state");return[4,ni({audience:s.audience,scope:s.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:i,code:d.code,grant_type:"authorization_code",redirect_uri:s.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},this.worker)];case 3:return p=h.sent(),y=e.organization||this.options.organization,v=this._verifyIdToken(p.id_token,o,y),m=l(l({},p),{decodedToken:v,scope:s.scope,audience:s.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 4:return h.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(v.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=oi(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ii({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={}),d(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=oi(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ii({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={}),d(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return t=e.redirectMethod,n=f(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return r=o.sent(),window.location[t||"assign"](r),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,f,d;return h(this,(function(h){switch(h.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(n=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=p(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("")),r=n.state,o=n.code,i=n.error,c=n.error_description,!(a=this.transactionManager.get())||!a.code_verifier)throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Lo(i,c,r,a.appState);return s={audience:a.audience,scope:a.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},void 0!==a.redirect_uri&&(s.redirect_uri=a.redirect_uri),[4,ni(s,this.worker)];case 1:return u=h.sent(),f=this._verifyIdToken(u.id_token,a.nonce,a.organizationId),d=l(l({},u),{decodedToken:f,audience:a.audience,scope:a.scope,client_id:this.options.client_id}),[4,this.cacheManager.set(d)];case 2:return h.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(f.claims.org_id),[2,{appState:a.appState}]}}))}))},e.prototype.checkSession=function(e){return d(this,void 0,void 0,(function(){var t;return h(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}),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(),!Wo.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o=this;return h(this,(function(i){return t=l(l({audience:this.options.audience,ignoreCache:!1},e),{scope:oi(this.defaultScope,this.scope,e.scope)}),n=t.ignoreCache,r=f(t,["ignoreCache"]),[2,(c=function(){return o._getTokenSilently(l({ignoreCache:n},r))},a=this.options.client_id+"::"+r.audience+"::"+r.scope,s=Si[a],s||(s=c().finally((function(){delete Si[a],s=null})),Si[a]=s),s)];var c,a,s}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a=this;return h(this,(function(s){switch(s.label){case 0:return t=e.ignoreCache,n=f(e,["ignoreCache"]),r=function(){return d(a,void 0,void 0,(function(){var e;return h(this,(function(t){switch(t.label){case 0:return[4,this.cacheManager.get(new ii({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id}),60)];case 1:return[2,(e=t.sent())&&e.access_token]}}))}))},t?[3,2]:[4,r()];case 1:if(o=s.sent())return[2,o];s.label=2;case 2:return[4,(u=function(){return ki.acquireLock("auth0.lock.getTokenSilently",5e3)},p=10,void 0===p&&(p=3),d(void 0,void 0,void 0,(function(){var e;return h(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<p?[4,u()]:[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(!s.sent())return[3,15];s.label=4;case 4:return s.trys.push([4,,12,14]),t?[3,6]:[4,r()];case 5:if(o=s.sent())return[2,o];s.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(n)]:[3,8];case 7:return c=s.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(n)];case 9:c=s.sent(),s.label=10;case 10:return i=c,[4,this.cacheManager.set(l({client_id:this.options.client_id},i))];case 11:return s.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2,i.access_token];case 12:return[4,ki.releaseLock("auth0.lock.getTokenSilently")];case 13:return s.sent(),[7];case 14:return[3,16];case 15:throw new Xo;case 16:return[2]}var u,p}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),d(this,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=oi(this.defaultScope,this.scope,e.scope),t=l(l({},Uo),t),[4,this.loginWithPopup(e,t)];case 1:return n.sent(),[4,this.cacheManager.get(new ii({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,n.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return d(this,void 0,void 0,(function(){return h(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=f(e,["federated"]),r=t?"&federated":"";return this._url("/v2/logout?"+zo(n))+r},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,r=f(e,["localOnly"]);if(n&&r.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var o=function(){if(t.cookieStorage.remove(t.orgHintCookieName),t.cookieStorage.remove(t.isAuthenticatedCookieName),!n){var e=t.buildLogoutUrl(r);window.location.assign(e)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return o()}));this.cacheManager.clearSync(),o()},e.prototype._getTokenFromIFrame=function(e){return d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,d,p,y,v,m,b,g;return h(this,(function(h){switch(h.label){case 0:return t=Bo(Jo()),n=Bo(Jo()),r=Jo(),[4,Ho(r)];case 1:o=h.sent(),i=Mo(o),c=this._getParams(e,t,n,i,e.redirect_uri||this.options.redirect_uri||window.location.origin),(a=this.cookieStorage.get(this.orgHintCookieName))&&!c.organization&&(c.organization=a),s=this._authorizeUrl(l(l({},c),{prompt:"none",response_mode:"web_message"})),u=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h.label=2;case 2:if(h.trys.push([2,5,,6]),window.crossOriginIsolated)throw new Vo("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return[4,(w=s,S=this.domainUrl,I=u,void 0===I&&(I=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 Xo),o()}),1e3*I);r=function(n){if(n.origin==S&&n.data&&"authorization_response"===n.data.type){var c=n.source;c&&c.close(),n.data.response.error?t(Vo.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",w)})))];case 3:if(d=h.sent(),t!==d.state)throw new Error("Invalid state");return p=e.scope,y=e.audience,v=f(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds"]),[4,ni(l(l(l({},this.customOptions),v),{scope:p,audience:y,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:d.code,grant_type:"authorization_code",redirect_uri:c.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 4:return m=h.sent(),b=this._verifyIdToken(m.id_token,n),this._processOrgIdHint(b.claims.org_id),[2,l(l({},m),{decodedToken:b,scope:c.scope,audience:c.audience||"default"})];case 5:throw"login_required"===(g=h.sent()).error&&this.logout({localOnly:!0}),g;case 6:return[2]}var w,S,I}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return h(this,(function(d){switch(d.label){case 0:return e.scope=oi(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new ii({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=d.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return[2,d.sent()];case 3:n=e.redirect_uri||this.options.redirect_uri||window.location.origin,o=e.scope,i=e.audience,c=f(e,["scope","audience","ignoreCache","timeoutInSeconds"]),a="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,d.label=4;case 4:return d.trys.push([4,6,,9]),[4,ni(l(l(l(l(l({},this.customOptions),c),{audience:i,scope:o,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),a&&{timeout:a}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 5:return r=d.sent(),[3,9];case 6:return"The web worker is missing the refresh token"===(s=d.sent()).message||s.message&&s.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return[2,d.sent()];case 8:throw s;case 9:return u=this._verifyIdToken(r.id_token),[2,l(l({},r),{decodedToken:u,scope:e.scope,audience:e.audience||"default"})]}}))}))},e}(),Oi={isAuthenticated:!1,isLoading:!0},Ki=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},Ci=o(o({},Oi),{buildAuthorizeUrl:Ki,buildLogoutUrl:Ki,getAccessTokenSilently:Ki,getAccessTokenWithPopup:Ki,getIdTokenClaims:Ki,loginWithRedirect:Ki,loginWithPopup:Ki,logout:Ki,handleRedirectCallback:Ki}),Ri=t.createContext(Ci),Zi=function(e){function t(t,n){var r=e.call(this,n||t)||this;return r.error=t,r.error_description=n,r}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),xi=/[?&]code=[^&]+/,Ui=/[?&]state=[^&]+/,Wi=/[?&]error=[^&]+/,Fi=function(e){return function(t){return"error"in t?new Zi(t.error,t.error_description):t instanceof Error?t:new Error(e)}},Vi=Fi("Login failed"),Li=Fi("Get access token failed"),Xi=function(e,t){var n,r;switch(t.type){case"LOGIN_POPUP_STARTED":return o(o({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return o(o({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return(null===(n=e.user)||void 0===n?void 0:n.updated_at)===(null===(r=t.user)||void 0===r?void 0:r.updated_at)?e:o(o({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return o(o({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return o(o({},e),{isLoading:!1,error:t.error})}},Yi=function(e){if(e){var t=e.redirectUri,n=i(e,["redirectUri"]);return o(o({},n),{redirect_uri:t})}},Ai=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},Pi=function(){return t.useContext(Ri)},Ni=function(){return n.createElement(n.Fragment,null)},ji=function(){return""+window.location.pathname+window.location.search};e.Auth0Context=Ri,e.Auth0Provider=function(e){var r=e.children,s=e.skipRedirectCallback,u=e.onRedirectCallback,l=void 0===u?Ai:u,f=i(e,["children","skipRedirectCallback","onRedirectCallback"]),d=t.useState((function(){return new Ei(function(e){var t=e.clientId,n=e.redirectUri,r=e.maxAge,c=i(e,["clientId","redirectUri","maxAge"]);return o(o({},c),{client_id:t,redirect_uri:n,max_age:r,auth0Client:{name:"auth0-react",version:"1.8.0"}})}(f))}))[0],h=t.useReducer(Xi,Oi),p=h[0],y=h[1];t.useEffect((function(){c(void 0,void 0,void 0,(function(){var e,t,n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),void 0===o&&(o=window.location.search),!xi.test(o)&&!Wi.test(o)||!Ui.test(o)||s?[3,2]:[4,d.handleRedirectCallback()];case 1:return e=r.sent().appState,l(e),[3,4];case 2:return[4,d.checkSession()];case 3:r.sent(),r.label=4;case 4:return[4,d.getUser()];case 5:return t=r.sent(),y({type:"INITIALISED",user:t}),[3,7];case 6:return n=r.sent(),y({type:"ERROR",error:Vi(n)}),[3,7];case 7:return[2]}var o}))}))}),[d,l,s]);var v=t.useCallback((function(e){return d.buildAuthorizeUrl(Yi(e))}),[d]),m=t.useCallback((function(e){return d.buildLogoutUrl(e)}),[d]),b=t.useCallback((function(e){return d.loginWithRedirect(Yi(e))}),[d]),g=t.useCallback((function(e,t){return c(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:y({type:"LOGIN_POPUP_STARTED"}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,d.loginWithPopup(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),y({type:"ERROR",error:Vi(n)}),[2];case 4:return[4,d.getUser()];case 5:return r=o.sent(),y({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[d]),w=t.useCallback((function(e){void 0===e&&(e={});var t=d.logout(e);if(e.localOnly){if(t&&"function"==typeof t.then)return t.then((function(){return y({type:"LOGOUT"})}));y({type:"LOGOUT"})}return t}),[d]),S=t.useCallback((function(e){return c(void 0,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,d.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw n=i.sent(),Li(n);case 3:return r=y,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return r.apply(void 0,[(o.user=i.sent(),o)]),[7];case 5:return[2,t]}}))}))}),[d]),I=t.useCallback((function(e,t){return c(void 0,void 0,void 0,(function(){var n,r,o,i;return a(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,5]),[4,d.getTokenWithPopup(e,t)];case 1:return n=c.sent(),[3,5];case 2:throw r=c.sent(),Li(r);case 3:return o=y,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return o.apply(void 0,[(i.user=c.sent(),i)]),[7];case 5:return[2,n]}}))}))}),[d]),k=t.useCallback((function(e){return d.getIdTokenClaims(e)}),[d]),T=t.useCallback((function(e){return c(void 0,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,d.handleRedirectCallback(e)];case 1:return[2,o.sent()];case 2:throw t=o.sent(),Li(t);case 3:return n=y,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,d.getUser()];case 4:return n.apply(void 0,[(r.user=o.sent(),r)]),[7];case 5:return[2]}}))}))}),[d]);return n.createElement(Ri.Provider,{value:o(o({},p),{buildAuthorizeUrl:v,buildLogoutUrl:m,getAccessTokenSilently:S,getAccessTokenWithPopup:I,getIdTokenClaims:k,loginWithRedirect:b,loginWithPopup:g,logout:w,handleRedirectCallback:T})},r)},e.InMemoryCache=ai,e.LocalStorageCache=ci,e.OAuthError=Zi,e.User=function(){},e.useAuth0=Pi,e.withAuth0=function(e){return function(t){return n.createElement(Ri.Consumer,null,(function(r){return n.createElement(e,o({auth0:r},t))}))}},e.withAuthenticationRequired=function(e,r){return void 0===r&&(r={}),function(i){var s=this,u=Pi(),l=u.user,f=u.isAuthenticated,d=u.isLoading,h=u.loginWithRedirect,p=r.returnTo,y=void 0===p?ji:p,v=r.onRedirecting,m=void 0===v?Ni:v,b=r.loginOptions,g=void 0===b?{}:b,w=r.claimCheck,S=f&&(void 0===w?function(){return!0}:w)(l);return t.useEffect((function(){if(!d&&!S){var e=o(o({},g),{appState:o(o({},g.appState),{returnTo:"function"==typeof y?y():y})});c(s,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,h(e)];case 1:return t.sent(),[2]}}))}))}}),[d,S,h,g,y]),S?n.createElement(e,o({},i)):m()}},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
30
30
|
//# sourceMappingURL=auth0-react.min.js.map
|