@auth0/auth0-react 1.10.2 → 1.12.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.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).reactAuth0={},e.React)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),o=function(e,t){return(o=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)};
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).reactAuth0={},e.React)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),o=function(e,t){return o=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])},o(e,t)};
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,19 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var i=function(){return(i=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 c(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 a(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 s(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
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
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 l(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 d=function(){return(d=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 p(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 y(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 m(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e,t){return e(t={exports:{}},t.exports),t.exports}var w,S,I=function(e){return e&&e.Math==Math&&e},k=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof b&&b)||function(){return this}()||Function("return this")(),K=function(e){try{return!!e()}catch(e){return!0}},Z=!K((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=!K((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),T=Function.prototype.call,C=R?T.bind(T):function(){return T.apply(T,arguments)},G={}.propertyIsEnumerable,W=Object.getOwnPropertyDescriptor,U={f:W&&!G.call({1:2},1)?function(e){var t=W(this,e);return!!t&&t.enumerable}:G},x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X=Function.prototype,_=X.bind,V=X.call,O=R&&_.bind(V,V),E=R?function(e){return e&&O(e)}:function(e){return e&&function(){return V.apply(e,arguments)}},L=E({}.toString),F=E("".slice),j=function(e){return F(L(e),8,-1)},J=k.Object,N=E("".split),Y=K((function(){return!J("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?N(e,""):J(e)}:J,P=k.TypeError,H=function(e){if(null==e)throw P("Can't call method on "+e);return e},B=function(e){return Y(H(e))},A=function(e){return"function"==typeof e},z=function(e){return"object"==typeof e?null!==e:A(e)},D=function(e){return A(e)?e:void 0},M=function(e,t){return arguments.length<2?D(k[e]):k[e]&&k[e][t]},q=E({}.isPrototypeOf),Q=M("navigator","userAgent")||"",$=k.process,ee=k.Deno,te=$&&$.versions||ee&&ee.version,ne=te&&te.v8;ne&&(S=(w=ne.split("."))[0]>0&&w[0]<4?1:+(w[0]+w[1])),!S&&Q&&(!(w=Q.match(/Edge\/(\d+)/))||w[1]>=74)&&(w=Q.match(/Chrome\/(\d+)/))&&(S=+w[1]);var re=S,oe=!!Object.getOwnPropertySymbols&&!K((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&re&&re<41})),ie=oe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ce=k.Object,ae=ie?function(e){return"symbol"==typeof e}:function(e){var t=M("Symbol");return A(t)&&q(t.prototype,ce(e))},se=k.String,ue=function(e){try{return se(e)}catch(e){return"Object"}},le=k.TypeError,de=function(e){if(A(e))return e;throw le(ue(e)+" is not a function")},fe=function(e,t){var n=e[t];return null==n?void 0:de(n)},pe=k.TypeError,he=Object.defineProperty,ye=function(e,t){try{he(k,e,{value:t,configurable:!0,writable:!0})}catch(n){k[e]=t}return t},me=k["__core-js_shared__"]||ye("__core-js_shared__",{}),be=g((function(e){(e.exports=function(e,t){return me[e]||(me[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),ve=k.Object,ge=function(e){return ve(H(e))},we=E({}.hasOwnProperty),Se=Object.hasOwn||function(e,t){return we(ge(e),t)},Ie=0,ke=Math.random(),Ke=E(1..toString),Ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ke(++Ie+ke,36)},Re=be("wks"),Te=k.Symbol,Ce=Te&&Te.for,Ge=ie?Te:Te&&Te.withoutSetter||Ze,We=function(e){if(!Se(Re,e)||!oe&&"string"!=typeof Re[e]){var t="Symbol."+e;oe&&Se(Te,e)?Re[e]=Te[e]:Re[e]=ie&&Ce?Ce(t):Ge(t)}return Re[e]},Ue=k.TypeError,xe=We("toPrimitive"),Xe=function(e){var t=function(e,t){if(!z(e)||ae(e))return e;var n,r=fe(e,xe);if(r){if(void 0===t&&(t="default"),n=C(r,e,t),!z(n)||ae(n))return n;throw Ue("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&A(n=e.toString)&&!z(r=C(n,e)))return r;if(A(n=e.valueOf)&&!z(r=C(n,e)))return r;if("string"!==t&&A(n=e.toString)&&!z(r=C(n,e)))return r;throw pe("Can't convert object to primitive value")}(e,t)}(e,"string");return ae(t)?t:t+""},_e=k.document,Ve=z(_e)&&z(_e.createElement),Oe=function(e){return Ve?_e.createElement(e):{}},Ee=!Z&&!K((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Le=Object.getOwnPropertyDescriptor,Fe={f:Z?Le:function(e,t){if(e=B(e),t=Xe(t),Ee)try{return Le(e,t)}catch(e){}if(Se(e,t))return x(!C(U.f,e,t),e[t])}},je=Z&&K((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Je=k.String,Ne=k.TypeError,Ye=function(e){if(z(e))return e;throw Ne(Je(e)+" is not an object")},Pe=k.TypeError,He=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Ae={f:Z?je?function(e,t,n){if(Ye(e),t=Xe(t),Ye(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Be(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return He(e,t,n)}:He:function(e,t,n){if(Ye(e),t=Xe(t),Ye(n),Ee)try{return He(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Pe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ze=Z?function(e,t,n){return Ae.f(e,t,x(1,n))}:function(e,t,n){return e[t]=n,e},De=Function.prototype,Me=Z&&Object.getOwnPropertyDescriptor,qe=Se(De,"name"),Qe={EXISTS:qe,PROPER:qe&&"something"===function(){}.name,CONFIGURABLE:qe&&(!Z||Z&&Me(De,"name").configurable)},$e=E(Function.toString);A(me.inspectSource)||(me.inspectSource=function(e){return $e(e)});var et,tt,nt,rt=me.inspectSource,ot=k.WeakMap,it=A(ot)&&/native code/.test(rt(ot)),ct=be("keys"),at=function(e){return ct[e]||(ct[e]=Ze(e))},st={},ut=k.TypeError,lt=k.WeakMap;if(it||me.state){var dt=me.state||(me.state=new lt),ft=E(dt.get),pt=E(dt.has),ht=E(dt.set);et=function(e,t){if(pt(dt,e))throw new ut("Object already initialized");return t.facade=e,ht(dt,e,t),t},tt=function(e){return ft(dt,e)||{}},nt=function(e){return pt(dt,e)}}else{var yt=at("state");st[yt]=!0,et=function(e,t){if(Se(e,yt))throw new ut("Object already initialized");return t.facade=e,ze(e,yt,t),t},tt=function(e){return Se(e,yt)?e[yt]:{}},nt=function(e){return Se(e,yt)}}var mt={set:et,get:tt,has:nt,enforce:function(e){return nt(e)?tt(e):et(e,{})},getterFor:function(e){return function(t){var n;if(!z(t)||(n=tt(t)).type!==e)throw ut("Incompatible receiver, "+e+" required");return n}}},bt=g((function(e){var t=Ae.f,n=Qe.CONFIGURABLE,r=mt.enforce,o=mt.get,i=!K((function(){return 8!==t((function(){}),"length",{value:8}).length})),c=String(String).split("String"),a=e.exports=function(e,o,a){"Symbol("===String(o).slice(0,7)&&(o="["+String(o).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(o="get "+o),a&&a.setter&&(o="set "+o),(!Se(e,"name")||n&&e.name!==o)&&t(e,"name",{value:o,configurable:!0}),i&&a&&Se(a,"arity")&&e.length!==a.arity&&t(e,"length",{value:a.arity});var s=r(e);return Se(s,"source")||(s.source=c.join("string"==typeof o?o:"")),e};Function.prototype.toString=a((function(){return A(this)&&o(this).source||rt(this)}),"toString")})),vt=function(e,t,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,c=!!r&&!!r.noTargetGet,a=r&&void 0!==r.name?r.name:t;return A(n)&&bt(n,a,r),e===k?(i?e[t]=n:ye(t,n),e):(o?!c&&e[t]&&(i=!0):delete e[t],i?e[t]=n:ze(e,t,n),e)},gt=Math.ceil,wt=Math.floor,St=function(e){var t=+e;return t!=t||0===t?0:(t>0?wt:gt)(t)},It=Math.max,kt=Math.min,Kt=function(e,t){var n=St(e);return n<0?It(n+t,0):kt(n,t)},Zt=Math.min,Rt=function(e){return e>0?Zt(St(e),9007199254740991):0},Tt=function(e){return Rt(e.length)},Ct=function(e){return function(t,n,r){var o,i=B(t),c=Tt(i),a=Kt(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}},Gt={includes:Ct(!0),indexOf:Ct(!1)},Wt=Gt.indexOf,Ut=E([].push),xt=function(e,t){var n,r=B(e),o=0,i=[];for(n in r)!Se(st,n)&&Se(r,n)&&Ut(i,n);for(;t.length>o;)Se(r,n=t[o++])&&(~Wt(i,n)||Ut(i,n));return i},Xt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_t=Xt.concat("length","prototype"),Vt={f:Object.getOwnPropertyNames||function(e){return xt(e,_t)}},Ot={f:Object.getOwnPropertySymbols},Et=E([].concat),Lt=M("Reflect","ownKeys")||function(e){var t=Vt.f(Ye(e)),n=Ot.f;return n?Et(t,n(e)):t},Ft=function(e,t,n){for(var r=Lt(t),o=Ae.f,i=Fe.f,c=0;c<r.length;c++){var a=r[c];Se(e,a)||n&&Se(n,a)||o(e,a,i(t,a))}},jt=/#|\.prototype\./,Jt=function(e,t){var n=Yt[Nt(e)];return n==Ht||n!=Pt&&(A(t)?K(t):!!t)},Nt=Jt.normalize=function(e){return String(e).replace(jt,".").toLowerCase()},Yt=Jt.data={},Pt=Jt.NATIVE="N",Ht=Jt.POLYFILL="P",Bt=Jt,At=Fe.f,zt=function(e,t){var n,r,o,i,c,a=e.target,s=e.global,u=e.stat;if(n=s?k:u?k[a]||ye(a,{}):(k[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(c=At(n,r))&&c.value:n[r],!Bt(s?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ft(i,o)}(e.sham||o&&o.sham)&&ze(i,"sham",!0),vt(n,r,i,e)}},Dt={};Dt[We("toStringTag")]="z";var Mt,qt="[object z]"===String(Dt),Qt=We("toStringTag"),$t=k.Object,en="Arguments"==j(function(){return arguments}()),tn=qt?j: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=$t(e),Qt))?n:en?j(t):"Object"==(r=j(t))&&A(t.callee)?"Arguments":r},nn=k.String,rn=function(e){if("Symbol"===tn(e))throw TypeError("Cannot convert a Symbol value to a string");return nn(e)},on=We("match"),cn=k.TypeError,an=function(e){if(function(e){var t;return z(e)&&(void 0!==(t=e[on])?!!t:"RegExp"==j(e))}(e))throw cn("The method doesn't accept regular expressions");return e},sn=We("match"),un=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[sn]=!1,"/./"[e](t)}catch(e){}}return!1},ln=Fe.f,dn=E("".startsWith),fn=E("".slice),pn=Math.min,hn=un("startsWith"),yn=!(hn||(Mt=ln(String.prototype,"startsWith"),!Mt||Mt.writable));zt({target:"String",proto:!0,forced:!yn&&!hn},{startsWith:function(e){var t=rn(H(this));an(e);var n=Rt(pn(arguments.length>1?arguments[1]:void 0,t.length)),r=rn(e);return dn?dn(t,r,n):fn(t,n,n+r.length)===r}});var mn=function(e,t){return E(k[e].prototype[t])};mn("String","startsWith");var bn=Array.isArray||function(e){return"Array"==j(e)},vn=function(e,t,n){var r=Xe(t);r in e?Ae.f(e,r,x(0,n)):e[r]=n},gn=function(){},wn=[],Sn=M("Reflect","construct"),In=/^\s*(?:class|function)\b/,kn=E(In.exec),Kn=!In.exec(gn),Zn=function(e){if(!A(e))return!1;try{return Sn(gn,wn,e),!0}catch(e){return!1}},Rn=function(e){if(!A(e))return!1;switch(tn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Kn||!!kn(In,rt(e))}catch(e){return!0}};Rn.sham=!0;var Tn=!Sn||K((function(){var e;return Zn(Zn.call)||!Zn(Object)||!Zn((function(){e=!0}))||e}))?Rn:Zn,Cn=We("species"),Gn=k.Array,Wn=function(e,t){return new(function(e){var t;return bn(e)&&(t=e.constructor,(Tn(t)&&(t===Gn||bn(t.prototype))||z(t)&&null===(t=t[Cn]))&&(t=void 0)),void 0===t?Gn:t}(e))(0===t?0:t)},Un=We("species"),xn=We("isConcatSpreadable"),Xn=k.TypeError,_n=re>=51||!K((function(){var e=[];return e[xn]=!1,e.concat()[0]!==e})),Vn=("concat",re>=51||!K((function(){var e=[];return(e.constructor={})[Un]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),On=function(e){if(!z(e))return!1;var t=e[xn];return void 0!==t?!!t:bn(e)};zt({target:"Array",proto:!0,arity:1,forced:!_n||!Vn},{concat:function(e){var t,n,r,o,i,c=ge(this),a=Wn(c,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(On(i=-1===t?c:arguments[t])){if(s+(o=Tt(i))>9007199254740991)throw Xn("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&vn(a,s,i[n])}else{if(s>=9007199254740991)throw Xn("Maximum allowed index exceeded");vn(a,s++,i)}return a.length=s,a}});var En=qt?{}.toString:function(){return"[object "+tn(this)+"]"};qt||vt(Object.prototype,"toString",En,{unsafe:!0});var Ln,Fn=Object.keys||function(e){return xt(e,Xt)},jn={f:Z&&!je?Object.defineProperties:function(e,t){Ye(e);for(var n,r=B(t),o=Fn(t),i=o.length,c=0;i>c;)Ae.f(e,n=o[c++],r[n]);return e}},Jn=M("document","documentElement"),Nn=at("IE_PROTO"),Yn=function(){},Pn=function(e){return"<script>"+e+"<\/script>"},Hn=function(e){e.write(Pn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Bn=function(){try{Ln=new ActiveXObject("htmlfile")}catch(e){}var e,t;Bn="undefined"!=typeof document?document.domain&&Ln?Hn(Ln):((t=Oe("iframe")).style.display="none",Jn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Pn("document.F=Object")),e.close(),e.F):Hn(Ln);for(var n=Xt.length;n--;)delete Bn.prototype[Xt[n]];return Bn()};st[Nn]=!0;var An=Object.create||function(e,t){var n;return null!==e?(Yn.prototype=Ye(e),n=new Yn,Yn.prototype=null,n[Nn]=e):n=Bn(),void 0===t?n:jn.f(n,t)},zn=k.Array,Dn=Math.max,Mn=Vt.f,qn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qn={f:function(e){return qn&&"Window"==j(e)?function(e){try{return Mn(e)}catch(e){return function(e,t,n){for(var r=Tt(e),o=Kt(void 0,r),i=Kt(r,r),c=zn(Dn(i-o,0)),a=0;o<i;o++,a++)vn(c,a,e[o]);return c.length=a,c}(qn)}}(e):Mn(B(e))}},$n={f:We},er=k,tr=Ae.f,nr=function(e){var t=er.Symbol||(er.Symbol={});Se(t,e)||tr(t,e,{value:$n.f(e)})},rr=function(){var e=M("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=We("toPrimitive");t&&!t[r]&&vt(t,r,(function(e){return C(n,this)}),{arity:1})},or=Ae.f,ir=We("toStringTag"),cr=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Se(e,ir)&&or(e,ir,{configurable:!0,value:t})},ar=E(E.bind),sr=function(e,t){return de(e),void 0===t?e:R?ar(e,t):function(){return e.apply(t,arguments)}},ur=E([].push),lr=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,d){for(var f,p,h=ge(s),y=Y(h),m=sr(u,l),b=Tt(y),v=0,g=d||Wn,w=t?g(s,b):n||c?g(s,0):void 0;b>v;v++)if((a||v in y)&&(p=m(f=y[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:ur(w,f)}else switch(e){case 4:return!1;case 7:ur(w,f)}return i?-1:r||o?o:w}},dr=[lr(0),lr(1),lr(2),lr(3),lr(4),lr(5),lr(6),lr(7)][0],fr=at("hidden"),pr=mt.set,hr=mt.getterFor("Symbol"),yr=Object.prototype,mr=k.Symbol,br=mr&&mr.prototype,vr=k.TypeError,gr=k.QObject,wr=Fe.f,Sr=Ae.f,Ir=Qn.f,kr=U.f,Kr=E([].push),Zr=be("symbols"),Rr=be("op-symbols"),Tr=be("wks"),Cr=!gr||!gr.prototype||!gr.prototype.findChild,Gr=Z&&K((function(){return 7!=An(Sr({},"a",{get:function(){return Sr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=wr(yr,t);r&&delete yr[t],Sr(e,t,n),r&&e!==yr&&Sr(yr,t,r)}:Sr,Wr=function(e,t){var n=Zr[e]=An(br);return pr(n,{type:"Symbol",tag:e,description:t}),Z||(n.description=t),n},Ur=function(e,t,n){e===yr&&Ur(Rr,t,n),Ye(e);var r=Xe(t);return Ye(n),Se(Zr,r)?(n.enumerable?(Se(e,fr)&&e[fr][r]&&(e[fr][r]=!1),n=An(n,{enumerable:x(0,!1)})):(Se(e,fr)||Sr(e,fr,x(1,{})),e[fr][r]=!0),Gr(e,r,n)):Sr(e,r,n)},xr=function(e,t){Ye(e);var n=B(t),r=Fn(n).concat(Or(n));return dr(r,(function(t){Z&&!C(Xr,n,t)||Ur(e,t,n[t])})),e},Xr=function(e){var t=Xe(e),n=C(kr,this,t);return!(this===yr&&Se(Zr,t)&&!Se(Rr,t))&&(!(n||!Se(this,t)||!Se(Zr,t)||Se(this,fr)&&this[fr][t])||n)},_r=function(e,t){var n=B(e),r=Xe(t);if(n!==yr||!Se(Zr,r)||Se(Rr,r)){var o=wr(n,r);return!o||!Se(Zr,r)||Se(n,fr)&&n[fr][r]||(o.enumerable=!0),o}},Vr=function(e){var t=Ir(B(e)),n=[];return dr(t,(function(e){Se(Zr,e)||Se(st,e)||Kr(n,e)})),n},Or=function(e){var t=e===yr,n=Ir(t?Rr:B(e)),r=[];return dr(n,(function(e){!Se(Zr,e)||t&&!Se(yr,e)||Kr(r,Zr[e])})),r};oe||(br=(mr=function(){if(q(br,this))throw vr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?rn(arguments[0]):void 0,t=Ze(e),n=function(e){this===yr&&C(n,Rr,e),Se(this,fr)&&Se(this[fr],t)&&(this[fr][t]=!1),Gr(this,t,x(1,e))};return Z&&Cr&&Gr(yr,t,{configurable:!0,set:n}),Wr(t,e)}).prototype,vt(br,"toString",(function(){return hr(this).tag})),vt(mr,"withoutSetter",(function(e){return Wr(Ze(e),e)})),U.f=Xr,Ae.f=Ur,jn.f=xr,Fe.f=_r,Vt.f=Qn.f=Vr,Ot.f=Or,$n.f=function(e){return Wr(We(e),e)},Z&&(Sr(br,"description",{configurable:!0,get:function(){return hr(this).description}}),vt(yr,"propertyIsEnumerable",Xr,{unsafe:!0}))),zt({global:!0,wrap:!0,forced:!oe,sham:!oe},{Symbol:mr}),dr(Fn(Tr),(function(e){nr(e)})),zt({target:"Symbol",stat:!0,forced:!oe},{useSetter:function(){Cr=!0},useSimple:function(){Cr=!1}}),zt({target:"Object",stat:!0,forced:!oe,sham:!Z},{create:function(e,t){return void 0===t?An(e):xr(An(e),t)},defineProperty:Ur,defineProperties:xr,getOwnPropertyDescriptor:_r}),zt({target:"Object",stat:!0,forced:!oe},{getOwnPropertyNames:Vr}),rr(),cr(mr,"Symbol"),st[fr]=!0;var Er=oe&&!!Symbol.for&&!!Symbol.keyFor,Lr=be("string-to-symbol-registry"),Fr=be("symbol-to-string-registry");zt({target:"Symbol",stat:!0,forced:!Er},{for:function(e){var t=rn(e);if(Se(Lr,t))return Lr[t];var n=M("Symbol")(t);return Lr[t]=n,Fr[n]=t,n}});var jr=be("symbol-to-string-registry");zt({target:"Symbol",stat:!0,forced:!Er},{keyFor:function(e){if(!ae(e))throw TypeError(ue(e)+" is not a symbol");if(Se(jr,e))return jr[e]}});var Jr=Function.prototype,Nr=Jr.apply,Yr=Jr.call,Pr="object"==typeof Reflect&&Reflect.apply||(R?Yr.bind(Nr):function(){return Yr.apply(Nr,arguments)}),Hr=E([].slice),Br=M("JSON","stringify"),Ar=E(/./.exec),zr=E("".charAt),Dr=E("".charCodeAt),Mr=E("".replace),qr=E(1..toString),Qr=/[\uD800-\uDFFF]/g,$r=/^[\uD800-\uDBFF]$/,eo=/^[\uDC00-\uDFFF]$/,to=!oe||K((function(){var e=M("Symbol")();return"[null]"!=Br([e])||"{}"!=Br({a:e})||"{}"!=Br(Object(e))})),no=K((function(){return'"\\udf06\\ud834"'!==Br("\udf06\ud834")||'"\\udead"'!==Br("\udead")})),ro=function(e,t){var n=Hr(arguments),r=t;if((z(t)||void 0!==e)&&!ae(e))return bn(t)||(t=function(e,t){if(A(r)&&(t=C(r,this,e,t)),!ae(t))return t}),n[1]=t,Pr(Br,null,n)},oo=function(e,t,n){var r=zr(n,t-1),o=zr(n,t+1);return Ar($r,e)&&!Ar(eo,o)||Ar(eo,e)&&!Ar($r,r)?"\\u"+qr(Dr(e,0),16):e};Br&&zt({target:"JSON",stat:!0,arity:3,forced:to||no},{stringify:function(e,t,n){var r=Hr(arguments),o=Pr(to?ro:Br,null,r);return no&&"string"==typeof o?Mr(o,Qr,oo):o}});var io=!oe||K((function(){Ot.f(1)}));zt({target:"Object",stat:!0,forced:io},{getOwnPropertySymbols:function(e){var t=Ot.f;return t?t(ge(e)):[]}}),nr("asyncIterator");var co=Ae.f,ao=k.Symbol,so=ao&&ao.prototype;if(Z&&A(ao)&&(!("description"in so)||void 0!==ao().description)){var uo={},lo=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:rn(arguments[0]),t=q(so,this)?new ao(e):void 0===e?ao():ao(e);return""===e&&(uo[t]=!0),t};Ft(lo,ao),lo.prototype=so,so.constructor=lo;var fo="Symbol(test)"==String(ao("test")),po=E(so.toString),ho=E(so.valueOf),yo=/^Symbol\((.*)\)[^)]+$/,mo=E("".replace),bo=E("".slice);co(so,"description",{configurable:!0,get:function(){var e=ho(this),t=po(e);if(Se(uo,e))return"";var n=fo?bo(t,7,-1):mo(t,yo,"$1");return""===n?void 0:n}}),zt({global:!0,forced:!0},{Symbol:lo})}nr("hasInstance"),nr("isConcatSpreadable"),nr("iterator"),nr("match"),nr("matchAll"),nr("replace"),nr("search"),nr("species"),nr("split"),nr("toPrimitive"),rr(),nr("toStringTag"),cr(M("Symbol"),"Symbol"),nr("unscopables"),cr(k.JSON,"JSON",!0),cr(Math,"Math",!0),zt({global:!0},{Reflect:{}}),cr(k.Reflect,"Reflect",!0),er.Symbol;var vo,go,wo,So=E("".charAt),Io=E("".charCodeAt),ko=E("".slice),Ko=function(e){return function(t,n){var r,o,i=rn(H(t)),c=St(n),a=i.length;return c<0||c>=a?e?"":void 0:(r=Io(i,c))<55296||r>56319||c+1===a||(o=Io(i,c+1))<56320||o>57343?e?So(i,c):r:e?ko(i,c,c+2):o-56320+(r-55296<<10)+65536}},Zo={codeAt:Ko(!1),charAt:Ko(!0)},Ro=!K((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),To=at("IE_PROTO"),Co=k.Object,Go=Co.prototype,Wo=Ro?Co.getPrototypeOf:function(e){var t=ge(e);if(Se(t,To))return t[To];var n=t.constructor;return A(n)&&t instanceof n?n.prototype:t instanceof Co?Go:null},Uo=We("iterator"),xo=!1;[].keys&&("next"in(wo=[].keys())?(go=Wo(Wo(wo)))!==Object.prototype&&(vo=go):xo=!0),(null==vo||K((function(){var e={};return vo[Uo].call(e)!==e})))&&(vo={}),A(vo[Uo])||vt(vo,Uo,(function(){return this}));var Xo={IteratorPrototype:vo,BUGGY_SAFARI_ITERATORS:xo},_o={},Vo=Xo.IteratorPrototype,Oo=function(){return this},Eo=k.String,Lo=k.TypeError,Fo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=E(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ye(n),function(e){if("object"==typeof e||A(e))return e;throw Lo("Can't set "+Eo(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),jo=Qe.PROPER,Jo=Qe.CONFIGURABLE,No=Xo.IteratorPrototype,Yo=Xo.BUGGY_SAFARI_ITERATORS,Po=We("iterator"),Ho=function(){return this},Bo=function(e,t,n,r,o,i,c){!function(e,t,n,r){var o=t+" Iterator";e.prototype=An(Vo,{next:x(1,n)}),cr(e,o,!1),_o[o]=Oo}(n,t,r);var a,s,u,l=function(e){if(e===o&&y)return y;if(!Yo&&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)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[Po]||p["@@iterator"]||o&&p[o],y=!Yo&&h||l(o),m="Array"==t&&p.entries||h;if(m&&(a=Wo(m.call(new e)))!==Object.prototype&&a.next&&(Wo(a)!==No&&(Fo?Fo(a,No):A(a[Po])||vt(a,Po,Ho)),cr(a,d,!0)),jo&&"values"==o&&h&&"values"!==h.name&&(Jo?ze(p,"name","values"):(f=!0,y=function(){return C(h,this)})),o)if(s={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},c)for(u in s)(Yo||f||!(u in p))&&vt(p,u,s[u]);else zt({target:t,proto:!0,forced:Yo||f},s);return p[Po]!==y&&vt(p,Po,y,{name:o}),_o[t]=y,s},Ao=Zo.charAt,zo=mt.set,Do=mt.getterFor("String Iterator");Bo(String,"String",(function(e){zo(this,{type:"String Iterator",string:rn(e),index:0})}),(function(){var e,t=Do(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ao(n,r),t.index+=e.length,{value:e,done:!1})}));var Mo=function(e,t,n){var r,o;Ye(e);try{if(!(r=fe(e,"return"))){if("throw"===t)throw n;return n}r=C(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ye(r),n},qo=function(e,t,n,r){try{return r?t(Ye(n)[0],n[1]):t(n)}catch(t){Mo(e,"throw",t)}},Qo=We("iterator"),$o=Array.prototype,ei=function(e){return void 0!==e&&(_o.Array===e||$o[Qo]===e)},ti=We("iterator"),ni=function(e){if(null!=e)return fe(e,ti)||fe(e,"@@iterator")||_o[tn(e)]},ri=k.TypeError,oi=function(e,t){var n=arguments.length<2?ni(e):t;if(de(n))return Ye(C(n,e));throw ri(ue(e)+" is not iterable")},ii=k.Array,ci=We("iterator"),ai=!1;try{var si=0,ui={next:function(){return{done:!!si++}},return:function(){ai=!0}};ui[ci]=function(){return this},Array.from(ui,(function(){throw 2}))}catch(u){}var li=function(e,t){if(!t&&!ai)return!1;var n=!1;try{var r={};r[ci]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},di=!li((function(e){Array.from(e)}));zt({target:"Array",stat:!0,forced:di},{from:function(e){var t=ge(e),n=Tn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=sr(o,r>2?arguments[2]:void 0));var c,a,s,u,l,d,f=ni(t),p=0;if(!f||this==ii&&ei(f))for(c=Tt(t),a=n?new this(c):ii(c);c>p;p++)d=i?o(t[p],p):t[p],vn(a,p,d);else for(l=(u=oi(t,f)).next,a=n?new this:[];!(s=C(l,u)).done;p++)d=i?qo(u,o,[s.value,p],!0):s.value,vn(a,p,d);return a.length=p,a}}),er.Array.from;var fi,pi,hi,yi="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,mi=Ae.f,bi=k.Int8Array,vi=bi&&bi.prototype,gi=k.Uint8ClampedArray,wi=gi&&gi.prototype,Si=bi&&Wo(bi),Ii=vi&&Wo(vi),ki=Object.prototype,Ki=k.TypeError,Zi=We("toStringTag"),Ri=Ze("TYPED_ARRAY_TAG"),Ti=Ze("TYPED_ARRAY_CONSTRUCTOR"),Ci=yi&&!!Fo&&"Opera"!==tn(k.opera),Gi=!1,Wi={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ui={BigInt64Array:8,BigUint64Array:8},xi=function(e){if(!z(e))return!1;var t=tn(e);return Se(Wi,t)||Se(Ui,t)};for(fi in Wi)(hi=(pi=k[fi])&&pi.prototype)?ze(hi,Ti,pi):Ci=!1;for(fi in Ui)(hi=(pi=k[fi])&&pi.prototype)&&ze(hi,Ti,pi);if((!Ci||!A(Si)||Si===Function.prototype)&&(Si=function(){throw Ki("Incorrect invocation")},Ci))for(fi in Wi)k[fi]&&Fo(k[fi],Si);if((!Ci||!Ii||Ii===ki)&&(Ii=Si.prototype,Ci))for(fi in Wi)k[fi]&&Fo(k[fi].prototype,Ii);if(Ci&&Wo(wi)!==Ii&&Fo(wi,Ii),Z&&!Se(Ii,Zi))for(fi in Gi=!0,mi(Ii,Zi,{get:function(){return z(this)?this[Ri]:void 0}}),Wi)k[fi]&&ze(k[fi],Ri,fi);var Xi={NATIVE_ARRAY_BUFFER_VIEWS:Ci,TYPED_ARRAY_CONSTRUCTOR:Ti,TYPED_ARRAY_TAG:Gi&&Ri,aTypedArray:function(e){if(xi(e))return e;throw Ki("Target is not a typed array")},aTypedArrayConstructor:function(e){if(A(e)&&(!Fo||q(Si,e)))return e;throw Ki(ue(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(Z){if(n)for(var o in Wi){var i=k[o];if(i&&Se(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}Ii[e]&&!n||vt(Ii,e,n?t:Ci&&vi[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(Z){if(Fo){if(n)for(r in Wi)if((o=k[r])&&Se(o,e))try{delete o[e]}catch(e){}if(Si[e]&&!n)return;try{return vt(Si,e,n?t:Ci&&Si[e]||t)}catch(e){}}for(r in Wi)!(o=k[r])||o[e]&&!n||vt(o,e,t)}},isView:function(e){if(!z(e))return!1;var t=tn(e);return"DataView"===t||Se(Wi,t)||Se(Ui,t)},isTypedArray:xi,TypedArray:Si,TypedArrayPrototype:Ii},_i=k.TypeError,Vi=We("species"),Oi=Xi.TYPED_ARRAY_CONSTRUCTOR,Ei=Xi.aTypedArrayConstructor,Li=Xi.aTypedArray;(0,Xi.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Hr(Li(this),e,t),r=Ei(function(e,t){var n,r=Ye(e).constructor;return void 0===r||null==(n=Ye(r)[Vi])?t:function(e){if(Tn(e))return e;throw _i(ue(e)+" is not a constructor")}(n)}(this,this[Oi])),o=0,i=n.length,c=new r(i);i>o;)c[o]=n[o++];return c}),K((function(){new Int8Array(1).slice()})));var Fi=We("unscopables"),ji=Array.prototype;null==ji[Fi]&&Ae.f(ji,Fi,{configurable:!0,value:An(null)});var Ji=function(e){ji[Fi][e]=!0},Ni=Gt.includes,Yi=K((function(){return!Array(1).includes()}));zt({target:"Array",proto:!0,forced:Yi},{includes:function(e){return Ni(this,e,arguments.length>1?arguments[1]:void 0)}}),Ji("includes"),mn("Array","includes");var Pi=E("".indexOf);zt({target:"String",proto:!0,forced:!un("includes")},{includes:function(e){return!!~Pi(rn(H(this)),rn(an(e)),arguments.length>1?arguments[1]:void 0)}}),mn("String","includes");var Hi=Ae.f,Bi=mt.set,Ai=mt.getterFor("Array Iterator");Bo(Array,"Array",(function(e,t){Bi(this,{type:"Array Iterator",target:B(e),index:0,kind:t})}),(function(){var e=Ai(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var zi=_o.Arguments=_o.Array;if(Ji("keys"),Ji("values"),Ji("entries"),Z&&"values"!==zi.name)try{Hi(zi,"name",{value:"values"})}catch(u){}var Di=K((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Mi=Object.isExtensible,qi=K((function(){Mi(1)}))||Di?function(e){return!!z(e)&&(!Di||"ArrayBuffer"!=j(e))&&(!Mi||Mi(e))}:Mi,Qi=!K((function(){return Object.isExtensible(Object.preventExtensions({}))})),$i=g((function(e){var t=Ae.f,n=!1,r=Ze("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},c=e.exports={enable:function(){c.enable=function(){},n=!0;var e=Vt.f,t=E([].splice),o={};o[r]=1,e(o).length&&(Vt.f=function(n){for(var o=e(n),i=0,c=o.length;i<c;i++)if(o[i]===r){t(o,i,1);break}return o},zt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Qn.f}))},fastKey:function(e,t){if(!z(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Se(e,r)){if(!qi(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Se(e,r)){if(!qi(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Qi&&n&&qi(e)&&!Se(e,r)&&i(e),e}};st[r]=!0}));$i.enable,$i.fastKey,$i.getWeakData,$i.onFreeze;var ec=k.TypeError,tc=function(e,t){this.stopped=e,this.result=t},nc=tc.prototype,rc=function(e,t,n){var r,o,i,c,a,s,u,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=sr(t,l),y=function(e){return r&&Mo(r,"normal",e),new tc(!0,e)},m=function(e){return d?(Ye(e),p?h(e[0],e[1],y):h(e[0],e[1])):p?h(e,y):h(e)};if(f)r=e;else{if(!(o=ni(e)))throw ec(ue(e)+" is not iterable");if(ei(o)){for(i=0,c=Tt(e);c>i;i++)if((a=m(e[i]))&&q(nc,a))return a;return new tc(!1)}r=oi(e,o)}for(s=r.next;!(u=C(s,r)).done;){try{a=m(u.value)}catch(e){Mo(r,"throw",e)}if("object"==typeof a&&a&&q(nc,a))return a}return new tc(!1)},oc=k.TypeError,ic=function(e,t){if(q(t,e))return e;throw oc("Incorrect invocation")},cc=function(e,t,n){for(var r in t)vt(e,r,t[r],n);return e},ac=We("species"),sc=Ae.f,uc=$i.fastKey,lc=mt.set,dc=mt.getterFor;function fc(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 pc(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=k.Set,a=c&&c.prototype,s=c,u={},l=function(e){var t=E(a[e]);vt(a,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!z(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!z(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!z(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Bt(e,!A(c)||!(o||a.forEach&&!K((function(){(new c).entries().next()})))))s=n.getConstructor(t,e,r,i),$i.enable();else if(Bt(e,!0)){var d=new s,f=d[i](o?{}:-0,1)!=d,p=K((function(){d.has(1)})),h=li((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||((s=t((function(e,t){ic(e,a);var n=function(e,t,n){var r,o;return Fo&&A(r=t.constructor)&&r!==n&&z(o=r.prototype)&&o!==n.prototype&&Fo(e,o),e}(new c,e,s);return null!=t&&rc(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=s),(p||y)&&(l("delete"),l("has"),r&&l("get")),(y||f)&&l(i),o&&a.clear&&delete a.clear}u.Set=s,zt({global:!0,forced:s!=c},u),cr(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,o){ic(e,i),lc(e,{type:t,index:An(null),first:void 0,last:void 0,size:0}),Z||(e.size=0),null!=o&&rc(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,c=dc(t),a=function(e,t,n){var r,o,i=c(e),a=s(e,t);return a?a.value=n:(i.last=a={index:o=uc(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),Z?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},s=function(e,t){var n,r=c(e),o=uc(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return cc(i,{clear:function(){for(var e=c(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,Z?e.size=0:this.size=0},delete:function(e){var t=this,n=c(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Z?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=c(this),r=sr(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),cc(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),Z&&sc(i,"size",{get:function(){return c(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=dc(t),i=dc(r);Bo(e,t,(function(e,t){lc(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=M(e),n=Ae.f;Z&&t&&!t[ac]&&n(t,ac,{configurable:!0,get:function(){return this}})}(t)}}),er.Set;var hc=setTimeout;function yc(e){return Boolean(e&&void 0!==e.length)}function mc(){}function bc(e){if(!(this instanceof bc))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=[],kc(e,this)}function vc(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,bc._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 wc(t.promise,e)}gc(t.promise,r)}else(1===e._state?gc:wc)(t.promise,e._value)}))):e._deferreds.push(t)}function gc(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 bc)return e._state=3,e._value=t,void Sc(e);if("function"==typeof n)return void kc((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,Sc(e)}catch(t){wc(e,t)}var r,o}function wc(e,t){e._state=2,e._value=t,Sc(e)}function Sc(e){2===e._state&&0===e._deferreds.length&&bc._immediateFn((function(){e._handled||bc._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)vc(e,e._deferreds[t]);e._deferreds=null}function Ic(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function kc(e,t){var n=!1;try{e((function(e){n||(n=!0,gc(t,e))}),(function(e){n||(n=!0,wc(t,e))}))}catch(e){if(n)return;n=!0,wc(t,e)}}bc.prototype.catch=function(e){return this.then(null,e)},bc.prototype.then=function(e,t){var n=new this.constructor(mc);return vc(this,new Ic(e,t,n)),n},bc.prototype.finally=fc,bc.all=function(e){return new bc((function(t,n){if(!yc(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])}))},bc.allSettled=pc,bc.resolve=function(e){return e&&"object"==typeof e&&e.constructor===bc?e:new bc((function(t){t(e)}))},bc.reject=function(e){return new bc((function(t,n){n(e)}))},bc.race=function(e){return new bc((function(t,n){if(!yc(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)bc.resolve(e[r]).then(t,n)}))},bc._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){hc(e,0)},bc._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var Kc=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 Kc.Promise?Kc.Promise=bc:(Kc.Promise.prototype.finally||(Kc.Promise.prototype.finally=fc),Kc.Promise.allSettled||(Kc.Promise.allSettled=pc)),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:b),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function s(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 a(this,n)}}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function l(e,t,n){return(l="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 d=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(a,t);var i=s(a);function a(){var t;return e(this,a),(t=i.call(this)).listeners||d.call(c(t)),Object.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(a,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),l(o(a.prototype),"dispatchEvent",this).call(this,e)}}]),a}(d),p=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&&(p.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=p,e.AbortSignal=f)}("undefined"!=typeof self?self:b)}();var Zc=g((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()}}));v(Zc);var Rc=g((function(e,t){var n=b&&b.__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=b&&b.__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,d,f;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]:(d=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:d,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(f=l.getItem(u))&&(f=JSON.parse(f)).id===this.id&&f.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,Zc.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(Zc.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),Zc.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(Zc.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,Zc.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItem(i),Zc.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})),Tc=v(Rc),Cc={timeoutInSeconds:60},Gc=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],Wc={name:"auth0-spa-js",version:"1.22.0"},Uc=function(){return Date.now()},xc=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 l(t,e),t.fromPayload=function(e){return new t(e.error,e.error_description)},t}(Error),Xc=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 l(t,e),t}(xc),_c=function(e){function t(){var n=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,t.prototype),n}return l(t,e),t}(xc),Vc=function(e){function t(n){var r=e.call(this)||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return l(t,e),t}(_c),Oc=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 l(t,e),t}(xc),Ec=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 l(t,e),t}(xc),Lc=function(e){function t(n,r){var o=e.call(this,"missing_refresh_token","Missing Refresh Token (audience: '".concat(zc(n,["default"]),"', scope: '").concat(zc(r),"')"))||this;return o.audience=n,o.scope=r,Object.setPrototypeOf(o,t.prototype),o}return l(t,e),t}(xc),Fc=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 Oc(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new Vc(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(xc.fromPayload(c.data.response));t(c.data.response)}},window.addEventListener("message",r)}))},jc=function(){return window.crypto||window.msCrypto},Jc=function(){var e=jc();return e.subtle||e.webkitSubtle},Nc=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(jc().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},Yc=function(e){return btoa(e)},Pc=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},Hc=function(e){return p(void 0,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:return t=Jc().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()]}}))}))},Bc=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,"+"))},Ac=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,m([],y(Array.from(t)),!1))))};function zc(e,t){return void 0===t&&(t=[]),e&&!t.includes(e)?e:""}var Dc=function(e,t){return p(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}))}))},Mc=function(e,t,n){return p(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([Dc(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},qc=function(e,t,n,r,o,i,c){return p(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}))}))},Qc=function(e,t,n,r,o,i,c){return void 0===c&&(c=1e4),p(void 0,void 0,void 0,(function(){return h(this,(function(a){return o?[2,qc(e,t,n,r,c,o,i)]:[2,Mc(e,r,c)]}))}))};function $c(e,t,n,r,o,i,c){return p(this,void 0,void 0,(function(){var a,s,u,l,d,p,y,m,b;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,Qc(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,m=f(d,["error","error_description"]),!s.ok){if(b=y||"HTTP error. Unable to fetch ".concat(e),"mfa_required"===p)throw new Ec(p,b,m.mfa_token);throw new xc(p||"request_error",b)}return[2,m]}}))}))}function ea(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 p(this,void 0,void 0,(function(){var e;return h(this,(function(u){switch(u.label){case 0:return e=a?Pc(s):JSON.stringify(s),[4,$c("".concat(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||Wc))}},t,a)];case 1:return[2,u.sent()]}}))}))}var ta=function(e){return Array.from(new Set(e))},na=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ta(e.join(" ").trim().split(/\s+/)).join(" ")},ra=function(){function e(e,t){void 0===t&&(t="@@auth0spajs@@"),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return e.prototype.toKey=function(){return"".concat(this.prefix,"::").concat(this.client_id,"::").concat(this.audience,"::").concat(this.scope)},e.fromKey=function(t){var n=y(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}(),oa=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}(),ia=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)}})},ca=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||Uc}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),p(this,void 0,void 0,(function(){var r,o,i,c,a;return h(this,(function(s){switch(s.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=s.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=s.sent())?(i=this.matchExistingCacheKey(e,o))?[4,this.cache.get(i)]:[3,4]:[2];case 3:r=s.sent(),s.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return c=s.sent(),a=Math.floor(c/1e3),r.expiresAt-t<a?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return s.sent(),[2,r.body];case 7:return[4,this.cache.remove(e.toKey())];case 8:return s.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return s.sent(),[2];case 10:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return p(this,void 0,void 0,(function(){var n,r;return h(this,(function(o){switch(o.label){case 0:return n=new ra({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=o.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return o.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return p(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 p(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){return p(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return t=o.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return p(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=ra.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}(),aa=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId),this.transaction=this.storage.get(this.storageKey)}return e.prototype.create=function(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove(this.storageKey)},e}(),sa=function(e){return"number"==typeof e},ua=["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"],la=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=y(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(Bc(o)),a={__raw:e},s={};return Object.keys(c).forEach((function(e){a[e]=c[e],ua.includes(e)||(s[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Bc(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 "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!sa(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(!sa(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!sa(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=e.leeway||60,r=new Date(e.now||Date.now()),o=new Date(0),i=new Date(0),c=new Date(0);if(c.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),o.setUTCSeconds(t.claims.exp+n),i.setUTCSeconds(t.claims.nbf-n),r>o)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(o,")"));if(sa(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time (".concat(r,") is before ").concat(i));if(sa(t.claims.auth_time)&&r>c)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time (".concat(r,") is after last auth at ").concat(c));if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(e.organizationId,'", found "').concat(t.claims.org_id,'"'))}return t},da=g((function(e,t){var n=b&&b.__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}))}}));v(da),da.encode,da.parse,da.getAll;var fa=da.get,pa=da.set,ha=da.remove,ya={get:function(e){var t=fa(e);if(void 0!==t)return JSON.parse(t)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),pa(e,JSON.stringify(t),r)},remove:function(e){ha(e)}},ma={get:function(e){return ya.get(e)||ya.get("".concat("_legacy_").concat(e))},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),pa("".concat("_legacy_").concat(e),JSON.stringify(t),r),ya.save(e,t,n)},remove:function(e){ya.remove(e),ya.remove("".concat("_legacy_").concat(e))}},ba={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 va,ga=("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3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KTpmdW5jdGlvbih0LGUpe2RlbGV0ZSBzW3UodCxlKV19KG4seSksaC5wb3N0TWVzc2FnZSh7b2s6dy5vayxqc29uOnR9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIF89by5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Xy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIGcsbSxrLFB9KSl9KSl9KSl9KCk7Cgo=",null,!1,function(e){return va=va||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)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ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2UgMjpyZXR1cm4gby50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKGc9YyxuZXcgUHJvbWlzZSgoZnVuY3Rpb24odCl7cmV0dXJuIHNldFRpbWVvdXQodCxnKX0pKSksZmV0Y2goZixyKHt9LGwpKV0pXTtjYXNlIDM6cmV0dXJuIHc9by5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiBPPW8uc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOk8ubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHc/WzQsdy5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4odD1vLnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24odCxlLHIpe3NbdShlLHIpXT10fSh0LnJlZnJlc2hfdG9rZW4sbix5KSxkZWxldGUgdC5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbih0LGUpe2RlbGV0ZSBzW3UodCxlKV19KG4seSksaC5wb3N0TWVzc2FnZSh7b2s6dy5vayxqc29uOnR9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIF89by5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Xy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIGcsbSxrLFB9KSl9KSl9KSl9KCk7Cgo=",null,false),new Worker(va,e)}),wa={},Sa=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 p(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:m([],y(n),!1)})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return p(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:m([],y(n),!1)})]:[3,3]):[3,5];case 2:case 4:return[2,r.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 5:return[2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return"".concat("@@auth0spajs@@","::").concat(e)},e}(),Ia=new Tc,ka={memory:function(){return(new ia).enclosedCache},localstorage:function(){return new oa}},Ka=function(e){return ka[e]},Za=function(){function e(e){var t,n,r,o;if(this.options=e,"undefined"!=typeof window&&function(){if(!jc())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Jc())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",!Ka(this.cacheLocation))throw new Error('Invalid cache location "'.concat(this.cacheLocation,'"'));r=Ka(this.cacheLocation)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?ya:ma,this.orgHintCookieName=(o=this.options.client_id,"auth0.".concat(o,".organization_hint")),this.isAuthenticatedCookieName=function(e){return"auth0.".concat(e,".is.authenticated")}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var i,c=e.useCookiesForTransactions?this.cookieStorage:ba;this.scope=this.options.scope,this.transactionManager=new aa(c,this.options.client_id),this.nowProvider=this.options.nowProvider||Uc,this.cacheManager=new ca(r,r.allKeys?null:new Sa(r,this.options.client_id),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:"https://".concat(i)),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://".concat(e,"/"):"".concat(t,"/")}(this.options.issuer,this.domainUrl),this.defaultScope=na("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=na(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 ga),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),this.useRefreshTokensFallback=!1!==this.options.useRefreshTokensFallback}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Wc)));return"".concat(this.domainUrl).concat(e,"&auth0Client=").concat(t)},e.prototype._getParams=function(e,t,n,r,o){var i=this.options;i.useRefreshTokens,i.useCookiesForTransactions,i.useFormData,i.auth0Client,i.cacheLocation,i.advancedOptions,i.detailedResponse,i.nowProvider,i.authorizeTimeoutInSeconds,i.legacySameSiteCookie,i.sessionCheckExpiryDays,i.domain,i.leeway,i.httpTimeoutInSeconds;var c=f(i,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway","httpTimeoutInSeconds"]);return d(d(d({},c),e),{scope:na(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?".concat(Pc(e)))},e.prototype._verifyIdToken=function(e,t,n){return p(this,void 0,void 0,(function(){var r;return h(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return r=o.sent(),[2,la({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:r})]}}))}))},e.prototype._parseNumber=function(e){return"string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName)},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l,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=Yc(Nc()),i=Yc(Nc()),c=Nc(),[4,Hc(c)];case 1:return a=h.sent(),s=Ac(a),u=e.fragment?"#".concat(e.fragment):"",l=this._getParams(r,o,i,s,t),p=this._authorizeUrl(l),y=e.organization||this.options.organization,this.transactionManager.create(d({nonce:i,code_verifier:c,appState:n,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o},y&&{organizationId:y})),[2,p+u]}}))}))},e.prototype.loginWithPopup=function(e,t){return p(this,void 0,void 0,(function(){var n,r,o,i,c,a,s,u,l,p,y,m,b;return h(this,(function(h){switch(h.label){case 0:if(e=e||{},!(t=t||{}).popup&&(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup","left=".concat(t,",top=").concat(n,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))}(),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");return n=f(e,[]),r=Yc(Nc()),o=Yc(Nc()),i=Nc(),[4,Hc(i)];case 1:return c=h.sent(),a=Ac(c),s=this._getParams(n,r,o,a,this.options.redirect_uri||window.location.origin),u=this._authorizeUrl(d(d({},s),{response_mode:"web_message"})),t.popup.location.href=u,[4,Fc(d(d({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(l=h.sent(),r!==l.state)throw new Error("Invalid state");return[4,ea({audience:s.audience,scope:s.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:i,code:l.code,grant_type:"authorization_code",redirect_uri:s.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},this.worker)];case 3:return p=h.sent(),y=e.organization||this.options.organization,[4,this._verifyIdToken(p.id_token,o,y)];case 4:return m=h.sent(),b=d(d({},p),{decodedToken:m,scope:s.scope,audience:s.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(b)];case 5:return h.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(m.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),p(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=na(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ra({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={}),p(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=na(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new ra({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={}),p(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),p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l;return h(this,(function(f){switch(f.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=y(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()))throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Xc(i,c,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Error("Invalid state");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,timeout:this.httpTimeoutMs},void 0!==a.redirect_uri&&(s.redirect_uri=a.redirect_uri),[4,ea(s,this.worker)];case 1:return u=f.sent(),[4,this._verifyIdToken(u.id_token,a.nonce,a.organizationId)];case 2:return l=f.sent(),[4,this.cacheManager.set(d(d(d(d({},u),{decodedToken:l,audience:a.audience,scope:a.scope}),u.scope?{oauthTokenScope:u.scope}:null),{client_id:this.options.client_id}))];case 3:return f.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(l.claims.org_id),[2,{appState:a.appState}]}}))}))},e.prototype.checkSession=function(e){return p(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,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return n.sent(),[3,4];case 3:if(t=n.sent(),!Gc.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),p(this,void 0,void 0,(function(){var t,n,r,o=this;return h(this,(function(i){return t=d(d({audience:this.options.audience,ignoreCache:!1},e),{scope:na(this.defaultScope,this.scope,e.scope)}),n=t.ignoreCache,r=f(t,["ignoreCache"]),[2,(c=function(){return o._getTokenSilently(d({ignoreCache:n},r))},a="".concat(this.options.client_id,"::").concat(r.audience,"::").concat(r.scope),s=wa[a],s||(s=c().finally((function(){delete wa[a],s=null})),wa[a]=s),s)];var c,a,s}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return h(this,(function(l){switch(l.label){case 0:return t=e.ignoreCache,n=f(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 1:if(r=l.sent())return[2,r];l.label=2;case 2:return[4,(y=function(){return Ia.acquireLock("auth0.lock.getTokenSilently",5e3)},m=10,void 0===m&&(m=3),p(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<m?[4,y()]:[3,4];case 2:if(t.sent())return[2,!0];t.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!l.sent())return[3,15];l.label=4;case 4:return l.trys.push([4,,12,14]),t?[3,6]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 5:if(r=l.sent())return[2,r];l.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(n)]:[3,8];case 7:return i=l.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(n)];case 9:i=l.sent(),l.label=10;case 10:return o=i,[4,this.cacheManager.set(d({client_id:this.options.client_id},o))];case 11:return l.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),e.detailedResponse?(c=o.id_token,a=o.access_token,s=o.oauthTokenScope,u=o.expires_in,[2,d(d({id_token:c,access_token:a},s?{scope:s}:null),{expires_in:u})]):[2,o.access_token];case 12:return[4,Ia.releaseLock("auth0.lock.getTokenSilently")];case 13:return l.sent(),[7];case 14:return[3,16];case 15:throw new _c;case 16:return[2]}var y,m}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),p(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=na(this.defaultScope,this.scope,e.scope),t=d(d({},Cc),t),[4,this.loginWithPopup(e,t)];case 1:return n.sent(),[4,this.cacheManager.get(new ra({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 p(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?".concat(Pc(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 p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l,p,y,m,b,v,g,w;return h(this,(function(h){switch(h.label){case 0:return t=Yc(Nc()),n=Yc(Nc()),r=Nc(),[4,Hc(r)];case 1:o=h.sent(),i=Ac(o),c=f(e,["detailedResponse"]),a=this._getParams(c,t,n,i,e.redirect_uri||this.options.redirect_uri||window.location.origin),(s=this.cookieStorage.get(this.orgHintCookieName))&&!a.organization&&(a.organization=s),u=this._authorizeUrl(d(d({},a),{prompt:"none",response_mode:"web_message"})),h.label=2;case 2:if(h.trys.push([2,6,,7]),window.crossOriginIsolated)throw new xc("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return l=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,[4,(S=u,I=this.domainUrl,k=l,void 0===k&&(k=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,o=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1))},i=setTimeout((function(){t(new _c),o()}),1e3*k);r=function(n){if(n.origin==I&&n.data&&"authorization_response"===n.data.type){var c=n.source;c&&c.close(),n.data.response.error?t(xc.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3)}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",S)})))];case 3:if(p=h.sent(),t!==p.state)throw new Error("Invalid state");return y=e.scope,m=e.audience,b=f(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,ea(d(d(d({},this.customOptions),b),{scope:y,audience:m,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:p.code,grant_type:"authorization_code",redirect_uri:a.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:b.timeout||this.httpTimeoutMs}),this.worker)];case 4:return v=h.sent(),[4,this._verifyIdToken(v.id_token,n)];case 5:return g=h.sent(),this._processOrgIdHint(g.claims.org_id),[2,d(d({},v),{decodedToken:g,scope:a.scope,oauthTokenScope:v.scope,audience:a.audience||"default"})];case 6:throw"login_required"===(w=h.sent()).error&&this.logout({localOnly:!0}),w;case 7:return[2]}var S,I,k}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return h(this,(function(l){switch(l.label){case 0:return e.scope=na(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new ra({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=l.sent())&&t.refresh_token||this.worker?[3,4]:this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(e)]:[3,3];case 2:return[2,l.sent()];case 3:throw new Lc(e.audience||"default",e.scope);case 4:n=e.redirect_uri||this.options.redirect_uri||window.location.origin,o=e.scope,i=e.audience,c=f(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),a="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,l.label=5;case 5:return l.trys.push([5,7,,10]),[4,ea(d(d(d(d(d({},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,timeout:this.httpTimeoutMs}),this.worker)];case 6:return r=l.sent(),[3,10];case 7:return((s=l.sent()).message.indexOf("Missing Refresh Token")>-1||s.message&&s.message.indexOf("invalid refresh token")>-1)&&this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(e)]:[3,9];case 8:return[2,l.sent()];case 9:throw s;case 10:return[4,this._verifyIdToken(r.id_token)];case 11:return u=l.sent(),[2,d(d({},r),{decodedToken:u,scope:e.scope,oauthTokenScope:r.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,n=e.audience,r=e.client_id,o=e.getDetailedEntry,i=void 0!==o&&o;return p(this,void 0,void 0,(function(){var e,o,c,a,s;return h(this,(function(u){switch(u.label){case 0:return[4,this.cacheManager.get(new ra({scope:t,audience:n,client_id:r}),60)];case 1:return(e=u.sent())&&e.access_token?i?(o=e.id_token,c=e.access_token,a=e.oauthTokenScope,s=e.expires_in,[2,d(d({id_token:o,access_token:c},a?{scope:a}:null),{expires_in:s})]):[2,e.access_token]:[2]}}))}))},e}(),Ra={isAuthenticated:!1,isLoading:!0},Ta=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},Ca=i(i({},Ra),{buildAuthorizeUrl:Ta,buildLogoutUrl:Ta,getAccessTokenSilently:Ta,getAccessTokenWithPopup:Ta,getIdTokenClaims:Ta,loginWithRedirect:Ta,loginWithPopup:Ta,logout:Ta,handleRedirectCallback:Ta}),Ga=t.createContext(Ca),Wa=function(e){function t(n,r){var o=e.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return function(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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),Ua=/[?&]code=[^&]+/,xa=/[?&]state=[^&]+/,Xa=/[?&]error=[^&]+/,_a=function(e){return function(t){return"error"in t?new Wa(t.error,t.error_description):t instanceof Error?t:new Error(e)}},Va=_a("Login failed"),Oa=_a("Get access token failed"),Ea=function(e,t){var n,r;switch(t.type){case"LOGIN_POPUP_STARTED":return i(i({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return i(i({},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:i(i({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return i(i({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return i(i({},e),{isLoading:!1,error:t.error})}},La=function(e){if(e){var t=e.redirectUri,n=c(e,["redirectUri"]);return i(i({},n),{redirect_uri:t})}},Fa=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},ja=function(){return t.useContext(Ga)},Ja=function(){return r.default.createElement(r.default.Fragment,null)},Na=function(){return"".concat(window.location.pathname).concat(window.location.search)};e.Auth0Context=Ga,e.Auth0Provider=function(e){var n=e.children,o=e.skipRedirectCallback,u=e.onRedirectCallback,l=void 0===u?Fa:u,d=c(e,["children","skipRedirectCallback","onRedirectCallback"]),f=t.useState((function(){return new Za(function(e){var t=e.clientId,n=e.redirectUri,r=e.maxAge,o=c(e,["clientId","redirectUri","maxAge"]);return i(i({},o),{client_id:t,redirect_uri:n,max_age:r,auth0Client:{name:"auth0-react",version:"1.10.2"}})}(d))}))[0],p=t.useReducer(Ea,Ra),h=p[0],y=p[1],m=t.useRef(!1);t.useEffect((function(){m.current||(m.current=!0,a(void 0,void 0,void 0,(function(){var e,t,n;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),void 0===i&&(i=window.location.search),!Ua.test(i)&&!Xa.test(i)||!xa.test(i)||o?[3,2]:[4,f.handleRedirectCallback()];case 1:return e=r.sent().appState,l(e),[3,4];case 2:return[4,f.checkSession()];case 3:r.sent(),r.label=4;case 4:return[4,f.getUser()];case 5:return t=r.sent(),y({type:"INITIALISED",user:t}),[3,7];case 6:return n=r.sent(),y({type:"ERROR",error:Va(n)}),[3,7];case 7:return[2]}var i}))})))}),[f,l,o]);var b=t.useCallback((function(e){return f.buildAuthorizeUrl(La(e))}),[f]),v=t.useCallback((function(e){return f.buildLogoutUrl(e)}),[f]),g=t.useCallback((function(e){return f.loginWithRedirect(La(e))}),[f]),w=t.useCallback((function(e,t){return a(void 0,void 0,void 0,(function(){var n,r;return s(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,f.loginWithPopup(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),y({type:"ERROR",error:Va(n)}),[2];case 4:return[4,f.getUser()];case 5:return r=o.sent(),y({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[f]),S=t.useCallback((function(e){void 0===e&&(e={});var t=f.logout(e);if(e.localOnly){if(t&&"function"==typeof t.then)return t.then((function(){return y({type:"LOGOUT"})}));y({type:"LOGOUT"})}return t}),[f]),I=t.useCallback((function(e){return a(void 0,void 0,void 0,(function(){var t,n,r,o;return s(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,f.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw n=i.sent(),Oa(n);case 3:return r=y,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,f.getUser()];case 4:return r.apply(void 0,[(o.user=i.sent(),o)]),[7];case 5:return[2,t]}}))}))}),[f]),k=t.useCallback((function(e,t){return a(void 0,void 0,void 0,(function(){var n,r,o,i;return s(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,5]),[4,f.getTokenWithPopup(e,t)];case 1:return n=c.sent(),[3,5];case 2:throw r=c.sent(),Oa(r);case 3:return o=y,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,f.getUser()];case 4:return o.apply(void 0,[(i.user=c.sent(),i)]),[7];case 5:return[2,n]}}))}))}),[f]),K=t.useCallback((function(e){return f.getIdTokenClaims(e)}),[f]),Z=t.useCallback((function(e){return a(void 0,void 0,void 0,(function(){var t,n,r;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,f.handleRedirectCallback(e)];case 1:return[2,o.sent()];case 2:throw t=o.sent(),Oa(t);case 3:return n=y,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,f.getUser()];case 4:return n.apply(void 0,[(r.user=o.sent(),r)]),[7];case 5:return[2]}}))}))}),[f]),R=t.useMemo((function(){return i(i({},h),{buildAuthorizeUrl:b,buildLogoutUrl:v,getAccessTokenSilently:I,getAccessTokenWithPopup:k,getIdTokenClaims:K,loginWithRedirect:g,loginWithPopup:w,logout:S,handleRedirectCallback:Z})}),[h,b,v,I,k,K,g,w,S,Z]);return r.default.createElement(Ga.Provider,{value:R},n)},e.InMemoryCache=ia,e.LocalStorageCache=oa,e.OAuthError=Wa,e.User=function(){},e.useAuth0=ja,e.withAuth0=function(e){return function(t){return r.default.createElement(Ga.Consumer,null,(function(n){return r.default.createElement(e,i({},t,{auth0:n}))}))}},e.withAuthenticationRequired=function(e,n){return void 0===n&&(n={}),function(o){var c=this,u=ja(),l=u.user,d=u.isAuthenticated,f=u.isLoading,p=u.loginWithRedirect,h=n.returnTo,y=void 0===h?Na:h,m=n.onRedirecting,b=void 0===m?Ja:m,v=n.claimCheck,g=void 0===v?function(){return!0}:v,w=n.loginOptions,S=d&&g(l);return t.useEffect((function(){if(!f&&!S){var e=i(i({},w),{appState:i(i({},w&&w.appState),{returnTo:"function"==typeof y?y():y})});a(c,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,p(e)];case 1:return t.sent(),[2]}}))}))}}),[f,S,p,w,y]),S?r.default.createElement(e,i({},o)):b()}},Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var i=function(){return i=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},i.apply(this,arguments)};function c(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 a(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 s(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])}}}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])},u(e,t)};function l(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 d=function(){return d=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},d.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 p(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 y(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 m(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e,t){return e(t={exports:{}},t.exports),t.exports}var w,S,k=function(e){return e&&e.Math==Math&&e},I=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof v&&v)||function(){return this}()||Function("return this")(),Z=function(e){try{return!!e()}catch(e){return!0}},W=!Z((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),G=!Z((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),_=Function.prototype.call,x=G?_.bind(_):function(){return _.apply(_,arguments)},C={}.propertyIsEnumerable,X=Object.getOwnPropertyDescriptor,L=X&&!C.call({1:2},1)?function(e){var t=X(this,e);return!!t&&t.enumerable}:C,T={f:L},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},R=Function.prototype,j=R.bind,K=R.call,Y=G&&j.bind(K,K),V=G?function(e){return e&&Y(e)}:function(e){return e&&function(){return K.apply(e,arguments)}},H=V({}.toString),P=V("".slice),E=function(e){return P(H(e),8,-1)},N=Object,J=V("".split),F=Z((function(){return!N("z").propertyIsEnumerable(0)}))?function(e){return"String"==E(e)?J(e,""):N(e)}:N,U=TypeError,A=function(e){if(null==e)throw U("Can't call method on "+e);return e},z=function(e){return F(A(e))},D=function(e){return"function"==typeof e},B=function(e){return"object"==typeof e?null!==e:D(e)},M=function(e){return D(e)?e:void 0},Q=function(e,t){return arguments.length<2?M(I[e]):I[e]&&I[e][t]},q=V({}.isPrototypeOf),$=Q("navigator","userAgent")||"",ee=I.process,te=I.Deno,ne=ee&&ee.versions||te&&te.version,re=ne&&ne.v8;re&&(S=(w=re.split("."))[0]>0&&w[0]<4?1:+(w[0]+w[1])),!S&&$&&(!(w=$.match(/Edge\/(\d+)/))||w[1]>=74)&&(w=$.match(/Chrome\/(\d+)/))&&(S=+w[1]);var oe=S,ie=!!Object.getOwnPropertySymbols&&!Z((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})),ce=ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ae=Object,se=ce?function(e){return"symbol"==typeof e}:function(e){var t=Q("Symbol");return D(t)&&q(t.prototype,ae(e))},ue=String,le=function(e){try{return ue(e)}catch(e){return"Object"}},de=TypeError,fe=function(e){if(D(e))return e;throw de(le(e)+" is not a function")},pe=function(e,t){var n=e[t];return null==n?void 0:fe(n)},he=TypeError,ye=Object.defineProperty,me=function(e,t){try{ye(I,e,{value:t,configurable:!0,writable:!0})}catch(n){I[e]=t}return t},ve=I["__core-js_shared__"]||me("__core-js_shared__",{}),be=g((function(e){(e.exports=function(e,t){return ve[e]||(ve[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ge=Object,we=function(e){return ge(A(e))},Se=V({}.hasOwnProperty),ke=Object.hasOwn||function(e,t){return Se(we(e),t)},Ie=0,Ze=Math.random(),We=V(1..toString),Ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+We(++Ie+Ze,36)},_e=be("wks"),xe=I.Symbol,Ce=xe&&xe.for,Xe=ce?xe:xe&&xe.withoutSetter||Ge,Le=function(e){if(!ke(_e,e)||!ie&&"string"!=typeof _e[e]){var t="Symbol."+e;ie&&ke(xe,e)?_e[e]=xe[e]:_e[e]=ce&&Ce?Ce(t):Xe(t)}return _e[e]},Te=TypeError,Oe=Le("toPrimitive"),Re=function(e){var t=function(e,t){if(!B(e)||se(e))return e;var n,r=pe(e,Oe);if(r){if(void 0===t&&(t="default"),n=x(r,e,t),!B(n)||se(n))return n;throw Te("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&D(n=e.toString)&&!B(r=x(n,e)))return r;if(D(n=e.valueOf)&&!B(r=x(n,e)))return r;if("string"!==t&&D(n=e.toString)&&!B(r=x(n,e)))return r;throw he("Can't convert object to primitive value")}(e,t)}(e,"string");return se(t)?t:t+""},je=I.document,Ke=B(je)&&B(je.createElement),Ye=function(e){return Ke?je.createElement(e):{}},Ve=!W&&!Z((function(){return 7!=Object.defineProperty(Ye("div"),"a",{get:function(){return 7}}).a})),He=Object.getOwnPropertyDescriptor,Pe={f:W?He:function(e,t){if(e=z(e),t=Re(t),Ve)try{return He(e,t)}catch(e){}if(ke(e,t))return O(!x(T.f,e,t),e[t])}},Ee=W&&Z((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ne=String,Je=TypeError,Fe=function(e){if(B(e))return e;throw Je(Ne(e)+" is not an object")},Ue=TypeError,Ae=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,De={f:W?Ee?function(e,t,n){if(Fe(e),t=Re(t),Fe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=ze(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ae(e,t,n)}:Ae:function(e,t,n){if(Fe(e),t=Re(t),Fe(n),Ve)try{return Ae(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ue("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Be=W?function(e,t,n){return De.f(e,t,O(1,n))}:function(e,t,n){return e[t]=n,e},Me=Function.prototype,Qe=W&&Object.getOwnPropertyDescriptor,qe=ke(Me,"name"),$e={EXISTS:qe,PROPER:qe&&"something"===function(){}.name,CONFIGURABLE:qe&&(!W||W&&Qe(Me,"name").configurable)},et=V(Function.toString);D(ve.inspectSource)||(ve.inspectSource=function(e){return et(e)});var tt,nt,rt,ot=ve.inspectSource,it=I.WeakMap,ct=D(it)&&/native code/.test(ot(it)),at=be("keys"),st=function(e){return at[e]||(at[e]=Ge(e))},ut={},lt=I.TypeError,dt=I.WeakMap;if(ct||ve.state){var ft=ve.state||(ve.state=new dt),pt=V(ft.get),ht=V(ft.has),yt=V(ft.set);tt=function(e,t){if(ht(ft,e))throw new lt("Object already initialized");return t.facade=e,yt(ft,e,t),t},nt=function(e){return pt(ft,e)||{}},rt=function(e){return ht(ft,e)}}else{var mt=st("state");ut[mt]=!0,tt=function(e,t){if(ke(e,mt))throw new lt("Object already initialized");return t.facade=e,Be(e,mt,t),t},nt=function(e){return ke(e,mt)?e[mt]:{}},rt=function(e){return ke(e,mt)}}var vt={set:tt,get:nt,has:rt,enforce:function(e){return rt(e)?nt(e):tt(e,{})},getterFor:function(e){return function(t){var n;if(!B(t)||(n=nt(t)).type!==e)throw lt("Incompatible receiver, "+e+" required");return n}}},bt=g((function(e){var t=$e.CONFIGURABLE,n=vt.enforce,r=vt.get,o=Object.defineProperty,i=W&&!Z((function(){return 8!==o((function(){}),"length",{value:8}).length})),c=String(String).split("String"),a=e.exports=function(e,r,a){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ke(e,"name")||t&&e.name!==r)&&(W?o(e,"name",{value:r,configurable:!0}):e.name=r),i&&a&&ke(a,"arity")&&e.length!==a.arity&&o(e,"length",{value:a.arity});try{a&&ke(a,"constructor")&&a.constructor?W&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=n(e);return ke(s,"source")||(s.source=c.join("string"==typeof r?r:"")),e};Function.prototype.toString=a((function(){return D(this)&&r(this).source||ot(this)}),"toString")})),gt=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(D(n)&&bt(n,i,r),r.global)o?e[t]=n:me(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:De.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},wt=Math.ceil,St=Math.floor,kt=Math.trunc||function(e){var t=+e;return(t>0?St:wt)(t)},It=function(e){var t=+e;return t!=t||0===t?0:kt(t)},Zt=Math.max,Wt=Math.min,Gt=function(e,t){var n=It(e);return n<0?Zt(n+t,0):Wt(n,t)},_t=Math.min,xt=function(e){return e>0?_t(It(e),9007199254740991):0},Ct=function(e){return xt(e.length)},Xt=function(e){return function(t,n,r){var o,i=z(t),c=Ct(i),a=Gt(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}},Lt={includes:Xt(!0),indexOf:Xt(!1)},Tt=Lt.indexOf,Ot=V([].push),Rt=function(e,t){var n,r=z(e),o=0,i=[];for(n in r)!ke(ut,n)&&ke(r,n)&&Ot(i,n);for(;t.length>o;)ke(r,n=t[o++])&&(~Tt(i,n)||Ot(i,n));return i},jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kt=jt.concat("length","prototype"),Yt={f:Object.getOwnPropertyNames||function(e){return Rt(e,Kt)}},Vt={f:Object.getOwnPropertySymbols},Ht=V([].concat),Pt=Q("Reflect","ownKeys")||function(e){var t=Yt.f(Fe(e)),n=Vt.f;return n?Ht(t,n(e)):t},Et=function(e,t,n){for(var r=Pt(t),o=De.f,i=Pe.f,c=0;c<r.length;c++){var a=r[c];ke(e,a)||n&&ke(n,a)||o(e,a,i(t,a))}},Nt=/#|\.prototype\./,Jt=function(e,t){var n=Ut[Ft(e)];return n==zt||n!=At&&(D(t)?Z(t):!!t)},Ft=Jt.normalize=function(e){return String(e).replace(Nt,".").toLowerCase()},Ut=Jt.data={},At=Jt.NATIVE="N",zt=Jt.POLYFILL="P",Dt=Jt,Bt=Pe.f,Mt=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]||me(a,{}):(I[a]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(c=Bt(n,r))&&c.value:n[r],!Dt(s?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Et(i,o)}(e.sham||o&&o.sham)&&Be(i,"sham",!0),gt(n,r,i,e)}},Qt={};Qt[Le("toStringTag")]="z";var qt,$t="[object z]"===String(Qt),en=Le("toStringTag"),tn=Object,nn="Arguments"==E(function(){return arguments}()),rn=$t?E: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=tn(e),en))?n:nn?E(t):"Object"==(r=E(t))&&D(t.callee)?"Arguments":r},on=String,cn=function(e){if("Symbol"===rn(e))throw TypeError("Cannot convert a Symbol value to a string");return on(e)},an=Le("match"),sn=TypeError,un=function(e){if(function(e){var t;return B(e)&&(void 0!==(t=e[an])?!!t:"RegExp"==E(e))}(e))throw sn("The method doesn't accept regular expressions");return e},ln=Le("match"),dn=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[ln]=!1,"/./"[e](t)}catch(e){}}return!1},fn=Pe.f,pn=V("".startsWith),hn=V("".slice),yn=Math.min,mn=dn("startsWith"),vn=!(mn||(qt=fn(String.prototype,"startsWith"),!qt||qt.writable));Mt({target:"String",proto:!0,forced:!vn&&!mn},{startsWith:function(e){var t=cn(A(this));un(e);var n=xt(yn(arguments.length>1?arguments[1]:void 0,t.length)),r=cn(e);return pn?pn(t,r,n):hn(t,n,n+r.length)===r}});var bn=function(e,t){return V(I[e].prototype[t])};bn("String","startsWith");var gn=Array.isArray||function(e){return"Array"==E(e)},wn=TypeError,Sn=function(e){if(e>9007199254740991)throw wn("Maximum allowed index exceeded");return e},kn=function(e,t,n){var r=Re(t);r in e?De.f(e,r,O(0,n)):e[r]=n},In=function(){},Zn=[],Wn=Q("Reflect","construct"),Gn=/^\s*(?:class|function)\b/,_n=V(Gn.exec),xn=!Gn.exec(In),Cn=function(e){if(!D(e))return!1;try{return Wn(In,Zn,e),!0}catch(e){return!1}},Xn=function(e){if(!D(e))return!1;switch(rn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xn||!!_n(Gn,ot(e))}catch(e){return!0}};Xn.sham=!0;var Ln=!Wn||Z((function(){var e;return Cn(Cn.call)||!Cn(Object)||!Cn((function(){e=!0}))||e}))?Xn:Cn,Tn=Le("species"),On=Array,Rn=function(e,t){return new(function(e){var t;return gn(e)&&(t=e.constructor,(Ln(t)&&(t===On||gn(t.prototype))||B(t)&&null===(t=t[Tn]))&&(t=void 0)),void 0===t?On:t}(e))(0===t?0:t)},jn=Le("species"),Kn=Le("isConcatSpreadable"),Yn=oe>=51||!Z((function(){var e=[];return e[Kn]=!1,e.concat()[0]!==e})),Vn=("concat",oe>=51||!Z((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Hn=function(e){if(!B(e))return!1;var t=e[Kn];return void 0!==t?!!t:gn(e)};Mt({target:"Array",proto:!0,arity:1,forced:!Yn||!Vn},{concat:function(e){var t,n,r,o,i,c=we(this),a=Rn(c,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Hn(i=-1===t?c:arguments[t]))for(o=Ct(i),Sn(s+o),n=0;n<o;n++,s++)n in i&&kn(a,s,i[n]);else Sn(s+1),kn(a,s++,i);return a.length=s,a}});var Pn=$t?{}.toString:function(){return"[object "+rn(this)+"]"};$t||gt(Object.prototype,"toString",Pn,{unsafe:!0});var En,Nn=Object.keys||function(e){return Rt(e,jt)},Jn=W&&!Ee?Object.defineProperties:function(e,t){Fe(e);for(var n,r=z(t),o=Nn(t),i=o.length,c=0;i>c;)De.f(e,n=o[c++],r[n]);return e},Fn={f:Jn},Un=Q("document","documentElement"),An=st("IE_PROTO"),zn=function(){},Dn=function(e){return"<script>"+e+"<\/script>"},Bn=function(e){e.write(Dn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mn=function(){try{En=new ActiveXObject("htmlfile")}catch(e){}var e,t;Mn="undefined"!=typeof document?document.domain&&En?Bn(En):((t=Ye("iframe")).style.display="none",Un.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Dn("document.F=Object")),e.close(),e.F):Bn(En);for(var n=jt.length;n--;)delete Mn.prototype[jt[n]];return Mn()};ut[An]=!0;var Qn=Object.create||function(e,t){var n;return null!==e?(zn.prototype=Fe(e),n=new zn,zn.prototype=null,n[An]=e):n=Mn(),void 0===t?n:Fn.f(n,t)},qn=Array,$n=Math.max,er=Yt.f,tr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nr={f:function(e){return tr&&"Window"==E(e)?function(e){try{return er(e)}catch(e){return function(e,t,n){for(var r=Ct(e),o=Gt(void 0,r),i=Gt(r,r),c=qn($n(i-o,0)),a=0;o<i;o++,a++)kn(c,a,e[o]);return c.length=a,c}(tr)}}(e):er(z(e))}},rr={f:Le},or=I,ir=De.f,cr=function(e){var t=or.Symbol||(or.Symbol={});ke(t,e)||ir(t,e,{value:rr.f(e)})},ar=function(){var e=Q("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Le("toPrimitive");t&&!t[r]&&gt(t,r,(function(e){return x(n,this)}),{arity:1})},sr=De.f,ur=Le("toStringTag"),lr=function(e,t,n){e&&!n&&(e=e.prototype),e&&!ke(e,ur)&&sr(e,ur,{configurable:!0,value:t})},dr=V(V.bind),fr=function(e,t){return fe(e),void 0===t?e:G?dr(e,t):function(){return e.apply(t,arguments)}},pr=V([].push),hr=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,d){for(var f,p,h=we(s),y=F(h),m=fr(u,l),v=Ct(y),b=0,g=d||Rn,w=t?g(s,v):n||c?g(s,0):void 0;v>b;b++)if((a||b in y)&&(p=m(f=y[b],b,h),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:pr(w,f)}else switch(e){case 4:return!1;case 7:pr(w,f)}return i?-1:r||o?o:w}},yr=[hr(0),hr(1),hr(2),hr(3),hr(4),hr(5),hr(6),hr(7)][0],mr=st("hidden"),vr=vt.set,br=vt.getterFor("Symbol"),gr=Object.prototype,wr=I.Symbol,Sr=wr&&wr.prototype,kr=I.TypeError,Ir=I.QObject,Zr=Pe.f,Wr=De.f,Gr=nr.f,_r=T.f,xr=V([].push),Cr=be("symbols"),Xr=be("op-symbols"),Lr=be("wks"),Tr=!Ir||!Ir.prototype||!Ir.prototype.findChild,Or=W&&Z((function(){return 7!=Qn(Wr({},"a",{get:function(){return Wr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Zr(gr,t);r&&delete gr[t],Wr(e,t,n),r&&e!==gr&&Wr(gr,t,r)}:Wr,Rr=function(e,t){var n=Cr[e]=Qn(Sr);return vr(n,{type:"Symbol",tag:e,description:t}),W||(n.description=t),n},jr=function(e,t,n){e===gr&&jr(Xr,t,n),Fe(e);var r=Re(t);return Fe(n),ke(Cr,r)?(n.enumerable?(ke(e,mr)&&e[mr][r]&&(e[mr][r]=!1),n=Qn(n,{enumerable:O(0,!1)})):(ke(e,mr)||Wr(e,mr,O(1,{})),e[mr][r]=!0),Or(e,r,n)):Wr(e,r,n)},Kr=function(e,t){Fe(e);var n=z(t),r=Nn(n).concat(Pr(n));return yr(r,(function(t){W&&!x(Yr,n,t)||jr(e,t,n[t])})),e},Yr=function(e){var t=Re(e),n=x(_r,this,t);return!(this===gr&&ke(Cr,t)&&!ke(Xr,t))&&(!(n||!ke(this,t)||!ke(Cr,t)||ke(this,mr)&&this[mr][t])||n)},Vr=function(e,t){var n=z(e),r=Re(t);if(n!==gr||!ke(Cr,r)||ke(Xr,r)){var o=Zr(n,r);return!o||!ke(Cr,r)||ke(n,mr)&&n[mr][r]||(o.enumerable=!0),o}},Hr=function(e){var t=Gr(z(e)),n=[];return yr(t,(function(e){ke(Cr,e)||ke(ut,e)||xr(n,e)})),n},Pr=function(e){var t=e===gr,n=Gr(t?Xr:z(e)),r=[];return yr(n,(function(e){!ke(Cr,e)||t&&!ke(gr,e)||xr(r,Cr[e])})),r};ie||(Sr=(wr=function(){if(q(Sr,this))throw kr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?cn(arguments[0]):void 0,t=Ge(e),n=function(e){this===gr&&x(n,Xr,e),ke(this,mr)&&ke(this[mr],t)&&(this[mr][t]=!1),Or(this,t,O(1,e))};return W&&Tr&&Or(gr,t,{configurable:!0,set:n}),Rr(t,e)}).prototype,gt(Sr,"toString",(function(){return br(this).tag})),gt(wr,"withoutSetter",(function(e){return Rr(Ge(e),e)})),T.f=Yr,De.f=jr,Fn.f=Kr,Pe.f=Vr,Yt.f=nr.f=Hr,Vt.f=Pr,rr.f=function(e){return Rr(Le(e),e)},W&&(Wr(Sr,"description",{configurable:!0,get:function(){return br(this).description}}),gt(gr,"propertyIsEnumerable",Yr,{unsafe:!0}))),Mt({global:!0,constructor:!0,wrap:!0,forced:!ie,sham:!ie},{Symbol:wr}),yr(Nn(Lr),(function(e){cr(e)})),Mt({target:"Symbol",stat:!0,forced:!ie},{useSetter:function(){Tr=!0},useSimple:function(){Tr=!1}}),Mt({target:"Object",stat:!0,forced:!ie,sham:!W},{create:function(e,t){return void 0===t?Qn(e):Kr(Qn(e),t)},defineProperty:jr,defineProperties:Kr,getOwnPropertyDescriptor:Vr}),Mt({target:"Object",stat:!0,forced:!ie},{getOwnPropertyNames:Hr}),ar(),lr(wr,"Symbol"),ut[mr]=!0;var Er=ie&&!!Symbol.for&&!!Symbol.keyFor,Nr=be("string-to-symbol-registry"),Jr=be("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!Er},{for:function(e){var t=cn(e);if(ke(Nr,t))return Nr[t];var n=Q("Symbol")(t);return Nr[t]=n,Jr[n]=t,n}});var Fr=be("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!Er},{keyFor:function(e){if(!se(e))throw TypeError(le(e)+" is not a symbol");if(ke(Fr,e))return Fr[e]}});var Ur=Function.prototype,Ar=Ur.apply,zr=Ur.call,Dr="object"==typeof Reflect&&Reflect.apply||(G?zr.bind(Ar):function(){return zr.apply(Ar,arguments)}),Br=V([].slice),Mr=Q("JSON","stringify"),Qr=V(/./.exec),qr=V("".charAt),$r=V("".charCodeAt),eo=V("".replace),to=V(1..toString),no=/[\uD800-\uDFFF]/g,ro=/^[\uD800-\uDBFF]$/,oo=/^[\uDC00-\uDFFF]$/,io=!ie||Z((function(){var e=Q("Symbol")();return"[null]"!=Mr([e])||"{}"!=Mr({a:e})||"{}"!=Mr(Object(e))})),co=Z((function(){return'"\\udf06\\ud834"'!==Mr("\udf06\ud834")||'"\\udead"'!==Mr("\udead")})),ao=function(e,t){var n=Br(arguments),r=t;if((B(t)||void 0!==e)&&!se(e))return gn(t)||(t=function(e,t){if(D(r)&&(t=x(r,this,e,t)),!se(t))return t}),n[1]=t,Dr(Mr,null,n)},so=function(e,t,n){var r=qr(n,t-1),o=qr(n,t+1);return Qr(ro,e)&&!Qr(oo,o)||Qr(oo,e)&&!Qr(ro,r)?"\\u"+to($r(e,0),16):e};Mr&&Mt({target:"JSON",stat:!0,arity:3,forced:io||co},{stringify:function(e,t,n){var r=Br(arguments),o=Dr(io?ao:Mr,null,r);return co&&"string"==typeof o?eo(o,no,so):o}});var uo=!ie||Z((function(){Vt.f(1)}));Mt({target:"Object",stat:!0,forced:uo},{getOwnPropertySymbols:function(e){var t=Vt.f;return t?t(we(e)):[]}}),cr("asyncIterator");var lo=De.f,fo=I.Symbol,po=fo&&fo.prototype;if(W&&D(fo)&&(!("description"in po)||void 0!==fo().description)){var ho={},yo=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:cn(arguments[0]),t=q(po,this)?new fo(e):void 0===e?fo():fo(e);return""===e&&(ho[t]=!0),t};Et(yo,fo),yo.prototype=po,po.constructor=yo;var mo="Symbol(test)"==String(fo("test")),vo=V(po.toString),bo=V(po.valueOf),go=/^Symbol\((.*)\)[^)]+$/,wo=V("".replace),So=V("".slice);lo(po,"description",{configurable:!0,get:function(){var e=bo(this),t=vo(e);if(ke(ho,e))return"";var n=mo?So(t,7,-1):wo(t,go,"$1");return""===n?void 0:n}}),Mt({global:!0,constructor:!0,forced:!0},{Symbol:yo})}cr("hasInstance"),cr("isConcatSpreadable"),cr("iterator"),cr("match"),cr("matchAll"),cr("replace"),cr("search"),cr("species"),cr("split"),cr("toPrimitive"),ar(),cr("toStringTag"),lr(Q("Symbol"),"Symbol"),cr("unscopables"),lr(I.JSON,"JSON",!0),lr(Math,"Math",!0),Mt({global:!0},{Reflect:{}}),lr(I.Reflect,"Reflect",!0),or.Symbol;var ko,Io,Zo,Wo=V("".charAt),Go=V("".charCodeAt),_o=V("".slice),xo=function(e){return function(t,n){var r,o,i=cn(A(t)),c=It(n),a=i.length;return c<0||c>=a?e?"":void 0:(r=Go(i,c))<55296||r>56319||c+1===a||(o=Go(i,c+1))<56320||o>57343?e?Wo(i,c):r:e?_o(i,c,c+2):o-56320+(r-55296<<10)+65536}},Co={codeAt:xo(!1),charAt:xo(!0)},Xo=!Z((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Lo=st("IE_PROTO"),To=Object,Oo=To.prototype,Ro=Xo?To.getPrototypeOf:function(e){var t=we(e);if(ke(t,Lo))return t[Lo];var n=t.constructor;return D(n)&&t instanceof n?n.prototype:t instanceof To?Oo:null},jo=Le("iterator"),Ko=!1;[].keys&&("next"in(Zo=[].keys())?(Io=Ro(Ro(Zo)))!==Object.prototype&&(ko=Io):Ko=!0);var Yo=null==ko||Z((function(){var e={};return ko[jo].call(e)!==e}));Yo&&(ko={}),D(ko[jo])||gt(ko,jo,(function(){return this}));var Vo={IteratorPrototype:ko,BUGGY_SAFARI_ITERATORS:Ko},Ho={},Po=Vo.IteratorPrototype,Eo=function(){return this},No=String,Jo=TypeError,Fo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=V(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Fe(n),function(e){if("object"==typeof e||D(e))return e;throw Jo("Can't set "+No(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Uo=$e.PROPER,Ao=$e.CONFIGURABLE,zo=Vo.IteratorPrototype,Do=Vo.BUGGY_SAFARI_ITERATORS,Bo=Le("iterator"),Mo=function(){return this},Qo=function(e,t,n,r,o,i,c){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Qn(Po,{next:O(1,n)}),lr(e,o,!1),Ho[o]=Eo}(n,t,r);var a,s,u,l=function(e){if(e===o&&y)return y;if(!Do&&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)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[Bo]||p["@@iterator"]||o&&p[o],y=!Do&&h||l(o),m="Array"==t&&p.entries||h;if(m&&(a=Ro(m.call(new e)))!==Object.prototype&&a.next&&(Ro(a)!==zo&&(Fo?Fo(a,zo):D(a[Bo])||gt(a,Bo,Mo)),lr(a,d,!0)),Uo&&"values"==o&&h&&"values"!==h.name&&(Ao?Be(p,"name","values"):(f=!0,y=function(){return x(h,this)})),o)if(s={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},c)for(u in s)(Do||f||!(u in p))&&gt(p,u,s[u]);else Mt({target:t,proto:!0,forced:Do||f},s);return p[Bo]!==y&&gt(p,Bo,y,{name:o}),Ho[t]=y,s},qo=Co.charAt,$o=vt.set,ei=vt.getterFor("String Iterator");Qo(String,"String",(function(e){$o(this,{type:"String Iterator",string:cn(e),index:0})}),(function(){var e,t=ei(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qo(n,r),t.index+=e.length,{value:e,done:!1})}));var ti=function(e,t,n){var r,o;Fe(e);try{if(!(r=pe(e,"return"))){if("throw"===t)throw n;return n}r=x(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Fe(r),n},ni=function(e,t,n,r){try{return r?t(Fe(n)[0],n[1]):t(n)}catch(t){ti(e,"throw",t)}},ri=Le("iterator"),oi=Array.prototype,ii=function(e){return void 0!==e&&(Ho.Array===e||oi[ri]===e)},ci=Le("iterator"),ai=function(e){if(null!=e)return pe(e,ci)||pe(e,"@@iterator")||Ho[rn(e)]},si=TypeError,ui=function(e,t){var n=arguments.length<2?ai(e):t;if(fe(n))return Fe(x(n,e));throw si(le(e)+" is not iterable")},li=Array,di=Le("iterator"),fi=!1;try{var pi=0,hi={next:function(){return{done:!!pi++}},return:function(){fi=!0}};hi[di]=function(){return this},Array.from(hi,(function(){throw 2}))}catch(u){}var yi=function(e,t){if(!t&&!fi)return!1;var n=!1;try{var r={};r[di]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},mi=!yi((function(e){Array.from(e)}));Mt({target:"Array",stat:!0,forced:mi},{from:function(e){var t=we(e),n=Ln(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=fr(o,r>2?arguments[2]:void 0));var c,a,s,u,l,d,f=ai(t),p=0;if(!f||this===li&&ii(f))for(c=Ct(t),a=n?new this(c):li(c);c>p;p++)d=i?o(t[p],p):t[p],kn(a,p,d);else for(l=(u=ui(t,f)).next,a=n?new this:[];!(s=x(l,u)).done;p++)d=i?ni(u,o,[s.value,p],!0):s.value,kn(a,p,d);return a.length=p,a}}),or.Array.from;var vi,bi,gi,wi="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Si=De.f,ki=vt.enforce,Ii=vt.get,Zi=I.Int8Array,Wi=Zi&&Zi.prototype,Gi=I.Uint8ClampedArray,_i=Gi&&Gi.prototype,xi=Zi&&Ro(Zi),Ci=Wi&&Ro(Wi),Xi=Object.prototype,Li=I.TypeError,Ti=Le("toStringTag"),Oi=Ge("TYPED_ARRAY_TAG"),Ri=wi&&!!Fo&&"Opera"!==rn(I.opera),ji=!1,Ki={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Yi={BigInt64Array:8,BigUint64Array:8},Vi=function(e){var t=Ro(e);if(B(t)){var n=Ii(t);return n&&ke(n,"TypedArrayConstructor")?n.TypedArrayConstructor:Vi(t)}},Hi=function(e){if(!B(e))return!1;var t=rn(e);return ke(Ki,t)||ke(Yi,t)};for(vi in Ki)(gi=(bi=I[vi])&&bi.prototype)?ki(gi).TypedArrayConstructor=bi:Ri=!1;for(vi in Yi)(gi=(bi=I[vi])&&bi.prototype)&&(ki(gi).TypedArrayConstructor=bi);if((!Ri||!D(xi)||xi===Function.prototype)&&(xi=function(){throw Li("Incorrect invocation")},Ri))for(vi in Ki)I[vi]&&Fo(I[vi],xi);if((!Ri||!Ci||Ci===Xi)&&(Ci=xi.prototype,Ri))for(vi in Ki)I[vi]&&Fo(I[vi].prototype,Ci);if(Ri&&Ro(_i)!==Ci&&Fo(_i,Ci),W&&!ke(Ci,Ti))for(vi in ji=!0,Si(Ci,Ti,{get:function(){return B(this)?this[Oi]:void 0}}),Ki)I[vi]&&Be(I[vi],Oi,vi);var Pi={NATIVE_ARRAY_BUFFER_VIEWS:Ri,TYPED_ARRAY_TAG:ji&&Oi,aTypedArray:function(e){if(Hi(e))return e;throw Li("Target is not a typed array")},aTypedArrayConstructor:function(e){if(D(e)&&(!Fo||q(xi,e)))return e;throw Li(le(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(W){if(n)for(var o in Ki){var i=I[o];if(i&&ke(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}Ci[e]&&!n||gt(Ci,e,n?t:Ri&&Wi[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(W){if(Fo){if(n)for(r in Ki)if((o=I[r])&&ke(o,e))try{delete o[e]}catch(e){}if(xi[e]&&!n)return;try{return gt(xi,e,n?t:Ri&&xi[e]||t)}catch(e){}}for(r in Ki)!(o=I[r])||o[e]&&!n||gt(o,e,t)}},getTypedArrayConstructor:Vi,isView:function(e){if(!B(e))return!1;var t=rn(e);return"DataView"===t||ke(Ki,t)||ke(Yi,t)},isTypedArray:Hi,TypedArray:xi,TypedArrayPrototype:Ci},Ei=TypeError,Ni=Le("species"),Ji=Pi.aTypedArrayConstructor,Fi=Pi.getTypedArrayConstructor,Ui=Pi.aTypedArray;(0,Pi.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Br(Ui(this),e,t),r=Ji(function(e,t){var n,r=Fe(e).constructor;return void 0===r||null==(n=Fe(r)[Ni])?t:function(e){if(Ln(e))return e;throw Ei(le(e)+" is not a constructor")}(n)}(this,Fi(this))),o=0,i=n.length,c=new r(i);i>o;)c[o]=n[o++];return c}),Z((function(){new Int8Array(1).slice()})));var Ai=De.f,zi=Le("unscopables"),Di=Array.prototype;null==Di[zi]&&Ai(Di,zi,{configurable:!0,value:Qn(null)});var Bi=function(e){Di[zi][e]=!0},Mi=Lt.includes,Qi=Z((function(){return!Array(1).includes()}));Mt({target:"Array",proto:!0,forced:Qi},{includes:function(e){return Mi(this,e,arguments.length>1?arguments[1]:void 0)}}),Bi("includes"),bn("Array","includes");var qi=V("".indexOf);Mt({target:"String",proto:!0,forced:!dn("includes")},{includes:function(e){return!!~qi(cn(A(this)),cn(un(e)),arguments.length>1?arguments[1]:void 0)}}),bn("String","includes");var $i=De.f,ec=vt.set,tc=vt.getterFor("Array Iterator");Qo(Array,"Array",(function(e,t){ec(this,{type:"Array Iterator",target:z(e),index:0,kind:t})}),(function(){var e=tc(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var nc=Ho.Arguments=Ho.Array;if(Bi("keys"),Bi("values"),Bi("entries"),W&&"values"!==nc.name)try{$i(nc,"name",{value:"values"})}catch(u){}var rc=Z((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),oc=Object.isExtensible,ic=Z((function(){oc(1)}))||rc?function(e){return!!B(e)&&(!rc||"ArrayBuffer"!=E(e))&&(!oc||oc(e))}:oc,cc=!Z((function(){return Object.isExtensible(Object.preventExtensions({}))})),ac=g((function(e){var t=De.f,n=!1,r=Ge("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},c=e.exports={enable:function(){c.enable=function(){},n=!0;var e=Yt.f,t=V([].splice),o={};o[r]=1,e(o).length&&(Yt.f=function(n){for(var o=e(n),i=0,c=o.length;i<c;i++)if(o[i]===r){t(o,i,1);break}return o},Mt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nr.f}))},fastKey:function(e,t){if(!B(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ke(e,r)){if(!ic(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ke(e,r)){if(!ic(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return cc&&n&&ic(e)&&!ke(e,r)&&i(e),e}};ut[r]=!0}));ac.enable,ac.fastKey,ac.getWeakData,ac.onFreeze;var sc=TypeError,uc=function(e,t){this.stopped=e,this.result=t},lc=uc.prototype,dc=function(e,t,n){var r,o,i,c,a,s,u,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=fr(t,l),m=function(e){return r&&ti(r,"normal",e),new uc(!0,e)},v=function(e){return d?(Fe(e),h?y(e[0],e[1],m):y(e[0],e[1])):h?y(e,m):y(e)};if(f)r=e.iterator;else if(p)r=e;else{if(!(o=ai(e)))throw sc(le(e)+" is not iterable");if(ii(o)){for(i=0,c=Ct(e);c>i;i++)if((a=v(e[i]))&&q(lc,a))return a;return new uc(!1)}r=ui(e,o)}for(s=f?e.next:r.next;!(u=x(s,r)).done;){try{a=v(u.value)}catch(e){ti(r,"throw",e)}if("object"==typeof a&&a&&q(lc,a))return a}return new uc(!1)},fc=TypeError,pc=function(e,t){if(q(t,e))return e;throw fc("Incorrect invocation")},hc=function(e,t,n){for(var r in t)gt(e,r,t[r],n);return e},yc=Le("species"),mc=De.f,vc=ac.fastKey,bc=vt.set,gc=vt.getterFor,wc={getConstructor:function(e,t,n,r){var o=e((function(e,o){pc(e,i),bc(e,{type:t,index:Qn(null),first:void 0,last:void 0,size:0}),W||(e.size=0),null!=o&&dc(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,c=gc(t),a=function(e,t,n){var r,o,i=c(e),a=s(e,t);return a?a.value=n:(i.last=a={index:o=vc(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),W?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},s=function(e,t){var n,r=c(e),o=vc(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return hc(i,{clear:function(){for(var e=c(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,W?e.size=0:this.size=0},delete:function(e){var t=this,n=c(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),W?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=c(this),r=fr(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),hc(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),W&&mc(i,"size",{get:function(){return c(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=gc(t),i=gc(r);Qo(e,t,(function(e,t){bc(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=Q(e),n=De.f;W&&t&&!t[yc]&&n(t,yc,{configurable:!0,get:function(){return this}})}(t)}};function Sc(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 kc(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[e],a=c&&c.prototype,s=c,u={},l=function(e){var t=V(a[e]);gt(a,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!B(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!B(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!B(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Dt(e,!D(c)||!(o||a.forEach&&!Z((function(){(new c).entries().next()})))))s=n.getConstructor(t,e,r,i),ac.enable();else if(Dt(e,!0)){var d=new s,f=d[i](o?{}:-0,1)!=d,p=Z((function(){d.has(1)})),h=yi((function(e){new c(e)})),y=!o&&Z((function(){for(var e=new c,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){pc(e,a);var n=function(e,t,n){var r,o;return Fo&&D(r=t.constructor)&&r!==n&&B(o=r.prototype)&&o!==n.prototype&&Fo(e,o),e}(new c,e,s);return null!=t&&dc(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=s),(p||y)&&(l("delete"),l("has"),r&&l("get")),(y||f)&&l(i),o&&a.clear&&delete a.clear}u[e]=s,Mt({global:!0,constructor:!0,forced:s!=c},u),lr(s,e),o||n.setStrong(s,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),wc),or.Set;var Ic=setTimeout;function Zc(e){return Boolean(e&&void 0!==e.length)}function Wc(){}function Gc(e){if(!(this instanceof Gc))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=[],Tc(e,this)}function _c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,Gc._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 Cc(t.promise,e)}xc(t.promise,r)}else(1===e._state?xc:Cc)(t.promise,e._value)}))):e._deferreds.push(t)}function xc(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 Gc)return e._state=3,e._value=t,void Xc(e);if("function"==typeof n)return void Tc((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,Xc(e)}catch(t){Cc(e,t)}var r,o}function Cc(e,t){e._state=2,e._value=t,Xc(e)}function Xc(e){2===e._state&&0===e._deferreds.length&&Gc._immediateFn((function(){e._handled||Gc._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)_c(e,e._deferreds[t]);e._deferreds=null}function Lc(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function Tc(e,t){var n=!1;try{e((function(e){n||(n=!0,xc(t,e))}),(function(e){n||(n=!0,Cc(t,e))}))}catch(e){if(n)return;n=!0,Cc(t,e)}}Gc.prototype.catch=function(e){return this.then(null,e)},Gc.prototype.then=function(e,t){var n=new this.constructor(Wc);return _c(this,new Lc(e,t,n)),n},Gc.prototype.finally=Sc,Gc.all=function(e){return new Gc((function(t,n){if(!Zc(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])}))},Gc.allSettled=kc,Gc.resolve=function(e){return e&&"object"==typeof e&&e.constructor===Gc?e:new Gc((function(t){t(e)}))},Gc.reject=function(e){return new Gc((function(t,n){n(e)}))},Gc.race=function(e){return new Gc((function(t,n){if(!Zc(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)Gc.resolve(e[r]).then(t,n)}))},Gc._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){Ic(e,0)},Gc._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var Oc=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 Oc.Promise?Oc.Promise=Gc:(Oc.Promise.prototype.finally||(Oc.Promise.prototype.finally=Sc),Oc.Promise.allSettled||(Oc.Promise.allSettled=kc)),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){try{var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"})),n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{t&&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&&i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function s(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 a(this,n)}}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function l(e,t,n){return l="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}},l(e,t,n||e)}var d=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(a,t);var i=s(a);function a(){var t;return e(this,a),(t=i.call(this)).listeners||d.call(c(t)),Object.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(a,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),l(o(a.prototype),"dispatchEvent",this).call(this,e)}}]),a}(d),p=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&&(p.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=p,e.AbortSignal=f)}("undefined"!=typeof self?self:v)}();var Rc=g((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()}}));b(Rc);var jc=g((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,d,f;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]:(d=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:d,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(f=l.getItem(u))&&(f=JSON.parse(f)).id===this.id&&f.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,Rc.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(Rc.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),Rc.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(Rc.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,Rc.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItem(i),Rc.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})),Kc=b(jc),Yc={timeoutInSeconds:60},Vc=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],Hc={name:"auth0-spa-js",version:"1.22.4"},Pc=function(){return Date.now()},Ec=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 l(t,e),t.fromPayload=function(e){return new t(e.error,e.error_description)},t}(Error),Nc=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 l(t,e),t}(Ec),Jc=function(e){function t(){var n=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,t.prototype),n}return l(t,e),t}(Ec),Fc=function(e){function t(n){var r=e.call(this)||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return l(t,e),t}(Jc),Uc=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 l(t,e),t}(Ec),Ac=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 l(t,e),t}(Ec),zc=function(e){function t(n,r){var o=e.call(this,"missing_refresh_token","Missing Refresh Token (audience: '".concat(ra(n,["default"]),"', scope: '").concat(ra(r),"')"))||this;return o.audience=n,o.scope=r,Object.setPrototypeOf(o,t.prototype),o}return l(t,e),t}(Ec),Dc=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 Uc(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new Fc(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(Ec.fromPayload(c.data.response));t(c.data.response)}},window.addEventListener("message",r)}))},Bc=function(){return window.crypto||window.msCrypto},Mc=function(){var e=Bc();return e.subtle||e.webkitSubtle},Qc=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(Bc().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},qc=function(e){return btoa(e)},$c=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},ea=function(e){return p(void 0,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:return t=Mc().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()]}}))}))},ta=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,"+"))},na=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,m([],y(Array.from(t)),!1))))};function ra(e,t){return void 0===t&&(t=[]),e&&!t.includes(e)?e:""}var oa=function(e,t){return p(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}))}))},ia=function(e,t,n){return p(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([oa(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},ca=function(e,t,n,r,o,i,c){return p(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}))}))},aa=function(e,t,n,r,o,i,c){return void 0===c&&(c=1e4),p(void 0,void 0,void 0,(function(){return h(this,(function(a){return o?[2,ca(e,t,n,r,c,o,i)]:[2,ia(e,r,c)]}))}))};function sa(e,t,n,r,o,i,c){return p(this,void 0,void 0,(function(){var a,s,u,l,d,p,y,m,v;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,aa(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,m=f(d,["error","error_description"]),!s.ok){if(v=y||"HTTP error. Unable to fetch ".concat(e),"mfa_required"===p)throw new Ac(p,v,m.mfa_token);throw new Ec(p||"request_error",v)}return[2,m]}}))}))}function ua(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 p(this,void 0,void 0,(function(){var e;return h(this,(function(u){switch(u.label){case 0:return e=a?$c(s):JSON.stringify(s),[4,sa("".concat(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||Hc))}},t,a)];case 1:return[2,u.sent()]}}))}))}var la=function(e){return Array.from(new Set(e))},da=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return la(e.join(" ").trim().split(/\s+/)).join(" ")},fa=function(){function e(e,t){void 0===t&&(t="@@auth0spajs@@"),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return e.prototype.toKey=function(){return"".concat(this.prefix,"::").concat(this.client_id,"::").concat(this.audience,"::").concat(this.scope)},e.fromKey=function(t){var n=y(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}(),pa=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}(),ha=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)}})},ya=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||Pc}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),p(this,void 0,void 0,(function(){var r,o,i,c,a;return h(this,(function(s){switch(s.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=s.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=s.sent())?(i=this.matchExistingCacheKey(e,o))?[4,this.cache.get(i)]:[3,4]:[2];case 3:r=s.sent(),s.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return c=s.sent(),a=Math.floor(c/1e3),r.expiresAt-t<a?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return s.sent(),[2,r.body];case 7:return[4,this.cache.remove(e.toKey())];case 8:return s.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return s.sent(),[2];case 10:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return p(this,void 0,void 0,(function(){var n,r;return h(this,(function(o){switch(o.label){case 0:return n=new fa({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=o.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return o.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return p(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 p(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){return p(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return t=o.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return p(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=fa.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}(),ma=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId),this.transaction=this.storage.get(this.storageKey)}return e.prototype.create=function(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove(this.storageKey)},e}(),va=function(e){return"number"==typeof e},ba=["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"],ga=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=y(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(ta(o)),a={__raw:e},s={};return Object.keys(c).forEach((function(e){a[e]=c[e],ba.includes(e)||(s[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(ta(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 "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!va(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(!va(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!va(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=e.leeway||60,r=new Date(e.now||Date.now()),o=new Date(0),i=new Date(0),c=new Date(0);if(c.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),o.setUTCSeconds(t.claims.exp+n),i.setUTCSeconds(t.claims.nbf-n),r>o)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(o,")"));if(va(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time (".concat(r,") is before ").concat(i));if(va(t.claims.auth_time)&&r>c)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time (".concat(r,") is after last auth at ").concat(c));if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(e.organizationId,'", found "').concat(t.claims.org_id,'"'))}return t},wa=g((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},n.apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function o(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),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}))}}));b(wa),wa.encode,wa.parse,wa.getAll;var Sa=wa.get,ka=wa.set,Ia=wa.remove,Za={get:function(e){var t=Sa(e);if(void 0!==t)return JSON.parse(t)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),ka(e,JSON.stringify(t),r)},remove:function(e,t){var n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),Ia(e,n)}},Wa={get:function(e){return Za.get(e)||Za.get("".concat("_legacy_").concat(e))},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),ka("".concat("_legacy_").concat(e),JSON.stringify(t),r),Za.save(e,t,n)},remove:function(e,t){var n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),Ia(e,n),Za.remove(e,t),Za.remove("".concat("_legacy_").concat(e),t)}},Ga={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 _a,xa=("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7dmFyIHQ9ZnVuY3Rpb24oZSxyKXtyZXR1cm4gdD1PYmplY3Quc2V0UHJvdG90eXBlT2Z8fHtfX3Byb3RvX186W119aW5zdGFuY2VvZiBBcnJheSYmZnVuY3Rpb24odCxlKXt0Ll9fcHJvdG9fXz1lfXx8ZnVuY3Rpb24odCxlKXtmb3IodmFyIHIgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxyKSYmKHRbcl09ZVtyXSl9LHQoZSxyKX07ZnVuY3Rpb24gZShlLHIpe2lmKCJmdW5jdGlvbiIhPXR5cGVvZiByJiZudWxsIT09cil0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIrU3RyaW5nKHIpKyIgaXMgbm90IGEgY29uc3RydWN0b3Igb3IgbnVsbCIpO2Z1bmN0aW9uIG4oKXt0aGlzLmNvbnN0cnVjdG9yPWV9dChlLHIpLGUucHJvdG90eXBlPW51bGw9PT1yP09iamVjdC5jcmVhdGUocik6KG4ucHJvdG90eXBlPXIucHJvdG90eXBlLG5ldyBuKX12YXIgcj1mdW5jdGlvbigpe3JldHVybiByPU9iamVjdC5hc3NpZ258fGZ1bmN0aW9uKHQpe2Zvcih2YXIgZSxyPTEsbj1hcmd1bWVudHMubGVuZ3RoO3I8bjtyKyspZm9yKHZhciBvIGluIGU9YXJndW1lbnRzW3JdKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLG8pJiYodFtvXT1lW29dKTtyZXR1cm4gdH0sci5hcHBseSh0aGlzLGFyZ3VtZW50cyl9O2Z1bmN0aW9uIG4odCxlLHIsbil7cmV0dXJuIG5ldyhyfHwocj1Qcm9taXNlKSk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b2tlbj8oZnVuY3Rpb24odCxlLHIpe3NbdShlLHIpXT10fSh0LnJlZnJlc2hfdG9rZW4sbix5KSxkZWxldGUgdC5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbih0LGUpe2RlbGV0ZSBzW3UodCxlKV19KG4seSksaC5wb3N0TWVzc2FnZSh7b2s6dy5vayxqc29uOnR9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIF89by5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Xy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIGcsbSxrLFB9KSl9KSl9KSl9KCk7Cgo=",null,!1,function(e){return _a=_a||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)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7dmFyIHQ9ZnVuY3Rpb24oZSxyKXtyZXR1cm4gdD1PYmplY3Quc2V0UHJvdG90eXBlT2Z8fHtfX3Byb3RvX186W119aW5zdGFuY2VvZiBBcnJheSYmZnVuY3Rpb24odCxlKXt0Ll9fcHJvdG9fXz1lfXx8ZnVuY3Rpb24odCxlKXtmb3IodmFyIHIgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxyKSYmKHRbcl09ZVtyXSl9LHQoZSxyKX07ZnVuY3Rpb24gZShlLHIpe2lmKCJmdW5jdGlvbiIhPXR5cGVvZiByJiZudWxsIT09cil0aHJvdyBuZXcgVHlw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udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixsLnNpZ25hbD1kLnNpZ25hbCksdz12b2lkIDAsby5sYWJlbD0yO2Nhc2UgMjpyZXR1cm4gby50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKGc9YyxuZXcgUHJvbWlzZSgoZnVuY3Rpb24odCl7cmV0dXJuIHNldFRpbWVvdXQodCxnKX0pKSksZmV0Y2goZixyKHt9LGwpKV0pXTtjYXNlIDM6cmV0dXJuIHc9by5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiBPPW8uc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOk8ubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHc/WzQsdy5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4odD1vLnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24odCxlLHIpe3NbdShlLHIpXT10fSh0LnJlZnJlc2hfdG9rZW4sbix5KSxkZWxldGUgdC5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbih0LGUpe2RlbGV0ZSBzW3UodCxlKV19KG4seSksaC5wb3N0TWVzc2FnZSh7b2s6dy5vayxqc29uOnR9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIF89by5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Xy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIGcsbSxrLFB9KSl9KSl9KSl9KCk7Cgo=",null,false),new Worker(_a,e)}),Ca={},Xa=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 p(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:m([],y(n),!1)})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return p(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:m([],y(n),!1)})]:[3,3]):[3,5];case 2:case 4:return[2,r.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 5:return[2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return"".concat("@@auth0spajs@@","::").concat(e)},e}(),La=new Kc,Ta={memory:function(){return(new ha).enclosedCache},localstorage:function(){return new pa}},Oa=function(e){return Ta[e]},Ra=function(){function e(e){var t,n,r,o,i=this;if(this.options=e,this._releaseLockOnPageHide=function(){return p(i,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return[4,La.releaseLock("auth0.lock.getTokenSilently")];case 1:return e.sent(),window.removeEventListener("pagehide",this._releaseLockOnPageHide),[2]}}))}))},"undefined"!=typeof window&&function(){if(!Bc())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Mc())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",!Oa(this.cacheLocation))throw new Error('Invalid cache location "'.concat(this.cacheLocation,'"'));r=Oa(this.cacheLocation)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?Za:Wa,this.orgHintCookieName=(o=this.options.client_id,"auth0.".concat(o,".organization_hint")),this.isAuthenticatedCookieName=function(e){return"auth0.".concat(e,".is.authenticated")}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var c,a=e.useCookiesForTransactions?this.cookieStorage:Ga;this.scope=this.options.scope,this.transactionManager=new ma(a,this.options.client_id),this.nowProvider=this.options.nowProvider||Pc,this.cacheManager=new ya(r,r.allKeys?null:new Xa(r,this.options.client_id),this.nowProvider),this.domainUrl=(c=this.options.domain,/^https?:\/\//.test(c)?c:"https://".concat(c)),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://".concat(e,"/"):"".concat(t,"/")}(this.options.issuer,this.domainUrl),this.defaultScope=da("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=da(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 xa),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.cache,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.nowProvider,e.redirect_uri,e.scope,e.useRefreshTokens,e.useRefreshTokensFallback,e.useCookiesForTransactions,e.useFormData,f(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","cache","client_id","domain","issuer","leeway","max_age","nowProvider","redirect_uri","scope","useRefreshTokens","useRefreshTokensFallback","useCookiesForTransactions","useFormData"])}(e),this.useRefreshTokensFallback=!1!==this.options.useRefreshTokensFallback}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Hc)));return"".concat(this.domainUrl).concat(e,"&auth0Client=").concat(t)},e.prototype._getParams=function(e,t,n,r,o){var i=this.options;i.useRefreshTokens,i.useCookiesForTransactions,i.useFormData,i.auth0Client,i.cacheLocation,i.advancedOptions,i.detailedResponse,i.nowProvider,i.authorizeTimeoutInSeconds,i.legacySameSiteCookie,i.sessionCheckExpiryDays,i.domain,i.leeway,i.httpTimeoutInSeconds;var c=f(i,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway","httpTimeoutInSeconds"]);return d(d(d({},c),e),{scope:da(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?".concat($c(e)))},e.prototype._verifyIdToken=function(e,t,n){return p(this,void 0,void 0,(function(){var r;return h(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return r=o.sent(),[2,ga({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:r})]}}))}))},e.prototype._parseNumber=function(e){return"string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l,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=qc(Qc()),i=qc(Qc()),c=Qc(),[4,ea(c)];case 1:return a=h.sent(),s=na(a),u=e.fragment?"#".concat(e.fragment):"",l=this._getParams(r,o,i,s,t),p=this._authorizeUrl(l),y=e.organization||this.options.organization,this.transactionManager.create(d({nonce:i,code_verifier:c,appState:n,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o},y&&{organizationId:y})),[2,p+u]}}))}))},e.prototype.loginWithPopup=function(e,t){return p(this,void 0,void 0,(function(){var n,r,o,i,c,a,s,u,l,p,y,m,v;return h(this,(function(h){switch(h.label){case 0:if(e=e||{},!(t=t||{}).popup&&(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup","left=".concat(t,",top=").concat(n,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))}(),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");return n=f(e,[]),r=qc(Qc()),o=qc(Qc()),i=Qc(),[4,ea(i)];case 1:return c=h.sent(),a=na(c),s=this._getParams(n,r,o,a,this.options.redirect_uri||window.location.origin),u=this._authorizeUrl(d(d({},s),{response_mode:"web_message"})),t.popup.location.href=u,[4,Dc(d(d({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(l=h.sent(),r!==l.state)throw new Error("Invalid state");return[4,ua({audience:s.audience,scope:s.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:i,code:l.code,grant_type:"authorization_code",redirect_uri:s.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},this.worker)];case 3:return p=h.sent(),y=e.organization||this.options.organization,[4,this._verifyIdToken(p.id_token,o,y)];case 4:return m=h.sent(),v=d(d({},p),{decodedToken:m,scope:s.scope,audience:s.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(v)];case 5:return h.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(m.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),p(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=da(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new fa({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={}),p(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=da(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new fa({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={}),p(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),p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l;return h(this,(function(f){switch(f.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=y(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()))throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Nc(i,c,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Error("Invalid state");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,timeout:this.httpTimeoutMs},void 0!==a.redirect_uri&&(s.redirect_uri=a.redirect_uri),[4,ua(s,this.worker)];case 1:return u=f.sent(),[4,this._verifyIdToken(u.id_token,a.nonce,a.organizationId)];case 2:return l=f.sent(),[4,this.cacheManager.set(d(d(d(d({},u),{decodedToken:l,audience:a.audience,scope:a.scope}),u.scope?{oauthTokenScope:u.scope}:null),{client_id:this.options.client_id}))];case 3:return f.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(l.claims.org_id),[2,{appState:a.appState}]}}))}))},e.prototype.checkSession=function(e){return p(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,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return n.sent(),[3,4];case 3:if(t=n.sent(),!Vc.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),p(this,void 0,void 0,(function(){var t,n,r,o=this;return h(this,(function(i){return t=d(d({audience:this.options.audience,ignoreCache:!1},e),{scope:da(this.defaultScope,this.scope,e.scope)}),n=t.ignoreCache,r=f(t,["ignoreCache"]),[2,(c=function(){return o._getTokenSilently(d({ignoreCache:n},r))},a="".concat(this.options.client_id,"::").concat(r.audience,"::").concat(r.scope),s=Ca[a],s||(s=c().finally((function(){delete Ca[a],s=null})),Ca[a]=s),s)];var c,a,s}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return h(this,(function(l){switch(l.label){case 0:return t=e.ignoreCache,n=f(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 1:if(r=l.sent())return[2,r];l.label=2;case 2:return[4,(y=function(){return La.acquireLock("auth0.lock.getTokenSilently",5e3)},m=10,void 0===m&&(m=3),p(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<m?[4,y()]:[3,4];case 2:if(t.sent())return[2,!0];t.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!l.sent())return[3,15];l.label=4;case 4:return l.trys.push([4,,12,14]),window.addEventListener("pagehide",this._releaseLockOnPageHide),t?[3,6]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 5:if(r=l.sent())return[2,r];l.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(n)]:[3,8];case 7:return i=l.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(n)];case 9:i=l.sent(),l.label=10;case 10:return o=i,[4,this.cacheManager.set(d({client_id:this.options.client_id},o))];case 11:return l.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),e.detailedResponse?(c=o.id_token,a=o.access_token,s=o.oauthTokenScope,u=o.expires_in,[2,d(d({id_token:c,access_token:a},s?{scope:s}:null),{expires_in:u})]):[2,o.access_token];case 12:return[4,La.releaseLock("auth0.lock.getTokenSilently")];case 13:return l.sent(),window.removeEventListener("pagehide",this._releaseLockOnPageHide),[7];case 14:return[3,16];case 15:throw new Jc;case 16:return[2]}var y,m}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),p(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=da(this.defaultScope,this.scope,e.scope),t=d(d({},Yc),t),[4,this.loginWithPopup(e,t)];case 1:return n.sent(),[4,this.cacheManager.get(new fa({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 p(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?".concat($c(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,{cookieDomain:t.options.cookieDomain}),t.cookieStorage.remove(t.isAuthenticatedCookieName,{cookieDomain:t.options.cookieDomain}),!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 p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l,p,y,m,v,b,g,w;return h(this,(function(h){switch(h.label){case 0:return t=qc(Qc()),n=qc(Qc()),r=Qc(),[4,ea(r)];case 1:o=h.sent(),i=na(o),c=f(e,["detailedResponse"]),a=this._getParams(c,t,n,i,e.redirect_uri||this.options.redirect_uri||window.location.origin),(s=this.cookieStorage.get(this.orgHintCookieName))&&!a.organization&&(a.organization=s),u=this._authorizeUrl(d(d({},a),{prompt:"none",response_mode:"web_message"})),h.label=2;case 2:if(h.trys.push([2,6,,7]),window.crossOriginIsolated)throw new Ec("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return l=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,[4,(S=u,k=this.domainUrl,I=l,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 Jc),o()}),1e3*I);r=function(n){if(n.origin==k&&n.data&&"authorization_response"===n.data.type){var c=n.source;c&&c.close(),n.data.response.error?t(Ec.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3)}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",S)})))];case 3:if(p=h.sent(),t!==p.state)throw new Error("Invalid state");return y=e.scope,m=e.audience,v=f(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,ua(d(d(d({},this.customOptions),v),{scope:y,audience:m,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:p.code,grant_type:"authorization_code",redirect_uri:a.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:v.timeout||this.httpTimeoutMs}),this.worker)];case 4:return b=h.sent(),[4,this._verifyIdToken(b.id_token,n)];case 5:return g=h.sent(),this._processOrgIdHint(g.claims.org_id),[2,d(d({},b),{decodedToken:g,scope:a.scope,oauthTokenScope:b.scope,audience:a.audience||"default"})];case 6:throw"login_required"===(w=h.sent()).error&&this.logout({localOnly:!0}),w;case 7:return[2]}var S,k,I}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return p(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return h(this,(function(l){switch(l.label){case 0:return e.scope=da(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new fa({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=l.sent())&&t.refresh_token||this.worker?[3,4]:this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(e)]:[3,3];case 2:return[2,l.sent()];case 3:throw new zc(e.audience||"default",e.scope);case 4:n=e.redirect_uri||this.options.redirect_uri||window.location.origin,o=e.scope,i=e.audience,c=f(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),a="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,l.label=5;case 5:return l.trys.push([5,7,,10]),[4,ua(d(d(d(d(d({},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,timeout:this.httpTimeoutMs}),this.worker)];case 6:return r=l.sent(),[3,10];case 7:return((s=l.sent()).message.indexOf("Missing Refresh Token")>-1||s.message&&s.message.indexOf("invalid refresh token")>-1)&&this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(e)]:[3,9];case 8:return[2,l.sent()];case 9:throw s;case 10:return[4,this._verifyIdToken(r.id_token)];case 11:return u=l.sent(),[2,d(d({},r),{decodedToken:u,scope:e.scope,oauthTokenScope:r.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,n=e.audience,r=e.client_id,o=e.getDetailedEntry,i=void 0!==o&&o;return p(this,void 0,void 0,(function(){var e,o,c,a,s;return h(this,(function(u){switch(u.label){case 0:return[4,this.cacheManager.get(new fa({scope:t,audience:n,client_id:r}),60)];case 1:return(e=u.sent())&&e.access_token?i?(o=e.id_token,c=e.access_token,a=e.oauthTokenScope,s=e.expires_in,[2,d(d({id_token:o,access_token:c},a?{scope:a}:null),{expires_in:s})]):[2,e.access_token]:[2]}}))}))},e}(),ja={isAuthenticated:!1,isLoading:!0},Ka=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},Ya=i(i({},ja),{buildAuthorizeUrl:Ka,buildLogoutUrl:Ka,getAccessTokenSilently:Ka,getAccessTokenWithPopup:Ka,getIdTokenClaims:Ka,loginWithRedirect:Ka,loginWithPopup:Ka,logout:Ka,handleRedirectCallback:Ka}),Va=t.createContext(Ya),Ha=function(e){function t(n,r){var o=e.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return function(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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),Pa=/[?&]code=[^&]+/,Ea=/[?&]state=[^&]+/,Na=/[?&]error=[^&]+/,Ja=function(e){return function(t){return"error"in t?new Ha(t.error,t.error_description):t instanceof Error?t:new Error(e)}},Fa=Ja("Login failed"),Ua=Ja("Get access token failed"),Aa=function(e,t){var n,r;switch(t.type){case"LOGIN_POPUP_STARTED":return i(i({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return i(i({},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:i(i({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return i(i({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return i(i({},e),{isLoading:!1,error:t.error})}},za=function(e){if(e){var t=e.redirectUri,n=c(e,["redirectUri"]);return i(i({},n),{redirect_uri:t})}},Da=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},Ba=function(e){return void 0===e&&(e=Va),t.useContext(e)},Ma=function(){return r.default.createElement(r.default.Fragment,null)},Qa=function(){return"".concat(window.location.pathname).concat(window.location.search)};e.Auth0Context=Va,e.Auth0Provider=function(e){var n=e.children,o=e.skipRedirectCallback,u=e.onRedirectCallback,l=void 0===u?Da:u,d=e.context,f=void 0===d?Va:d,p=c(e,["children","skipRedirectCallback","onRedirectCallback","context"]),h=t.useState((function(){return new Ra(function(e){var t=e.clientId,n=e.redirectUri,r=e.maxAge,o=c(e,["clientId","redirectUri","maxAge"]);return i(i({},o),{client_id:t,redirect_uri:n,max_age:r,auth0Client:{name:"auth0-react",version:"1.12.0"}})}(p))}))[0],y=t.useReducer(Aa,ja),m=y[0],v=y[1],b=t.useRef(!1);t.useEffect((function(){b.current||(b.current=!0,a(void 0,void 0,void 0,(function(){var e,t,n;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,7,,8]),e=void 0,void 0===i&&(i=window.location.search),!Pa.test(i)&&!Na.test(i)||!Ea.test(i)||o?[3,3]:[4,h.handleRedirectCallback()];case 1:return t=r.sent().appState,[4,h.getUser()];case 2:return e=r.sent(),l(t,e),[3,6];case 3:return[4,h.checkSession()];case 4:return r.sent(),[4,h.getUser()];case 5:e=r.sent(),r.label=6;case 6:return v({type:"INITIALISED",user:e}),[3,8];case 7:return n=r.sent(),v({type:"ERROR",error:Fa(n)}),[3,8];case 8:return[2]}var i}))})))}),[h,l,o]);var g=t.useCallback((function(e){return h.buildAuthorizeUrl(za(e))}),[h]),w=t.useCallback((function(e){return h.buildLogoutUrl(e)}),[h]),S=t.useCallback((function(e){return h.loginWithRedirect(za(e))}),[h]),k=t.useCallback((function(e,t){return a(void 0,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:v({type:"LOGIN_POPUP_STARTED"}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,h.loginWithPopup(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),v({type:"ERROR",error:Fa(n)}),[2];case 4:return[4,h.getUser()];case 5:return r=o.sent(),v({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[h]),I=t.useCallback((function(e){void 0===e&&(e={});var t=h.logout(e);if(e.localOnly){if(t&&"function"==typeof t.then)return t.then((function(){return v({type:"LOGOUT"})}));v({type:"LOGOUT"})}return t}),[h]),Z=t.useCallback((function(e){return a(void 0,void 0,void 0,(function(){var t,n,r,o;return s(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,h.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw n=i.sent(),Ua(n);case 3:return r=v,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,h.getUser()];case 4:return r.apply(void 0,[(o.user=i.sent(),o)]),[7];case 5:return[2,t]}}))}))}),[h]),W=t.useCallback((function(e,t){return a(void 0,void 0,void 0,(function(){var n,r,o,i;return s(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,5]),[4,h.getTokenWithPopup(e,t)];case 1:return n=c.sent(),[3,5];case 2:throw r=c.sent(),Ua(r);case 3:return o=v,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,h.getUser()];case 4:return o.apply(void 0,[(i.user=c.sent(),i)]),[7];case 5:return[2,n]}}))}))}),[h]),G=t.useCallback((function(e){return h.getIdTokenClaims(e)}),[h]),_=t.useCallback((function(e){return a(void 0,void 0,void 0,(function(){var t,n,r;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,h.handleRedirectCallback(e)];case 1:return[2,o.sent()];case 2:throw t=o.sent(),Ua(t);case 3:return n=v,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,h.getUser()];case 4:return n.apply(void 0,[(r.user=o.sent(),r)]),[7];case 5:return[2]}}))}))}),[h]),x=t.useMemo((function(){return i(i({},m),{buildAuthorizeUrl:g,buildLogoutUrl:w,getAccessTokenSilently:Z,getAccessTokenWithPopup:W,getIdTokenClaims:G,loginWithRedirect:S,loginWithPopup:k,logout:I,handleRedirectCallback:_})}),[m,g,w,Z,W,G,S,k,I,_]);return r.default.createElement(f.Provider,{value:x},n)},e.InMemoryCache=ha,e.LocalStorageCache=pa,e.OAuthError=Ha,e.User=function(){},e.initialContext=Ya,e.useAuth0=Ba,e.withAuth0=function(e,t){return void 0===t&&(t=Va),function(n){return r.default.createElement(t.Consumer,null,(function(t){return r.default.createElement(e,i({},n,{auth0:t}))}))}},e.withAuthenticationRequired=function(e,n){return void 0===n&&(n={}),function(o){var c=this,u=n.returnTo,l=void 0===u?Qa:u,d=n.onRedirecting,f=void 0===d?Ma:d,p=n.claimCheck,h=void 0===p?function(){return!0}:p,y=n.loginOptions,m=n.context,v=Ba(void 0===m?Va:m),b=v.user,g=v.isAuthenticated,w=v.isLoading,S=v.loginWithRedirect,k=g&&h(b);return t.useEffect((function(){if(!w&&!k){var e=i(i({},y),{appState:i(i({},y&&y.appState),{returnTo:"function"==typeof l?l():l})});a(c,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,S(e)];case 1:return t.sent(),[2]}}))}))}}),[w,k,S,y,l]),k?r.default.createElement(e,i({},o)):f()}},Object.defineProperty(e,"__esModule",{value:!0})}));
30
16
  //# sourceMappingURL=auth0-react.min.js.map