@auth0/auth0-spa-js 1.19.3 → 1.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth0-spa-js.development.js +69 -32
- package/dist/auth0-spa-js.development.js.map +1 -1
- package/dist/auth0-spa-js.production.esm.js +1 -1
- package/dist/auth0-spa-js.production.esm.js.map +1 -1
- package/dist/auth0-spa-js.production.js +1 -1
- package/dist/auth0-spa-js.production.js.map +1 -1
- package/dist/lib/auth0-spa-js.cjs.js +69 -32
- package/dist/lib/auth0-spa-js.cjs.js.map +1 -1
- package/dist/typings/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/Auth0Client.ts +3 -1
- package/src/version.ts +1 -1
|
@@ -12,5 +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 e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e,t){return e(t={exports:{}},t.exports),t.exports}var f,d,h=function(e){return e&&e.Math==Math&&e},p=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof s&&s)||function(){return this}()||Function("return this")(),y=function(e){try{return!!e()}catch(e){return!0}},v=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=Function.prototype.call,g=m.bind?m.bind(m):function(){return m.apply(m,arguments)},b={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,S={f:w&&!b.call({1:2},1)?function(e){var t=w(this,e);return!!t&&t.enumerable}:b},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k=Function.prototype,I=k.bind,T=k.call,O=I&&I.bind(T),E=I?function(e){return e&&O(T,e)}:function(e){return e&&function(){return T.apply(e,arguments)}},C=E({}.toString),x=E("".slice),R=function(e){return x(C(e),8,-1)},A=p.Object,F=E("".split),j=y((function(){return!A("z").propertyIsEnumerable(0)}))?function(e){return"String"==R(e)?F(e,""):A(e)}:A,U=p.TypeError,K=function(e){if(null==e)throw U("Can't call method on "+e);return e},P=function(e){return j(K(e))},L=function(e){return"function"==typeof e},W=function(e){return"object"==typeof e?null!==e:L(e)},Z=function(e){return L(e)?e:void 0},V=function(e,t){return arguments.length<2?Z(p[e]):p[e]&&p[e][t]},N=E({}.isPrototypeOf),X=V("navigator","userAgent")||"",D=p.process,z=p.Deno,Y=D&&D.versions||z&&z.version,J=Y&&Y.v8;J&&(d=(f=J.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!d&&X&&(!(f=X.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=X.match(/Chrome\/(\d+)/))&&(d=+f[1]);var B=d,G=!!Object.getOwnPropertySymbols&&!y((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41})),M=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=p.Object,q=M?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return L(t)&&N(t.prototype,H(e))},Q=p.String,$=function(e){try{return Q(e)}catch(e){return"Object"}},ee=p.TypeError,te=function(e){if(L(e))return e;throw ee($(e)+" is not a function")},ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=p.TypeError,oe=Object.defineProperty,ie=function(e,t){try{oe(p,e,{value:t,configurable:!0,writable:!0})}catch(n){p[e]=t}return t},ae="__core-js_shared__",ce=p[ae]||ie(ae,{}),se=l((function(e){(e.exports=function(e,t){return ce[e]||(ce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ue=p.Object,le=function(e){return ue(K(e))},fe=E({}.hasOwnProperty),de=Object.hasOwn||function(e,t){return fe(le(e),t)},he=0,pe=Math.random(),ye=E(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ye(++he+pe,36)},me=se("wks"),ge=p.Symbol,be=ge&&ge.for,we=M?ge:ge&&ge.withoutSetter||ve,Se=function(e){if(!de(me,e)||!G&&"string"!=typeof me[e]){var t="Symbol."+e;G&&de(ge,e)?me[e]=ge[e]:me[e]=M&&be?be(t):we(t)}return me[e]},_e=p.TypeError,ke=Se("toPrimitive"),Ie=function(e,t){if(!W(e)||q(e))return e;var n,r=ne(e,ke);if(r){if(void 0===t&&(t="default"),n=g(r,e,t),!W(n)||q(n))return n;throw _e("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&L(n=e.toString)&&!W(r=g(n,e)))return r;if(L(n=e.valueOf)&&!W(r=g(n,e)))return r;if("string"!==t&&L(n=e.toString)&&!W(r=g(n,e)))return r;throw re("Can't convert object to primitive value")}(e,t)},Te=function(e){var t=Ie(e,"string");return q(t)?t:t+""},Oe=p.document,Ee=W(Oe)&&W(Oe.createElement),Ce=function(e){return Ee?Oe.createElement(e):{}},xe=!v&&!y((function(){return 7!=Object.defineProperty(Ce("div"),"a",{get:function(){return 7}}).a})),Re=Object.getOwnPropertyDescriptor,Ae={f:v?Re:function(e,t){if(e=P(e),t=Te(t),xe)try{return Re(e,t)}catch(e){}if(de(e,t))return _(!g(S.f,e,t),e[t])}},Fe=p.String,je=p.TypeError,Ue=function(e){if(W(e))return e;throw je(Fe(e)+" is not an object")},Ke=p.TypeError,Pe=Object.defineProperty,Le={f:v?Pe:function(e,t,n){if(Ue(e),t=Te(t),Ue(n),xe)try{return Pe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=v?function(e,t,n){return Le.f(e,t,_(1,n))}:function(e,t,n){return e[t]=n,e},Ze=E(Function.toString);L(ce.inspectSource)||(ce.inspectSource=function(e){return Ze(e)});var Ve,Ne,Xe,De=ce.inspectSource,ze=p.WeakMap,Ye=L(ze)&&/native code/.test(De(ze)),Je=se("keys"),Be=function(e){return Je[e]||(Je[e]=ve(e))},Ge={},Me="Object already initialized",He=p.TypeError,qe=p.WeakMap;if(Ye||ce.state){var Qe=ce.state||(ce.state=new qe),$e=E(Qe.get),et=E(Qe.has),tt=E(Qe.set);Ve=function(e,t){if(et(Qe,e))throw new He(Me);return t.facade=e,tt(Qe,e,t),t},Ne=function(e){return $e(Qe,e)||{}},Xe=function(e){return et(Qe,e)}}else{var nt=Be("state");Ge[nt]=!0,Ve=function(e,t){if(de(e,nt))throw new He(Me);return t.facade=e,We(e,nt,t),t},Ne=function(e){return de(e,nt)?e[nt]:{}},Xe=function(e){return de(e,nt)}}var rt={set:Ve,get:Ne,has:Xe,enforce:function(e){return Xe(e)?Ne(e):Ve(e,{})},getterFor:function(e){return function(t){var n;if(!W(t)||(n=Ne(t)).type!==e)throw He("Incompatible receiver, "+e+" required");return n}}},ot=Function.prototype,it=v&&Object.getOwnPropertyDescriptor,at=de(ot,"name"),ct={EXISTS:at,PROPER:at&&"something"===function(){}.name,CONFIGURABLE:at&&(!v||v&&it(ot,"name").configurable)},st=l((function(e){var t=ct.CONFIGURABLE,n=rt.get,r=rt.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var c,s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;L(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!de(i,"name")||t&&i.name!==f)&&We(i,"name",f),(c=r(i)).source||(c.source=o.join("string"==typeof f?f:""))),e!==p?(s?!l&&e[n]&&(u=!0):delete e[n],u?e[n]=i:We(e,n,i)):u?e[n]=i:ie(n,i)})(Function.prototype,"toString",(function(){return L(this)&&n(this).source||De(this)}))})),ut=Math.ceil,lt=Math.floor,ft=function(e){var t=+e;return t!=t||0===t?0:(t>0?lt:ut)(t)},dt=Math.max,ht=Math.min,pt=Math.min,yt=function(e){return e>0?pt(ft(e),9007199254740991):0},vt=function(e){return yt(e.length)},mt=function(e){return function(t,n,r){var o,i=P(t),a=vt(i),c=function(e,t){var n=ft(e);return n<0?dt(n+t,0):ht(n,t)}(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},gt={includes:mt(!0),indexOf:mt(!1)},bt=gt.indexOf,wt=E([].push),St=function(e,t){var n,r=P(e),o=0,i=[];for(n in r)!de(Ge,n)&&de(r,n)&&wt(i,n);for(;t.length>o;)de(r,n=t[o++])&&(~bt(i,n)||wt(i,n));return i},_t=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kt=_t.concat("length","prototype"),It={f:Object.getOwnPropertyNames||function(e){return St(e,kt)}},Tt={f:Object.getOwnPropertySymbols},Ot=E([].concat),Et=V("Reflect","ownKeys")||function(e){var t=It.f(Ue(e)),n=Tt.f;return n?Ot(t,n(e)):t},Ct=function(e,t){for(var n=Et(t),r=Le.f,o=Ae.f,i=0;i<n.length;i++){var a=n[i];de(e,a)||r(e,a,o(t,a))}},xt=/#|\.prototype\./,Rt=function(e,t){var n=Ft[At(e)];return n==Ut||n!=jt&&(L(t)?y(t):!!t)},At=Rt.normalize=function(e){return String(e).replace(xt,".").toLowerCase()},Ft=Rt.data={},jt=Rt.NATIVE="N",Ut=Rt.POLYFILL="P",Kt=Rt,Pt=Ae.f,Lt=function(e,t){var n,r,o,i,a,c=e.target,s=e.global,u=e.stat;if(n=s?p:u?p[c]||ie(c,{}):(p[c]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pt(n,r))&&a.value:n[r],!Kt(s?r:c+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ct(i,o)}(e.sham||o&&o.sham)&&We(i,"sham",!0),st(n,r,i,e)}},Wt={};Wt[Se("toStringTag")]="z";var Zt,Vt="[object z]"===String(Wt),Nt=Se("toStringTag"),Xt=p.Object,Dt="Arguments"==R(function(){return arguments}()),zt=Vt?R:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Xt(e),Nt))?n:Dt?R(t):"Object"==(r=R(t))&&L(t.callee)?"Arguments":r},Yt=p.String,Jt=function(e){if("Symbol"===zt(e))throw TypeError("Cannot convert a Symbol value to a string");return Yt(e)},Bt=Se("match"),Gt=p.TypeError,Mt=function(e){if(function(e){var t;return W(e)&&(void 0!==(t=e[Bt])?!!t:"RegExp"==R(e))}(e))throw Gt("The method doesn't accept regular expressions");return e},Ht=Se("match"),qt=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ht]=!1,"/./"[e](t)}catch(e){}}return!1},Qt=Ae.f,$t=E("".startsWith),en=E("".slice),tn=Math.min,nn=qt("startsWith"),rn=!(nn||(Zt=Qt(String.prototype,"startsWith"),!Zt||Zt.writable));Lt({target:"String",proto:!0,forced:!rn&&!nn},{startsWith:function(e){var t=Jt(K(this));Mt(e);var n=yt(tn(arguments.length>1?arguments[1]:void 0,t.length)),r=Jt(e);return $t?$t(t,r,n):en(t,n,n+r.length)===r}});var on=function(e,t){return E(p[e].prototype[t])};on("String","startsWith");var an,cn=Array.isArray||function(e){return"Array"==R(e)},sn=function(e,t,n){var r=Te(t);r in e?Le.f(e,r,_(0,n)):e[r]=n},un=function(){},ln=[],fn=V("Reflect","construct"),dn=/^\s*(?:class|function)\b/,hn=E(dn.exec),pn=!dn.exec(un),yn=function(e){if(!L(e))return!1;try{return fn(un,ln,e),!0}catch(e){return!1}},vn=!fn||y((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?function(e){if(!L(e))return!1;switch(zt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pn||!!hn(dn,De(e))}:yn,mn=Se("species"),gn=p.Array,bn=function(e,t){return new(function(e){var t;return cn(e)&&(t=e.constructor,(vn(t)&&(t===gn||cn(t.prototype))||W(t)&&null===(t=t[mn]))&&(t=void 0)),void 0===t?gn:t}(e))(0===t?0:t)},wn=Se("species"),Sn=Se("isConcatSpreadable"),_n=9007199254740991,kn="Maximum allowed index exceeded",In=p.TypeError,Tn=B>=51||!y((function(){var e=[];return e[Sn]=!1,e.concat()[0]!==e})),On=(an="concat",B>=51||!y((function(){var e=[];return(e.constructor={})[wn]=function(){return{foo:1}},1!==e[an](Boolean).foo}))),En=function(e){if(!W(e))return!1;var t=e[Sn];return void 0!==t?!!t:cn(e)};Lt({target:"Array",proto:!0,forced:!Tn||!On},{concat:function(e){var t,n,r,o,i,a=le(this),c=bn(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(En(i=-1===t?a:arguments[t])){if(s+(o=vt(i))>_n)throw In(kn);for(n=0;n<o;n++,s++)n in i&&sn(c,s,i[n])}else{if(s>=_n)throw In(kn);sn(c,s++,i)}return c.length=s,c}});var Cn=Vt?{}.toString:function(){return"[object "+zt(this)+"]"};Vt||st(Object.prototype,"toString",Cn,{unsafe:!0});var xn,Rn=Function.prototype,An=Rn.apply,Fn=Rn.bind,jn=Rn.call,Un="object"==typeof Reflect&&Reflect.apply||(Fn?jn.bind(An):function(){return jn.apply(An,arguments)}),Kn=Object.keys||function(e){return St(e,_t)},Pn=v?Object.defineProperties:function(e,t){Ue(e);for(var n,r=P(t),o=Kn(t),i=o.length,a=0;i>a;)Le.f(e,n=o[a++],r[n]);return e},Ln=V("document","documentElement"),Wn=Be("IE_PROTO"),Zn=function(){},Vn=function(e){return"<script>"+e+"</"+"script>"},Nn=function(e){e.write(Vn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xn=function(){try{xn=new ActiveXObject("htmlfile")}catch(e){}var e,t;Xn="undefined"!=typeof document?document.domain&&xn?Nn(xn):((t=Ce("iframe")).style.display="none",Ln.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Vn("document.F=Object")),e.close(),e.F):Nn(xn);for(var n=_t.length;n--;)delete Xn.prototype[_t[n]];return Xn()};Ge[Wn]=!0;var Dn=Object.create||function(e,t){var n;return null!==e?(Zn.prototype=Ue(e),n=new Zn,Zn.prototype=null,n[Wn]=e):n=Xn(),void 0===t?n:Pn(n,t)},zn=E([].slice),Yn=It.f,Jn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bn={f:function(e){return Jn&&"Window"==R(e)?function(e){try{return Yn(e)}catch(e){return zn(Jn)}}(e):Yn(P(e))}},Gn={f:Se},Mn=p,Hn=Le.f,qn=function(e){var t=Mn.Symbol||(Mn.Symbol={});de(t,e)||Hn(t,e,{value:Gn.f(e)})},Qn=Le.f,$n=Se("toStringTag"),er=function(e,t,n){e&&!de(e=n?e:e.prototype,$n)&&Qn(e,$n,{configurable:!0,value:t})},tr=E(E.bind),nr=function(e,t){return te(e),void 0===t?e:tr?tr(e,t):function(){return e.apply(t,arguments)}},rr=E([].push),or=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(s,u,l,f){for(var d,h,p=le(s),y=j(p),v=nr(u,l),m=vt(y),g=0,b=f||bn,w=t?b(s,m):n||a?b(s,0):void 0;m>g;g++)if((c||g in y)&&(h=v(d=y[g],g,p),e))if(t)w[g]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:rr(w,d)}else switch(e){case 4:return!1;case 7:rr(w,d)}return i?-1:r||o?o:w}},ir={forEach:or(0),map:or(1),filter:or(2),some:or(3),every:or(4),find:or(5),findIndex:or(6),filterReject:or(7)}.forEach,ar=Be("hidden"),cr="Symbol",sr=Se("toPrimitive"),ur=rt.set,lr=rt.getterFor(cr),fr=Object.prototype,dr=p.Symbol,hr=dr&&dr.prototype,pr=p.TypeError,yr=p.QObject,vr=V("JSON","stringify"),mr=Ae.f,gr=Le.f,br=Bn.f,wr=S.f,Sr=E([].push),_r=se("symbols"),kr=se("op-symbols"),Ir=se("string-to-symbol-registry"),Tr=se("symbol-to-string-registry"),Or=se("wks"),Er=!yr||!yr.prototype||!yr.prototype.findChild,Cr=v&&y((function(){return 7!=Dn(gr({},"a",{get:function(){return gr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=mr(fr,t);r&&delete fr[t],gr(e,t,n),r&&e!==fr&&gr(fr,t,r)}:gr,xr=function(e,t){var n=_r[e]=Dn(hr);return ur(n,{type:cr,tag:e,description:t}),v||(n.description=t),n},Rr=function(e,t,n){e===fr&&Rr(kr,t,n),Ue(e);var r=Te(t);return Ue(n),de(_r,r)?(n.enumerable?(de(e,ar)&&e[ar][r]&&(e[ar][r]=!1),n=Dn(n,{enumerable:_(0,!1)})):(de(e,ar)||gr(e,ar,_(1,{})),e[ar][r]=!0),Cr(e,r,n)):gr(e,r,n)},Ar=function(e,t){Ue(e);var n=P(t),r=Kn(n).concat(Kr(n));return ir(r,(function(t){v&&!g(Fr,n,t)||Rr(e,t,n[t])})),e},Fr=function(e){var t=Te(e),n=g(wr,this,t);return!(this===fr&&de(_r,t)&&!de(kr,t))&&(!(n||!de(this,t)||!de(_r,t)||de(this,ar)&&this[ar][t])||n)},jr=function(e,t){var n=P(e),r=Te(t);if(n!==fr||!de(_r,r)||de(kr,r)){var o=mr(n,r);return!o||!de(_r,r)||de(n,ar)&&n[ar][r]||(o.enumerable=!0),o}},Ur=function(e){var t=br(P(e)),n=[];return ir(t,(function(e){de(_r,e)||de(Ge,e)||Sr(n,e)})),n},Kr=function(e){var t=e===fr,n=br(t?kr:P(e)),r=[];return ir(n,(function(e){!de(_r,e)||t&&!de(fr,e)||Sr(r,_r[e])})),r};if(G||(hr=(dr=function(){if(N(hr,this))throw pr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Jt(arguments[0]):void 0,t=ve(e),n=function(e){this===fr&&g(n,kr,e),de(this,ar)&&de(this[ar],t)&&(this[ar][t]=!1),Cr(this,t,_(1,e))};return v&&Er&&Cr(fr,t,{configurable:!0,set:n}),xr(t,e)}).prototype,st(hr,"toString",(function(){return lr(this).tag})),st(dr,"withoutSetter",(function(e){return xr(ve(e),e)})),S.f=Fr,Le.f=Rr,Ae.f=jr,It.f=Bn.f=Ur,Tt.f=Kr,Gn.f=function(e){return xr(Se(e),e)},v&&(gr(hr,"description",{configurable:!0,get:function(){return lr(this).description}}),st(fr,"propertyIsEnumerable",Fr,{unsafe:!0}))),Lt({global:!0,wrap:!0,forced:!G,sham:!G},{Symbol:dr}),ir(Kn(Or),(function(e){qn(e)})),Lt({target:cr,stat:!0,forced:!G},{for:function(e){var t=Jt(e);if(de(Ir,t))return Ir[t];var n=dr(t);return Ir[t]=n,Tr[n]=t,n},keyFor:function(e){if(!q(e))throw pr(e+" is not a symbol");if(de(Tr,e))return Tr[e]},useSetter:function(){Er=!0},useSimple:function(){Er=!1}}),Lt({target:"Object",stat:!0,forced:!G,sham:!v},{create:function(e,t){return void 0===t?Dn(e):Ar(Dn(e),t)},defineProperty:Rr,defineProperties:Ar,getOwnPropertyDescriptor:jr}),Lt({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Ur,getOwnPropertySymbols:Kr}),Lt({target:"Object",stat:!0,forced:y((function(){Tt.f(1)}))},{getOwnPropertySymbols:function(e){return Tt.f(le(e))}}),vr){var Pr=!G||y((function(){var e=dr();return"[null]"!=vr([e])||"{}"!=vr({a:e})||"{}"!=vr(Object(e))}));Lt({target:"JSON",stat:!0,forced:Pr},{stringify:function(e,t,n){var r=zn(arguments),o=t;if((W(t)||void 0!==e)&&!q(e))return cn(t)||(t=function(e,t){if(L(o)&&(t=g(o,this,e,t)),!q(t))return t}),r[1]=t,Un(vr,null,r)}})}if(!hr[sr]){var Lr=hr.valueOf;st(hr,sr,(function(e){return g(Lr,this)}))}er(dr,cr),Ge[ar]=!0,qn("asyncIterator");var Wr=Le.f,Zr=p.Symbol,Vr=Zr&&Zr.prototype;if(v&&L(Zr)&&(!("description"in Vr)||void 0!==Zr().description)){var Nr={},Xr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Jt(arguments[0]),t=N(Vr,this)?new Zr(e):void 0===e?Zr():Zr(e);return""===e&&(Nr[t]=!0),t};Ct(Xr,Zr),Xr.prototype=Vr,Vr.constructor=Xr;var Dr="Symbol(test)"==String(Zr("test")),zr=E(Vr.toString),Yr=E(Vr.valueOf),Jr=/^Symbol\((.*)\)[^)]+$/,Br=E("".replace),Gr=E("".slice);Wr(Vr,"description",{configurable:!0,get:function(){var e=Yr(this),t=zr(e);if(de(Nr,e))return"";var n=Dr?Gr(t,7,-1):Br(t,Jr,"$1");return""===n?void 0:n}}),Lt({global:!0,forced:!0},{Symbol:Xr})}qn("hasInstance"),qn("isConcatSpreadable"),qn("iterator"),qn("match"),qn("matchAll"),qn("replace"),qn("search"),qn("species"),qn("split"),qn("toPrimitive"),qn("toStringTag"),qn("unscopables"),er(p.JSON,"JSON",!0),er(Math,"Math",!0),Lt({global:!0},{Reflect:{}}),er(p.Reflect,"Reflect",!0),Mn.Symbol;var Mr,Hr,qr,Qr=E("".charAt),$r=E("".charCodeAt),eo=E("".slice),to=function(e){return function(t,n){var r,o,i=Jt(K(t)),a=ft(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=$r(i,a))<55296||r>56319||a+1===c||(o=$r(i,a+1))<56320||o>57343?e?Qr(i,a):r:e?eo(i,a,a+2):o-56320+(r-55296<<10)+65536}},no={codeAt:to(!1),charAt:to(!0)},ro=!y((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),oo=Be("IE_PROTO"),io=p.Object,ao=io.prototype,co=ro?io.getPrototypeOf:function(e){var t=le(e);if(de(t,oo))return t[oo];var n=t.constructor;return L(n)&&t instanceof n?n.prototype:t instanceof io?ao:null},so=Se("iterator"),uo=!1;[].keys&&("next"in(qr=[].keys())?(Hr=co(co(qr)))!==Object.prototype&&(Mr=Hr):uo=!0),(null==Mr||y((function(){var e={};return Mr[so].call(e)!==e})))&&(Mr={}),L(Mr[so])||st(Mr,so,(function(){return this}));var lo={IteratorPrototype:Mr,BUGGY_SAFARI_ITERATORS:uo},fo={},ho=lo.IteratorPrototype,po=function(){return this},yo=p.String,vo=p.TypeError,mo=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 Ue(n),function(e){if("object"==typeof e||L(e))return e;throw vo("Can't set "+yo(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),go=ct.PROPER,bo=ct.CONFIGURABLE,wo=lo.IteratorPrototype,So=lo.BUGGY_SAFARI_ITERATORS,_o=Se("iterator"),ko="keys",Io="values",To="entries",Oo=function(){return this},Eo=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Dn(ho,{next:_(1,n)}),er(e,r,!1),fo[r]=po}(n,t,r);var c,s,u,l=function(e){if(e===o&&y)return y;if(!So&&e in h)return h[e];switch(e){case ko:case Io:case To:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[_o]||h["@@iterator"]||o&&h[o],y=!So&&p||l(o),v="Array"==t&&h.entries||p;if(v&&(c=co(v.call(new e)))!==Object.prototype&&c.next&&(co(c)!==wo&&(mo?mo(c,wo):L(c[_o])||st(c,_o,Oo)),er(c,f,!0)),go&&o==Io&&p&&p.name!==Io&&(bo?We(h,"name",Io):(d=!0,y=function(){return g(p,this)})),o)if(s={values:l(Io),keys:i?y:l(ko),entries:l(To)},a)for(u in s)(So||d||!(u in h))&&st(h,u,s[u]);else Lt({target:t,proto:!0,forced:So||d},s);return h[_o]!==y&&st(h,_o,y,{name:o}),fo[t]=y,s},Co=no.charAt,xo="String Iterator",Ro=rt.set,Ao=rt.getterFor(xo);Eo(String,"String",(function(e){Ro(this,{type:xo,string:Jt(e),index:0})}),(function(){var e,t=Ao(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Co(n,r),t.index+=e.length,{value:e,done:!1})}));var Fo=function(e,t,n){var r,o;Ue(e);try{if(!(r=ne(e,"return"))){if("throw"===t)throw n;return n}r=g(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ue(r),n},jo=function(e,t,n,r){try{return r?t(Ue(n)[0],n[1]):t(n)}catch(t){Fo(e,"throw",t)}},Uo=Se("iterator"),Ko=Array.prototype,Po=function(e){return void 0!==e&&(fo.Array===e||Ko[Uo]===e)},Lo=Se("iterator"),Wo=function(e){if(null!=e)return ne(e,Lo)||ne(e,"@@iterator")||fo[zt(e)]},Zo=p.TypeError,Vo=function(e,t){var n=arguments.length<2?Wo(e):t;if(te(n))return Ue(g(n,e));throw Zo($(e)+" is not iterable")},No=p.Array,Xo=Se("iterator"),Do=!1;try{var zo=0,Yo={next:function(){return{done:!!zo++}},return:function(){Do=!0}};Yo[Xo]=function(){return this},Array.from(Yo,(function(){throw 2}))}catch(e){}var Jo=function(e,t){if(!t&&!Do)return!1;var n=!1;try{var r={};r[Xo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Bo=!Jo((function(e){Array.from(e)}));Lt({target:"Array",stat:!0,forced:Bo},{from:function(e){var t=le(e),n=vn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=nr(o,r>2?arguments[2]:void 0));var a,c,s,u,l,f,d=Wo(t),h=0;if(!d||this==No&&Po(d))for(a=vt(t),c=n?new this(a):No(a);a>h;h++)f=i?o(t[h],h):t[h],sn(c,h,f);else for(l=(u=Vo(t,d)).next,c=n?new this:[];!(s=g(l,u)).done;h++)f=i?jo(u,o,[s.value,h],!0):s.value,sn(c,h,f);return c.length=h,c}}),Mn.Array.from;var Go,Mo,Ho,qo="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Qo=Le.f,$o=p.Int8Array,ei=$o&&$o.prototype,ti=p.Uint8ClampedArray,ni=ti&&ti.prototype,ri=$o&&co($o),oi=ei&&co(ei),ii=Object.prototype,ai=p.TypeError,ci=Se("toStringTag"),si=ve("TYPED_ARRAY_TAG"),ui=ve("TYPED_ARRAY_CONSTRUCTOR"),li=qo&&!!mo&&"Opera"!==zt(p.opera),fi=!1,di={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},hi={BigInt64Array:8,BigUint64Array:8},pi=function(e){if(!W(e))return!1;var t=zt(e);return de(di,t)||de(hi,t)};for(Go in di)(Ho=(Mo=p[Go])&&Mo.prototype)?We(Ho,ui,Mo):li=!1;for(Go in hi)(Ho=(Mo=p[Go])&&Mo.prototype)&&We(Ho,ui,Mo);if((!li||!L(ri)||ri===Function.prototype)&&(ri=function(){throw ai("Incorrect invocation")},li))for(Go in di)p[Go]&&mo(p[Go],ri);if((!li||!oi||oi===ii)&&(oi=ri.prototype,li))for(Go in di)p[Go]&&mo(p[Go].prototype,oi);if(li&&co(ni)!==oi&&mo(ni,oi),v&&!de(oi,ci))for(Go in fi=!0,Qo(oi,ci,{get:function(){return W(this)?this[si]:void 0}}),di)p[Go]&&We(p[Go],si,Go);var yi={NATIVE_ARRAY_BUFFER_VIEWS:li,TYPED_ARRAY_CONSTRUCTOR:ui,TYPED_ARRAY_TAG:fi&&si,aTypedArray:function(e){if(pi(e))return e;throw ai("Target is not a typed array")},aTypedArrayConstructor:function(e){if(L(e)&&(!mo||N(ri,e)))return e;throw ai($(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(v){if(n)for(var r in di){var o=p[r];if(o&&de(o.prototype,e))try{delete o.prototype[e]}catch(e){}}oi[e]&&!n||st(oi,e,n?t:li&&ei[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(v){if(mo){if(n)for(r in di)if((o=p[r])&&de(o,e))try{delete o[e]}catch(e){}if(ri[e]&&!n)return;try{return st(ri,e,n?t:li&&ri[e]||t)}catch(e){}}for(r in di)!(o=p[r])||o[e]&&!n||st(o,e,t)}},isView:function(e){if(!W(e))return!1;var t=zt(e);return"DataView"===t||de(di,t)||de(hi,t)},isTypedArray:pi,TypedArray:ri,TypedArrayPrototype:oi},vi=p.TypeError,mi=Se("species"),gi=function(e,t){var n,r=Ue(e).constructor;return void 0===r||null==(n=Ue(r)[mi])?t:function(e){if(vn(e))return e;throw vi($(e)+" is not a constructor")}(n)},bi=yi.TYPED_ARRAY_CONSTRUCTOR,wi=yi.aTypedArrayConstructor,Si=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("slice",(function(e,t){for(var n,r=zn(Si(this),e,t),o=wi(gi(n=this,n[bi])),i=0,a=r.length,c=new o(a);a>i;)c[i]=r[i++];return c}),y((function(){new Int8Array(1).slice()})));var _i=Se("unscopables"),ki=Array.prototype;null==ki[_i]&&Le.f(ki,_i,{configurable:!0,value:Dn(null)});var Ii=function(e){ki[_i][e]=!0},Ti=gt.includes;Lt({target:"Array",proto:!0},{includes:function(e){return Ti(this,e,arguments.length>1?arguments[1]:void 0)}}),Ii("includes"),on("Array","includes");var Oi=E("".indexOf);Lt({target:"String",proto:!0,forced:!qt("includes")},{includes:function(e){return!!~Oi(Jt(K(this)),Jt(Mt(e)),arguments.length>1?arguments[1]:void 0)}}),on("String","includes");var Ei="Array Iterator",Ci=rt.set,xi=rt.getterFor(Ei);Eo(Array,"Array",(function(e,t){Ci(this,{type:Ei,target:P(e),index:0,kind:t})}),(function(){var e=xi(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"),fo.Arguments=fo.Array,Ii("keys"),Ii("values"),Ii("entries");var Ri=y((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ai=Object.isExtensible,Fi=y((function(){Ai(1)}))||Ri?function(e){return!!W(e)&&((!Ri||"ArrayBuffer"!=R(e))&&(!Ai||Ai(e)))}:Ai,ji=!y((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ui=l((function(e){var t=Le.f,n=!1,r=ve("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=It.f,t=E([].splice),o={};o[r]=1,e(o).length&&(It.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Lt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Bn.f}))},fastKey:function(e,t){if(!W(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!de(e,r)){if(!Fi(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!de(e,r)){if(!Fi(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ji&&n&&Fi(e)&&!de(e,r)&&i(e),e}};Ge[r]=!0}));Ui.enable,Ui.fastKey,Ui.getWeakData,Ui.onFreeze;var Ki=p.TypeError,Pi=function(e,t){this.stopped=e,this.result=t},Li=Pi.prototype,Wi=function(e,t,n){var r,o,i,a,c,s,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=nr(t,l),y=function(e){return r&&Fo(r,"normal",e),new Pi(!0,e)},v=function(e){return f?(Ue(e),h?p(e[0],e[1],y):p(e[0],e[1])):h?p(e,y):p(e)};if(d)r=e;else{if(!(o=Wo(e)))throw Ki($(e)+" is not iterable");if(Po(o)){for(i=0,a=vt(e);a>i;i++)if((c=v(e[i]))&&N(Li,c))return c;return new Pi(!1)}r=Vo(e,o)}for(s=r.next;!(u=g(s,r)).done;){try{c=v(u.value)}catch(e){Fo(r,"throw",e)}if("object"==typeof c&&c&&N(Li,c))return c}return new Pi(!1)},Zi=p.TypeError,Vi=function(e,t){if(N(t,e))return e;throw Zi("Incorrect invocation")},Ni=function(e,t,n){for(var r in t)st(e,r,t[r],n);return e},Xi=Se("species"),Di=Le.f,zi=Ui.fastKey,Yi=rt.set,Ji=rt.getterFor,Bi={getConstructor:function(e,t,n,r){var o=e((function(e,o){Vi(e,i),Yi(e,{type:t,index:Dn(null),first:void 0,last:void 0,size:0}),v||(e.size=0),null!=o&&Wi(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ji(t),c=function(e,t,n){var r,o,i=a(e),c=s(e,t);return c?c.value=n:(i.last=c={index:o=zi(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=c),r&&(r.next=c),v?i.size++:e.size++,"F"!==o&&(i.index[o]=c)),e},s=function(e,t){var n,r=a(e),o=zi(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Ni(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,v?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),v?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=nr(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Ni(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return c(this,0===e?0:e,t)}}:{add:function(e){return c(this,e=0===e?0:e,e)}}),v&&Di(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Ji(t),i=Ji(r);Eo(e,t,(function(e,t){Yi(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(e){var t=V(e),n=Le.f;v&&t&&!t[Xi]&&n(t,Xi,{configurable:!0,get:function(){return this}})}(t)}};function Gi(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 Mi(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=p[e],c=a&&a.prototype,s=a,u={},l=function(e){var t=E(c[e]);st(c,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!W(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!W(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!W(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Kt(e,!L(a)||!(o||c.forEach&&!y((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ui.enable();else if(Kt(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,h=y((function(){f.has(1)})),v=Jo((function(e){new a(e)})),m=!o&&y((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));v||((s=t((function(e,t){Vi(e,c);var n=function(e,t,n){var r,o;return mo&&L(r=t.constructor)&&r!==n&&W(o=r.prototype)&&o!==n.prototype&&mo(e,o),e}(new a,e,s);return null!=t&&Wi(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=c,c.constructor=s),(h||m)&&(l("delete"),l("has"),r&&l("get")),(m||d)&&l(i),o&&c.clear&&delete c.clear}u[e]=s,Lt({global:!0,forced:s!=a},u),er(s,e),o||n.setStrong(s,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Bi),Mn.Set;var Hi=setTimeout,qi="undefined"!=typeof setImmediate?setImmediate:null;function Qi(e){return Boolean(e&&void 0!==e.length)}function $i(){}function ea(e){if(!(this instanceof ea))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=[],aa(e,this)}function ta(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,ea._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 ra(t.promise,e)}na(t.promise,r)}else(1===e._state?na:ra)(t.promise,e._value)}))):e._deferreds.push(t)}function na(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 ea)return e._state=3,e._value=t,void oa(e);if("function"==typeof n)return void aa((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,oa(e)}catch(t){ra(e,t)}var r,o}function ra(e,t){e._state=2,e._value=t,oa(e)}function oa(e){2===e._state&&0===e._deferreds.length&&ea._immediateFn((function(){e._handled||ea._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)ta(e,e._deferreds[t]);e._deferreds=null}function ia(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function aa(e,t){var n=!1;try{e((function(e){n||(n=!0,na(t,e))}),(function(e){n||(n=!0,ra(t,e))}))}catch(e){if(n)return;n=!0,ra(t,e)}}ea.prototype.catch=function(e){return this.then(null,e)},ea.prototype.then=function(e,t){var n=new this.constructor($i);return ta(this,new ia(e,t,n)),n},ea.prototype.finally=Gi,ea.all=function(e){return new ea((function(t,n){if(!Qi(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,(function(t){i(e,t)}),n)}r[e]=a,0==--o&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},ea.allSettled=Mi,ea.resolve=function(e){return e&&"object"==typeof e&&e.constructor===ea?e:new ea((function(t){t(e)}))},ea.reject=function(e){return new ea((function(t,n){n(e)}))},ea.race=function(e){return new ea((function(t,n){if(!Qi(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)ea.resolve(e[r]).then(t,n)}))},ea._immediateFn="function"==typeof qi&&function(e){qi(e)}||function(e){Hi(e,0)},ea._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var ca=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 ca.Promise?ca.Promise=ea:(ca.Promise.prototype.finally||(ca.Promise.prototype.finally=Gi),ca.Promise.allSettled||(ca.Promise.allSettled=Mi)),function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===o.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function r(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],i=0;;){var a=t<e.length;if(!a||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!a)return o.join("");e=e.subarray(t),i=t=0}if(0==(128&(a=e[t++])))r[i++]=a;else if(192==(224&a)){var c=63&e[t++];r[i++]=(31&a)<<6|c}else if(224==(240&a)){c=63&e[t++];var s=63&e[t++];r[i++]=(31&a)<<12|c<<6|s}else if(240==(248&a)){65535<(a=(7&a)<<18|(c=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(a-=65536,r[i++]=a>>>10&1023|55296,a=56320|1023&a),r[i++]=a}}}if(e.TextEncoder&&e.TextDecoder)return!1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(o>>>3<<3);t<n;){var a=e.charCodeAt(t++);if(55296<=a&&56319>=a){if(t<n){var c=e.charCodeAt(t);56320==(64512&c)&&(++t,a=((1023&a)<<10)+(1023&c)+65536)}if(55296<=a&&56319>=a)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(c=new Uint8Array(o)).set(i),i=c),0==(4294967168&a))i[r++]=a;else{if(0==(4294965248&a))i[r++]=a>>>6&31|192;else if(0==(4294901760&a))i[r++]=a>>>12&15|224,i[r++]=a>>>6&63|128;else{if(0!=(4292870144&a))continue;i[r++]=a>>>18&7|240,i[r++]=a>>>12&63|128,i[r++]=a>>>6&63|128}i[r++]=63&a|128}}return i.slice?i.slice(0,r):i.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=r;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{URL.revokeObjectURL(t)}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n}("undefined"!=typeof window?window:s),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function l(e){var t=a();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var h=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),p=function(t){r(a,t);var i=l(a);function a(){var t;return e(this,a),(t=i.call(this)).listeners||h.call(c(t)),Object.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(a,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),d(o(a.prototype),"dispatchEvent",this).call(this,e)}}]),a}(h),y=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new p,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function v(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(y.prototype[Symbol.toStringTag]="AbortController",p.prototype[Symbol.toStringTag]="AbortSignal"),function(e){v(e)&&(e.AbortController=y,e.AbortSignal=p)}("undefined"!=typeof self?self:s)}();var sa=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}}));u(sa);var ua=u(l((function(e,t){var n=s&&s.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}s((r=r.apply(e,t||[])).next())}))},r=s&&s.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function a(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++){n+=t[Math.floor(Math.random()*t.length)]}return n}var c=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,c){return void 0===c&&(c=5e3),n(this,void 0,void 0,(function(){var n,s,u,l,f,d;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+a(4),s=Date.now()+c,u=o+"-"+t,l=window.localStorage,r.label=1;case 1:return Date.now()<s?[4,i(30)]:[3,8];case 2:return r.sent(),null!==l.getItem(u)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),l.setItem(u,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(d=l.getItem(u))&&(d=JSON.parse(d)).id===this.id&&d.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(u,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(s)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+a(4),[3,1];case 8:return[2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var o=this;return r(this,(function(i){return setTimeout((function(){return n(o,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return[4,sa.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(sa.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),sa.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(sa.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){var r=!1,o=Date.now(),i=!1;function a(){if(i||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(c),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n()}}window.addEventListener("storage",a),e.addToWaiting(a);var c=setTimeout(a,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,a;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(a=n.getItem(i))?[2]:(a=JSON.parse(a)).id!==this.id?[3,2]:[4,sa.default().lock(a.iat)];case 1:r.sent(),this.acquiredIatSet.delete(a.iat),n.removeItem(i),sa.default().unlock(a.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,a=0;a<r.length;a++){var c=r[a];if(c.includes(o)){var s=n.getItem(c);null!==s&&(void 0===(s=JSON.parse(s)).timeRefreshed&&s.timeAcquired<t||void 0!==s.timeRefreshed&&s.timeRefreshed<t)&&(n.removeItem(c),i=!0)}}i&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=c}))),la={timeoutInSeconds:60},fa="memory",da=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],ha={name:"auth0-spa-js",version:"1.19.3"},pa=function(){return Date.now()},ya=function(e){function n(t,r){var o=e.call(this,r)||this;return o.error=t,o.error_description=r,Object.setPrototypeOf(o,n.prototype),o}return t(n,e),n.fromPayload=function(e){return new n(e.error,e.error_description)},n}(Error),va=function(e){function n(t,r,o,i){void 0===i&&(i=null);var a=e.call(this,t,r)||this;return a.state=o,a.appState=i,Object.setPrototypeOf(a,n.prototype),a}return t(n,e),n}(ya),ma=function(e){function n(){var t=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(t,n.prototype),t}return t(n,e),n}(ya),ga=function(e){function n(t){var r=e.call(this)||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(ma),ba=function(e){function n(t){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(ya),wa=function(e){function n(t,r,o){var i=e.call(this,t,r)||this;return i.mfa_token=o,Object.setPrototypeOf(i,n.prototype),i}return t(n,e),n}(ya),Sa=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 ba(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new ga(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),a.data.response.error)return n(ya.fromPayload(a.data.response));t(a.data.response)}},window.addEventListener("message",r)}))},_a=function(){return window.crypto||window.msCrypto},ka=function(){var e=_a();return e.subtle||e.webkitSubtle},Ia=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(_a().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},Ta=function(e){return btoa(e)},Oa=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 o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return t=ka().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()]}}))}))},Ca=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,"+"))},xa=function(e){var t=new Uint8Array(e);return function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))}(window.btoa(String.fromCharCode.apply(String,c([],a(Array.from(t)),!1))))};var Ra=function(e,t){return o(void 0,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return[4,(i=e,a=t,a=a||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],c={},s=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:s,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return c[e.toLowerCase()]},has:function(e){return e.toLowerCase()in c}}}};for(var u in n.open(a.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){r.push(t=t.toLowerCase()),o.push([t,n]),c[t]=c[t]?c[t]+","+n:n})),e(s())},n.onerror=t,n.withCredentials="include"==a.credentials,a.headers)n.setRequestHeader(u,a.headers[u]);n.send(a.body||null)})))];case 1:return n=o.sent(),r={ok:n.ok},[4,n.json()];case 2:return[2,(r.json=o.sent(),r)]}var i,a}))}))},Aa=function(e,t,n){return o(void 0,void 0,void 0,(function(){var r,o;return i(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([Ra(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},Fa=function(e,t,n,r,a,c,s){return o(void 0,void 0,void 0,(function(){return i(this,(function(o){return[2,(i={auth:{audience:t,scope:n},timeout:a,fetchUrl:e,fetchOptions:r,useFormData:s},u=c,new Promise((function(e,t){var n=new MessageChannel;n.port1.onmessage=function(n){n.data.error?t(new Error(n.data.error)):e(n.data)},u.postMessage(i,[n.port2])})))];var i,u}))}))},ja=function(e,t,n,r,a,c,s){return void 0===s&&(s=1e4),o(void 0,void 0,void 0,(function(){return i(this,(function(o){return a?[2,Fa(e,t,n,r,s,a,c)]:[2,Aa(e,r,s)]}))}))};function Ua(e,t,n,a,c,s,u){return o(this,void 0,void 0,(function(){var o,l,f,d,h,p,y,v,m;return i(this,(function(i){switch(i.label){case 0:o=null,f=0,i.label=1;case 1:if(!(f<3))return[3,6];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,ja(e,n,a,c,s,u,t)];case 3:return l=i.sent(),o=null,[3,6];case 4:return d=i.sent(),o=d,[3,5];case 5:return f++,[3,1];case 6:if(o)throw o.message=o.message||"Failed to fetch",o;if(h=l.json,p=h.error,y=h.error_description,v=r(h,["error","error_description"]),!l.ok){if(m=y||"HTTP error. Unable to fetch "+e,"mfa_required"===p)throw new wa(p,m,v.mfa_token);throw new ya(p||"request_error",m)}return[2,v]}}))}))}function Ka(e,t){var n=e.baseUrl,a=e.timeout,c=e.audience,s=e.scope,u=e.auth0Client,l=e.useFormData,f=r(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return o(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return e=l?Oa(f):JSON.stringify(f),[4,Ua(n+"/oauth/token",a,c||"default",s,{method:"POST",body:e,headers:{"Content-Type":l?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(u||ha))}},t,l)];case 1:return[2,r.sent()]}}))}))}var Pa=function(e){return Array.from(new Set(e))},La=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pa(e.join(" ").trim().split(/\s+/)).join(" ")},Wa="@@auth0spajs@@",Za=function(){function e(e,t){void 0===t&&(t=Wa),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return e.prototype.toKey=function(){return this.prefix+"::"+this.client_id+"::"+this.audience+"::"+this.scope},e.fromKey=function(t){var n=a(t.split("::"),4),r=n[0],o=n[1],i=n[2];return new e({client_id:o,scope:n[3],audience:i},r)},e.fromCacheEntry=function(t){return new e({scope:t.scope,audience:t.audience,client_id:t.client_id})},e}(),Va=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(Wa)}))},e}(),Na=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)}})},Xa=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||pa}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),o(this,void 0,void 0,(function(){var r,o,a,c,s;return i(this,(function(i){switch(i.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=i.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=i.sent())?(a=this.matchExistingCacheKey(e,o),[4,this.cache.get(a)]):[2];case 3:r=i.sent(),i.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return c=i.sent(),s=Math.floor(c/1e3),r.expiresAt-t<s?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return i.sent(),[2,r.body];case 7:return[4,this.cache.remove(e.toKey())];case 8:return i.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return i.sent(),[2];case 10:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return n=new Za({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=o.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return o.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return o(this,void 0,void 0,(function(){var n,r=this;return i(this,(function(a){switch(a.label){case 0:return[4,this.getCacheKeys()];case 1:return(n=a.sent())?[4,n.filter((function(t){return!e||t.includes(e)})).reduce((function(e,t){return o(r,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return n.sent(),[4,this.cache.remove(t)];case 2:return n.sent(),[2]}}))}))}),Promise.resolve())]:[2];case 2:return a.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.clear()];case 3:return a.sent(),[2]}}))}))},e.prototype.clearSync=function(e){var t=this,n=this.cache.allKeys();n&&n.filter((function(t){return!e||t.includes(e)})).forEach((function(e){t.cache.remove(e)}))},e.prototype.wrapCacheEntry=function(e){return o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return t=o.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return t=null===(e=n.sent())||void 0===e?void 0:e.keys,[3,4];case 2:return[4,this.cache.allKeys()];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}}))}))},e.prototype.matchExistingCacheKey=function(e,t){return t.filter((function(t){var n=Za.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 n.prefix===Wa&&n.client_id===e.client_id&&n.audience===e.audience&&i}))[0]},e}(),Da=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="a0.spajs.txs."+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}(),za=function(e){return"number"==typeof e},Ya=["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"],Ja=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=a(t,3),r=n[0],o=n[1],i=n[2];if(3!==t.length||!r||!o||!i)throw new Error("ID token could not be decoded");var c=JSON.parse(Ca(o)),s={__raw:e},u={};return Object.keys(c).forEach((function(e){s[e]=c[e],Ya.includes(e)||(u[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Ca(r)),claims:s,user:u}}(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'+e.iss+'", found "'+t.claims.iss+'"');if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'+t.header.alg+'" is not supported. Expected the ID token to be signed with "RS256".');if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but was not one of "'+t.claims.aud.join(", ")+'"');if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'+e.aud+'", found "'+t.claims.azp+'"')}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but found "'+t.claims.aud+'"');if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'+e.nonce+'", found "'+t.claims.nonce+'"')}if(e.max_age&&!za(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(!za(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!za(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 ("+r+") is after expiration time ("+o+")");if(za(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time ("+r+") is before "+i);if(za(t.claims.auth_time)&&r>c)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time ("+r+") is after last auth at "+c);if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'+e.organizationId+'", found "'+t.claims.org_id+'"')}return t},Ba=l((function(e,t){var n=s&&s.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function o(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent)}catch(e){}}return t}function a(){return i(document.cookie)}function c(e,t,r){document.cookie=o(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=a,t.get=function(e){return a()[e]},t.set=c,t.remove=function(e,t){c(e,"",n(n({},t),{expires:-1}))}}));u(Ba),Ba.encode,Ba.parse,Ba.getAll;var Ga=Ba.get,Ma=Ba.set,Ha=Ba.remove,qa={get:function(e){var t=Ga(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),Ma(e,JSON.stringify(t),r)},remove:function(e){Ha(e)}},Qa={get:function(e){var t=qa.get(e);return t||qa.get("_legacy_"+e)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),Ma("_legacy_"+e,JSON.stringify(t),r),qa.save(e,t,n)},remove:function(e){qa.remove(e),qa.remove("_legacy_"+e)}},$a={get:function(e){if("undefined"!=typeof sessionStorage){var t=sessionStorage.getItem(e);if(void 0!==t)return JSON.parse(t)}},save:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove:function(e){sessionStorage.removeItem(e)}};function ec(e,t,n){var r=void 0===t?null:t,o=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),o=0,i=n.length;o<i;++o)r[o]=n.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),i=o.indexOf("\n",10)+1,a=o.substring(i)+(r?"//# sourceMappingURL="+r:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}var tc,nc,rc,oc,ic=(tc="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQogICAgQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULAogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NCiAgICBMT1NTIE9GIFVTRSwgREFUQSBPUiBQUk9GSVRTLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgTkVHTElHRU5DRSBPUgogICAgT1RIRVIgVE9SVElPVVMgQUNUSU9OLCBBUklTSU5HIE9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFVTRSBPUgogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4KICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqICovdmFyIGU9ZnVuY3Rpb24oKXtyZXR1cm4oZT1PYmplY3QuYXNzaWdufHxmdW5jdGlvbihlKXtmb3IodmFyIHIsdD0xLG49YXJndW1lbnRzLmxlbmd0aDt0PG47dCsrKWZvcih2YXIgbyBpbiByPWFyZ3VtZW50c1t0XSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocixvKSYmKGVbb109cltvXSk7cmV0dXJuIGV9KS5hcHBseSh0aGlzLGFyZ3VtZW50cyl9O2Z1bmN0aW9uIHIoZSxyLHQsbil7cmV0dXJuIG5ldyh0fHwodD1Qcm9taXNlKSkoKGZ1bmN0aW9uKG8sYSl7ZnVuY3Rpb24gcyhlKXt0cnl7dShuLm5leHQoZSkpfWNhdGNoKGUpe2EoZSl9fWZ1bmN0aW9uIGkoZSl7dHJ5e3Uobi50aHJvdyhlKSl9Y2F0Y2goZSl7YShlKX19ZnVuY3Rpb24gdShlKXt2YXIgcjtlLmRvbmU/byhlLnZhbHVlKToocj1lLnZhbHVlLHIgaW5zdGFuY2VvZiB0P3I6bmV3IHQoKGZ1bmN0aW9uKGUpe2Uocil9KSkpLnRoZW4ocyxpKX11KChuPW4uYXBwbHkoZSxyfHxbXSkpLm5leHQoKSl9KSl9ZnVuY3Rpb24gdChlLHIpe3ZhciB0LG4sbyxhLHM9e2xhYmVsOjAsc2VudDpmdW5jdGlvbigpe2lmKDEmb1swXSl0aHJvdyBvWzFdO3JldHVybiBvWzFdfSx0cnlzOltdLG9wczpbXX07cmV0dXJuIGE9e25leHQ6aSgwKSx0aHJvdzppKDEpLHJldHVybjppKDIpfSwiZnVuY3Rpb24iPT10eXBlb2YgU3ltYm9sJiYoYVtTeW1ib2wuaXRlcmF0b3JdPWZ1bmN0aW9uKCl7cmV0dXJuIHRoaXN9KSxhO2Z1bmN0aW9uIGkoYSl7cmV0dXJuIGZ1bmN0aW9uKGkpe3JldHVybiBmdW5jdGlvbihhKXtpZih0KXRocm93IG5ldyBUeXBlRXJyb3IoIkdlbmVyYXRvciBpcyBhbHJlYWR5IGV4ZWN1dGluZy4iKTtmb3IoO3M7KXRyeXtpZih0PTEsbiYmKG89MiZhWzBdP24ucmV0dXJuOmFbMF0/bi50aHJvd3x8KChvPW4ucmV0dXJuKSYmby5jYWxsKG4pLDApOm4ubmV4dCkmJiEobz1vLmNhbGwobixhWzFdKSkuZG9uZSlyZXR1cm4gbztzd2l0Y2gobj0wLG8mJihhPVsyJmFbMF0sby52YWx1ZV0pLGFbMF0pe2Nhc2UgMDpjYXNlIDE6bz1hO2JyZWFrO2Nhc2UgNDpyZXR1cm4gcy5sYWJlbCsrLHt2YWx1ZTphWzFdLGRvbmU6ITF9O2Nhc2UgNTpzLmxhYmVsKyssbj1hWzFdLGE9WzBdO2NvbnRpbnVlO2Nhc2UgNzphPXMub3BzLnBvcCgpLHMudHJ5cy5wb3AoKTtjb250aW51ZTtkZWZhdWx0OmlmKCEobz1zLnRyeXMsKG89by5sZW5ndGg+MCYmb1tvLmxlbmd0aC0xXSl8fDYhPT1hWzBdJiYyIT09YVswXSkpe3M9MDtjb250aW51ZX1pZigzPT09YVswXSYmKCFvfHxhWzFdPm9bMF0mJmFbMV08b1szXSkpe3MubGFiZWw9YVsxXTticmVha31pZig2PT09YVswXSYmcy5sYWJlbDxvWzFdKXtzLmxhYmVsPW9bMV0sbz1hO2JyZWFrfWlmKG8mJnMubGFiZWw8b1syXSl7cy5sYWJlbD1vWzJdLHMub3BzLnB1c2goYSk7YnJlYWt9b1syXSYmcy5vcHMucG9wKCkscy50cnlzLnBvcCgpO2NvbnRpbnVlfWE9ci5jYWxsKGUscyl9Y2F0Y2goZSl7YT1bNixlXSxuPTB9ZmluYWxseXt0PW89MH1pZig1JmFbMF0pdGhyb3cgYVsxXTtyZXR1cm57dmFsdWU6YVswXT9hWzFdOnZvaWQgMCxkb25lOiEwfX0oW2EsaV0pfX19dmFyIG49e30sbz1mdW5jdGlvbihlLHIpe3JldHVybiBlKyJ8IityfTthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoZnVuY3Rpb24oYSl7dmFyIHM9YS5kYXRhLGk9cy50aW1lb3V0LHU9cy5hdXRoLGM9cy5mZXRjaFVybCxmPXMuZmV0Y2hPcHRpb25zLGw9cy51c2VGb3JtRGF0YSxoPWZ1bmN0aW9uKGUscil7dmFyIHQ9ImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmZVtTeW1ib2wuaXRlcmF0b3JdO2lmKCF0KXJldHVybiBlO3ZhciBuLG8sYT10LmNhbGwoZSkscz1bXTt0cnl7Zm9yKDsodm9pZCAwPT09cnx8ci0tID4wKSYmIShuPWEubmV4dCgpKS5kb25lOylzLnB1c2gobi52YWx1ZSl9Y2F0Y2goZSl7bz17ZXJyb3I6ZX19ZmluYWxseXt0cnl7biYmIW4uZG9uZSYmKHQ9YS5yZXR1cm4pJiZ0LmNhbGwoYSl9ZmluYWxseXtpZihvKXRocm93IG8uZXJyb3J9fXJldHVybiBzfShhLnBvcnRzLDEpWzBdO3JldHVybiByKHZvaWQgMCx2b2lkIDAsdm9pZCAwLChmdW5jdGlvbigpe3ZhciByLGEscyxwLHksYixkLHYsdyxnO3JldHVybiB0KHRoaXMsKGZ1bmN0aW9uKHQpe3N3aXRjaCh0LmxhYmVsKXtjYXNlIDA6cz0oYT11fHx7fSkuYXVkaWVuY2UscD1hLnNjb3BlLHQubGFiZWw9MTtjYXNlIDE6aWYodC50cnlzLnB1c2goWzEsNywsOF0pLCEoeT1sPyhrPWYuYm9keSxTPW5ldyBVUkxTZWFyY2hQYXJhbXMoayksXz17fSxTLmZvckVhY2goKGZ1bmN0aW9uKGUscil7X1tyXT1lfSkpLF8pOkpTT04ucGFyc2UoZi5ib2R5KSkucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09eS5ncmFudF90eXBlKXtpZighKGI9ZnVuY3Rpb24oZSxyKXtyZXR1cm4gbltvKGUscildfShzLHApKSl0aHJvdyBuZXcgRXJyb3IoIlRoZSB3ZWIgd29ya2VyIGlzIG1pc3NpbmcgdGhlIHJlZnJlc2ggdG9rZW4iKTtmLmJvZHk9bD9uZXcgVVJMU2VhcmNoUGFyYW1zKGUoZSh7fSx5KSx7cmVmcmVzaF90b2tlbjpifSkpLnRvU3RyaW5nKCk6SlNPTi5zdHJpbmdpZnkoZShlKHt9LHkpLHtyZWZyZXNoX3Rva2VuOmJ9KSl9ZD12b2lkIDAsImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixmLnNpZ25hbD1kLnNpZ25hbCksdj12b2lkIDAsdC5sYWJlbD0yO2Nhc2UgMjpyZXR1cm4gdC50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKG09aSxuZXcgUHJvbWlzZSgoZnVuY3Rpb24oZSl7cmV0dXJuIHNldFRpbWVvdXQoZSxtKX0pKSksZmV0Y2goYyxlKHt9LGYpKV0pXTtjYXNlIDM6cmV0dXJuIHY9dC5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiB3PXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOncubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHY/WzQsdi5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4ocj10LnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",nc=null,rc=!1,function(e){return oc=oc||ec(tc,nc,rc),new Worker(oc,e)}),ac={},cc=function(){function e(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}return e.prototype.add=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return(n=new(r.apply(Set,[void 0,(null===(t=o.sent())||void 0===t?void 0:t.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:c([],a(n),!1)})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return[4,this.cache.get(this.manifestKey)];case 1:return(t=r.sent())?((n=new Set(t.keys)).delete(e),n.size>0?[4,this.cache.set(this.manifestKey,{keys:c([],a(n),!1)})]:[3,3]):[3,5];case 2:return[2,r.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 4:return[2,r.sent()];case 5:return[2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return"@@auth0spajs@@::"+e},e}(),sc=new ua,uc="auth0.lock.getTokenSilently",lc="auth0.is.authenticated",fc={memory:function(){return(new Na).enclosedCache},localstorage:function(){return new Va}},dc=function(e){return fc[e]},hc=function(){return!/Trident.*rv:11\.0/.test(navigator.userAgent)},pc=function(){function e(e){var t,n,o;if(this.options=e,"undefined"!=typeof window&&function(){if(!_a())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===ka())throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")}(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)o=e.cache;else{if(this.cacheLocation=e.cacheLocation||fa,!dc(this.cacheLocation))throw new Error('Invalid cache location "'+this.cacheLocation+'"');o=dc(this.cacheLocation)()}this.cookieStorage=!1===e.legacySameSiteCookie?qa:Qa,this.orgHintCookieName="auth0."+this.options.client_id+".organization_hint",this.isAuthenticatedCookieName=function(e){return"auth0."+e+".is.authenticated"}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var i,a=e.useCookiesForTransactions?this.cookieStorage:$a;this.scope=this.options.scope,this.transactionManager=new Da(a,this.options.client_id),this.nowProvider=this.options.nowProvider||pa,this.cacheManager=new Xa(o,o.allKeys?null:new cc(o,this.options.client_id),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:"https://"+i),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://"+e+"/":t+"/"}(this.options.issuer,this.domainUrl),this.defaultScope=La("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=La(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&this.cacheLocation===fa&&hc()&&(this.worker=new ic),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.redirect_uri,e.scope,e.useRefreshTokens,e.useCookiesForTransactions,e.useFormData,r(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","client_id","domain","issuer","leeway","max_age","redirect_uri","scope","useRefreshTokens","useCookiesForTransactions","useFormData"])}(e)}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ha)));return""+this.domainUrl+e+"&auth0Client="+t},e.prototype._getParams=function(e,t,o,i,a){var c=this.options;c.useRefreshTokens,c.useCookiesForTransactions,c.useFormData,c.auth0Client,c.cacheLocation,c.advancedOptions,c.detailedResponse,c.nowProvider,c.authorizeTimeoutInSeconds,c.legacySameSiteCookie,c.sessionCheckExpiryDays,c.domain,c.leeway;var s=r(c,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway"]);return n(n(n({},s),e),{scope:La(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:o,redirect_uri:a||this.options.redirect_uri,code_challenge:i,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?"+Oa(e))},e.prototype._verifyIdToken=function(e,t,n){return o(this,void 0,void 0,(function(){var r;return i(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return r=o.sent(),[2,Ja({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):this.cookieStorage.remove(this.orgHintCookieName)},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y;return i(this,(function(i){switch(i.label){case 0:return t=e.redirect_uri,o=e.appState,a=r(e,["redirect_uri","appState"]),c=Ta(Ia()),s=Ta(Ia()),u=Ia(),[4,Ea(u)];case 1:return l=i.sent(),f=xa(l),d=e.fragment?"#"+e.fragment:"",h=this._getParams(a,c,s,f,t),p=this._authorizeUrl(h),y=e.organization||this.options.organization,this.transactionManager.create(n({nonce:s,code_verifier:u,appState:o,scope:h.scope,audience:h.audience||"default",redirect_uri:h.redirect_uri,state:c},y&&{organizationId:y})),[2,p+d]}}))}))},e.prototype.loginWithPopup=function(e,t){return o(this,void 0,void 0,(function(){var o,a,c,s,u,l,f,d,h,p,y,v,m;return i(this,(function(i){switch(i.label){case 0:return e=e||{},(t=t||{}).popup||(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open(e,"auth0:authorize:popup","left="+t+",top="+n+",width=400,height=600,resizable,scrollbars=yes,status=1")}("")),o=r(e,[]),a=Ta(Ia()),c=Ta(Ia()),s=Ia(),[4,Ea(s)];case 1:return u=i.sent(),l=xa(u),f=this._getParams(o,a,c,l,this.options.redirect_uri||window.location.origin),d=this._authorizeUrl(n(n({},f),{response_mode:"web_message"})),t.popup.location.href=d,[4,Sa(n(n({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(h=i.sent(),a!==h.state)throw new Error("Invalid state");return[4,Ka({audience:f.audience,scope:f.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:s,code:h.code,grant_type:"authorization_code",redirect_uri:f.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},this.worker)];case 3:return p=i.sent(),y=e.organization||this.options.organization,[4,this._verifyIdToken(p.id_token,c,y)];case 4:return v=i.sent(),m=n(n({},p),{decodedToken:v,scope:f.scope,audience:f.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 5:return i.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(v.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=La(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Za({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.user]}}))}))},e.prototype.getIdTokenClaims=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=La(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Za({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},e.prototype.loginWithRedirect=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,o;return i(this,(function(i){switch(i.label){case 0:return t=e.redirectMethod,n=r(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return o=i.sent(),window.location[t||"assign"](o),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),o(this,void 0,void 0,(function(){var t,r,o,c,s,u,l,f,d,h;return i(this,(function(i){switch(i.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(r=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=a(e.split("="),2),r=t[0],o=t[1];n[r]=decodeURIComponent(o)})),n.expires_in&&(n.expires_in=parseInt(n.expires_in)),n}(t.join("")),o=r.state,c=r.code,s=r.error,u=r.error_description,!(l=this.transactionManager.get()))throw new Error("Invalid state");if(this.transactionManager.remove(),s)throw new va(s,u,o,l.appState);if(!l.code_verifier||l.state&&l.state!==o)throw new Error("Invalid state");return f={audience:l.audience,scope:l.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:l.code_verifier,grant_type:"authorization_code",code:c,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},void 0!==l.redirect_uri&&(f.redirect_uri=l.redirect_uri),[4,Ka(f,this.worker)];case 1:return d=i.sent(),[4,this._verifyIdToken(d.id_token,l.nonce,l.organizationId)];case 2:return h=i.sent(),[4,this.cacheManager.set(n(n(n(n({},d),{decodedToken:h,audience:l.audience,scope:l.scope}),d.scope?{oauthTokenScope:d.scope}:null),{client_id:this.options.client_id}))];case 3:return i.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(h.claims.org_id),[2,{appState:l.appState}]}}))}))},e.prototype.checkSession=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get(lc))return[2];this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this.cookieStorage.remove(lc)}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(),!da.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c=this;return i(this,(function(i){return t=n(n({audience:this.options.audience,ignoreCache:!1},e),{scope:La(this.defaultScope,this.scope,e.scope)}),o=t.ignoreCache,a=r(t,["ignoreCache"]),[2,(s=function(){return c._getTokenSilently(n({ignoreCache:o},a))},u=this.options.client_id+"::"+a.audience+"::"+a.scope,l=ac[u],l||(l=s().finally((function(){delete ac[u],l=null})),ac[u]=l),l)];var s,u,l}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,a,c,s,u,l,f,d,h;return i(this,(function(p){switch(p.label){case 0:return t=e.ignoreCache,a=r(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:a.scope,audience:a.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 1:if(c=p.sent())return[2,c];p.label=2;case 2:return[4,(y=function(){return sc.acquireLock(uc,5e3)},v=10,void 0===v&&(v=3),o(void 0,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<v?[4,y()]:[3,4];case 2:if(t.sent())return[2,!0];t.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!p.sent())return[3,15];p.label=4;case 4:return p.trys.push([4,,12,14]),t?[3,6]:[4,this._getEntryFromCache({scope:a.scope,audience:a.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 5:if(c=p.sent())return[2,c];p.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(a)]:[3,8];case 7:return u=p.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(a)];case 9:u=p.sent(),p.label=10;case 10:return s=u,[4,this.cacheManager.set(n({client_id:this.options.client_id},s))];case 11:return p.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),e.detailedResponse?(l=s.id_token,f=s.access_token,d=s.oauthTokenScope,h=s.expires_in,[2,n(n({id_token:l,access_token:f},d?{scope:d}:null),{expires_in:h})]):[2,s.access_token];case 12:return[4,sc.releaseLock(uc)];case 13:return p.sent(),[7];case 14:return[3,16];case 15:throw new ma;case 16:return[2]}var y,v}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=La(this.defaultScope,this.scope,e.scope),t=n(n({},la),t),[4,this.loginWithPopup(e,t)];case 1:return r.sent(),[4,this.cacheManager.get(new Za({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,r.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.getUser()];case 1:return[2,!!e.sent()]}}))}))},e.prototype.buildLogoutUrl=function(e){void 0===e&&(e={}),null!==e.client_id?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var t=e.federated,n=r(e,["federated"]),o=t?"&federated":"";return this._url("/v2/logout?"+Oa(n))+o},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,o=r(e,["localOnly"]);if(n&&o.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var i=function(){if(t.cookieStorage.remove(t.orgHintCookieName),t.cookieStorage.remove(t.isAuthenticatedCookieName),!n){var e=t.buildLogoutUrl(o);window.location.assign(e)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return i()}));this.cacheManager.clearSync(),i()},e.prototype._getTokenFromIFrame=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:return t=Ta(Ia()),o=Ta(Ia()),a=Ia(),[4,Ea(a)];case 1:c=i.sent(),s=xa(c),u=r(e,["detailedResponse"]),l=this._getParams(u,t,o,s,e.redirect_uri||this.options.redirect_uri||window.location.origin),(f=this.cookieStorage.get(this.orgHintCookieName))&&!l.organization&&(l.organization=f),d=this._authorizeUrl(n(n({},l),{prompt:"none",response_mode:"web_message"})),h=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,i.label=2;case 2:if(i.trys.push([2,6,,7]),window.crossOriginIsolated)throw new ya("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return[4,(S=d,_=this.domainUrl,k=h,void 0===k&&(k=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,o=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1))},i=setTimeout((function(){t(new ma),o()}),1e3*k);r=function(n){if(n.origin==_&&n.data&&"authorization_response"===n.data.type){var a=n.source;a&&a.close(),n.data.response.error?t(ya.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3)}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",S)})))];case 3:if(p=i.sent(),t!==p.state)throw new Error("Invalid state");return y=e.scope,v=e.audience,m=r(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,Ka(n(n(n({},this.customOptions),m),{scope:y,audience:v,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a,code:p.code,grant_type:"authorization_code",redirect_uri:l.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 4:return g=i.sent(),[4,this._verifyIdToken(g.id_token,o)];case 5:return b=i.sent(),this._processOrgIdHint(b.claims.org_id),[2,n(n({},g),{decodedToken:b,scope:l.scope,oauthTokenScope:g.scope,audience:l.audience||"default"})];case 6:throw"login_required"===(w=i.sent()).error&&this.logout({localOnly:!0}),w;case 7:return[2]}var S,_,k}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d;return i(this,(function(i){switch(i.label){case 0:return e.scope=La(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new Za({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=i.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return[2,i.sent()];case 3:o=e.redirect_uri||this.options.redirect_uri||window.location.origin,c=e.scope,s=e.audience,u=r(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),l="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,i.label=4;case 4:return i.trys.push([4,6,,9]),[4,Ka(n(n(n(n(n({},this.customOptions),u),{audience:s,scope:c,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:o}),l&&{timeout:l}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 5:return a=i.sent(),[3,9];case 6:return"The web worker is missing the refresh token"===(f=i.sent()).message||f.message&&f.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return[2,i.sent()];case 8:throw f;case 9:return[4,this._verifyIdToken(a.id_token)];case 10:return d=i.sent(),[2,n(n({},a),{decodedToken:d,scope:e.scope,oauthTokenScope:a.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,r=e.audience,a=e.client_id,c=e.getDetailedEntry,s=void 0!==c&&c;return o(this,void 0,void 0,(function(){var e,o,c,u,l;return i(this,(function(i){switch(i.label){case 0:return[4,this.cacheManager.get(new Za({scope:t,audience:r,client_id:a}),60)];case 1:return(e=i.sent())&&e.access_token?s?(o=e.id_token,c=e.access_token,u=e.oauthTokenScope,l=e.expires_in,[2,n(n({id_token:o,access_token:c},u?{scope:u}:null),{expires_in:l})]):[2,e.access_token]:[2]}}))}))},e}();function yc(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,(t=new pc(e)).checkSession()];case 1:return n.sent(),[2,t]}}))}))}var vc=yc;return vc.Auth0Client=pc,vc.createAuth0Client=yc,vc.GenericError=ya,vc.AuthenticationError=va,vc.TimeoutError=ma,vc.PopupTimeoutError=ga,vc.MfaRequiredError=wa,vc})),"Auth0Client"in this&&this.console&&this.console.warn&&this.console.warn("Auth0Client already declared on the global namespace"),this&&this.createAuth0Client&&(this.Auth0Client=this.Auth0Client||this.createAuth0Client.Auth0Client);
|
|
15
|
+
***************************************************************************** */var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e,t){return e(t={exports:{}},t.exports),t.exports}var f,d,h=function(e){return e&&e.Math==Math&&e},p=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof s&&s)||function(){return this}()||Function("return this")(),y=function(e){try{return!!e()}catch(e){return!0}},v=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=Function.prototype.call,g=m.bind?m.bind(m):function(){return m.apply(m,arguments)},b={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,S={f:w&&!b.call({1:2},1)?function(e){var t=w(this,e);return!!t&&t.enumerable}:b},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k=Function.prototype,I=k.bind,T=k.call,O=I&&I.bind(T),E=I?function(e){return e&&O(T,e)}:function(e){return e&&function(){return T.apply(e,arguments)}},C=E({}.toString),x=E("".slice),R=function(e){return x(C(e),8,-1)},A=p.Object,F=E("".split),j=y((function(){return!A("z").propertyIsEnumerable(0)}))?function(e){return"String"==R(e)?F(e,""):A(e)}:A,U=p.TypeError,K=function(e){if(null==e)throw U("Can't call method on "+e);return e},P=function(e){return j(K(e))},L=function(e){return"function"==typeof e},W=function(e){return"object"==typeof e?null!==e:L(e)},Z=function(e){return L(e)?e:void 0},V=function(e,t){return arguments.length<2?Z(p[e]):p[e]&&p[e][t]},N=E({}.isPrototypeOf),X=V("navigator","userAgent")||"",D=p.process,z=p.Deno,Y=D&&D.versions||z&&z.version,J=Y&&Y.v8;J&&(d=(f=J.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!d&&X&&(!(f=X.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=X.match(/Chrome\/(\d+)/))&&(d=+f[1]);var B=d,G=!!Object.getOwnPropertySymbols&&!y((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41})),M=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=p.Object,q=M?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return L(t)&&N(t.prototype,H(e))},Q=p.String,$=function(e){try{return Q(e)}catch(e){return"Object"}},ee=p.TypeError,te=function(e){if(L(e))return e;throw ee($(e)+" is not a function")},ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=p.TypeError,oe=Object.defineProperty,ie=function(e,t){try{oe(p,e,{value:t,configurable:!0,writable:!0})}catch(n){p[e]=t}return t},ae="__core-js_shared__",ce=p[ae]||ie(ae,{}),se=l((function(e){(e.exports=function(e,t){return ce[e]||(ce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ue=p.Object,le=function(e){return ue(K(e))},fe=E({}.hasOwnProperty),de=Object.hasOwn||function(e,t){return fe(le(e),t)},he=0,pe=Math.random(),ye=E(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ye(++he+pe,36)},me=se("wks"),ge=p.Symbol,be=ge&&ge.for,we=M?ge:ge&&ge.withoutSetter||ve,Se=function(e){if(!de(me,e)||!G&&"string"!=typeof me[e]){var t="Symbol."+e;G&&de(ge,e)?me[e]=ge[e]:me[e]=M&&be?be(t):we(t)}return me[e]},_e=p.TypeError,ke=Se("toPrimitive"),Ie=function(e,t){if(!W(e)||q(e))return e;var n,r=ne(e,ke);if(r){if(void 0===t&&(t="default"),n=g(r,e,t),!W(n)||q(n))return n;throw _e("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&L(n=e.toString)&&!W(r=g(n,e)))return r;if(L(n=e.valueOf)&&!W(r=g(n,e)))return r;if("string"!==t&&L(n=e.toString)&&!W(r=g(n,e)))return r;throw re("Can't convert object to primitive value")}(e,t)},Te=function(e){var t=Ie(e,"string");return q(t)?t:t+""},Oe=p.document,Ee=W(Oe)&&W(Oe.createElement),Ce=function(e){return Ee?Oe.createElement(e):{}},xe=!v&&!y((function(){return 7!=Object.defineProperty(Ce("div"),"a",{get:function(){return 7}}).a})),Re=Object.getOwnPropertyDescriptor,Ae={f:v?Re:function(e,t){if(e=P(e),t=Te(t),xe)try{return Re(e,t)}catch(e){}if(de(e,t))return _(!g(S.f,e,t),e[t])}},Fe=p.String,je=p.TypeError,Ue=function(e){if(W(e))return e;throw je(Fe(e)+" is not an object")},Ke=p.TypeError,Pe=Object.defineProperty,Le={f:v?Pe:function(e,t,n){if(Ue(e),t=Te(t),Ue(n),xe)try{return Pe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=v?function(e,t,n){return Le.f(e,t,_(1,n))}:function(e,t,n){return e[t]=n,e},Ze=E(Function.toString);L(ce.inspectSource)||(ce.inspectSource=function(e){return Ze(e)});var Ve,Ne,Xe,De=ce.inspectSource,ze=p.WeakMap,Ye=L(ze)&&/native code/.test(De(ze)),Je=se("keys"),Be=function(e){return Je[e]||(Je[e]=ve(e))},Ge={},Me="Object already initialized",He=p.TypeError,qe=p.WeakMap;if(Ye||ce.state){var Qe=ce.state||(ce.state=new qe),$e=E(Qe.get),et=E(Qe.has),tt=E(Qe.set);Ve=function(e,t){if(et(Qe,e))throw new He(Me);return t.facade=e,tt(Qe,e,t),t},Ne=function(e){return $e(Qe,e)||{}},Xe=function(e){return et(Qe,e)}}else{var nt=Be("state");Ge[nt]=!0,Ve=function(e,t){if(de(e,nt))throw new He(Me);return t.facade=e,We(e,nt,t),t},Ne=function(e){return de(e,nt)?e[nt]:{}},Xe=function(e){return de(e,nt)}}var rt={set:Ve,get:Ne,has:Xe,enforce:function(e){return Xe(e)?Ne(e):Ve(e,{})},getterFor:function(e){return function(t){var n;if(!W(t)||(n=Ne(t)).type!==e)throw He("Incompatible receiver, "+e+" required");return n}}},ot=Function.prototype,it=v&&Object.getOwnPropertyDescriptor,at=de(ot,"name"),ct={EXISTS:at,PROPER:at&&"something"===function(){}.name,CONFIGURABLE:at&&(!v||v&&it(ot,"name").configurable)},st=l((function(e){var t=ct.CONFIGURABLE,n=rt.get,r=rt.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var c,s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;L(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!de(i,"name")||t&&i.name!==f)&&We(i,"name",f),(c=r(i)).source||(c.source=o.join("string"==typeof f?f:""))),e!==p?(s?!l&&e[n]&&(u=!0):delete e[n],u?e[n]=i:We(e,n,i)):u?e[n]=i:ie(n,i)})(Function.prototype,"toString",(function(){return L(this)&&n(this).source||De(this)}))})),ut=Math.ceil,lt=Math.floor,ft=function(e){var t=+e;return t!=t||0===t?0:(t>0?lt:ut)(t)},dt=Math.max,ht=Math.min,pt=function(e,t){var n=ft(e);return n<0?dt(n+t,0):ht(n,t)},yt=Math.min,vt=function(e){return e>0?yt(ft(e),9007199254740991):0},mt=function(e){return vt(e.length)},gt=function(e){return function(t,n,r){var o,i=P(t),a=mt(i),c=pt(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},bt={includes:gt(!0),indexOf:gt(!1)},wt=bt.indexOf,St=E([].push),_t=function(e,t){var n,r=P(e),o=0,i=[];for(n in r)!de(Ge,n)&&de(r,n)&&St(i,n);for(;t.length>o;)de(r,n=t[o++])&&(~wt(i,n)||St(i,n));return i},kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],It=kt.concat("length","prototype"),Tt={f:Object.getOwnPropertyNames||function(e){return _t(e,It)}},Ot={f:Object.getOwnPropertySymbols},Et=E([].concat),Ct=V("Reflect","ownKeys")||function(e){var t=Tt.f(Ue(e)),n=Ot.f;return n?Et(t,n(e)):t},xt=function(e,t,n){for(var r=Ct(t),o=Le.f,i=Ae.f,a=0;a<r.length;a++){var c=r[a];de(e,c)||n&&de(n,c)||o(e,c,i(t,c))}},Rt=/#|\.prototype\./,At=function(e,t){var n=jt[Ft(e)];return n==Kt||n!=Ut&&(L(t)?y(t):!!t)},Ft=At.normalize=function(e){return String(e).replace(Rt,".").toLowerCase()},jt=At.data={},Ut=At.NATIVE="N",Kt=At.POLYFILL="P",Pt=At,Lt=Ae.f,Wt=function(e,t){var n,r,o,i,a,c=e.target,s=e.global,u=e.stat;if(n=s?p:u?p[c]||ie(c,{}):(p[c]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Lt(n,r))&&a.value:n[r],!Pt(s?r:c+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;xt(i,o)}(e.sham||o&&o.sham)&&We(i,"sham",!0),st(n,r,i,e)}},Zt={};Zt[Se("toStringTag")]="z";var Vt,Nt="[object z]"===String(Zt),Xt=Se("toStringTag"),Dt=p.Object,zt="Arguments"==R(function(){return arguments}()),Yt=Nt?R:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Dt(e),Xt))?n:zt?R(t):"Object"==(r=R(t))&&L(t.callee)?"Arguments":r},Jt=p.String,Bt=function(e){if("Symbol"===Yt(e))throw TypeError("Cannot convert a Symbol value to a string");return Jt(e)},Gt=Se("match"),Mt=p.TypeError,Ht=function(e){if(function(e){var t;return W(e)&&(void 0!==(t=e[Gt])?!!t:"RegExp"==R(e))}(e))throw Mt("The method doesn't accept regular expressions");return e},qt=Se("match"),Qt=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[qt]=!1,"/./"[e](t)}catch(e){}}return!1},$t=Ae.f,en=E("".startsWith),tn=E("".slice),nn=Math.min,rn=Qt("startsWith"),on=!(rn||(Vt=$t(String.prototype,"startsWith"),!Vt||Vt.writable));Wt({target:"String",proto:!0,forced:!on&&!rn},{startsWith:function(e){var t=Bt(K(this));Ht(e);var n=vt(nn(arguments.length>1?arguments[1]:void 0,t.length)),r=Bt(e);return en?en(t,r,n):tn(t,n,n+r.length)===r}});var an=function(e,t){return E(p[e].prototype[t])};an("String","startsWith");var cn=Array.isArray||function(e){return"Array"==R(e)},sn=function(e,t,n){var r=Te(t);r in e?Le.f(e,r,_(0,n)):e[r]=n},un=function(){},ln=[],fn=V("Reflect","construct"),dn=/^\s*(?:class|function)\b/,hn=E(dn.exec),pn=!dn.exec(un),yn=function(e){if(!L(e))return!1;try{return fn(un,ln,e),!0}catch(e){return!1}},vn=function(e){if(!L(e))return!1;switch(Yt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pn||!!hn(dn,De(e))}catch(e){return!0}};vn.sham=!0;var mn,gn=!fn||y((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?vn:yn,bn=Se("species"),wn=p.Array,Sn=function(e,t){return new(function(e){var t;return cn(e)&&(t=e.constructor,(gn(t)&&(t===wn||cn(t.prototype))||W(t)&&null===(t=t[bn]))&&(t=void 0)),void 0===t?wn:t}(e))(0===t?0:t)},_n=Se("species"),kn=Se("isConcatSpreadable"),In=9007199254740991,Tn="Maximum allowed index exceeded",On=p.TypeError,En=B>=51||!y((function(){var e=[];return e[kn]=!1,e.concat()[0]!==e})),Cn=(mn="concat",B>=51||!y((function(){var e=[];return(e.constructor={})[_n]=function(){return{foo:1}},1!==e[mn](Boolean).foo}))),xn=function(e){if(!W(e))return!1;var t=e[kn];return void 0!==t?!!t:cn(e)};Wt({target:"Array",proto:!0,forced:!En||!Cn},{concat:function(e){var t,n,r,o,i,a=le(this),c=Sn(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(xn(i=-1===t?a:arguments[t])){if(s+(o=mt(i))>In)throw On(Tn);for(n=0;n<o;n++,s++)n in i&&sn(c,s,i[n])}else{if(s>=In)throw On(Tn);sn(c,s++,i)}return c.length=s,c}});var Rn=Nt?{}.toString:function(){return"[object "+Yt(this)+"]"};Nt||st(Object.prototype,"toString",Rn,{unsafe:!0});var An,Fn=Function.prototype,jn=Fn.apply,Un=Fn.bind,Kn=Fn.call,Pn="object"==typeof Reflect&&Reflect.apply||(Un?Kn.bind(jn):function(){return Kn.apply(jn,arguments)}),Ln=Object.keys||function(e){return _t(e,kt)},Wn=v?Object.defineProperties:function(e,t){Ue(e);for(var n,r=P(t),o=Ln(t),i=o.length,a=0;i>a;)Le.f(e,n=o[a++],r[n]);return e},Zn=V("document","documentElement"),Vn=Be("IE_PROTO"),Nn=function(){},Xn=function(e){return"<script>"+e+"</"+"script>"},Dn=function(e){e.write(Xn("")),e.close();var t=e.parentWindow.Object;return e=null,t},zn=function(){try{An=new ActiveXObject("htmlfile")}catch(e){}var e,t;zn="undefined"!=typeof document?document.domain&&An?Dn(An):((t=Ce("iframe")).style.display="none",Zn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xn("document.F=Object")),e.close(),e.F):Dn(An);for(var n=kt.length;n--;)delete zn.prototype[kt[n]];return zn()};Ge[Vn]=!0;var Yn=Object.create||function(e,t){var n;return null!==e?(Nn.prototype=Ue(e),n=new Nn,Nn.prototype=null,n[Vn]=e):n=zn(),void 0===t?n:Wn(n,t)},Jn=p.Array,Bn=Math.max,Gn=Tt.f,Mn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hn=function(e){try{return Gn(e)}catch(e){return function(e,t,n){for(var r=mt(e),o=pt(t,r),i=pt(void 0===n?r:n,r),a=Jn(Bn(i-o,0)),c=0;o<i;o++,c++)sn(a,c,e[o]);return a.length=c,a}(Mn)}},qn={f:function(e){return Mn&&"Window"==R(e)?Hn(e):Gn(P(e))}},Qn=E([].slice),$n={f:Se},er=p,tr=Le.f,nr=function(e){var t=er.Symbol||(er.Symbol={});de(t,e)||tr(t,e,{value:$n.f(e)})},rr=Le.f,or=Se("toStringTag"),ir=function(e,t,n){e&&!n&&(e=e.prototype),e&&!de(e,or)&&rr(e,or,{configurable:!0,value:t})},ar=E(E.bind),cr=function(e,t){return te(e),void 0===t?e:ar?ar(e,t):function(){return e.apply(t,arguments)}},sr=E([].push),ur=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(s,u,l,f){for(var d,h,p=le(s),y=j(p),v=cr(u,l),m=mt(y),g=0,b=f||Sn,w=t?b(s,m):n||a?b(s,0):void 0;m>g;g++)if((c||g in y)&&(h=v(d=y[g],g,p),e))if(t)w[g]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:sr(w,d)}else switch(e){case 4:return!1;case 7:sr(w,d)}return i?-1:r||o?o:w}},lr={forEach:ur(0),map:ur(1),filter:ur(2),some:ur(3),every:ur(4),find:ur(5),findIndex:ur(6),filterReject:ur(7)}.forEach,fr=Be("hidden"),dr="Symbol",hr=Se("toPrimitive"),pr=rt.set,yr=rt.getterFor(dr),vr=Object.prototype,mr=p.Symbol,gr=mr&&mr.prototype,br=p.TypeError,wr=p.QObject,Sr=V("JSON","stringify"),_r=Ae.f,kr=Le.f,Ir=qn.f,Tr=S.f,Or=E([].push),Er=se("symbols"),Cr=se("op-symbols"),xr=se("string-to-symbol-registry"),Rr=se("symbol-to-string-registry"),Ar=se("wks"),Fr=!wr||!wr.prototype||!wr.prototype.findChild,jr=v&&y((function(){return 7!=Yn(kr({},"a",{get:function(){return kr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=_r(vr,t);r&&delete vr[t],kr(e,t,n),r&&e!==vr&&kr(vr,t,r)}:kr,Ur=function(e,t){var n=Er[e]=Yn(gr);return pr(n,{type:dr,tag:e,description:t}),v||(n.description=t),n},Kr=function(e,t,n){e===vr&&Kr(Cr,t,n),Ue(e);var r=Te(t);return Ue(n),de(Er,r)?(n.enumerable?(de(e,fr)&&e[fr][r]&&(e[fr][r]=!1),n=Yn(n,{enumerable:_(0,!1)})):(de(e,fr)||kr(e,fr,_(1,{})),e[fr][r]=!0),jr(e,r,n)):kr(e,r,n)},Pr=function(e,t){Ue(e);var n=P(t),r=Ln(n).concat(Vr(n));return lr(r,(function(t){v&&!g(Lr,n,t)||Kr(e,t,n[t])})),e},Lr=function(e){var t=Te(e),n=g(Tr,this,t);return!(this===vr&&de(Er,t)&&!de(Cr,t))&&(!(n||!de(this,t)||!de(Er,t)||de(this,fr)&&this[fr][t])||n)},Wr=function(e,t){var n=P(e),r=Te(t);if(n!==vr||!de(Er,r)||de(Cr,r)){var o=_r(n,r);return!o||!de(Er,r)||de(n,fr)&&n[fr][r]||(o.enumerable=!0),o}},Zr=function(e){var t=Ir(P(e)),n=[];return lr(t,(function(e){de(Er,e)||de(Ge,e)||Or(n,e)})),n},Vr=function(e){var t=e===vr,n=Ir(t?Cr:P(e)),r=[];return lr(n,(function(e){!de(Er,e)||t&&!de(vr,e)||Or(r,Er[e])})),r};if(G||(gr=(mr=function(){if(N(gr,this))throw br("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Bt(arguments[0]):void 0,t=ve(e),n=function(e){this===vr&&g(n,Cr,e),de(this,fr)&&de(this[fr],t)&&(this[fr][t]=!1),jr(this,t,_(1,e))};return v&&Fr&&jr(vr,t,{configurable:!0,set:n}),Ur(t,e)}).prototype,st(gr,"toString",(function(){return yr(this).tag})),st(mr,"withoutSetter",(function(e){return Ur(ve(e),e)})),S.f=Lr,Le.f=Kr,Ae.f=Wr,Tt.f=qn.f=Zr,Ot.f=Vr,$n.f=function(e){return Ur(Se(e),e)},v&&(kr(gr,"description",{configurable:!0,get:function(){return yr(this).description}}),st(vr,"propertyIsEnumerable",Lr,{unsafe:!0}))),Wt({global:!0,wrap:!0,forced:!G,sham:!G},{Symbol:mr}),lr(Ln(Ar),(function(e){nr(e)})),Wt({target:dr,stat:!0,forced:!G},{for:function(e){var t=Bt(e);if(de(xr,t))return xr[t];var n=mr(t);return xr[t]=n,Rr[n]=t,n},keyFor:function(e){if(!q(e))throw br(e+" is not a symbol");if(de(Rr,e))return Rr[e]},useSetter:function(){Fr=!0},useSimple:function(){Fr=!1}}),Wt({target:"Object",stat:!0,forced:!G,sham:!v},{create:function(e,t){return void 0===t?Yn(e):Pr(Yn(e),t)},defineProperty:Kr,defineProperties:Pr,getOwnPropertyDescriptor:Wr}),Wt({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Zr,getOwnPropertySymbols:Vr}),Wt({target:"Object",stat:!0,forced:y((function(){Ot.f(1)}))},{getOwnPropertySymbols:function(e){return Ot.f(le(e))}}),Sr){var Nr=!G||y((function(){var e=mr();return"[null]"!=Sr([e])||"{}"!=Sr({a:e})||"{}"!=Sr(Object(e))}));Wt({target:"JSON",stat:!0,forced:Nr},{stringify:function(e,t,n){var r=Qn(arguments),o=t;if((W(t)||void 0!==e)&&!q(e))return cn(t)||(t=function(e,t){if(L(o)&&(t=g(o,this,e,t)),!q(t))return t}),r[1]=t,Pn(Sr,null,r)}})}if(!gr[hr]){var Xr=gr.valueOf;st(gr,hr,(function(e){return g(Xr,this)}))}ir(mr,dr),Ge[fr]=!0,nr("asyncIterator");var Dr=Le.f,zr=p.Symbol,Yr=zr&&zr.prototype;if(v&&L(zr)&&(!("description"in Yr)||void 0!==zr().description)){var Jr={},Br=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Bt(arguments[0]),t=N(Yr,this)?new zr(e):void 0===e?zr():zr(e);return""===e&&(Jr[t]=!0),t};xt(Br,zr),Br.prototype=Yr,Yr.constructor=Br;var Gr="Symbol(test)"==String(zr("test")),Mr=E(Yr.toString),Hr=E(Yr.valueOf),qr=/^Symbol\((.*)\)[^)]+$/,Qr=E("".replace),$r=E("".slice);Dr(Yr,"description",{configurable:!0,get:function(){var e=Hr(this),t=Mr(e);if(de(Jr,e))return"";var n=Gr?$r(t,7,-1):Qr(t,qr,"$1");return""===n?void 0:n}}),Wt({global:!0,forced:!0},{Symbol:Br})}nr("hasInstance"),nr("isConcatSpreadable"),nr("iterator"),nr("match"),nr("matchAll"),nr("replace"),nr("search"),nr("species"),nr("split"),nr("toPrimitive"),nr("toStringTag"),nr("unscopables"),ir(p.JSON,"JSON",!0),ir(Math,"Math",!0),Wt({global:!0},{Reflect:{}}),ir(p.Reflect,"Reflect",!0),er.Symbol;var eo,to,no,ro=E("".charAt),oo=E("".charCodeAt),io=E("".slice),ao=function(e){return function(t,n){var r,o,i=Bt(K(t)),a=ft(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=oo(i,a))<55296||r>56319||a+1===c||(o=oo(i,a+1))<56320||o>57343?e?ro(i,a):r:e?io(i,a,a+2):o-56320+(r-55296<<10)+65536}},co={codeAt:ao(!1),charAt:ao(!0)},so=!y((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),uo=Be("IE_PROTO"),lo=p.Object,fo=lo.prototype,ho=so?lo.getPrototypeOf:function(e){var t=le(e);if(de(t,uo))return t[uo];var n=t.constructor;return L(n)&&t instanceof n?n.prototype:t instanceof lo?fo:null},po=Se("iterator"),yo=!1;[].keys&&("next"in(no=[].keys())?(to=ho(ho(no)))!==Object.prototype&&(eo=to):yo=!0),(null==eo||y((function(){var e={};return eo[po].call(e)!==e})))&&(eo={}),L(eo[po])||st(eo,po,(function(){return this}));var vo={IteratorPrototype:eo,BUGGY_SAFARI_ITERATORS:yo},mo={},go=vo.IteratorPrototype,bo=function(){return this},wo=p.String,So=p.TypeError,_o=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=E(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ue(n),function(e){if("object"==typeof e||L(e))return e;throw So("Can't set "+wo(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ko=ct.PROPER,Io=ct.CONFIGURABLE,To=vo.IteratorPrototype,Oo=vo.BUGGY_SAFARI_ITERATORS,Eo=Se("iterator"),Co="keys",xo="values",Ro="entries",Ao=function(){return this},Fo=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Yn(go,{next:_(+!r,n)}),ir(e,o,!1),mo[o]=bo}(n,t,r);var c,s,u,l=function(e){if(e===o&&y)return y;if(!Oo&&e in h)return h[e];switch(e){case Co:case xo:case Ro:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[Eo]||h["@@iterator"]||o&&h[o],y=!Oo&&p||l(o),v="Array"==t&&h.entries||p;if(v&&(c=ho(v.call(new e)))!==Object.prototype&&c.next&&(ho(c)!==To&&(_o?_o(c,To):L(c[Eo])||st(c,Eo,Ao)),ir(c,f,!0)),ko&&o==xo&&p&&p.name!==xo&&(Io?We(h,"name",xo):(d=!0,y=function(){return g(p,this)})),o)if(s={values:l(xo),keys:i?y:l(Co),entries:l(Ro)},a)for(u in s)(Oo||d||!(u in h))&&st(h,u,s[u]);else Wt({target:t,proto:!0,forced:Oo||d},s);return h[Eo]!==y&&st(h,Eo,y,{name:o}),mo[t]=y,s},jo=co.charAt,Uo="String Iterator",Ko=rt.set,Po=rt.getterFor(Uo);Fo(String,"String",(function(e){Ko(this,{type:Uo,string:Bt(e),index:0})}),(function(){var e,t=Po(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=jo(n,r),t.index+=e.length,{value:e,done:!1})}));var Lo=function(e,t,n){var r,o;Ue(e);try{if(!(r=ne(e,"return"))){if("throw"===t)throw n;return n}r=g(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ue(r),n},Wo=function(e,t,n,r){try{return r?t(Ue(n)[0],n[1]):t(n)}catch(t){Lo(e,"throw",t)}},Zo=Se("iterator"),Vo=Array.prototype,No=function(e){return void 0!==e&&(mo.Array===e||Vo[Zo]===e)},Xo=Se("iterator"),Do=function(e){if(null!=e)return ne(e,Xo)||ne(e,"@@iterator")||mo[Yt(e)]},zo=p.TypeError,Yo=function(e,t){var n=arguments.length<2?Do(e):t;if(te(n))return Ue(g(n,e));throw zo($(e)+" is not iterable")},Jo=p.Array,Bo=Se("iterator"),Go=!1;try{var Mo=0,Ho={next:function(){return{done:!!Mo++}},return:function(){Go=!0}};Ho[Bo]=function(){return this},Array.from(Ho,(function(){throw 2}))}catch(e){}var qo=function(e,t){if(!t&&!Go)return!1;var n=!1;try{var r={};r[Bo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Qo=!qo((function(e){Array.from(e)}));Wt({target:"Array",stat:!0,forced:Qo},{from:function(e){var t=le(e),n=gn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=cr(o,r>2?arguments[2]:void 0));var a,c,s,u,l,f,d=Do(t),h=0;if(!d||this==Jo&&No(d))for(a=mt(t),c=n?new this(a):Jo(a);a>h;h++)f=i?o(t[h],h):t[h],sn(c,h,f);else for(l=(u=Yo(t,d)).next,c=n?new this:[];!(s=g(l,u)).done;h++)f=i?Wo(u,o,[s.value,h],!0):s.value,sn(c,h,f);return c.length=h,c}}),er.Array.from;var $o,ei,ti,ni="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,ri=Le.f,oi=p.Int8Array,ii=oi&&oi.prototype,ai=p.Uint8ClampedArray,ci=ai&&ai.prototype,si=oi&&ho(oi),ui=ii&&ho(ii),li=Object.prototype,fi=p.TypeError,di=Se("toStringTag"),hi=ve("TYPED_ARRAY_TAG"),pi=ve("TYPED_ARRAY_CONSTRUCTOR"),yi=ni&&!!_o&&"Opera"!==Yt(p.opera),vi=!1,mi={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},gi={BigInt64Array:8,BigUint64Array:8},bi=function(e){if(!W(e))return!1;var t=Yt(e);return de(mi,t)||de(gi,t)};for($o in mi)(ti=(ei=p[$o])&&ei.prototype)?We(ti,pi,ei):yi=!1;for($o in gi)(ti=(ei=p[$o])&&ei.prototype)&&We(ti,pi,ei);if((!yi||!L(si)||si===Function.prototype)&&(si=function(){throw fi("Incorrect invocation")},yi))for($o in mi)p[$o]&&_o(p[$o],si);if((!yi||!ui||ui===li)&&(ui=si.prototype,yi))for($o in mi)p[$o]&&_o(p[$o].prototype,ui);if(yi&&ho(ci)!==ui&&_o(ci,ui),v&&!de(ui,di))for($o in vi=!0,ri(ui,di,{get:function(){return W(this)?this[hi]:void 0}}),mi)p[$o]&&We(p[$o],hi,$o);var wi={NATIVE_ARRAY_BUFFER_VIEWS:yi,TYPED_ARRAY_CONSTRUCTOR:pi,TYPED_ARRAY_TAG:vi&&hi,aTypedArray:function(e){if(bi(e))return e;throw fi("Target is not a typed array")},aTypedArrayConstructor:function(e){if(L(e)&&(!_o||N(si,e)))return e;throw fi($(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(v){if(n)for(var o in mi){var i=p[o];if(i&&de(i.prototype,e))try{delete i.prototype[e]}catch(e){}}ui[e]&&!n||st(ui,e,n?t:yi&&ii[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(v){if(_o){if(n)for(r in mi)if((o=p[r])&&de(o,e))try{delete o[e]}catch(e){}if(si[e]&&!n)return;try{return st(si,e,n?t:yi&&si[e]||t)}catch(e){}}for(r in mi)!(o=p[r])||o[e]&&!n||st(o,e,t)}},isView:function(e){if(!W(e))return!1;var t=Yt(e);return"DataView"===t||de(mi,t)||de(gi,t)},isTypedArray:bi,TypedArray:si,TypedArrayPrototype:ui},Si=p.TypeError,_i=Se("species"),ki=function(e,t){var n,r=Ue(e).constructor;return void 0===r||null==(n=Ue(r)[_i])?t:function(e){if(gn(e))return e;throw Si($(e)+" is not a constructor")}(n)},Ii=wi.TYPED_ARRAY_CONSTRUCTOR,Ti=wi.aTypedArrayConstructor,Oi=wi.aTypedArray;(0,wi.exportTypedArrayMethod)("slice",(function(e,t){for(var n,r=Qn(Oi(this),e,t),o=Ti(ki(n=this,n[Ii])),i=0,a=r.length,c=new o(a);a>i;)c[i]=r[i++];return c}),y((function(){new Int8Array(1).slice()})));var Ei=Se("unscopables"),Ci=Array.prototype;null==Ci[Ei]&&Le.f(Ci,Ei,{configurable:!0,value:Yn(null)});var xi=function(e){Ci[Ei][e]=!0},Ri=bt.includes;Wt({target:"Array",proto:!0},{includes:function(e){return Ri(this,e,arguments.length>1?arguments[1]:void 0)}}),xi("includes"),an("Array","includes");var Ai=E("".indexOf);Wt({target:"String",proto:!0,forced:!Qt("includes")},{includes:function(e){return!!~Ai(Bt(K(this)),Bt(Ht(e)),arguments.length>1?arguments[1]:void 0)}}),an("String","includes");var Fi=Le.f,ji="Array Iterator",Ui=rt.set,Ki=rt.getterFor(ji);Fo(Array,"Array",(function(e,t){Ui(this,{type:ji,target:P(e),index:0,kind:t})}),(function(){var e=Ki(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 Pi=mo.Arguments=mo.Array;if(xi("keys"),xi("values"),xi("entries"),v&&"values"!==Pi.name)try{Fi(Pi,"name",{value:"values"})}catch(e){}var Li=y((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Wi=Object.isExtensible,Zi=y((function(){Wi(1)}))||Li?function(e){return!!W(e)&&((!Li||"ArrayBuffer"!=R(e))&&(!Wi||Wi(e)))}:Wi,Vi=!y((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ni=l((function(e){var t=Le.f,n=!1,r=ve("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Tt.f,t=E([].splice),o={};o[r]=1,e(o).length&&(Tt.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Wt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qn.f}))},fastKey:function(e,t){if(!W(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!de(e,r)){if(!Zi(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!de(e,r)){if(!Zi(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Vi&&n&&Zi(e)&&!de(e,r)&&i(e),e}};Ge[r]=!0}));Ni.enable,Ni.fastKey,Ni.getWeakData,Ni.onFreeze;var Xi=p.TypeError,Di=function(e,t){this.stopped=e,this.result=t},zi=Di.prototype,Yi=function(e,t,n){var r,o,i,a,c,s,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=cr(t,l),y=function(e){return r&&Lo(r,"normal",e),new Di(!0,e)},v=function(e){return f?(Ue(e),h?p(e[0],e[1],y):p(e[0],e[1])):h?p(e,y):p(e)};if(d)r=e;else{if(!(o=Do(e)))throw Xi($(e)+" is not iterable");if(No(o)){for(i=0,a=mt(e);a>i;i++)if((c=v(e[i]))&&N(zi,c))return c;return new Di(!1)}r=Yo(e,o)}for(s=r.next;!(u=g(s,r)).done;){try{c=v(u.value)}catch(e){Lo(r,"throw",e)}if("object"==typeof c&&c&&N(zi,c))return c}return new Di(!1)},Ji=p.TypeError,Bi=function(e,t){if(N(t,e))return e;throw Ji("Incorrect invocation")},Gi=function(e,t,n){for(var r in t)st(e,r,t[r],n);return e},Mi=Se("species"),Hi=Le.f,qi=Ni.fastKey,Qi=rt.set,$i=rt.getterFor,ea={getConstructor:function(e,t,n,r){var o=e((function(e,o){Bi(e,i),Qi(e,{type:t,index:Yn(null),first:void 0,last:void 0,size:0}),v||(e.size=0),null!=o&&Yi(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=$i(t),c=function(e,t,n){var r,o,i=a(e),c=s(e,t);return c?c.value=n:(i.last=c={index:o=qi(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=c),r&&(r.next=c),v?i.size++:e.size++,"F"!==o&&(i.index[o]=c)),e},s=function(e,t){var n,r=a(e),o=qi(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Gi(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,v?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),v?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=cr(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Gi(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return c(this,0===e?0:e,t)}}:{add:function(e){return c(this,e=0===e?0:e,e)}}),v&&Hi(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=$i(t),i=$i(r);Fo(e,t,(function(e,t){Qi(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(e){var t=V(e),n=Le.f;v&&t&&!t[Mi]&&n(t,Mi,{configurable:!0,get:function(){return this}})}(t)}};function ta(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 na(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=p[e],c=a&&a.prototype,s=a,u={},l=function(e){var t=E(c[e]);st(c,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!W(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!W(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!W(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Pt(e,!L(a)||!(o||c.forEach&&!y((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ni.enable();else if(Pt(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,h=y((function(){f.has(1)})),v=qo((function(e){new a(e)})),m=!o&&y((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));v||((s=t((function(e,t){Bi(e,c);var n=function(e,t,n){var r,o;return _o&&L(r=t.constructor)&&r!==n&&W(o=r.prototype)&&o!==n.prototype&&_o(e,o),e}(new a,e,s);return null!=t&&Yi(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=c,c.constructor=s),(h||m)&&(l("delete"),l("has"),r&&l("get")),(m||d)&&l(i),o&&c.clear&&delete c.clear}u[e]=s,Wt({global:!0,forced:s!=a},u),ir(s,e),o||n.setStrong(s,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ea),er.Set;var ra=setTimeout,oa="undefined"!=typeof setImmediate?setImmediate:null;function ia(e){return Boolean(e&&void 0!==e.length)}function aa(){}function ca(e){if(!(this instanceof ca))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=[],ha(e,this)}function sa(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,ca._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 la(t.promise,e)}ua(t.promise,r)}else(1===e._state?ua:la)(t.promise,e._value)}))):e._deferreds.push(t)}function ua(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 ca)return e._state=3,e._value=t,void fa(e);if("function"==typeof n)return void ha((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,fa(e)}catch(t){la(e,t)}var r,o}function la(e,t){e._state=2,e._value=t,fa(e)}function fa(e){2===e._state&&0===e._deferreds.length&&ca._immediateFn((function(){e._handled||ca._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)sa(e,e._deferreds[t]);e._deferreds=null}function da(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function ha(e,t){var n=!1;try{e((function(e){n||(n=!0,ua(t,e))}),(function(e){n||(n=!0,la(t,e))}))}catch(e){if(n)return;n=!0,la(t,e)}}ca.prototype.catch=function(e){return this.then(null,e)},ca.prototype.then=function(e,t){var n=new this.constructor(aa);return sa(this,new da(e,t,n)),n},ca.prototype.finally=ta,ca.all=function(e){return new ca((function(t,n){if(!ia(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,(function(t){i(e,t)}),n)}r[e]=a,0==--o&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},ca.allSettled=na,ca.resolve=function(e){return e&&"object"==typeof e&&e.constructor===ca?e:new ca((function(t){t(e)}))},ca.reject=function(e){return new ca((function(t,n){n(e)}))},ca.race=function(e){return new ca((function(t,n){if(!ia(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)ca.resolve(e[r]).then(t,n)}))},ca._immediateFn="function"==typeof oa&&function(e){oa(e)}||function(e){ra(e,0)},ca._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var pa=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 pa.Promise?pa.Promise=ca:(pa.Promise.prototype.finally||(pa.Promise.prototype.finally=ta),pa.Promise.allSettled||(pa.Promise.allSettled=na)),function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===o.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function r(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],i=0;;){var a=t<e.length;if(!a||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!a)return o.join("");e=e.subarray(t),i=t=0}if(0==(128&(a=e[t++])))r[i++]=a;else if(192==(224&a)){var c=63&e[t++];r[i++]=(31&a)<<6|c}else if(224==(240&a)){c=63&e[t++];var s=63&e[t++];r[i++]=(31&a)<<12|c<<6|s}else if(240==(248&a)){65535<(a=(7&a)<<18|(c=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(a-=65536,r[i++]=a>>>10&1023|55296,a=56320|1023&a),r[i++]=a}}}if(e.TextEncoder&&e.TextDecoder)return!1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(o>>>3<<3);t<n;){var a=e.charCodeAt(t++);if(55296<=a&&56319>=a){if(t<n){var c=e.charCodeAt(t);56320==(64512&c)&&(++t,a=((1023&a)<<10)+(1023&c)+65536)}if(55296<=a&&56319>=a)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(c=new Uint8Array(o)).set(i),i=c),0==(4294967168&a))i[r++]=a;else{if(0==(4294965248&a))i[r++]=a>>>6&31|192;else if(0==(4294901760&a))i[r++]=a>>>12&15|224,i[r++]=a>>>6&63|128;else{if(0!=(4292870144&a))continue;i[r++]=a>>>18&7|240,i[r++]=a>>>12&63|128,i[r++]=a>>>6&63|128}i[r++]=63&a|128}}return i.slice?i.slice(0,r):i.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=r;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{URL.revokeObjectURL(t)}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n}("undefined"!=typeof window?window:s),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function l(e){var t=a();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var h=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),p=function(t){r(a,t);var i=l(a);function a(){var t;return e(this,a),(t=i.call(this)).listeners||h.call(c(t)),Object.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(a,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),d(o(a.prototype),"dispatchEvent",this).call(this,e)}}]),a}(h),y=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new p,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function v(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(y.prototype[Symbol.toStringTag]="AbortController",p.prototype[Symbol.toStringTag]="AbortSignal"),function(e){v(e)&&(e.AbortController=y,e.AbortSignal=p)}("undefined"!=typeof self?self:s)}();var ya=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}}));u(ya);var va=u(l((function(e,t){var n=s&&s.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}s((r=r.apply(e,t||[])).next())}))},r=s&&s.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function a(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++){n+=t[Math.floor(Math.random()*t.length)]}return n}var c=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,c){return void 0===c&&(c=5e3),n(this,void 0,void 0,(function(){var n,s,u,l,f,d;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+a(4),s=Date.now()+c,u=o+"-"+t,l=window.localStorage,r.label=1;case 1:return Date.now()<s?[4,i(30)]:[3,8];case 2:return r.sent(),null!==l.getItem(u)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),l.setItem(u,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(d=l.getItem(u))&&(d=JSON.parse(d)).id===this.id&&d.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(u,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(s)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+a(4),[3,1];case 8:return[2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var o=this;return r(this,(function(i){return setTimeout((function(){return n(o,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return[4,ya.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(ya.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),ya.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(ya.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){var r=!1,o=Date.now(),i=!1;function a(){if(i||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(c),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n()}}window.addEventListener("storage",a),e.addToWaiting(a);var c=setTimeout(a,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,a;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(a=n.getItem(i))?[2]:(a=JSON.parse(a)).id!==this.id?[3,2]:[4,ya.default().lock(a.iat)];case 1:r.sent(),this.acquiredIatSet.delete(a.iat),n.removeItem(i),ya.default().unlock(a.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,a=0;a<r.length;a++){var c=r[a];if(c.includes(o)){var s=n.getItem(c);null!==s&&(void 0===(s=JSON.parse(s)).timeRefreshed&&s.timeAcquired<t||void 0!==s.timeRefreshed&&s.timeRefreshed<t)&&(n.removeItem(c),i=!0)}}i&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=c}))),ma={timeoutInSeconds:60},ga="memory",ba=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],wa={name:"auth0-spa-js",version:"1.19.4"},Sa=function(){return Date.now()},_a=function(e){function n(t,r){var o=e.call(this,r)||this;return o.error=t,o.error_description=r,Object.setPrototypeOf(o,n.prototype),o}return t(n,e),n.fromPayload=function(e){return new n(e.error,e.error_description)},n}(Error),ka=function(e){function n(t,r,o,i){void 0===i&&(i=null);var a=e.call(this,t,r)||this;return a.state=o,a.appState=i,Object.setPrototypeOf(a,n.prototype),a}return t(n,e),n}(_a),Ia=function(e){function n(){var t=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(t,n.prototype),t}return t(n,e),n}(_a),Ta=function(e){function n(t){var r=e.call(this)||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(Ia),Oa=function(e){function n(t){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=t,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(_a),Ea=function(e){function n(t,r,o){var i=e.call(this,t,r)||this;return i.mfa_token=o,Object.setPrototypeOf(i,n.prototype),i}return t(n,e),n}(_a),Ca=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 Oa(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new Ta(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),a.data.response.error)return n(_a.fromPayload(a.data.response));t(a.data.response)}},window.addEventListener("message",r)}))},xa=function(){return window.crypto||window.msCrypto},Ra=function(){var e=xa();return e.subtle||e.webkitSubtle},Aa=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(xa().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},Fa=function(e){return btoa(e)},ja=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},Ua=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return t=Ra().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()]}}))}))},Ka=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,"+"))},Pa=function(e){var t=new Uint8Array(e);return function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))}(window.btoa(String.fromCharCode.apply(String,c([],a(Array.from(t)),!1))))};var La=function(e,t){return o(void 0,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return[4,(i=e,a=t,a=a||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],c={},s=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:s,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return c[e.toLowerCase()]},has:function(e){return e.toLowerCase()in c}}}};for(var u in n.open(a.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){r.push(t=t.toLowerCase()),o.push([t,n]),c[t]=c[t]?c[t]+","+n:n})),e(s())},n.onerror=t,n.withCredentials="include"==a.credentials,a.headers)n.setRequestHeader(u,a.headers[u]);n.send(a.body||null)})))];case 1:return n=o.sent(),r={ok:n.ok},[4,n.json()];case 2:return[2,(r.json=o.sent(),r)]}var i,a}))}))},Wa=function(e,t,n){return o(void 0,void 0,void 0,(function(){var r,o;return i(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([La(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},Za=function(e,t,n,r,a,c,s){return o(void 0,void 0,void 0,(function(){return i(this,(function(o){return[2,(i={auth:{audience:t,scope:n},timeout:a,fetchUrl:e,fetchOptions:r,useFormData:s},u=c,new Promise((function(e,t){var n=new MessageChannel;n.port1.onmessage=function(n){n.data.error?t(new Error(n.data.error)):e(n.data)},u.postMessage(i,[n.port2])})))];var i,u}))}))},Va=function(e,t,n,r,a,c,s){return void 0===s&&(s=1e4),o(void 0,void 0,void 0,(function(){return i(this,(function(o){return a?[2,Za(e,t,n,r,s,a,c)]:[2,Wa(e,r,s)]}))}))};function Na(e,t,n,a,c,s,u){return o(this,void 0,void 0,(function(){var o,l,f,d,h,p,y,v,m;return i(this,(function(i){switch(i.label){case 0:o=null,f=0,i.label=1;case 1:if(!(f<3))return[3,6];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,Va(e,n,a,c,s,u,t)];case 3:return l=i.sent(),o=null,[3,6];case 4:return d=i.sent(),o=d,[3,5];case 5:return f++,[3,1];case 6:if(o)throw o.message=o.message||"Failed to fetch",o;if(h=l.json,p=h.error,y=h.error_description,v=r(h,["error","error_description"]),!l.ok){if(m=y||"HTTP error. Unable to fetch "+e,"mfa_required"===p)throw new Ea(p,m,v.mfa_token);throw new _a(p||"request_error",m)}return[2,v]}}))}))}function Xa(e,t){var n=e.baseUrl,a=e.timeout,c=e.audience,s=e.scope,u=e.auth0Client,l=e.useFormData,f=r(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return o(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return e=l?ja(f):JSON.stringify(f),[4,Na(n+"/oauth/token",a,c||"default",s,{method:"POST",body:e,headers:{"Content-Type":l?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(u||wa))}},t,l)];case 1:return[2,r.sent()]}}))}))}var Da=function(e){return Array.from(new Set(e))},za=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Da(e.join(" ").trim().split(/\s+/)).join(" ")},Ya="@@auth0spajs@@",Ja=function(){function e(e,t){void 0===t&&(t=Ya),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return e.prototype.toKey=function(){return this.prefix+"::"+this.client_id+"::"+this.audience+"::"+this.scope},e.fromKey=function(t){var n=a(t.split("::"),4),r=n[0],o=n[1],i=n[2];return new e({client_id:o,scope:n[3],audience:i},r)},e.fromCacheEntry=function(t){return new e({scope:t.scope,audience:t.audience,client_id:t.client_id})},e}(),Ba=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(Ya)}))},e}(),Ga=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)}})},Ma=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||Sa}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),o(this,void 0,void 0,(function(){var r,o,a,c,s;return i(this,(function(i){switch(i.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=i.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=i.sent())?(a=this.matchExistingCacheKey(e,o),[4,this.cache.get(a)]):[2];case 3:r=i.sent(),i.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return c=i.sent(),s=Math.floor(c/1e3),r.expiresAt-t<s?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return i.sent(),[2,r.body];case 7:return[4,this.cache.remove(e.toKey())];case 8:return i.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return i.sent(),[2];case 10:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return n=new Ja({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=o.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return o.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return o(this,void 0,void 0,(function(){var n,r=this;return i(this,(function(a){switch(a.label){case 0:return[4,this.getCacheKeys()];case 1:return(n=a.sent())?[4,n.filter((function(t){return!e||t.includes(e)})).reduce((function(e,t){return o(r,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return n.sent(),[4,this.cache.remove(t)];case 2:return n.sent(),[2]}}))}))}),Promise.resolve())]:[2];case 2:return a.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.clear()];case 3:return a.sent(),[2]}}))}))},e.prototype.clearSync=function(e){var t=this,n=this.cache.allKeys();n&&n.filter((function(t){return!e||t.includes(e)})).forEach((function(e){t.cache.remove(e)}))},e.prototype.wrapCacheEntry=function(e){return o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return t=o.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return t=null===(e=n.sent())||void 0===e?void 0:e.keys,[3,4];case 2:return[4,this.cache.allKeys()];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}}))}))},e.prototype.matchExistingCacheKey=function(e,t){return t.filter((function(t){var n=Ja.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 n.prefix===Ya&&n.client_id===e.client_id&&n.audience===e.audience&&i}))[0]},e}(),Ha=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="a0.spajs.txs."+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}(),qa=function(e){return"number"==typeof e},Qa=["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"],$a=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=a(t,3),r=n[0],o=n[1],i=n[2];if(3!==t.length||!r||!o||!i)throw new Error("ID token could not be decoded");var c=JSON.parse(Ka(o)),s={__raw:e},u={};return Object.keys(c).forEach((function(e){s[e]=c[e],Qa.includes(e)||(u[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Ka(r)),claims:s,user:u}}(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'+e.iss+'", found "'+t.claims.iss+'"');if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'+t.header.alg+'" is not supported. Expected the ID token to be signed with "RS256".');if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but was not one of "'+t.claims.aud.join(", ")+'"');if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'+e.aud+'", found "'+t.claims.azp+'"')}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but found "'+t.claims.aud+'"');if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'+e.nonce+'", found "'+t.claims.nonce+'"')}if(e.max_age&&!qa(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(!qa(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!qa(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 ("+r+") is after expiration time ("+o+")");if(qa(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time ("+r+") is before "+i);if(qa(t.claims.auth_time)&&r>c)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time ("+r+") is after last auth at "+c);if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'+e.organizationId+'", found "'+t.claims.org_id+'"')}return t},ec=l((function(e,t){var n=s&&s.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function o(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent)}catch(e){}}return t}function a(){return i(document.cookie)}function c(e,t,r){document.cookie=o(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=a,t.get=function(e){return a()[e]},t.set=c,t.remove=function(e,t){c(e,"",n(n({},t),{expires:-1}))}}));u(ec),ec.encode,ec.parse,ec.getAll;var tc=ec.get,nc=ec.set,rc=ec.remove,oc={get:function(e){var t=tc(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),nc(e,JSON.stringify(t),r)},remove:function(e){rc(e)}},ic={get:function(e){var t=oc.get(e);return t||oc.get("_legacy_"+e)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),nc("_legacy_"+e,JSON.stringify(t),r),oc.save(e,t,n)},remove:function(e){oc.remove(e),oc.remove("_legacy_"+e)}},ac={get:function(e){if("undefined"!=typeof sessionStorage){var t=sessionStorage.getItem(e);if(void 0!==t)return JSON.parse(t)}},save:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove:function(e){sessionStorage.removeItem(e)}};function cc(e,t,n){var r=void 0===t?null:t,o=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),o=0,i=n.length;o<i;++o)r[o]=n.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),i=o.indexOf("\n",10)+1,a=o.substring(i)+(r?"//# sourceMappingURL="+r:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}var sc,uc,lc,fc,dc=(sc="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQogICAgQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULAogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NCiAgICBMT1NTIE9GIFVTRSwgREFUQSBPUiBQUk9GSVRTLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgTkVHTElHRU5DRSBPUgogICAgT1RIRVIgVE9SVElPVVMgQUNUSU9OLCBBUklTSU5HIE9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFVTRSBPUgogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4KICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqICovdmFyIGU9ZnVuY3Rpb24oKXtyZXR1cm4oZT1PYmplY3QuYXNzaWdufHxmdW5jdGlvbihlKXtmb3IodmFyIHIsdD0xLG49YXJndW1lbnRzLmxlbmd0aDt0PG47dCsrKWZvcih2YXIgbyBpbiByPWFyZ3VtZW50c1t0XSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocixvKSYmKGVbb109cltvXSk7cmV0dXJuIGV9KS5hcHBseSh0aGlzLGFyZ3VtZW50cyl9O2Z1bmN0aW9uIHIoZSxyLHQsbil7cmV0dXJuIG5ldyh0fHwodD1Qcm9taXNlKSkoKGZ1bmN0aW9uKG8sYSl7ZnVuY3Rpb24gcyhlKXt0cnl7dShuLm5leHQoZSkpfWNhdGNoKGUpe2EoZSl9fWZ1bmN0aW9uIGkoZSl7dHJ5e3Uobi50aHJvdyhlKSl9Y2F0Y2goZSl7YShlKX19ZnVuY3Rpb24gdShlKXt2YXIgcjtlLmRvbmU/byhlLnZhbHVlKToocj1lLnZhbHVlLHIgaW5zdGFuY2VvZiB0P3I6bmV3IHQoKGZ1bmN0aW9uKGUpe2Uocil9KSkpLnRoZW4ocyxpKX11KChuPW4uYXBwbHkoZSxyfHxbXSkpLm5leHQoKSl9KSl9ZnVuY3Rpb24gdChlLHIpe3ZhciB0LG4sbyxhLHM9e2xhYmVsOjAsc2VudDpmdW5jdGlvbigpe2lmKDEmb1swXSl0aHJvdyBvWzFdO3JldHVybiBvWzFdfSx0cnlzOltdLG9wczpbXX07cmV0dXJuIGE9e25leHQ6aSgwKSx0aHJvdzppKDEpLHJldHVybjppKDIpfSwiZnVuY3Rpb24iPT10eXBlb2YgU3ltYm9sJiYoYVtTeW1ib2wuaXRlcmF0b3JdPWZ1bmN0aW9uKCl7cmV0dXJuIHRoaXN9KSxhO2Z1bmN0aW9uIGkoYSl7cmV0dXJuIGZ1bmN0aW9uKGkpe3JldHVybiBmdW5jdGlvbihhKXtpZih0KXRocm93IG5ldyBUeXBlRXJyb3IoIkdlbmVyYXRvciBpcyBhbHJlYWR5IGV4ZWN1dGluZy4iKTtmb3IoO3M7KXRyeXtpZih0PTEsbiYmKG89MiZhWzBdP24ucmV0dXJuOmFbMF0/bi50aHJvd3x8KChvPW4ucmV0dXJuKSYmby5jYWxsKG4pLDApOm4ubmV4dCkmJiEobz1vLmNhbGwobixhWzFdKSkuZG9uZSlyZXR1cm4gbztzd2l0Y2gobj0wLG8mJihhPVsyJmFbMF0sby52YWx1ZV0pLGFbMF0pe2Nhc2UgMDpjYXNlIDE6bz1hO2JyZWFrO2Nhc2UgNDpyZXR1cm4gcy5sYWJlbCsrLHt2YWx1ZTphWzFdLGRvbmU6ITF9O2Nhc2UgNTpzLmxhYmVsKyssbj1hWzFdLGE9WzBdO2NvbnRpbnVlO2Nhc2UgNzphPXMub3BzLnBvcCgpLHMudHJ5cy5wb3AoKTtjb250aW51ZTtkZWZhdWx0OmlmKCEobz1zLnRyeXMsKG89by5sZW5ndGg+MCYmb1tvLmxlbmd0aC0xXSl8fDYhPT1hWzBdJiYyIT09YVswXSkpe3M9MDtjb250aW51ZX1pZigzPT09YVswXSYmKCFvfHxhWzFdPm9bMF0mJmFbMV08b1szXSkpe3MubGFiZWw9YVsxXTticmVha31pZig2PT09YVswXSYmcy5sYWJlbDxvWzFdKXtzLmxhYmVsPW9bMV0sbz1hO2JyZWFrfWlmKG8mJnMubGFiZWw8b1syXSl7cy5sYWJlbD1vWzJdLHMub3BzLnB1c2goYSk7YnJlYWt9b1syXSYmcy5vcHMucG9wKCkscy50cnlzLnBvcCgpO2NvbnRpbnVlfWE9ci5jYWxsKGUscyl9Y2F0Y2goZSl7YT1bNixlXSxuPTB9ZmluYWxseXt0PW89MH1pZig1JmFbMF0pdGhyb3cgYVsxXTtyZXR1cm57dmFsdWU6YVswXT9hWzFdOnZvaWQgMCxkb25lOiEwfX0oW2EsaV0pfX19dmFyIG49e30sbz1mdW5jdGlvbihlLHIpe3JldHVybiBlKyJ8IityfTthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoZnVuY3Rpb24oYSl7dmFyIHM9YS5kYXRhLGk9cy50aW1lb3V0LHU9cy5hdXRoLGM9cy5mZXRjaFVybCxmPXMuZmV0Y2hPcHRpb25zLGw9cy51c2VGb3JtRGF0YSxoPWZ1bmN0aW9uKGUscil7dmFyIHQ9ImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmZVtTeW1ib2wuaXRlcmF0b3JdO2lmKCF0KXJldHVybiBlO3ZhciBuLG8sYT10LmNhbGwoZSkscz1bXTt0cnl7Zm9yKDsodm9pZCAwPT09cnx8ci0tID4wKSYmIShuPWEubmV4dCgpKS5kb25lOylzLnB1c2gobi52YWx1ZSl9Y2F0Y2goZSl7bz17ZXJyb3I6ZX19ZmluYWxseXt0cnl7biYmIW4uZG9uZSYmKHQ9YS5yZXR1cm4pJiZ0LmNhbGwoYSl9ZmluYWxseXtpZihvKXRocm93IG8uZXJyb3J9fXJldHVybiBzfShhLnBvcnRzLDEpWzBdO3JldHVybiByKHZvaWQgMCx2b2lkIDAsdm9pZCAwLChmdW5jdGlvbigpe3ZhciByLGEscyxwLHksYixkLHYsdyxnO3JldHVybiB0KHRoaXMsKGZ1bmN0aW9uKHQpe3N3aXRjaCh0LmxhYmVsKXtjYXNlIDA6cz0oYT11fHx7fSkuYXVkaWVuY2UscD1hLnNjb3BlLHQubGFiZWw9MTtjYXNlIDE6aWYodC50cnlzLnB1c2goWzEsNywsOF0pLCEoeT1sPyhrPWYuYm9keSxTPW5ldyBVUkxTZWFyY2hQYXJhbXMoayksXz17fSxTLmZvckVhY2goKGZ1bmN0aW9uKGUscil7X1tyXT1lfSkpLF8pOkpTT04ucGFyc2UoZi5ib2R5KSkucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09eS5ncmFudF90eXBlKXtpZighKGI9ZnVuY3Rpb24oZSxyKXtyZXR1cm4gbltvKGUscildfShzLHApKSl0aHJvdyBuZXcgRXJyb3IoIlRoZSB3ZWIgd29ya2VyIGlzIG1pc3NpbmcgdGhlIHJlZnJlc2ggdG9rZW4iKTtmLmJvZHk9bD9uZXcgVVJMU2VhcmNoUGFyYW1zKGUoZSh7fSx5KSx7cmVmcmVzaF90b2tlbjpifSkpLnRvU3RyaW5nKCk6SlNPTi5zdHJpbmdpZnkoZShlKHt9LHkpLHtyZWZyZXNoX3Rva2VuOmJ9KSl9ZD12b2lkIDAsImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixmLnNpZ25hbD1kLnNpZ25hbCksdj12b2lkIDAsdC5sYWJlbD0yO2Nhc2UgMjpyZXR1cm4gdC50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKG09aSxuZXcgUHJvbWlzZSgoZnVuY3Rpb24oZSl7cmV0dXJuIHNldFRpbWVvdXQoZSxtKX0pKSksZmV0Y2goYyxlKHt9LGYpKV0pXTtjYXNlIDM6cmV0dXJuIHY9dC5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiB3PXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOncubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHY/WzQsdi5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4ocj10LnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",uc=null,lc=!1,function(e){return fc=fc||cc(sc,uc,lc),new Worker(fc,e)}),hc={},pc=function(){function e(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}return e.prototype.add=function(e){var t;return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return(n=new(r.apply(Set,[void 0,(null===(t=o.sent())||void 0===t?void 0:t.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:c([],a(n),!1)})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return[4,this.cache.get(this.manifestKey)];case 1:return(t=r.sent())?((n=new Set(t.keys)).delete(e),n.size>0?[4,this.cache.set(this.manifestKey,{keys:c([],a(n),!1)})]:[3,3]):[3,5];case 2:return[2,r.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 4:return[2,r.sent()];case 5:return[2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return"@@auth0spajs@@::"+e},e}(),yc=new va,vc="auth0.lock.getTokenSilently",mc="auth0.is.authenticated",gc={memory:function(){return(new Ga).enclosedCache},localstorage:function(){return new Ba}},bc=function(e){return gc[e]},wc=function(){return!/Trident.*rv:11\.0/.test(navigator.userAgent)},Sc=function(){function e(e){var t,n,o;if(this.options=e,"undefined"!=typeof window&&function(){if(!xa())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Ra())throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")}(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)o=e.cache;else{if(this.cacheLocation=e.cacheLocation||ga,!bc(this.cacheLocation))throw new Error('Invalid cache location "'+this.cacheLocation+'"');o=bc(this.cacheLocation)()}this.cookieStorage=!1===e.legacySameSiteCookie?oc:ic,this.orgHintCookieName="auth0."+this.options.client_id+".organization_hint",this.isAuthenticatedCookieName=function(e){return"auth0."+e+".is.authenticated"}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var i,a=e.useCookiesForTransactions?this.cookieStorage:ac;this.scope=this.options.scope,this.transactionManager=new Ha(a,this.options.client_id),this.nowProvider=this.options.nowProvider||Sa,this.cacheManager=new Ma(o,o.allKeys?null:new pc(o,this.options.client_id),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:"https://"+i),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://"+e+"/":t+"/"}(this.options.issuer,this.domainUrl),this.defaultScope=za("openid",void 0!==(null===(n=null===(t=this.options)||void 0===t?void 0:t.advancedOptions)||void 0===n?void 0:n.defaultScope)?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=za(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&this.cacheLocation===ga&&wc()&&(this.worker=new dc),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.redirect_uri,e.scope,e.useRefreshTokens,e.useCookiesForTransactions,e.useFormData,r(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","client_id","domain","issuer","leeway","max_age","redirect_uri","scope","useRefreshTokens","useCookiesForTransactions","useFormData"])}(e)}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||wa)));return""+this.domainUrl+e+"&auth0Client="+t},e.prototype._getParams=function(e,t,o,i,a){var c=this.options;c.useRefreshTokens,c.useCookiesForTransactions,c.useFormData,c.auth0Client,c.cacheLocation,c.advancedOptions,c.detailedResponse,c.nowProvider,c.authorizeTimeoutInSeconds,c.legacySameSiteCookie,c.sessionCheckExpiryDays,c.domain,c.leeway;var s=r(c,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway"]);return n(n(n({},s),e),{scope:za(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:o,redirect_uri:a||this.options.redirect_uri,code_challenge:i,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?"+ja(e))},e.prototype._verifyIdToken=function(e,t,n){return o(this,void 0,void 0,(function(){var r;return i(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return r=o.sent(),[2,$a({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:r})]}}))}))},e.prototype._parseNumber=function(e){return"string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays}):this.cookieStorage.remove(this.orgHintCookieName)},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y;return i(this,(function(i){switch(i.label){case 0:return t=e.redirect_uri,o=e.appState,a=r(e,["redirect_uri","appState"]),c=Fa(Aa()),s=Fa(Aa()),u=Aa(),[4,Ua(u)];case 1:return l=i.sent(),f=Pa(l),d=e.fragment?"#"+e.fragment:"",h=this._getParams(a,c,s,f,t),p=this._authorizeUrl(h),y=e.organization||this.options.organization,this.transactionManager.create(n({nonce:s,code_verifier:u,appState:o,scope:h.scope,audience:h.audience||"default",redirect_uri:h.redirect_uri,state:c},y&&{organizationId:y})),[2,p+d]}}))}))},e.prototype.loginWithPopup=function(e,t){return o(this,void 0,void 0,(function(){var o,a,c,s,u,l,f,d,h,p,y,v,m;return i(this,(function(i){switch(i.label){case 0:return e=e||{},(t=t||{}).popup||(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open(e,"auth0:authorize:popup","left="+t+",top="+n+",width=400,height=600,resizable,scrollbars=yes,status=1")}("")),o=r(e,[]),a=Fa(Aa()),c=Fa(Aa()),s=Aa(),[4,Ua(s)];case 1:return u=i.sent(),l=Pa(u),f=this._getParams(o,a,c,l,this.options.redirect_uri||window.location.origin),d=this._authorizeUrl(n(n({},f),{response_mode:"web_message"})),t.popup.location.href=d,[4,Ca(n(n({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(h=i.sent(),a!==h.state)throw new Error("Invalid state");return[4,Xa({audience:f.audience,scope:f.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:s,code:h.code,grant_type:"authorization_code",redirect_uri:f.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},this.worker)];case 3:return p=i.sent(),y=e.organization||this.options.organization,[4,this._verifyIdToken(p.id_token,c,y)];case 4:return v=i.sent(),m=n(n({},p),{decodedToken:v,scope:f.scope,audience:f.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 5:return i.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(v.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=za(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Ja({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.user]}}))}))},e.prototype.getIdTokenClaims=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=za(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Ja({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},e.prototype.loginWithRedirect=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,n,o;return i(this,(function(i){switch(i.label){case 0:return t=e.redirectMethod,n=r(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return o=i.sent(),window.location[t||"assign"](o),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),o(this,void 0,void 0,(function(){var t,r,o,c,s,u,l,f,d,h;return i(this,(function(i){switch(i.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(r=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=a(e.split("="),2),r=t[0],o=t[1];n[r]=decodeURIComponent(o)})),n.expires_in&&(n.expires_in=parseInt(n.expires_in)),n}(t.join("")),o=r.state,c=r.code,s=r.error,u=r.error_description,!(l=this.transactionManager.get()))throw new Error("Invalid state");if(this.transactionManager.remove(),s)throw new ka(s,u,o,l.appState);if(!l.code_verifier||l.state&&l.state!==o)throw new Error("Invalid state");return f={audience:l.audience,scope:l.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:l.code_verifier,grant_type:"authorization_code",code:c,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},void 0!==l.redirect_uri&&(f.redirect_uri=l.redirect_uri),[4,Xa(f,this.worker)];case 1:return d=i.sent(),[4,this._verifyIdToken(d.id_token,l.nonce,l.organizationId)];case 2:return h=i.sent(),[4,this.cacheManager.set(n(n(n(n({},d),{decodedToken:h,audience:l.audience,scope:l.scope}),d.scope?{oauthTokenScope:d.scope}:null),{client_id:this.options.client_id}))];case 3:return i.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(h.claims.org_id),[2,{appState:l.appState}]}}))}))},e.prototype.checkSession=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get(mc))return[2];this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this.cookieStorage.remove(mc)}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(),!ba.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,o,a,c=this;return i(this,(function(i){return t=n(n({audience:this.options.audience,ignoreCache:!1},e),{scope:za(this.defaultScope,this.scope,e.scope)}),o=t.ignoreCache,a=r(t,["ignoreCache"]),[2,(s=function(){return c._getTokenSilently(n({ignoreCache:o},a))},u=this.options.client_id+"::"+a.audience+"::"+a.scope,l=hc[u],l||(l=s().finally((function(){delete hc[u],l=null})),hc[u]=l),l)];var s,u,l}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){var t,a,c,s,u,l,f,d,h;return i(this,(function(p){switch(p.label){case 0:return t=e.ignoreCache,a=r(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:a.scope,audience:a.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 1:if(c=p.sent())return[2,c];p.label=2;case 2:return[4,(y=function(){return yc.acquireLock(vc,5e3)},v=10,void 0===v&&(v=3),o(void 0,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<v?[4,y()]:[3,4];case 2:if(t.sent())return[2,!0];t.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!p.sent())return[3,15];p.label=4;case 4:return p.trys.push([4,,12,14]),t?[3,6]:[4,this._getEntryFromCache({scope:a.scope,audience:a.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 5:if(c=p.sent())return[2,c];p.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(a)]:[3,8];case 7:return u=p.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(a)];case 9:u=p.sent(),p.label=10;case 10:return s=u,[4,this.cacheManager.set(n({client_id:this.options.client_id},s))];case 11:return p.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),e.detailedResponse?(l=s.id_token,f=s.access_token,d=s.oauthTokenScope,h=s.expires_in,[2,n(n({id_token:l,access_token:f},d?{scope:d}:null),{expires_in:h})]):[2,s.access_token];case 12:return[4,yc.releaseLock(vc)];case 13:return p.sent(),[7];case 14:return[3,16];case 15:throw new Ia;case 16:return[2]}var y,v}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=za(this.defaultScope,this.scope,e.scope),t=n(n({},ma),t),[4,this.loginWithPopup(e,t)];case 1:return r.sent(),[4,this.cacheManager.get(new Ja({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,r.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.getUser()];case 1:return[2,!!e.sent()]}}))}))},e.prototype.buildLogoutUrl=function(e){void 0===e&&(e={}),null!==e.client_id?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var t=e.federated,n=r(e,["federated"]),o=t?"&federated":"";return this._url("/v2/logout?"+ja(n))+o},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,o=r(e,["localOnly"]);if(n&&o.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var i=function(){if(t.cookieStorage.remove(t.orgHintCookieName),t.cookieStorage.remove(t.isAuthenticatedCookieName),!n){var e=t.buildLogoutUrl(o);window.location.assign(e)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return i()}));this.cacheManager.clearSync(),i()},e.prototype._getTokenFromIFrame=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d,h,p,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:return t=Fa(Aa()),o=Fa(Aa()),a=Aa(),[4,Ua(a)];case 1:c=i.sent(),s=Pa(c),u=r(e,["detailedResponse"]),l=this._getParams(u,t,o,s,e.redirect_uri||this.options.redirect_uri||window.location.origin),(f=this.cookieStorage.get(this.orgHintCookieName))&&!l.organization&&(l.organization=f),d=this._authorizeUrl(n(n({},l),{prompt:"none",response_mode:"web_message"})),h=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,i.label=2;case 2:if(i.trys.push([2,6,,7]),window.crossOriginIsolated)throw new _a("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return[4,(S=d,_=this.domainUrl,k=h,void 0===k&&(k=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,o=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1))},i=setTimeout((function(){t(new Ia),o()}),1e3*k);r=function(n){if(n.origin==_&&n.data&&"authorization_response"===n.data.type){var a=n.source;a&&a.close(),n.data.response.error?t(_a.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3)}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",S)})))];case 3:if(p=i.sent(),t!==p.state)throw new Error("Invalid state");return y=e.scope,v=e.audience,m=r(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,Xa(n(n(n({},this.customOptions),m),{scope:y,audience:v,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a,code:p.code,grant_type:"authorization_code",redirect_uri:l.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 4:return g=i.sent(),[4,this._verifyIdToken(g.id_token,o)];case 5:return b=i.sent(),this._processOrgIdHint(b.claims.org_id),[2,n(n({},g),{decodedToken:b,scope:l.scope,oauthTokenScope:g.scope,audience:l.audience||"default"})];case 6:throw"login_required"===(w=i.sent()).error&&this.logout({localOnly:!0}),w;case 7:return[2]}var S,_,k}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return o(this,void 0,void 0,(function(){var t,o,a,c,s,u,l,f,d;return i(this,(function(i){switch(i.label){case 0:return e.scope=za(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new Ja({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=i.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return[2,i.sent()];case 3:o=e.redirect_uri||this.options.redirect_uri||window.location.origin,c=e.scope,s=e.audience,u=r(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),l="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,i.label=4;case 4:return i.trys.push([4,6,,9]),[4,Xa(n(n(n(n(n({},this.customOptions),u),{audience:s,scope:c,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:o}),l&&{timeout:l}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 5:return a=i.sent(),[3,9];case 6:return"The web worker is missing the refresh token"===(f=i.sent()).message||f.message&&f.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return[2,i.sent()];case 8:throw f;case 9:return[4,this._verifyIdToken(a.id_token)];case 10:return d=i.sent(),[2,n(n({},a),{decodedToken:d,scope:e.scope,oauthTokenScope:a.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,r=e.audience,a=e.client_id,c=e.getDetailedEntry,s=void 0!==c&&c;return o(this,void 0,void 0,(function(){var e,o,c,u,l;return i(this,(function(i){switch(i.label){case 0:return[4,this.cacheManager.get(new Ja({scope:t,audience:r,client_id:a}),60)];case 1:return(e=i.sent())&&e.access_token?s?(o=e.id_token,c=e.access_token,u=e.oauthTokenScope,l=e.expires_in,[2,n(n({id_token:o,access_token:c},u?{scope:u}:null),{expires_in:l})]):[2,e.access_token]:[2]}}))}))},e}();function _c(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,(t=new Sc(e)).checkSession()];case 1:return n.sent(),[2,t]}}))}))}var kc=_c;return kc.Auth0Client=Sc,kc.createAuth0Client=_c,kc.GenericError=_a,kc.AuthenticationError=ka,kc.TimeoutError=Ia,kc.PopupTimeoutError=Ta,kc.MfaRequiredError=Ea,kc})),"Auth0Client"in this&&this.console&&this.console.warn&&this.console.warn("Auth0Client already declared on the global namespace"),this&&this.createAuth0Client&&(this.Auth0Client=this.Auth0Client||this.createAuth0Client.Auth0Client);
|
|
16
16
|
//# sourceMappingURL=auth0-spa-js.production.js.map
|