@equinor/fusion-framework-cli 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function L0(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function D0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j={exports:{}},te={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ function M0(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ya=Symbol.for("react.element"),H0=Symbol.for("react.portal"),F0=Symbol.for("react.fragment"),$0=Symbol.for("react.strict_mode"),z0=Symbol.for("react.profiler"),j0=Symbol.for("react.provider"),B0=Symbol.for("react.context"),q0=Symbol.for("react.forward_ref"),K0=Symbol.for("react.suspense"),G0=Symbol.for("react.memo"),V0=Symbol.for("react.lazy"),af=Symbol.iterator;function W0(t){return t===null||typeof t!="object"?null:(t=af&&t[af]||t["@@iterator"],typeof t=="function"?t:null)}var Hg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fg=Object.assign,$g={};function Ti(t,e,r){this.props=t,this.context=e,this.refs=$g,this.updater=r||Hg}Ti.prototype.isReactComponent={};Ti.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ti.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function zg(){}zg.prototype=Ti.prototype;function Fd(t,e,r){this.props=t,this.context=e,this.refs=$g,this.updater=r||Hg}var $d=Fd.prototype=new zg;$d.constructor=Fd;Fg($d,Ti.prototype);$d.isPureReactComponent=!0;var sf=Array.isArray,jg=Object.prototype.hasOwnProperty,zd={current:null},Bg={key:!0,ref:!0,__self:!0,__source:!0};function qg(t,e,r){var n,o={},i=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)jg.call(e,n)&&!Bg.hasOwnProperty(n)&&(o[n]=e[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];o.children=c}if(t&&t.defaultProps)for(n in s=t.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:Ya,type:t,key:i,ref:a,props:o,_owner:zd.current}}function Y0(t,e){return{$$typeof:Ya,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function jd(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ya}function Q0(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var cf=/\/+/g;function Rl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Q0(""+t.key):e.toString(36)}function Ms(t,e,r,n,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Ya:case H0:a=!0}}if(a)return a=t,o=o(a),t=n===""?"."+Rl(a,0):n,sf(o)?(r="",t!=null&&(r=t.replace(cf,"$&/")+"/"),Ms(o,e,r,"",function(l){return l})):o!=null&&(jd(o)&&(o=Y0(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(cf,"$&/")+"/")+t)),e.push(o)),1;if(a=0,n=n===""?".":n+":",sf(t))for(var s=0;s<t.length;s++){i=t[s];var c=n+Rl(i,s);a+=Ms(i,e,r,c,o)}else if(c=W0(t),typeof c=="function")for(t=c.call(t),s=0;!(i=t.next()).done;)i=i.value,c=n+Rl(i,s++),a+=Ms(i,e,r,c,o);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function ls(t,e,r){if(t==null)return t;var n=[],o=0;return Ms(t,n,"","",function(i){return e.call(r,i,o++)}),n}function J0(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Tt={current:null},Us={transition:null},X0={ReactCurrentDispatcher:Tt,ReactCurrentBatchConfig:Us,ReactCurrentOwner:zd};te.Children={map:ls,forEach:function(t,e,r){ls(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return ls(t,function(){e++}),e},toArray:function(t){return ls(t,function(e){return e})||[]},only:function(t){if(!jd(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};te.Component=Ti;te.Fragment=F0;te.Profiler=z0;te.PureComponent=Fd;te.StrictMode=$0;te.Suspense=K0;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X0;te.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=Fg({},t.props),o=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=zd.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in e)jg.call(e,c)&&!Bg.hasOwnProperty(c)&&(n[c]=e[c]===void 0&&s!==void 0?s[c]:e[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];n.children=s}return{$$typeof:Ya,type:t.type,key:o,ref:i,props:n,_owner:a}};te.createContext=function(t){return t={$$typeof:B0,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:j0,_context:t},t.Consumer=t};te.createElement=qg;te.createFactory=function(t){var e=qg.bind(null,t);return e.type=t,e};te.createRef=function(){return{current:null}};te.forwardRef=function(t){return{$$typeof:q0,render:t}};te.isValidElement=jd;te.lazy=function(t){return{$$typeof:V0,_payload:{_status:-1,_result:t},_init:J0}};te.memo=function(t,e){return{$$typeof:G0,type:t,compare:e===void 0?null:e}};te.startTransition=function(t){var e=Us.transition;Us.transition={};try{t()}finally{Us.transition=e}};te.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};te.useCallback=function(t,e){return Tt.current.useCallback(t,e)};te.useContext=function(t){return Tt.current.useContext(t)};te.useDebugValue=function(){};te.useDeferredValue=function(t){return Tt.current.useDeferredValue(t)};te.useEffect=function(t,e){return Tt.current.useEffect(t,e)};te.useId=function(){return Tt.current.useId()};te.useImperativeHandle=function(t,e,r){return Tt.current.useImperativeHandle(t,e,r)};te.useInsertionEffect=function(t,e){return Tt.current.useInsertionEffect(t,e)};te.useLayoutEffect=function(t,e){return Tt.current.useLayoutEffect(t,e)};te.useMemo=function(t,e){return Tt.current.useMemo(t,e)};te.useReducer=function(t,e,r){return Tt.current.useReducer(t,e,r)};te.useRef=function(t){return Tt.current.useRef(t)};te.useState=function(t){return Tt.current.useState(t)};te.useSyncExternalStore=function(t,e,r){return Tt.current.useSyncExternalStore(t,e,r)};te.useTransition=function(){return Tt.current.useTransition()};te.version="18.2.0";(function(t){t.exports=te})(j);const Qa=D0(j.exports),Eu=L0({__proto__:null,default:Qa},[j.exports]);var Cu={},Kg={exports:{}},zt={},Gg={exports:{}},Vg={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ function M0(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(t){function e(L,J){var X=L.length;L.push(J);e:for(;0<X;){var Ce=X-1>>>1,Le=L[Ce];if(0<o(Le,J))L[Ce]=J,L[X]=Le,X=Ce;else break e}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var J=L[0],X=L.pop();if(X!==J){L[0]=X;e:for(var Ce=0,Le=L.length,wo=Le>>>1;Ce<wo;){var Pr=2*(Ce+1)-1,Nr=L[Pr],pr=Pr+1,ln=L[pr];if(0>o(Nr,X))pr<Le&&0>o(ln,Nr)?(L[Ce]=ln,L[pr]=X,Ce=pr):(L[Ce]=Nr,L[Pr]=X,Ce=Pr);else if(pr<Le&&0>o(ln,X))L[Ce]=ln,L[pr]=X,Ce=pr;else break e}}return J}function o(L,J){var X=L.sortIndex-J.sortIndex;return X!==0?X:L.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var c=[],l=[],u=1,d=null,h=3,f=!1,m=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var J=r(l);J!==null;){if(J.callback===null)n(l);else if(J.startTime<=L)n(l),J.sortIndex=J.expirationTime,e(c,J);else break;J=r(l)}}function w(L){if(v=!1,y(L),!m)if(r(c)!==null)m=!0,Oi(k);else{var J=r(l);J!==null&&xi(w,J.startTime-L)}}function k(L,J){m=!1,v&&(v=!1,g(O),O=-1),f=!0;var X=h;try{for(y(J),d=r(c);d!==null&&(!(d.expirationTime>J)||L&&!
|
|
17
|
+
*/(function(t){function e(L,J){var X=L.length;L.push(J);e:for(;0<X;){var Ce=X-1>>>1,Le=L[Ce];if(0<o(Le,J))L[Ce]=J,L[X]=Le,X=Ce;else break e}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var J=L[0],X=L.pop();if(X!==J){L[0]=X;e:for(var Ce=0,Le=L.length,wo=Le>>>1;Ce<wo;){var Pr=2*(Ce+1)-1,Nr=L[Pr],pr=Pr+1,ln=L[pr];if(0>o(Nr,X))pr<Le&&0>o(ln,Nr)?(L[Ce]=ln,L[pr]=X,Ce=pr):(L[Ce]=Nr,L[Pr]=X,Ce=Pr);else if(pr<Le&&0>o(ln,X))L[Ce]=ln,L[pr]=X,Ce=pr;else break e}}return J}function o(L,J){var X=L.sortIndex-J.sortIndex;return X!==0?X:L.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var c=[],l=[],u=1,d=null,h=3,f=!1,m=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var J=r(l);J!==null;){if(J.callback===null)n(l);else if(J.startTime<=L)n(l),J.sortIndex=J.expirationTime,e(c,J);else break;J=r(l)}}function w(L){if(v=!1,y(L),!m)if(r(c)!==null)m=!0,Oi(k);else{var J=r(l);J!==null&&xi(w,J.startTime-L)}}function k(L,J){m=!1,v&&(v=!1,g(O),O=-1),f=!0;var X=h;try{for(y(J),d=r(c);d!==null&&(!(d.expirationTime>J)||L&&!_t());){var Ce=d.callback;if(typeof Ce=="function"){d.callback=null,h=d.priorityLevel;var Le=Ce(d.expirationTime<=J);J=t.unstable_now(),typeof Le=="function"?d.callback=Le:d===r(c)&&n(c),y(J)}else n(c);d=r(c)}if(d!==null)var wo=!0;else{var Pr=r(l);Pr!==null&&xi(w,Pr.startTime-J),wo=!1}return wo}finally{d=null,h=X,f=!1}}var P=!1,M=null,O=-1,se=5,B=-1;function _t(){return!(t.unstable_now()-B<se)}function Ln(){if(M!==null){var L=t.unstable_now();B=L;var J=!0;try{J=M(!0,L)}finally{J?Dn():(P=!1,M=null)}}else P=!1}var Dn;if(typeof p=="function")Dn=function(){p(Ln)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,Hn=it.port2;it.port1.onmessage=Ln,Dn=function(){Hn.postMessage(null)}}else Dn=function(){E(Ln,0)};function Oi(L){M=L,P||(P=!0,Dn())}function xi(L,J){O=E(function(){L(t.unstable_now())},J)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,Oi(k))},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(L){switch(h){case 1:case 2:case 3:var J=3;break;default:J=h}var X=h;h=J;try{return L()}finally{h=X}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(L,J){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var X=h;h=L;try{return J()}finally{h=X}},t.unstable_scheduleCallback=function(L,J,X){var Ce=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Ce+X:Ce):X=Ce,L){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=X+Le,L={id:u++,callback:J,priorityLevel:L,startTime:X,expirationTime:Le,sortIndex:-1},X>Ce?(L.sortIndex=X,e(l,L),r(c)===null&&L===r(l)&&(v?(g(O),O=-1):v=!0,xi(w,X-Ce))):(L.sortIndex=Le,e(c,L),m||f||(m=!0,Oi(k))),L},t.unstable_shouldYield=_t,t.unstable_wrapCallback=function(L){var J=h;return function(){var X=h;h=J;try{return L.apply(this,arguments)}finally{h=X}}}})(Vg);(function(t){t.exports=Vg})(Gg);/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom.production.min.js
|
|
20
20
|
*
|
|
@@ -22,17 +22,17 @@ function M0(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
26
|
-
`+
|
|
25
|
+
*/var Wg=j.exports,$t=Gg.exports;function b(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yg=new Set,Sa={};function yo(t,e){ui(t,e),ui(t+"Capture",e)}function ui(t,e){for(Sa[t]=e,t=0;t<e.length;t++)Yg.add(e[t])}var Jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=Object.prototype.hasOwnProperty,Z0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,lf={},uf={};function e_(t){return Su.call(uf,t)?!0:Su.call(lf,t)?!1:Z0.test(t)?uf[t]=!0:(lf[t]=!0,!1)}function t_(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function r_(t,e,r,n){if(e===null||typeof e>"u"||t_(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function bt(t,e,r,n,o,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){nt[t]=new bt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];nt[e]=new bt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){nt[t]=new bt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){nt[t]=new bt(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){nt[t]=new bt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){nt[t]=new bt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){nt[t]=new bt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){nt[t]=new bt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){nt[t]=new bt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Bd=/[\-:]([a-z])/g;function qd(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Bd,qd);nt[e]=new bt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Bd,qd);nt[e]=new bt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Bd,qd);nt[e]=new bt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){nt[t]=new bt(t,1,!1,t.toLowerCase(),null,!1,!1)});nt.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){nt[t]=new bt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Kd(t,e,r,n){var o=nt.hasOwnProperty(e)?nt[e]:null;(o!==null?o.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(r_(e,r,o,n)&&(r=null),n||o===null?e_(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):o.mustUseProperty?t[o.propertyName]=r===null?o.type===3?!1:"":r:(e=o.attributeName,n=o.attributeNamespace,r===null?t.removeAttribute(e):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var on=Wg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,us=Symbol.for("react.element"),Uo=Symbol.for("react.portal"),Lo=Symbol.for("react.fragment"),Gd=Symbol.for("react.strict_mode"),Tu=Symbol.for("react.profiler"),Qg=Symbol.for("react.provider"),Jg=Symbol.for("react.context"),Vd=Symbol.for("react.forward_ref"),bu=Symbol.for("react.suspense"),Iu=Symbol.for("react.suspense_list"),Wd=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),Xg=Symbol.for("react.offscreen"),df=Symbol.iterator;function Ui(t){return t===null||typeof t!="object"?null:(t=df&&t[df]||t["@@iterator"],typeof t=="function"?t:null)}var Re=Object.assign,Pl;function Yi(t){if(Pl===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Pl=e&&e[1]||""}return`
|
|
26
|
+
`+Pl+t}var Nl=!1;function Ol(t,e){if(!t||Nl)return"";Nl=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var n=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){n=l}t.call(e.prototype)}else{try{throw Error()}catch(l){n=l}t()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var o=l.stack.split(`
|
|
27
27
|
`),i=n.stack.split(`
|
|
28
28
|
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var c=`
|
|
29
|
-
`+o[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=s);break}}}finally{Il=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Wi(t):""}function t_(t){switch(t.tag){case 5:return Wi(t.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return t=kl(t.type,!1),t;case 11:return t=kl(t.type.render,!1),t;case 1:return t=kl(t.type,!0),t;default:return""}}function Tu(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Lo:return"Fragment";case Uo:return"Portal";case Eu:return"Profiler";case qd:return"StrictMode";case Cu:return"Suspense";case Su:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Yg:return(t.displayName||"Context")+".Consumer";case Wg:return(t._context.displayName||"Context")+".Provider";case Kd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Gd:return e=t.displayName||null,e!==null?e:Tu(t.type)||"Memo";case fn:e=t._payload,t=t._init;try{return Tu(t(e))}catch{}}return null}function r_(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tu(e);case 8:return e===qd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Nn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Jg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function n_(t){var e=Jg(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ls(t){t._valueTracker||(t._valueTracker=n_(t))}function Xg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Jg(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Zs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function bu(t,e){var r=e.checked;return Re({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function uf(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Nn(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Zg(t,e){e=e.checked,e!=null&&Bd(t,"checked",e,!1)}function Iu(t,e){Zg(t,e);var r=Nn(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ku(t,e.type,r):e.hasOwnProperty("defaultValue")&&ku(t,e.type,Nn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function df(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function ku(t,e,r){(e!=="number"||Zs(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Yi=Array.isArray;function ei(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o<r.length;o++)e["$"+r[o]]=!0;for(r=0;r<t.length;r++)o=e.hasOwnProperty("$"+t[r].value),t[r].selected!==o&&(t[r].selected=o),o&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Nn(r),e=null,o=0;o<t.length;o++){if(t[o].value===r){t[o].selected=!0,n&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Au(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(b(91));return Re({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function hf(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(b(92));if(Yi(r)){if(1<r.length)throw Error(b(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Nn(r)}}function em(t,e){var r=Nn(e.value),n=Nn(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function ff(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function tm(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ru(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?tm(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var us,rm=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,o){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,o)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(us=us||document.createElement("div"),us.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=us.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ca(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var sa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o_=["Webkit","ms","Moz","O"];Object.keys(sa).forEach(function(t){o_.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),sa[e]=sa[t]})});function nm(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||sa.hasOwnProperty(t)&&sa[t]?(""+e).trim():e+"px"}function om(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=nm(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var i_=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pu(t,e){if(e){if(i_[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(b(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(b(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(b(61))}if(e.style!=null&&typeof e.style!="object")throw Error(b(62))}}function Nu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ou=null;function Vd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xu=null,ti=null,ri=null;function pf(t){if(t=Ja(t)){if(typeof xu!="function")throw Error(b(280));var e=t.stateNode;e&&(e=Xc(e),xu(t.stateNode,t.type,e))}}function im(t){ti?ri?ri.push(t):ri=[t]:ti=t}function am(){if(ti){var t=ti,e=ri;if(ri=ti=null,pf(t),e)for(t=0;t<e.length;t++)pf(e[t])}}function sm(t,e){return t(e)}function cm(){}var Al=!1;function lm(t,e,r){if(Al)return t(e,r);Al=!0;try{return sm(t,e,r)}finally{Al=!1,(ti!==null||ri!==null)&&(cm(),am())}}function Sa(t,e){var r=t.stateNode;if(r===null)return null;var n=Xc(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(b(231,e,typeof r));return r}var Mu=!1;if(Jr)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){Mu=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Mu=!1}function a_(t,e,r,n,o,i,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{e.apply(r,l)}catch(u){this.onError(u)}}var ca=!1,ec=null,tc=!1,Uu=null,s_={onError:function(t){ca=!0,ec=t}};function c_(t,e,r,n,o,i,a,s,c){ca=!1,ec=null,a_.apply(s_,arguments)}function l_(t,e,r,n,o,i,a,s,c){if(c_.apply(this,arguments),ca){if(ca){var l=ec;ca=!1,ec=null}else throw Error(b(198));tc||(tc=!0,Uu=l)}}function _o(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function um(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function gf(t){if(_o(t)!==t)throw Error(b(188))}function u_(t){var e=t.alternate;if(!e){if(e=_o(t),e===null)throw Error(b(188));return e!==t?null:t}for(var r=t,n=e;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return gf(o),t;if(i===n)return gf(o),e;i=i.sibling}throw Error(b(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(b(189))}}if(r.alternate!==n)throw Error(b(190))}if(r.tag!==3)throw Error(b(188));return r.stateNode.current===r?t:e}function dm(t){return t=u_(t),t!==null?hm(t):null}function hm(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=hm(t);if(e!==null)return e;t=t.sibling}return null}var fm=$t.unstable_scheduleCallback,mf=$t.unstable_cancelCallback,d_=$t.unstable_shouldYield,h_=$t.unstable_requestPaint,Me=$t.unstable_now,f_=$t.unstable_getCurrentPriorityLevel,Wd=$t.unstable_ImmediatePriority,pm=$t.unstable_UserBlockingPriority,rc=$t.unstable_NormalPriority,p_=$t.unstable_LowPriority,gm=$t.unstable_IdlePriority,Wc=null,Sr=null;function g_(t){if(Sr&&typeof Sr.onCommitFiberRoot=="function")try{Sr.onCommitFiberRoot(Wc,t,void 0,(t.current.flags&128)===128)}catch{}}var ur=Math.clz32?Math.clz32:y_,m_=Math.log,v_=Math.LN2;function y_(t){return t>>>=0,t===0?32:31-(m_(t)/v_|0)|0}var ds=64,hs=4194304;function Qi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function nc(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,o=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Qi(s):(i&=a,i!==0&&(n=Qi(i)))}else a=r&~o,a!==0?n=Qi(a):i!==0&&(n=Qi(i));if(n===0)return 0;if(e!==0&&e!==n&&(e&o)===0&&(o=n&-n,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if((n&4)!==0&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-ur(e),o=1<<r,n|=t[r],e&=~o;return n}function __(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function w_(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-ur(i),s=1<<a,c=o[a];c===-1?((s&r)===0||(s&n)!==0)&&(o[a]=__(s,e)):c<=e&&(t.expiredLanes|=s),i&=~s}}function Lu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function mm(){var t=ds;return ds<<=1,(ds&4194240)===0&&(ds=64),t}function Rl(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Ya(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ur(e),t[e]=r}function E_(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var o=31-ur(r),i=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~i}}function Yd(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-ur(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var ue=0;function vm(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var ym,Qd,_m,wm,Em,Du=!1,fs=[],Cn=null,Sn=null,Tn=null,Ta=new Map,ba=new Map,vn=[],C_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vf(t,e){switch(t){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":Ta.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ba.delete(e.pointerId)}}function Di(t,e,r,n,o,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},e!==null&&(e=Ja(e),e!==null&&Qd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function S_(t,e,r,n,o){switch(e){case"focusin":return Cn=Di(Cn,t,e,r,n,o),!0;case"dragenter":return Sn=Di(Sn,t,e,r,n,o),!0;case"mouseover":return Tn=Di(Tn,t,e,r,n,o),!0;case"pointerover":var i=o.pointerId;return Ta.set(i,Di(Ta.get(i)||null,t,e,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,ba.set(i,Di(ba.get(i)||null,t,e,r,n,o)),!0}return!1}function Cm(t){var e=Vn(t.target);if(e!==null){var r=_o(e);if(r!==null){if(e=r.tag,e===13){if(e=um(r),e!==null){t.blockedOn=e,Em(t.priority,function(){_m(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Hu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Ou=n,r.target.dispatchEvent(n),Ou=null}else return e=Ja(r),e!==null&&Qd(e),t.blockedOn=r,!1;e.shift()}return!0}function yf(t,e,r){xs(t)&&r.delete(e)}function T_(){Du=!1,Cn!==null&&xs(Cn)&&(Cn=null),Sn!==null&&xs(Sn)&&(Sn=null),Tn!==null&&xs(Tn)&&(Tn=null),Ta.forEach(yf),ba.forEach(yf)}function Hi(t,e){t.blockedOn===e&&(t.blockedOn=null,Du||(Du=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,T_)))}function Ia(t){function e(o){return Hi(o,t)}if(0<fs.length){Hi(fs[0],t);for(var r=1;r<fs.length;r++){var n=fs[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Cn!==null&&Hi(Cn,t),Sn!==null&&Hi(Sn,t),Tn!==null&&Hi(Tn,t),Ta.forEach(e),ba.forEach(e),r=0;r<vn.length;r++)n=vn[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<vn.length&&(r=vn[0],r.blockedOn===null);)Cm(r),r.blockedOn===null&&vn.shift()}var ni=on.ReactCurrentBatchConfig,oc=!0;function b_(t,e,r,n){var o=ue,i=ni.transition;ni.transition=null;try{ue=1,Jd(t,e,r,n)}finally{ue=o,ni.transition=i}}function I_(t,e,r,n){var o=ue,i=ni.transition;ni.transition=null;try{ue=4,Jd(t,e,r,n)}finally{ue=o,ni.transition=i}}function Jd(t,e,r,n){if(oc){var o=Hu(t,e,r,n);if(o===null)Fl(t,e,n,ic,r),vf(t,n);else if(S_(o,t,e,r,n))n.stopPropagation();else if(vf(t,n),e&4&&-1<C_.indexOf(t)){for(;o!==null;){var i=Ja(o);if(i!==null&&ym(i),i=Hu(t,e,r,n),i===null&&Fl(t,e,n,ic,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else Fl(t,e,n,null,r)}}var ic=null;function Hu(t,e,r,n){if(ic=null,t=Vd(n),t=Vn(t),t!==null)if(e=_o(t),e===null)t=null;else if(r=e.tag,r===13){if(t=um(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return ic=t,null}function Sm(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(f_()){case Wd:return 1;case pm:return 4;case rc:case p_:return 16;case gm:return 536870912;default:return 16}default:return 16}}var wn=null,Xd=null,Ms=null;function Tm(){if(Ms)return Ms;var t,e=Xd,r=e.length,n,o="value"in wn?wn.value:wn.textContent,i=o.length;for(t=0;t<r&&e[t]===o[t];t++);var a=r-t;for(n=1;n<=a&&e[r-n]===o[i-n];n++);return Ms=o.slice(t,1<n?1-n:void 0)}function Us(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ps(){return!0}function _f(){return!1}function jt(t){function e(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(r=t[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ps:_f,this.isPropagationStopped=_f,this}return Re(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ps)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ps)},persist:function(){},isPersistent:ps}),e}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zd=jt(bi),Qa=Re({},bi,{view:0,detail:0}),k_=jt(Qa),Pl,Nl,Fi,Yc=Re({},Qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fi&&(Fi&&t.type==="mousemove"?(Pl=t.screenX-Fi.screenX,Nl=t.screenY-Fi.screenY):Nl=Pl=0,Fi=t),Pl)},movementY:function(t){return"movementY"in t?t.movementY:Nl}}),wf=jt(Yc),A_=Re({},Yc,{dataTransfer:0}),R_=jt(A_),P_=Re({},Qa,{relatedTarget:0}),Ol=jt(P_),N_=Re({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),O_=jt(N_),x_=Re({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),M_=jt(x_),U_=Re({},bi,{data:0}),Ef=jt(U_),L_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},H_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F_(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=H_[t])?!!e[t]:!1}function eh(){return F_}var $_=Re({},Qa,{key:function(t){if(t.key){var e=L_[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Us(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?D_[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(t){return t.type==="keypress"?Us(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Us(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),z_=jt($_),j_=Re({},Yc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cf=jt(j_),B_=Re({},Qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),q_=jt(B_),K_=Re({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),G_=jt(K_),V_=Re({},Yc,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),W_=jt(V_),Y_=[9,13,27,32],th=Jr&&"CompositionEvent"in window,la=null;Jr&&"documentMode"in document&&(la=document.documentMode);var Q_=Jr&&"TextEvent"in window&&!la,bm=Jr&&(!th||la&&8<la&&11>=la),Sf=String.fromCharCode(32),Tf=!1;function Im(t,e){switch(t){case"keyup":return Y_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function km(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Do=!1;function J_(t,e){switch(t){case"compositionend":return km(e);case"keypress":return e.which!==32?null:(Tf=!0,Sf);case"textInput":return t=e.data,t===Sf&&Tf?null:t;default:return null}}function X_(t,e){if(Do)return t==="compositionend"||!th&&Im(t,e)?(t=Tm(),Ms=Xd=wn=null,Do=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return bm&&e.locale!=="ko"?null:e.data;default:return null}}var Z_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function bf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Z_[t.type]:e==="textarea"}function Am(t,e,r,n){im(n),e=ac(e,"onChange"),0<e.length&&(r=new Zd("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var ua=null,ka=null;function ew(t){Fm(t,0)}function Qc(t){var e=$o(t);if(Xg(e))return t}function tw(t,e){if(t==="change")return e}var Rm=!1;if(Jr){var xl;if(Jr){var Ml="oninput"in document;if(!Ml){var If=document.createElement("div");If.setAttribute("oninput","return;"),Ml=typeof If.oninput=="function"}xl=Ml}else xl=!1;Rm=xl&&(!document.documentMode||9<document.documentMode)}function kf(){ua&&(ua.detachEvent("onpropertychange",Pm),ka=ua=null)}function Pm(t){if(t.propertyName==="value"&&Qc(ka)){var e=[];Am(e,ka,t,Vd(t)),lm(ew,e)}}function rw(t,e,r){t==="focusin"?(kf(),ua=e,ka=r,ua.attachEvent("onpropertychange",Pm)):t==="focusout"&&kf()}function nw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Qc(ka)}function ow(t,e){if(t==="click")return Qc(e)}function iw(t,e){if(t==="input"||t==="change")return Qc(e)}function aw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fr=typeof Object.is=="function"?Object.is:aw;function Aa(t,e){if(fr(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!wu.call(e,o)||!fr(t[o],e[o]))return!1}return!0}function Af(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rf(t,e){var r=Af(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Af(r)}}function Nm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Nm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Om(){for(var t=window,e=Zs();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Zs(t.document)}return e}function rh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function sw(t){var e=Om(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Nm(r.ownerDocument.documentElement,r)){if(n!==null&&rh(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!t.extend&&i>n&&(o=n,n=i,i=o),o=Rf(r,i);var a=Rf(r,n);o&&a&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var cw=Jr&&"documentMode"in document&&11>=document.documentMode,Ho=null,Fu=null,da=null,$u=!1;function Pf(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$u||Ho==null||Ho!==Zs(n)||(n=Ho,"selectionStart"in n&&rh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),da&&Aa(da,n)||(da=n,n=ac(Fu,"onSelect"),0<n.length&&(e=new Zd("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Ho)))}function gs(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Fo={animationend:gs("Animation","AnimationEnd"),animationiteration:gs("Animation","AnimationIteration"),animationstart:gs("Animation","AnimationStart"),transitionend:gs("Transition","TransitionEnd")},Ul={},xm={};Jr&&(xm=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function Jc(t){if(Ul[t])return Ul[t];if(!Fo[t])return t;var e=Fo[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in xm)return Ul[t]=e[r];return t}var Mm=Jc("animationend"),Um=Jc("animationiteration"),Lm=Jc("animationstart"),Dm=Jc("transitionend"),Hm=new Map,Nf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xn(t,e){Hm.set(t,e),yo(e,[t])}for(var Ll=0;Ll<Nf.length;Ll++){var Dl=Nf[Ll],lw=Dl.toLowerCase(),uw=Dl[0].toUpperCase()+Dl.slice(1);xn(lw,"on"+uw)}xn(Mm,"onAnimationEnd");xn(Um,"onAnimationIteration");xn(Lm,"onAnimationStart");xn("dblclick","onDoubleClick");xn("focusin","onFocus");xn("focusout","onBlur");xn(Dm,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yo("onBeforeInput",["compositionend","keypress","textInput","paste"]);yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),dw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ji));function Of(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,l_(n,e,void 0,t),t.currentTarget=null}function Fm(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],o=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var a=n.length-1;0<=a;a--){var s=n[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;Of(o,s,l),i=c}else for(a=0;a<n.length;a++){if(s=n[a],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;Of(o,s,l),i=c}}}if(tc)throw t=Uu,tc=!1,Uu=null,t}function _e(t,e){var r=e[Ku];r===void 0&&(r=e[Ku]=new Set);var n=t+"__bubble";r.has(n)||($m(e,t,2,!1),r.add(n))}function Hl(t,e,r){var n=0;e&&(n|=4),$m(r,t,n,e)}var ms="_reactListening"+Math.random().toString(36).slice(2);function Ra(t){if(!t[ms]){t[ms]=!0,Vg.forEach(function(r){r!=="selectionchange"&&(dw.has(r)||Hl(r,!1,t),Hl(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ms]||(e[ms]=!0,Hl("selectionchange",!1,e))}}function $m(t,e,r,n){switch(Sm(e)){case 1:var o=b_;break;case 4:o=I_;break;default:o=Jd}r=o.bind(null,e,r,t),o=void 0,!Mu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),n?o!==void 0?t.addEventListener(e,r,{capture:!0,passive:o}):t.addEventListener(e,r,!0):o!==void 0?t.addEventListener(e,r,{passive:o}):t.addEventListener(e,r,!1)}function Fl(t,e,r,n,o){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Vn(s),a===null)return;if(c=a.tag,c===5||c===6){n=i=a;continue e}s=s.parentNode}}n=n.return}lm(function(){var l=i,u=Vd(r),d=[];e:{var h=Hm.get(t);if(h!==void 0){var f=Zd,m=t;switch(t){case"keypress":if(Us(r)===0)break e;case"keydown":case"keyup":f=z_;break;case"focusin":m="focus",f=Ol;break;case"focusout":m="blur",f=Ol;break;case"beforeblur":case"afterblur":f=Ol;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=R_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=q_;break;case Mm:case Um:case Lm:f=O_;break;case Dm:f=G_;break;case"scroll":f=k_;break;case"wheel":f=W_;break;case"copy":case"cut":case"paste":f=M_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Cf}var v=(e&4)!==0,E=!v&&t==="scroll",g=v?h!==null?h+"Capture":null:h;v=[];for(var p=l,y;p!==null;){y=p;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,g!==null&&(w=Sa(p,g),w!=null&&v.push(Pa(p,w,y)))),E)break;p=p.return}0<v.length&&(h=new f(h,m,null,r,u),d.push({event:h,listeners:v}))}}if((e&7)===0){e:{if(h=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",h&&r!==Ou&&(m=r.relatedTarget||r.fromElement)&&(Vn(m)||m[Xr]))break e;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(m=r.relatedTarget||r.toElement,f=l,m=m?Vn(m):null,m!==null&&(E=_o(m),m!==E||m.tag!==5&&m.tag!==6)&&(m=null)):(f=null,m=l),f!==m)){if(v=wf,w="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(v=Cf,w="onPointerLeave",g="onPointerEnter",p="pointer"),E=f==null?h:$o(f),y=m==null?h:$o(m),h=new v(w,p+"leave",f,r,u),h.target=E,h.relatedTarget=y,w=null,Vn(u)===l&&(v=new v(g,p+"enter",m,r,u),v.target=y,v.relatedTarget=E,w=v),E=w,f&&m)t:{for(v=f,g=m,p=0,y=v;y;y=To(y))p++;for(y=0,w=g;w;w=To(w))y++;for(;0<p-y;)v=To(v),p--;for(;0<y-p;)g=To(g),y--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=To(v),g=To(g)}v=null}else v=null;f!==null&&xf(d,h,f,v,!1),m!==null&&E!==null&&xf(d,E,m,v,!0)}}e:{if(h=l?$o(l):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var k=tw;else if(bf(h))if(Rm)k=iw;else{k=nw;var P=rw}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=ow);if(k&&(k=k(t,l))){Am(d,k,r,u);break e}P&&P(t,h,l),t==="focusout"&&(P=h._wrapperState)&&P.controlled&&h.type==="number"&&ku(h,"number",h.value)}switch(P=l?$o(l):window,t){case"focusin":(bf(P)||P.contentEditable==="true")&&(Ho=P,Fu=l,da=null);break;case"focusout":da=Fu=Ho=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,Pf(d,r,u);break;case"selectionchange":if(cw)break;case"keydown":case"keyup":Pf(d,r,u)}var M;if(th)e:{switch(t){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Do?Im(t,r)&&(O="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(bm&&r.locale!=="ko"&&(Do||O!=="onCompositionStart"?O==="onCompositionEnd"&&Do&&(M=Tm()):(wn=u,Xd="value"in wn?wn.value:wn.textContent,Do=!0)),P=ac(l,O),0<P.length&&(O=new Ef(O,t,null,r,u),d.push({event:O,listeners:P}),M?O.data=M:(M=km(r),M!==null&&(O.data=M)))),(M=Q_?J_(t,r):X_(t,r))&&(l=ac(l,"onBeforeInput"),0<l.length&&(u=new Ef("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:l}),u.data=M))}Fm(d,e)})}function Pa(t,e,r){return{instance:t,listener:e,currentTarget:r}}function ac(t,e){for(var r=e+"Capture",n=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Sa(t,r),i!=null&&n.unshift(Pa(t,i,o)),i=Sa(t,e),i!=null&&n.push(Pa(t,i,o))),t=t.return}return n}function To(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function xf(t,e,r,n,o){for(var i=e._reactName,a=[];r!==null&&r!==n;){var s=r,c=s.alternate,l=s.stateNode;if(c!==null&&c===n)break;s.tag===5&&l!==null&&(s=l,o?(c=Sa(r,i),c!=null&&a.unshift(Pa(r,c,s))):o||(c=Sa(r,i),c!=null&&a.push(Pa(r,c,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var hw=/\r\n?/g,fw=/\u0000|\uFFFD/g;function Mf(t){return(typeof t=="string"?t:""+t).replace(hw,`
|
|
30
|
-
`).replace(fw,"")}function vs(t,e,r){if(e=Mf(e),Mf(t)!==e&&r)throw Error(b(425))}function sc(){}var zu=null,ju=null;function Bu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var qu=typeof setTimeout=="function"?setTimeout:void 0,pw=typeof clearTimeout=="function"?clearTimeout:void 0,Uf=typeof Promise=="function"?Promise:void 0,gw=typeof queueMicrotask=="function"?queueMicrotask:typeof Uf<"u"?function(t){return Uf.resolve(null).then(t).catch(mw)}:qu;function mw(t){setTimeout(function(){throw t})}function $l(t,e){var r=e,n=0;do{var o=r.nextSibling;if(t.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){t.removeChild(o),Ia(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Ia(e)}function bn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Lf(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Ii=Math.random().toString(36).slice(2),wr="__reactFiber$"+Ii,Na="__reactProps$"+Ii,Xr="__reactContainer$"+Ii,Ku="__reactEvents$"+Ii,vw="__reactListeners$"+Ii,yw="__reactHandles$"+Ii;function Vn(t){var e=t[wr];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Xr]||r[wr]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Lf(t);t!==null;){if(r=t[wr])return r;t=Lf(t)}return e}t=r,r=t.parentNode}return null}function Ja(t){return t=t[wr]||t[Xr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function $o(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(b(33))}function Xc(t){return t[Na]||null}var Gu=[],zo=-1;function Mn(t){return{current:t}}function Ee(t){0>zo||(t.current=Gu[zo],Gu[zo]=null,zo--)}function ye(t,e){zo++,Gu[zo]=t.current,t.current=e}var On={},mt=Mn(On),Rt=Mn(!1),ao=On;function di(t,e){var r=t.type.contextTypes;if(!r)return On;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Pt(t){return t=t.childContextTypes,t!=null}function cc(){Ee(Rt),Ee(mt)}function Df(t,e,r){if(mt.current!==On)throw Error(b(168));ye(mt,e),ye(Rt,r)}function zm(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in e))throw Error(b(108,r_(t)||"Unknown",o));return Re({},r,n)}function lc(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||On,ao=mt.current,ye(mt,t),ye(Rt,Rt.current),!0}function Hf(t,e,r){var n=t.stateNode;if(!n)throw Error(b(169));r?(t=zm(t,e,ao),n.__reactInternalMemoizedMergedChildContext=t,Ee(Rt),Ee(mt),ye(mt,t)):Ee(Rt),ye(Rt,r)}var $r=null,Zc=!1,zl=!1;function jm(t){$r===null?$r=[t]:$r.push(t)}function _w(t){Zc=!0,jm(t)}function Un(){if(!zl&&$r!==null){zl=!0;var t=0,e=ue;try{var r=$r;for(ue=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}$r=null,Zc=!1}catch(o){throw $r!==null&&($r=$r.slice(t+1)),fm(Wd,Un),o}finally{ue=e,zl=!1}}return null}var jo=[],Bo=0,uc=null,dc=0,Gt=[],Vt=0,so=null,zr=1,jr="";function jn(t,e){jo[Bo++]=dc,jo[Bo++]=uc,uc=t,dc=e}function Bm(t,e,r){Gt[Vt++]=zr,Gt[Vt++]=jr,Gt[Vt++]=so,so=t;var n=zr;t=jr;var o=32-ur(n)-1;n&=~(1<<o),r+=1;var i=32-ur(e)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,zr=1<<32-ur(e)+o|r<<o|n,jr=i+t}else zr=1<<i|r<<o|n,jr=t}function nh(t){t.return!==null&&(jn(t,1),Bm(t,1,0))}function oh(t){for(;t===uc;)uc=jo[--Bo],jo[Bo]=null,dc=jo[--Bo],jo[Bo]=null;for(;t===so;)so=Gt[--Vt],Gt[Vt]=null,jr=Gt[--Vt],Gt[Vt]=null,zr=Gt[--Vt],Gt[Vt]=null}var Ht=null,Lt=null,Te=!1,sr=null;function qm(t,e){var r=Yt(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function Ff(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Ht=t,Lt=bn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Ht=t,Lt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=so!==null?{id:zr,overflow:jr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Yt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Ht=t,Lt=null,!0):!1;default:return!1}}function Vu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Wu(t){if(Te){var e=Lt;if(e){var r=e;if(!Ff(t,e)){if(Vu(t))throw Error(b(418));e=bn(r.nextSibling);var n=Ht;e&&Ff(t,e)?qm(n,r):(t.flags=t.flags&-4097|2,Te=!1,Ht=t)}}else{if(Vu(t))throw Error(b(418));t.flags=t.flags&-4097|2,Te=!1,Ht=t}}}function $f(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ht=t}function ys(t){if(t!==Ht)return!1;if(!Te)return $f(t),Te=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Bu(t.type,t.memoizedProps)),e&&(e=Lt)){if(Vu(t))throw Km(),Error(b(418));for(;e;)qm(t,e),e=bn(e.nextSibling)}if($f(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(b(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Lt=bn(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Lt=null}}else Lt=Ht?bn(t.stateNode.nextSibling):null;return!0}function Km(){for(var t=Lt;t;)t=bn(t.nextSibling)}function hi(){Lt=Ht=null,Te=!1}function ih(t){sr===null?sr=[t]:sr.push(t)}var ww=on.ReactCurrentBatchConfig;function ir(t,e){if(t&&t.defaultProps){e=Re({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var hc=Mn(null),fc=null,qo=null,ah=null;function sh(){ah=qo=fc=null}function ch(t){var e=hc.current;Ee(hc),t._currentValue=e}function Yu(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function oi(t,e){fc=t,ah=qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(At=!0),t.firstContext=null)}function Xt(t){var e=t._currentValue;if(ah!==t)if(t={context:t,memoizedValue:e,next:null},qo===null){if(fc===null)throw Error(b(308));qo=t,fc.dependencies={lanes:0,firstContext:t}}else qo=qo.next=t;return e}var Wn=null;function lh(t){Wn===null?Wn=[t]:Wn.push(t)}function Gm(t,e,r,n){var o=e.interleaved;return o===null?(r.next=r,lh(e)):(r.next=o.next,o.next=r),e.interleaved=r,Zr(t,n)}function Zr(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var pn=!1;function uh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vm(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Kr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function In(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(ne&2)!==0){var o=n.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),n.pending=e,Zr(t,r)}return o=n.interleaved,o===null?(e.next=e,lh(n)):(e.next=o.next,o.next=e),n.interleaved=e,Zr(t,r)}function Ls(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Yd(t,r)}}function zf(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=e:i=i.next=e}else o=i=e;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function pc(t,e,r,n){var o=t.updateQueue;pn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,l=c.next;c.next=null,a===null?i=l:a.next=l,a=c;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(i!==null){var d=o.baseState;a=0,u=l=c=null,s=i;do{var h=s.lane,f=s.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=t,v=s;switch(h=e,f=r,v.tag){case 1:if(m=v.payload,typeof m=="function"){d=m.call(f,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,h=typeof m=="function"?m.call(f,d,h):m,h==null)break e;d=Re({},d,h);break e;case 2:pn=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=f,c=d):u=u.next=f,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(1);if(u===null&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,e=o.shared.interleaved,e!==null){o=e;do a|=o.lane,o=o.next;while(o!==e)}else i===null&&(o.shared.lanes=0);lo|=a,t.lanes=a,t.memoizedState=d}}function jf(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(b(191,o));o.call(n)}}}var Wm=new Gg.Component().refs;function Qu(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Re({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var el={isMounted:function(t){return(t=t._reactInternals)?_o(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Et(),o=An(t),i=Kr(n,o);i.payload=e,r!=null&&(i.callback=r),e=In(t,i,o),e!==null&&(dr(e,t,o,n),Ls(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Et(),o=An(t),i=Kr(n,o);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=In(t,i,o),e!==null&&(dr(e,t,o,n),Ls(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Et(),n=An(t),o=Kr(r,n);o.tag=2,e!=null&&(o.callback=e),e=In(t,o,n),e!==null&&(dr(e,t,n,r),Ls(e,t,n))}};function Bf(t,e,r,n,o,i,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,a):e.prototype&&e.prototype.isPureReactComponent?!Aa(r,n)||!Aa(o,i):!0}function Ym(t,e,r){var n=!1,o=On,i=e.contextType;return typeof i=="object"&&i!==null?i=Xt(i):(o=Pt(e)?ao:mt.current,n=e.contextTypes,i=(n=n!=null)?di(t,o):On),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=el,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function qf(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&el.enqueueReplaceState(e,e.state,null)}function Ju(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=Wm,uh(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=Xt(i):(i=Pt(e)?ao:mt.current,o.context=di(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Qu(t,e,i,r),o.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(e=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),e!==o.state&&el.enqueueReplaceState(o,o.state,null),pc(t,r,o,n),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function $i(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(b(309));var n=r.stateNode}if(!n)throw Error(b(147,t));var o=n,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(a){var s=o.refs;s===Wm&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(b(284));if(!r._owner)throw Error(b(290,t))}return t}function _s(t,e){throw t=Object.prototype.toString.call(e),Error(b(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Kf(t){var e=t._init;return e(t._payload)}function Qm(t){function e(g,p){if(t){var y=g.deletions;y===null?(g.deletions=[p],g.flags|=16):y.push(p)}}function r(g,p){if(!t)return null;for(;p!==null;)e(g,p),p=p.sibling;return null}function n(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function o(g,p){return g=Rn(g,p),g.index=0,g.sibling=null,g}function i(g,p,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<p?(g.flags|=2,p):y):(g.flags|=2,p)):(g.flags|=1048576,p)}function a(g){return t&&g.alternate===null&&(g.flags|=2),g}function s(g,p,y,w){return p===null||p.tag!==6?(p=Wl(y,g.mode,w),p.return=g,p):(p=o(p,y),p.return=g,p)}function c(g,p,y,w){var k=y.type;return k===Lo?u(g,p,y.props.children,w,y.key):p!==null&&(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fn&&Kf(k)===p.type)?(w=o(p,y.props),w.ref=$i(g,p,y),w.return=g,w):(w=js(y.type,y.key,y.props,null,g.mode,w),w.ref=$i(g,p,y),w.return=g,w)}function l(g,p,y,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Yl(y,g.mode,w),p.return=g,p):(p=o(p,y.children||[]),p.return=g,p)}function u(g,p,y,w,k){return p===null||p.tag!==7?(p=eo(y,g.mode,w,k),p.return=g,p):(p=o(p,y),p.return=g,p)}function d(g,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Wl(""+p,g.mode,y),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case cs:return y=js(p.type,p.key,p.props,null,g.mode,y),y.ref=$i(g,null,p),y.return=g,y;case Uo:return p=Yl(p,g.mode,y),p.return=g,p;case fn:var w=p._init;return d(g,w(p._payload),y)}if(Yi(p)||Ui(p))return p=eo(p,g.mode,y,null),p.return=g,p;_s(g,p)}return null}function h(g,p,y,w){var k=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:s(g,p,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case cs:return y.key===k?c(g,p,y,w):null;case Uo:return y.key===k?l(g,p,y,w):null;case fn:return k=y._init,h(g,p,k(y._payload),w)}if(Yi(y)||Ui(y))return k!==null?null:u(g,p,y,w,null);_s(g,y)}return null}function f(g,p,y,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(y)||null,s(p,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case cs:return g=g.get(w.key===null?y:w.key)||null,c(p,g,w,k);case Uo:return g=g.get(w.key===null?y:w.key)||null,l(p,g,w,k);case fn:var P=w._init;return f(g,p,y,P(w._payload),k)}if(Yi(w)||Ui(w))return g=g.get(y)||null,u(p,g,w,k,null);_s(p,w)}return null}function m(g,p,y,w){for(var k=null,P=null,M=p,O=p=0,se=null;M!==null&&O<y.length;O++){M.index>O?(se=M,M=null):se=M.sibling;var B=h(g,M,y[O],w);if(B===null){M===null&&(M=se);break}t&&M&&B.alternate===null&&e(g,M),p=i(B,p,O),P===null?k=B:P.sibling=B,P=B,M=se}if(O===y.length)return r(g,M),Te&&jn(g,O),k;if(M===null){for(;O<y.length;O++)M=d(g,y[O],w),M!==null&&(p=i(M,p,O),P===null?k=M:P.sibling=M,P=M);return Te&&jn(g,O),k}for(M=n(g,M);O<y.length;O++)se=f(M,g,O,y[O],w),se!==null&&(t&&se.alternate!==null&&M.delete(se.key===null?O:se.key),p=i(se,p,O),P===null?k=se:P.sibling=se,P=se);return t&&M.forEach(function(vt){return e(g,vt)}),Te&&jn(g,O),k}function v(g,p,y,w){var k=Ui(y);if(typeof k!="function")throw Error(b(150));if(y=k.call(y),y==null)throw Error(b(151));for(var P=k=null,M=p,O=p=0,se=null,B=y.next();M!==null&&!B.done;O++,B=y.next()){M.index>O?(se=M,M=null):se=M.sibling;var vt=h(g,M,B.value,w);if(vt===null){M===null&&(M=se);break}t&&M&&vt.alternate===null&&e(g,M),p=i(vt,p,O),P===null?k=vt:P.sibling=vt,P=vt,M=se}if(B.done)return r(g,M),Te&&jn(g,O),k;if(M===null){for(;!B.done;O++,B=y.next())B=d(g,B.value,w),B!==null&&(p=i(B,p,O),P===null?k=B:P.sibling=B,P=B);return Te&&jn(g,O),k}for(M=n(g,M);!B.done;O++,B=y.next())B=f(M,g,O,B.value,w),B!==null&&(t&&B.alternate!==null&&M.delete(B.key===null?O:B.key),p=i(B,p,O),P===null?k=B:P.sibling=B,P=B);return t&&M.forEach(function(Ln){return e(g,Ln)}),Te&&jn(g,O),k}function E(g,p,y,w){if(typeof y=="object"&&y!==null&&y.type===Lo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case cs:e:{for(var k=y.key,P=p;P!==null;){if(P.key===k){if(k=y.type,k===Lo){if(P.tag===7){r(g,P.sibling),p=o(P,y.props.children),p.return=g,g=p;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fn&&Kf(k)===P.type){r(g,P.sibling),p=o(P,y.props),p.ref=$i(g,P,y),p.return=g,g=p;break e}r(g,P);break}else e(g,P);P=P.sibling}y.type===Lo?(p=eo(y.props.children,g.mode,w,y.key),p.return=g,g=p):(w=js(y.type,y.key,y.props,null,g.mode,w),w.ref=$i(g,p,y),w.return=g,g=w)}return a(g);case Uo:e:{for(P=y.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(g,p.sibling),p=o(p,y.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else e(g,p);p=p.sibling}p=Yl(y,g.mode,w),p.return=g,g=p}return a(g);case fn:return P=y._init,E(g,p,P(y._payload),w)}if(Yi(y))return m(g,p,y,w);if(Ui(y))return v(g,p,y,w);_s(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,y),p.return=g,g=p):(r(g,p),p=Wl(y,g.mode,w),p.return=g,g=p),a(g)):r(g,p)}return E}var fi=Qm(!0),Jm=Qm(!1),Xa={},Tr=Mn(Xa),Oa=Mn(Xa),xa=Mn(Xa);function Yn(t){if(t===Xa)throw Error(b(174));return t}function dh(t,e){switch(ye(xa,e),ye(Oa,t),ye(Tr,Xa),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ru(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ru(e,t)}Ee(Tr),ye(Tr,e)}function pi(){Ee(Tr),Ee(Oa),Ee(xa)}function Xm(t){Yn(xa.current);var e=Yn(Tr.current),r=Ru(e,t.type);e!==r&&(ye(Oa,t),ye(Tr,r))}function hh(t){Oa.current===t&&(Ee(Tr),Ee(Oa))}var ke=Mn(0);function gc(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jl=[];function fh(){for(var t=0;t<jl.length;t++)jl[t]._workInProgressVersionPrimary=null;jl.length=0}var Ds=on.ReactCurrentDispatcher,Bl=on.ReactCurrentBatchConfig,co=0,Ae=null,$e=null,qe=null,mc=!1,ha=!1,Ma=0,Ew=0;function ct(){throw Error(b(321))}function ph(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!fr(t[r],e[r]))return!1;return!0}function gh(t,e,r,n,o,i){if(co=i,Ae=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ds.current=t===null||t.memoizedState===null?bw:Iw,t=r(n,o),ha){i=0;do{if(ha=!1,Ma=0,25<=i)throw Error(b(301));i+=1,qe=$e=null,e.updateQueue=null,Ds.current=kw,t=r(n,o)}while(ha)}if(Ds.current=vc,e=$e!==null&&$e.next!==null,co=0,qe=$e=Ae=null,mc=!1,e)throw Error(b(300));return t}function mh(){var t=Ma!==0;return Ma=0,t}function yr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Ae.memoizedState=qe=t:qe=qe.next=t,qe}function Zt(){if($e===null){var t=Ae.alternate;t=t!==null?t.memoizedState:null}else t=$e.next;var e=qe===null?Ae.memoizedState:qe.next;if(e!==null)qe=e,$e=t;else{if(t===null)throw Error(b(310));$e=t,t={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},qe===null?Ae.memoizedState=qe=t:qe=qe.next=t}return qe}function Ua(t,e){return typeof e=="function"?e(t):e}function ql(t){var e=Zt(),r=e.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=t;var n=$e,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var s=a=null,c=null,l=i;do{var u=l.lane;if((co&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:t(n,l.action);else{var d={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,a=n):c=c.next=d,Ae.lanes|=u,lo|=u}l=l.next}while(l!==null&&l!==i);c===null?a=n:c.next=s,fr(n,e.memoizedState)||(At=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=c,r.lastRenderedState=n}if(t=r.interleaved,t!==null){o=t;do i=o.lane,Ae.lanes|=i,lo|=i,o=o.next;while(o!==t)}else o===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Kl(t){var e=Zt(),r=e.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,i=e.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=t(i,a.action),a=a.next;while(a!==o);fr(i,e.memoizedState)||(At=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function Zm(){}function ev(t,e){var r=Ae,n=Zt(),o=e(),i=!fr(n.memoizedState,o);if(i&&(n.memoizedState=o,At=!0),n=n.queue,vh(nv.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||qe!==null&&qe.memoizedState.tag&1){if(r.flags|=2048,La(9,rv.bind(null,r,n,o,e),void 0,null),Ve===null)throw Error(b(349));(co&30)!==0||tv(r,e,o)}return o}function tv(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Ae.updateQueue,e===null?(e={lastEffect:null,stores:null},Ae.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function rv(t,e,r,n){e.value=r,e.getSnapshot=n,ov(e)&&iv(t)}function nv(t,e,r){return r(function(){ov(e)&&iv(t)})}function ov(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!fr(t,r)}catch{return!0}}function iv(t){var e=Zr(t,1);e!==null&&dr(e,t,1,-1)}function Gf(t){var e=yr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:t},e.queue=t,t=t.dispatch=Tw.bind(null,Ae,t),[e.memoizedState,t]}function La(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Ae.updateQueue,e===null?(e={lastEffect:null,stores:null},Ae.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function av(){return Zt().memoizedState}function Hs(t,e,r,n){var o=yr();Ae.flags|=t,o.memoizedState=La(1|e,r,void 0,n===void 0?null:n)}function tl(t,e,r,n){var o=Zt();n=n===void 0?null:n;var i=void 0;if($e!==null){var a=$e.memoizedState;if(i=a.destroy,n!==null&&ph(n,a.deps)){o.memoizedState=La(e,r,i,n);return}}Ae.flags|=t,o.memoizedState=La(1|e,r,i,n)}function Vf(t,e){return Hs(8390656,8,t,e)}function vh(t,e){return tl(2048,8,t,e)}function sv(t,e){return tl(4,2,t,e)}function cv(t,e){return tl(4,4,t,e)}function lv(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function uv(t,e,r){return r=r!=null?r.concat([t]):null,tl(4,4,lv.bind(null,e,t),r)}function yh(){}function dv(t,e){var r=Zt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&ph(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function hv(t,e){var r=Zt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&ph(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function fv(t,e,r){return(co&21)===0?(t.baseState&&(t.baseState=!1,At=!0),t.memoizedState=r):(fr(r,e)||(r=mm(),Ae.lanes|=r,lo|=r,t.baseState=!0),e)}function Cw(t,e){var r=ue;ue=r!==0&&4>r?r:4,t(!0);var n=Bl.transition;Bl.transition={};try{t(!1),e()}finally{ue=r,Bl.transition=n}}function pv(){return Zt().memoizedState}function Sw(t,e,r){var n=An(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},gv(t))mv(e,r);else if(r=Gm(t,e,r,n),r!==null){var o=Et();dr(r,t,n,o),vv(r,e,n)}}function Tw(t,e,r){var n=An(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(gv(t))mv(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,fr(s,a)){var c=e.interleaved;c===null?(o.next=o,lh(e)):(o.next=c.next,c.next=o),e.interleaved=o;return}}catch{}finally{}r=Gm(t,e,o,n),r!==null&&(o=Et(),dr(r,t,n,o),vv(r,e,n))}}function gv(t){var e=t.alternate;return t===Ae||e!==null&&e===Ae}function mv(t,e){ha=mc=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function vv(t,e,r){if((r&4194240)!==0){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Yd(t,r)}}var vc={readContext:Xt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},bw={readContext:Xt,useCallback:function(t,e){return yr().memoizedState=[t,e===void 0?null:e],t},useContext:Xt,useEffect:Vf,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Hs(4194308,4,lv.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Hs(4194308,4,t,e)},useInsertionEffect:function(t,e){return Hs(4,2,t,e)},useMemo:function(t,e){var r=yr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=yr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=Sw.bind(null,Ae,t),[n.memoizedState,t]},useRef:function(t){var e=yr();return t={current:t},e.memoizedState=t},useState:Gf,useDebugValue:yh,useDeferredValue:function(t){return yr().memoizedState=t},useTransition:function(){var t=Gf(!1),e=t[0];return t=Cw.bind(null,t[1]),yr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Ae,o=yr();if(Te){if(r===void 0)throw Error(b(407));r=r()}else{if(r=e(),Ve===null)throw Error(b(349));(co&30)!==0||tv(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,Vf(nv.bind(null,n,i,t),[t]),n.flags|=2048,La(9,rv.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=yr(),e=Ve.identifierPrefix;if(Te){var r=jr,n=zr;r=(n&~(1<<32-ur(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Ma++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=Ew++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Iw={readContext:Xt,useCallback:dv,useContext:Xt,useEffect:vh,useImperativeHandle:uv,useInsertionEffect:sv,useLayoutEffect:cv,useMemo:hv,useReducer:ql,useRef:av,useState:function(){return ql(Ua)},useDebugValue:yh,useDeferredValue:function(t){var e=Zt();return fv(e,$e.memoizedState,t)},useTransition:function(){var t=ql(Ua)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:Zm,useSyncExternalStore:ev,useId:pv,unstable_isNewReconciler:!1},kw={readContext:Xt,useCallback:dv,useContext:Xt,useEffect:vh,useImperativeHandle:uv,useInsertionEffect:sv,useLayoutEffect:cv,useMemo:hv,useReducer:Kl,useRef:av,useState:function(){return Kl(Ua)},useDebugValue:yh,useDeferredValue:function(t){var e=Zt();return $e===null?e.memoizedState=t:fv(e,$e.memoizedState,t)},useTransition:function(){var t=Kl(Ua)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:Zm,useSyncExternalStore:ev,useId:pv,unstable_isNewReconciler:!1};function gi(t,e){try{var r="",n=e;do r+=t_(n),n=n.return;while(n);var o=r}catch(i){o=`
|
|
29
|
+
`+o[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=s);break}}}finally{Nl=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Yi(t):""}function n_(t){switch(t.tag){case 5:return Yi(t.type);case 16:return Yi("Lazy");case 13:return Yi("Suspense");case 19:return Yi("SuspenseList");case 0:case 2:case 15:return t=Ol(t.type,!1),t;case 11:return t=Ol(t.type.render,!1),t;case 1:return t=Ol(t.type,!0),t;default:return""}}function ku(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Lo:return"Fragment";case Uo:return"Portal";case Tu:return"Profiler";case Gd:return"StrictMode";case bu:return"Suspense";case Iu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Jg:return(t.displayName||"Context")+".Consumer";case Qg:return(t._context.displayName||"Context")+".Provider";case Vd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Wd:return e=t.displayName||null,e!==null?e:ku(t.type)||"Memo";case fn:e=t._payload,t=t._init;try{return ku(t(e))}catch{}}return null}function o_(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ku(e);case 8:return e===Gd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Nn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Zg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function i_(t){var e=Zg(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ds(t){t._valueTracker||(t._valueTracker=i_(t))}function em(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Zg(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function nc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Au(t,e){var r=e.checked;return Re({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function hf(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Nn(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function tm(t,e){e=e.checked,e!=null&&Kd(t,"checked",e,!1)}function Ru(t,e){tm(t,e);var r=Nn(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Pu(t,e.type,r):e.hasOwnProperty("defaultValue")&&Pu(t,e.type,Nn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ff(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Pu(t,e,r){(e!=="number"||nc(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Qi=Array.isArray;function ei(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o<r.length;o++)e["$"+r[o]]=!0;for(r=0;r<t.length;r++)o=e.hasOwnProperty("$"+t[r].value),t[r].selected!==o&&(t[r].selected=o),o&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Nn(r),e=null,o=0;o<t.length;o++){if(t[o].value===r){t[o].selected=!0,n&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Nu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(b(91));return Re({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function pf(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(b(92));if(Qi(r)){if(1<r.length)throw Error(b(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Nn(r)}}function rm(t,e){var r=Nn(e.value),n=Nn(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function gf(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function nm(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ou(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?nm(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var hs,om=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,o){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,o)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(hs=hs||document.createElement("div"),hs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=hs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ta(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var la={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},a_=["Webkit","ms","Moz","O"];Object.keys(la).forEach(function(t){a_.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),la[e]=la[t]})});function im(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||la.hasOwnProperty(t)&&la[t]?(""+e).trim():e+"px"}function am(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=im(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var s_=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xu(t,e){if(e){if(s_[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(b(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(b(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(b(61))}if(e.style!=null&&typeof e.style!="object")throw Error(b(62))}}function Mu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uu=null;function Yd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Lu=null,ti=null,ri=null;function mf(t){if(t=Za(t)){if(typeof Lu!="function")throw Error(b(280));var e=t.stateNode;e&&(e=nl(e),Lu(t.stateNode,t.type,e))}}function sm(t){ti?ri?ri.push(t):ri=[t]:ti=t}function cm(){if(ti){var t=ti,e=ri;if(ri=ti=null,mf(t),e)for(t=0;t<e.length;t++)mf(e[t])}}function lm(t,e){return t(e)}function um(){}var xl=!1;function dm(t,e,r){if(xl)return t(e,r);xl=!0;try{return lm(t,e,r)}finally{xl=!1,(ti!==null||ri!==null)&&(um(),cm())}}function ba(t,e){var r=t.stateNode;if(r===null)return null;var n=nl(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(b(231,e,typeof r));return r}var Du=!1;if(Jr)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){Du=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Du=!1}function c_(t,e,r,n,o,i,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{e.apply(r,l)}catch(u){this.onError(u)}}var ua=!1,oc=null,ic=!1,Hu=null,l_={onError:function(t){ua=!0,oc=t}};function u_(t,e,r,n,o,i,a,s,c){ua=!1,oc=null,c_.apply(l_,arguments)}function d_(t,e,r,n,o,i,a,s,c){if(u_.apply(this,arguments),ua){if(ua){var l=oc;ua=!1,oc=null}else throw Error(b(198));ic||(ic=!0,Hu=l)}}function _o(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function hm(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function vf(t){if(_o(t)!==t)throw Error(b(188))}function h_(t){var e=t.alternate;if(!e){if(e=_o(t),e===null)throw Error(b(188));return e!==t?null:t}for(var r=t,n=e;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return vf(o),t;if(i===n)return vf(o),e;i=i.sibling}throw Error(b(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(b(189))}}if(r.alternate!==n)throw Error(b(190))}if(r.tag!==3)throw Error(b(188));return r.stateNode.current===r?t:e}function fm(t){return t=h_(t),t!==null?pm(t):null}function pm(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=pm(t);if(e!==null)return e;t=t.sibling}return null}var gm=$t.unstable_scheduleCallback,yf=$t.unstable_cancelCallback,f_=$t.unstable_shouldYield,p_=$t.unstable_requestPaint,Me=$t.unstable_now,g_=$t.unstable_getCurrentPriorityLevel,Qd=$t.unstable_ImmediatePriority,mm=$t.unstable_UserBlockingPriority,ac=$t.unstable_NormalPriority,m_=$t.unstable_LowPriority,vm=$t.unstable_IdlePriority,Zc=null,Sr=null;function v_(t){if(Sr&&typeof Sr.onCommitFiberRoot=="function")try{Sr.onCommitFiberRoot(Zc,t,void 0,(t.current.flags&128)===128)}catch{}}var ur=Math.clz32?Math.clz32:w_,y_=Math.log,__=Math.LN2;function w_(t){return t>>>=0,t===0?32:31-(y_(t)/__|0)|0}var fs=64,ps=4194304;function Ji(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function sc(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,o=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Ji(s):(i&=a,i!==0&&(n=Ji(i)))}else a=r&~o,a!==0?n=Ji(a):i!==0&&(n=Ji(i));if(n===0)return 0;if(e!==0&&e!==n&&(e&o)===0&&(o=n&-n,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if((n&4)!==0&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-ur(e),o=1<<r,n|=t[r],e&=~o;return n}function E_(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function C_(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-ur(i),s=1<<a,c=o[a];c===-1?((s&r)===0||(s&n)!==0)&&(o[a]=E_(s,e)):c<=e&&(t.expiredLanes|=s),i&=~s}}function Fu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ym(){var t=fs;return fs<<=1,(fs&4194240)===0&&(fs=64),t}function Ml(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Ja(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ur(e),t[e]=r}function S_(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var o=31-ur(r),i=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~i}}function Jd(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-ur(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var ue=0;function _m(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var wm,Xd,Em,Cm,Sm,$u=!1,gs=[],Cn=null,Sn=null,Tn=null,Ia=new Map,ka=new Map,vn=[],T_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _f(t,e){switch(t){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":Ia.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(e.pointerId)}}function Di(t,e,r,n,o,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},e!==null&&(e=Za(e),e!==null&&Xd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function b_(t,e,r,n,o){switch(e){case"focusin":return Cn=Di(Cn,t,e,r,n,o),!0;case"dragenter":return Sn=Di(Sn,t,e,r,n,o),!0;case"mouseover":return Tn=Di(Tn,t,e,r,n,o),!0;case"pointerover":var i=o.pointerId;return Ia.set(i,Di(Ia.get(i)||null,t,e,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,ka.set(i,Di(ka.get(i)||null,t,e,r,n,o)),!0}return!1}function Tm(t){var e=Vn(t.target);if(e!==null){var r=_o(e);if(r!==null){if(e=r.tag,e===13){if(e=hm(r),e!==null){t.blockedOn=e,Sm(t.priority,function(){Em(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ls(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=zu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Uu=n,r.target.dispatchEvent(n),Uu=null}else return e=Za(r),e!==null&&Xd(e),t.blockedOn=r,!1;e.shift()}return!0}function wf(t,e,r){Ls(t)&&r.delete(e)}function I_(){$u=!1,Cn!==null&&Ls(Cn)&&(Cn=null),Sn!==null&&Ls(Sn)&&(Sn=null),Tn!==null&&Ls(Tn)&&(Tn=null),Ia.forEach(wf),ka.forEach(wf)}function Hi(t,e){t.blockedOn===e&&(t.blockedOn=null,$u||($u=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,I_)))}function Aa(t){function e(o){return Hi(o,t)}if(0<gs.length){Hi(gs[0],t);for(var r=1;r<gs.length;r++){var n=gs[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Cn!==null&&Hi(Cn,t),Sn!==null&&Hi(Sn,t),Tn!==null&&Hi(Tn,t),Ia.forEach(e),ka.forEach(e),r=0;r<vn.length;r++)n=vn[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<vn.length&&(r=vn[0],r.blockedOn===null);)Tm(r),r.blockedOn===null&&vn.shift()}var ni=on.ReactCurrentBatchConfig,cc=!0;function k_(t,e,r,n){var o=ue,i=ni.transition;ni.transition=null;try{ue=1,Zd(t,e,r,n)}finally{ue=o,ni.transition=i}}function A_(t,e,r,n){var o=ue,i=ni.transition;ni.transition=null;try{ue=4,Zd(t,e,r,n)}finally{ue=o,ni.transition=i}}function Zd(t,e,r,n){if(cc){var o=zu(t,e,r,n);if(o===null)ql(t,e,n,lc,r),_f(t,n);else if(b_(o,t,e,r,n))n.stopPropagation();else if(_f(t,n),e&4&&-1<T_.indexOf(t)){for(;o!==null;){var i=Za(o);if(i!==null&&wm(i),i=zu(t,e,r,n),i===null&&ql(t,e,n,lc,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else ql(t,e,n,null,r)}}var lc=null;function zu(t,e,r,n){if(lc=null,t=Yd(n),t=Vn(t),t!==null)if(e=_o(t),e===null)t=null;else if(r=e.tag,r===13){if(t=hm(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return lc=t,null}function bm(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(g_()){case Qd:return 1;case mm:return 4;case ac:case m_:return 16;case vm:return 536870912;default:return 16}default:return 16}}var wn=null,eh=null,Ds=null;function Im(){if(Ds)return Ds;var t,e=eh,r=e.length,n,o="value"in wn?wn.value:wn.textContent,i=o.length;for(t=0;t<r&&e[t]===o[t];t++);var a=r-t;for(n=1;n<=a&&e[r-n]===o[i-n];n++);return Ds=o.slice(t,1<n?1-n:void 0)}function Hs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ms(){return!0}function Ef(){return!1}function jt(t){function e(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(r=t[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ms:Ef,this.isPropagationStopped=Ef,this}return Re(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),e}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},th=jt(bi),Xa=Re({},bi,{view:0,detail:0}),R_=jt(Xa),Ul,Ll,Fi,el=Re({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fi&&(Fi&&t.type==="mousemove"?(Ul=t.screenX-Fi.screenX,Ll=t.screenY-Fi.screenY):Ll=Ul=0,Fi=t),Ul)},movementY:function(t){return"movementY"in t?t.movementY:Ll}}),Cf=jt(el),P_=Re({},el,{dataTransfer:0}),N_=jt(P_),O_=Re({},Xa,{relatedTarget:0}),Dl=jt(O_),x_=Re({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),M_=jt(x_),U_=Re({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),L_=jt(U_),D_=Re({},bi,{data:0}),Sf=jt(D_),H_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z_(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=$_[t])?!!e[t]:!1}function rh(){return z_}var j_=Re({},Xa,{key:function(t){if(t.key){var e=H_[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Hs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?F_[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rh,charCode:function(t){return t.type==="keypress"?Hs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Hs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),B_=jt(j_),q_=Re({},el,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=jt(q_),K_=Re({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rh}),G_=jt(K_),V_=Re({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),W_=jt(V_),Y_=Re({},el,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Q_=jt(Y_),J_=[9,13,27,32],nh=Jr&&"CompositionEvent"in window,da=null;Jr&&"documentMode"in document&&(da=document.documentMode);var X_=Jr&&"TextEvent"in window&&!da,km=Jr&&(!nh||da&&8<da&&11>=da),bf=String.fromCharCode(32),If=!1;function Am(t,e){switch(t){case"keyup":return J_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Do=!1;function Z_(t,e){switch(t){case"compositionend":return Rm(e);case"keypress":return e.which!==32?null:(If=!0,bf);case"textInput":return t=e.data,t===bf&&If?null:t;default:return null}}function ew(t,e){if(Do)return t==="compositionend"||!nh&&Am(t,e)?(t=Im(),Ds=eh=wn=null,Do=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return km&&e.locale!=="ko"?null:e.data;default:return null}}var tw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!tw[t.type]:e==="textarea"}function Pm(t,e,r,n){sm(n),e=uc(e,"onChange"),0<e.length&&(r=new th("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var ha=null,Ra=null;function rw(t){zm(t,0)}function tl(t){var e=$o(t);if(em(e))return t}function nw(t,e){if(t==="change")return e}var Nm=!1;if(Jr){var Hl;if(Jr){var Fl="oninput"in document;if(!Fl){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),Fl=typeof Af.oninput=="function"}Hl=Fl}else Hl=!1;Nm=Hl&&(!document.documentMode||9<document.documentMode)}function Rf(){ha&&(ha.detachEvent("onpropertychange",Om),Ra=ha=null)}function Om(t){if(t.propertyName==="value"&&tl(Ra)){var e=[];Pm(e,Ra,t,Yd(t)),dm(rw,e)}}function ow(t,e,r){t==="focusin"?(Rf(),ha=e,Ra=r,ha.attachEvent("onpropertychange",Om)):t==="focusout"&&Rf()}function iw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return tl(Ra)}function aw(t,e){if(t==="click")return tl(e)}function sw(t,e){if(t==="input"||t==="change")return tl(e)}function cw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fr=typeof Object.is=="function"?Object.is:cw;function Pa(t,e){if(fr(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!Su.call(e,o)||!fr(t[o],e[o]))return!1}return!0}function Pf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Nf(t,e){var r=Pf(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Pf(r)}}function xm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?xm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Mm(){for(var t=window,e=nc();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=nc(t.document)}return e}function oh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function lw(t){var e=Mm(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&xm(r.ownerDocument.documentElement,r)){if(n!==null&&oh(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!t.extend&&i>n&&(o=n,n=i,i=o),o=Nf(r,i);var a=Nf(r,n);o&&a&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var uw=Jr&&"documentMode"in document&&11>=document.documentMode,Ho=null,ju=null,fa=null,Bu=!1;function Of(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Bu||Ho==null||Ho!==nc(n)||(n=Ho,"selectionStart"in n&&oh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),fa&&Pa(fa,n)||(fa=n,n=uc(ju,"onSelect"),0<n.length&&(e=new th("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Ho)))}function vs(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Fo={animationend:vs("Animation","AnimationEnd"),animationiteration:vs("Animation","AnimationIteration"),animationstart:vs("Animation","AnimationStart"),transitionend:vs("Transition","TransitionEnd")},$l={},Um={};Jr&&(Um=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function rl(t){if($l[t])return $l[t];if(!Fo[t])return t;var e=Fo[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Um)return $l[t]=e[r];return t}var Lm=rl("animationend"),Dm=rl("animationiteration"),Hm=rl("animationstart"),Fm=rl("transitionend"),$m=new Map,xf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xn(t,e){$m.set(t,e),yo(e,[t])}for(var zl=0;zl<xf.length;zl++){var jl=xf[zl],dw=jl.toLowerCase(),hw=jl[0].toUpperCase()+jl.slice(1);xn(dw,"on"+hw)}xn(Lm,"onAnimationEnd");xn(Dm,"onAnimationIteration");xn(Hm,"onAnimationStart");xn("dblclick","onDoubleClick");xn("focusin","onFocus");xn("focusout","onBlur");xn(Fm,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yo("onBeforeInput",["compositionend","keypress","textInput","paste"]);yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xi));function Mf(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,d_(n,e,void 0,t),t.currentTarget=null}function zm(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],o=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var a=n.length-1;0<=a;a--){var s=n[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;Mf(o,s,l),i=c}else for(a=0;a<n.length;a++){if(s=n[a],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;Mf(o,s,l),i=c}}}if(ic)throw t=Hu,ic=!1,Hu=null,t}function _e(t,e){var r=e[Wu];r===void 0&&(r=e[Wu]=new Set);var n=t+"__bubble";r.has(n)||(jm(e,t,2,!1),r.add(n))}function Bl(t,e,r){var n=0;e&&(n|=4),jm(r,t,n,e)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Na(t){if(!t[ys]){t[ys]=!0,Yg.forEach(function(r){r!=="selectionchange"&&(fw.has(r)||Bl(r,!1,t),Bl(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ys]||(e[ys]=!0,Bl("selectionchange",!1,e))}}function jm(t,e,r,n){switch(bm(e)){case 1:var o=k_;break;case 4:o=A_;break;default:o=Zd}r=o.bind(null,e,r,t),o=void 0,!Du||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),n?o!==void 0?t.addEventListener(e,r,{capture:!0,passive:o}):t.addEventListener(e,r,!0):o!==void 0?t.addEventListener(e,r,{passive:o}):t.addEventListener(e,r,!1)}function ql(t,e,r,n,o){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Vn(s),a===null)return;if(c=a.tag,c===5||c===6){n=i=a;continue e}s=s.parentNode}}n=n.return}dm(function(){var l=i,u=Yd(r),d=[];e:{var h=$m.get(t);if(h!==void 0){var f=th,m=t;switch(t){case"keypress":if(Hs(r)===0)break e;case"keydown":case"keyup":f=B_;break;case"focusin":m="focus",f=Dl;break;case"focusout":m="blur",f=Dl;break;case"beforeblur":case"afterblur":f=Dl;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=N_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=G_;break;case Lm:case Dm:case Hm:f=M_;break;case Fm:f=W_;break;case"scroll":f=R_;break;case"wheel":f=Q_;break;case"copy":case"cut":case"paste":f=L_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Tf}var v=(e&4)!==0,E=!v&&t==="scroll",g=v?h!==null?h+"Capture":null:h;v=[];for(var p=l,y;p!==null;){y=p;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,g!==null&&(w=ba(p,g),w!=null&&v.push(Oa(p,w,y)))),E)break;p=p.return}0<v.length&&(h=new f(h,m,null,r,u),d.push({event:h,listeners:v}))}}if((e&7)===0){e:{if(h=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",h&&r!==Uu&&(m=r.relatedTarget||r.fromElement)&&(Vn(m)||m[Xr]))break e;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(m=r.relatedTarget||r.toElement,f=l,m=m?Vn(m):null,m!==null&&(E=_o(m),m!==E||m.tag!==5&&m.tag!==6)&&(m=null)):(f=null,m=l),f!==m)){if(v=Cf,w="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(v=Tf,w="onPointerLeave",g="onPointerEnter",p="pointer"),E=f==null?h:$o(f),y=m==null?h:$o(m),h=new v(w,p+"leave",f,r,u),h.target=E,h.relatedTarget=y,w=null,Vn(u)===l&&(v=new v(g,p+"enter",m,r,u),v.target=y,v.relatedTarget=E,w=v),E=w,f&&m)t:{for(v=f,g=m,p=0,y=v;y;y=To(y))p++;for(y=0,w=g;w;w=To(w))y++;for(;0<p-y;)v=To(v),p--;for(;0<y-p;)g=To(g),y--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=To(v),g=To(g)}v=null}else v=null;f!==null&&Uf(d,h,f,v,!1),m!==null&&E!==null&&Uf(d,E,m,v,!0)}}e:{if(h=l?$o(l):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var k=nw;else if(kf(h))if(Nm)k=sw;else{k=iw;var P=ow}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=aw);if(k&&(k=k(t,l))){Pm(d,k,r,u);break e}P&&P(t,h,l),t==="focusout"&&(P=h._wrapperState)&&P.controlled&&h.type==="number"&&Pu(h,"number",h.value)}switch(P=l?$o(l):window,t){case"focusin":(kf(P)||P.contentEditable==="true")&&(Ho=P,ju=l,fa=null);break;case"focusout":fa=ju=Ho=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Of(d,r,u);break;case"selectionchange":if(uw)break;case"keydown":case"keyup":Of(d,r,u)}var M;if(nh)e:{switch(t){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Do?Am(t,r)&&(O="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(km&&r.locale!=="ko"&&(Do||O!=="onCompositionStart"?O==="onCompositionEnd"&&Do&&(M=Im()):(wn=u,eh="value"in wn?wn.value:wn.textContent,Do=!0)),P=uc(l,O),0<P.length&&(O=new Sf(O,t,null,r,u),d.push({event:O,listeners:P}),M?O.data=M:(M=Rm(r),M!==null&&(O.data=M)))),(M=X_?Z_(t,r):ew(t,r))&&(l=uc(l,"onBeforeInput"),0<l.length&&(u=new Sf("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:l}),u.data=M))}zm(d,e)})}function Oa(t,e,r){return{instance:t,listener:e,currentTarget:r}}function uc(t,e){for(var r=e+"Capture",n=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ba(t,r),i!=null&&n.unshift(Oa(t,i,o)),i=ba(t,e),i!=null&&n.push(Oa(t,i,o))),t=t.return}return n}function To(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Uf(t,e,r,n,o){for(var i=e._reactName,a=[];r!==null&&r!==n;){var s=r,c=s.alternate,l=s.stateNode;if(c!==null&&c===n)break;s.tag===5&&l!==null&&(s=l,o?(c=ba(r,i),c!=null&&a.unshift(Oa(r,c,s))):o||(c=ba(r,i),c!=null&&a.push(Oa(r,c,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var pw=/\r\n?/g,gw=/\u0000|\uFFFD/g;function Lf(t){return(typeof t=="string"?t:""+t).replace(pw,`
|
|
30
|
+
`).replace(gw,"")}function _s(t,e,r){if(e=Lf(e),Lf(t)!==e&&r)throw Error(b(425))}function dc(){}var qu=null,Ku=null;function Gu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Vu=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,Df=typeof Promise=="function"?Promise:void 0,vw=typeof queueMicrotask=="function"?queueMicrotask:typeof Df<"u"?function(t){return Df.resolve(null).then(t).catch(yw)}:Vu;function yw(t){setTimeout(function(){throw t})}function Kl(t,e){var r=e,n=0;do{var o=r.nextSibling;if(t.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){t.removeChild(o),Aa(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Aa(e)}function bn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Hf(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Ii=Math.random().toString(36).slice(2),wr="__reactFiber$"+Ii,xa="__reactProps$"+Ii,Xr="__reactContainer$"+Ii,Wu="__reactEvents$"+Ii,_w="__reactListeners$"+Ii,ww="__reactHandles$"+Ii;function Vn(t){var e=t[wr];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Xr]||r[wr]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Hf(t);t!==null;){if(r=t[wr])return r;t=Hf(t)}return e}t=r,r=t.parentNode}return null}function Za(t){return t=t[wr]||t[Xr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function $o(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(b(33))}function nl(t){return t[xa]||null}var Yu=[],zo=-1;function Mn(t){return{current:t}}function Ee(t){0>zo||(t.current=Yu[zo],Yu[zo]=null,zo--)}function ye(t,e){zo++,Yu[zo]=t.current,t.current=e}var On={},vt=Mn(On),Nt=Mn(!1),ao=On;function di(t,e){var r=t.type.contextTypes;if(!r)return On;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Ot(t){return t=t.childContextTypes,t!=null}function hc(){Ee(Nt),Ee(vt)}function Ff(t,e,r){if(vt.current!==On)throw Error(b(168));ye(vt,e),ye(Nt,r)}function Bm(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in e))throw Error(b(108,o_(t)||"Unknown",o));return Re({},r,n)}function fc(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||On,ao=vt.current,ye(vt,t),ye(Nt,Nt.current),!0}function $f(t,e,r){var n=t.stateNode;if(!n)throw Error(b(169));r?(t=Bm(t,e,ao),n.__reactInternalMemoizedMergedChildContext=t,Ee(Nt),Ee(vt),ye(vt,t)):Ee(Nt),ye(Nt,r)}var $r=null,ol=!1,Gl=!1;function qm(t){$r===null?$r=[t]:$r.push(t)}function Ew(t){ol=!0,qm(t)}function Un(){if(!Gl&&$r!==null){Gl=!0;var t=0,e=ue;try{var r=$r;for(ue=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}$r=null,ol=!1}catch(o){throw $r!==null&&($r=$r.slice(t+1)),gm(Qd,Un),o}finally{ue=e,Gl=!1}}return null}var jo=[],Bo=0,pc=null,gc=0,Gt=[],Vt=0,so=null,zr=1,jr="";function jn(t,e){jo[Bo++]=gc,jo[Bo++]=pc,pc=t,gc=e}function Km(t,e,r){Gt[Vt++]=zr,Gt[Vt++]=jr,Gt[Vt++]=so,so=t;var n=zr;t=jr;var o=32-ur(n)-1;n&=~(1<<o),r+=1;var i=32-ur(e)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,zr=1<<32-ur(e)+o|r<<o|n,jr=i+t}else zr=1<<i|r<<o|n,jr=t}function ih(t){t.return!==null&&(jn(t,1),Km(t,1,0))}function ah(t){for(;t===pc;)pc=jo[--Bo],jo[Bo]=null,gc=jo[--Bo],jo[Bo]=null;for(;t===so;)so=Gt[--Vt],Gt[Vt]=null,jr=Gt[--Vt],Gt[Vt]=null,zr=Gt[--Vt],Gt[Vt]=null}var Ht=null,Lt=null,Te=!1,sr=null;function Gm(t,e){var r=Yt(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function zf(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Ht=t,Lt=bn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Ht=t,Lt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=so!==null?{id:zr,overflow:jr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Yt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Ht=t,Lt=null,!0):!1;default:return!1}}function Qu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ju(t){if(Te){var e=Lt;if(e){var r=e;if(!zf(t,e)){if(Qu(t))throw Error(b(418));e=bn(r.nextSibling);var n=Ht;e&&zf(t,e)?Gm(n,r):(t.flags=t.flags&-4097|2,Te=!1,Ht=t)}}else{if(Qu(t))throw Error(b(418));t.flags=t.flags&-4097|2,Te=!1,Ht=t}}}function jf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ht=t}function ws(t){if(t!==Ht)return!1;if(!Te)return jf(t),Te=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Gu(t.type,t.memoizedProps)),e&&(e=Lt)){if(Qu(t))throw Vm(),Error(b(418));for(;e;)Gm(t,e),e=bn(e.nextSibling)}if(jf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(b(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Lt=bn(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Lt=null}}else Lt=Ht?bn(t.stateNode.nextSibling):null;return!0}function Vm(){for(var t=Lt;t;)t=bn(t.nextSibling)}function hi(){Lt=Ht=null,Te=!1}function sh(t){sr===null?sr=[t]:sr.push(t)}var Cw=on.ReactCurrentBatchConfig;function ir(t,e){if(t&&t.defaultProps){e=Re({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var mc=Mn(null),vc=null,qo=null,ch=null;function lh(){ch=qo=vc=null}function uh(t){var e=mc.current;Ee(mc),t._currentValue=e}function Xu(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function oi(t,e){vc=t,ch=qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(Pt=!0),t.firstContext=null)}function Xt(t){var e=t._currentValue;if(ch!==t)if(t={context:t,memoizedValue:e,next:null},qo===null){if(vc===null)throw Error(b(308));qo=t,vc.dependencies={lanes:0,firstContext:t}}else qo=qo.next=t;return e}var Wn=null;function dh(t){Wn===null?Wn=[t]:Wn.push(t)}function Wm(t,e,r,n){var o=e.interleaved;return o===null?(r.next=r,dh(e)):(r.next=o.next,o.next=r),e.interleaved=r,Zr(t,n)}function Zr(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var pn=!1;function hh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ym(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Kr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function In(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(ne&2)!==0){var o=n.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),n.pending=e,Zr(t,r)}return o=n.interleaved,o===null?(e.next=e,dh(n)):(e.next=o.next,o.next=e),n.interleaved=e,Zr(t,r)}function Fs(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Jd(t,r)}}function Bf(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=e:i=i.next=e}else o=i=e;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function yc(t,e,r,n){var o=t.updateQueue;pn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,l=c.next;c.next=null,a===null?i=l:a.next=l,a=c;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(i!==null){var d=o.baseState;a=0,u=l=c=null,s=i;do{var h=s.lane,f=s.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=t,v=s;switch(h=e,f=r,v.tag){case 1:if(m=v.payload,typeof m=="function"){d=m.call(f,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,h=typeof m=="function"?m.call(f,d,h):m,h==null)break e;d=Re({},d,h);break e;case 2:pn=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=f,c=d):u=u.next=f,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(1);if(u===null&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,e=o.shared.interleaved,e!==null){o=e;do a|=o.lane,o=o.next;while(o!==e)}else i===null&&(o.shared.lanes=0);lo|=a,t.lanes=a,t.memoizedState=d}}function qf(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(b(191,o));o.call(n)}}}var Qm=new Wg.Component().refs;function Zu(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Re({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var il={isMounted:function(t){return(t=t._reactInternals)?_o(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=St(),o=An(t),i=Kr(n,o);i.payload=e,r!=null&&(i.callback=r),e=In(t,i,o),e!==null&&(dr(e,t,o,n),Fs(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=St(),o=An(t),i=Kr(n,o);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=In(t,i,o),e!==null&&(dr(e,t,o,n),Fs(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=St(),n=An(t),o=Kr(r,n);o.tag=2,e!=null&&(o.callback=e),e=In(t,o,n),e!==null&&(dr(e,t,n,r),Fs(e,t,n))}};function Kf(t,e,r,n,o,i,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,a):e.prototype&&e.prototype.isPureReactComponent?!Pa(r,n)||!Pa(o,i):!0}function Jm(t,e,r){var n=!1,o=On,i=e.contextType;return typeof i=="object"&&i!==null?i=Xt(i):(o=Ot(e)?ao:vt.current,n=e.contextTypes,i=(n=n!=null)?di(t,o):On),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=il,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function Gf(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&il.enqueueReplaceState(e,e.state,null)}function ed(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=Qm,hh(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=Xt(i):(i=Ot(e)?ao:vt.current,o.context=di(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Zu(t,e,i,r),o.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(e=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),e!==o.state&&il.enqueueReplaceState(o,o.state,null),yc(t,r,o,n),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function $i(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(b(309));var n=r.stateNode}if(!n)throw Error(b(147,t));var o=n,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(a){var s=o.refs;s===Qm&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(b(284));if(!r._owner)throw Error(b(290,t))}return t}function Es(t,e){throw t=Object.prototype.toString.call(e),Error(b(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Vf(t){var e=t._init;return e(t._payload)}function Xm(t){function e(g,p){if(t){var y=g.deletions;y===null?(g.deletions=[p],g.flags|=16):y.push(p)}}function r(g,p){if(!t)return null;for(;p!==null;)e(g,p),p=p.sibling;return null}function n(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function o(g,p){return g=Rn(g,p),g.index=0,g.sibling=null,g}function i(g,p,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<p?(g.flags|=2,p):y):(g.flags|=2,p)):(g.flags|=1048576,p)}function a(g){return t&&g.alternate===null&&(g.flags|=2),g}function s(g,p,y,w){return p===null||p.tag!==6?(p=Zl(y,g.mode,w),p.return=g,p):(p=o(p,y),p.return=g,p)}function c(g,p,y,w){var k=y.type;return k===Lo?u(g,p,y.props.children,w,y.key):p!==null&&(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fn&&Vf(k)===p.type)?(w=o(p,y.props),w.ref=$i(g,p,y),w.return=g,w):(w=Ks(y.type,y.key,y.props,null,g.mode,w),w.ref=$i(g,p,y),w.return=g,w)}function l(g,p,y,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=eu(y,g.mode,w),p.return=g,p):(p=o(p,y.children||[]),p.return=g,p)}function u(g,p,y,w,k){return p===null||p.tag!==7?(p=eo(y,g.mode,w,k),p.return=g,p):(p=o(p,y),p.return=g,p)}function d(g,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Zl(""+p,g.mode,y),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case us:return y=Ks(p.type,p.key,p.props,null,g.mode,y),y.ref=$i(g,null,p),y.return=g,y;case Uo:return p=eu(p,g.mode,y),p.return=g,p;case fn:var w=p._init;return d(g,w(p._payload),y)}if(Qi(p)||Ui(p))return p=eo(p,g.mode,y,null),p.return=g,p;Es(g,p)}return null}function h(g,p,y,w){var k=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:s(g,p,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case us:return y.key===k?c(g,p,y,w):null;case Uo:return y.key===k?l(g,p,y,w):null;case fn:return k=y._init,h(g,p,k(y._payload),w)}if(Qi(y)||Ui(y))return k!==null?null:u(g,p,y,w,null);Es(g,y)}return null}function f(g,p,y,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(y)||null,s(p,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case us:return g=g.get(w.key===null?y:w.key)||null,c(p,g,w,k);case Uo:return g=g.get(w.key===null?y:w.key)||null,l(p,g,w,k);case fn:var P=w._init;return f(g,p,y,P(w._payload),k)}if(Qi(w)||Ui(w))return g=g.get(y)||null,u(p,g,w,k,null);Es(p,w)}return null}function m(g,p,y,w){for(var k=null,P=null,M=p,O=p=0,se=null;M!==null&&O<y.length;O++){M.index>O?(se=M,M=null):se=M.sibling;var B=h(g,M,y[O],w);if(B===null){M===null&&(M=se);break}t&&M&&B.alternate===null&&e(g,M),p=i(B,p,O),P===null?k=B:P.sibling=B,P=B,M=se}if(O===y.length)return r(g,M),Te&&jn(g,O),k;if(M===null){for(;O<y.length;O++)M=d(g,y[O],w),M!==null&&(p=i(M,p,O),P===null?k=M:P.sibling=M,P=M);return Te&&jn(g,O),k}for(M=n(g,M);O<y.length;O++)se=f(M,g,O,y[O],w),se!==null&&(t&&se.alternate!==null&&M.delete(se.key===null?O:se.key),p=i(se,p,O),P===null?k=se:P.sibling=se,P=se);return t&&M.forEach(function(_t){return e(g,_t)}),Te&&jn(g,O),k}function v(g,p,y,w){var k=Ui(y);if(typeof k!="function")throw Error(b(150));if(y=k.call(y),y==null)throw Error(b(151));for(var P=k=null,M=p,O=p=0,se=null,B=y.next();M!==null&&!B.done;O++,B=y.next()){M.index>O?(se=M,M=null):se=M.sibling;var _t=h(g,M,B.value,w);if(_t===null){M===null&&(M=se);break}t&&M&&_t.alternate===null&&e(g,M),p=i(_t,p,O),P===null?k=_t:P.sibling=_t,P=_t,M=se}if(B.done)return r(g,M),Te&&jn(g,O),k;if(M===null){for(;!B.done;O++,B=y.next())B=d(g,B.value,w),B!==null&&(p=i(B,p,O),P===null?k=B:P.sibling=B,P=B);return Te&&jn(g,O),k}for(M=n(g,M);!B.done;O++,B=y.next())B=f(M,g,O,B.value,w),B!==null&&(t&&B.alternate!==null&&M.delete(B.key===null?O:B.key),p=i(B,p,O),P===null?k=B:P.sibling=B,P=B);return t&&M.forEach(function(Ln){return e(g,Ln)}),Te&&jn(g,O),k}function E(g,p,y,w){if(typeof y=="object"&&y!==null&&y.type===Lo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case us:e:{for(var k=y.key,P=p;P!==null;){if(P.key===k){if(k=y.type,k===Lo){if(P.tag===7){r(g,P.sibling),p=o(P,y.props.children),p.return=g,g=p;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fn&&Vf(k)===P.type){r(g,P.sibling),p=o(P,y.props),p.ref=$i(g,P,y),p.return=g,g=p;break e}r(g,P);break}else e(g,P);P=P.sibling}y.type===Lo?(p=eo(y.props.children,g.mode,w,y.key),p.return=g,g=p):(w=Ks(y.type,y.key,y.props,null,g.mode,w),w.ref=$i(g,p,y),w.return=g,g=w)}return a(g);case Uo:e:{for(P=y.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(g,p.sibling),p=o(p,y.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else e(g,p);p=p.sibling}p=eu(y,g.mode,w),p.return=g,g=p}return a(g);case fn:return P=y._init,E(g,p,P(y._payload),w)}if(Qi(y))return m(g,p,y,w);if(Ui(y))return v(g,p,y,w);Es(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,y),p.return=g,g=p):(r(g,p),p=Zl(y,g.mode,w),p.return=g,g=p),a(g)):r(g,p)}return E}var fi=Xm(!0),Zm=Xm(!1),es={},Tr=Mn(es),Ma=Mn(es),Ua=Mn(es);function Yn(t){if(t===es)throw Error(b(174));return t}function fh(t,e){switch(ye(Ua,e),ye(Ma,t),ye(Tr,es),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ou(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ou(e,t)}Ee(Tr),ye(Tr,e)}function pi(){Ee(Tr),Ee(Ma),Ee(Ua)}function ev(t){Yn(Ua.current);var e=Yn(Tr.current),r=Ou(e,t.type);e!==r&&(ye(Ma,t),ye(Tr,r))}function ph(t){Ma.current===t&&(Ee(Tr),Ee(Ma))}var ke=Mn(0);function _c(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Vl=[];function gh(){for(var t=0;t<Vl.length;t++)Vl[t]._workInProgressVersionPrimary=null;Vl.length=0}var $s=on.ReactCurrentDispatcher,Wl=on.ReactCurrentBatchConfig,co=0,Ae=null,$e=null,qe=null,wc=!1,pa=!1,La=0,Sw=0;function ct(){throw Error(b(321))}function mh(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!fr(t[r],e[r]))return!1;return!0}function vh(t,e,r,n,o,i){if(co=i,Ae=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,$s.current=t===null||t.memoizedState===null?kw:Aw,t=r(n,o),pa){i=0;do{if(pa=!1,La=0,25<=i)throw Error(b(301));i+=1,qe=$e=null,e.updateQueue=null,$s.current=Rw,t=r(n,o)}while(pa)}if($s.current=Ec,e=$e!==null&&$e.next!==null,co=0,qe=$e=Ae=null,wc=!1,e)throw Error(b(300));return t}function yh(){var t=La!==0;return La=0,t}function yr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Ae.memoizedState=qe=t:qe=qe.next=t,qe}function Zt(){if($e===null){var t=Ae.alternate;t=t!==null?t.memoizedState:null}else t=$e.next;var e=qe===null?Ae.memoizedState:qe.next;if(e!==null)qe=e,$e=t;else{if(t===null)throw Error(b(310));$e=t,t={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},qe===null?Ae.memoizedState=qe=t:qe=qe.next=t}return qe}function Da(t,e){return typeof e=="function"?e(t):e}function Yl(t){var e=Zt(),r=e.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=t;var n=$e,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var s=a=null,c=null,l=i;do{var u=l.lane;if((co&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:t(n,l.action);else{var d={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,a=n):c=c.next=d,Ae.lanes|=u,lo|=u}l=l.next}while(l!==null&&l!==i);c===null?a=n:c.next=s,fr(n,e.memoizedState)||(Pt=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=c,r.lastRenderedState=n}if(t=r.interleaved,t!==null){o=t;do i=o.lane,Ae.lanes|=i,lo|=i,o=o.next;while(o!==t)}else o===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Ql(t){var e=Zt(),r=e.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,i=e.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=t(i,a.action),a=a.next;while(a!==o);fr(i,e.memoizedState)||(Pt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function tv(){}function rv(t,e){var r=Ae,n=Zt(),o=e(),i=!fr(n.memoizedState,o);if(i&&(n.memoizedState=o,Pt=!0),n=n.queue,_h(iv.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||qe!==null&&qe.memoizedState.tag&1){if(r.flags|=2048,Ha(9,ov.bind(null,r,n,o,e),void 0,null),Ve===null)throw Error(b(349));(co&30)!==0||nv(r,e,o)}return o}function nv(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Ae.updateQueue,e===null?(e={lastEffect:null,stores:null},Ae.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function ov(t,e,r,n){e.value=r,e.getSnapshot=n,av(e)&&sv(t)}function iv(t,e,r){return r(function(){av(e)&&sv(t)})}function av(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!fr(t,r)}catch{return!0}}function sv(t){var e=Zr(t,1);e!==null&&dr(e,t,1,-1)}function Wf(t){var e=yr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:t},e.queue=t,t=t.dispatch=Iw.bind(null,Ae,t),[e.memoizedState,t]}function Ha(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Ae.updateQueue,e===null?(e={lastEffect:null,stores:null},Ae.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function cv(){return Zt().memoizedState}function zs(t,e,r,n){var o=yr();Ae.flags|=t,o.memoizedState=Ha(1|e,r,void 0,n===void 0?null:n)}function al(t,e,r,n){var o=Zt();n=n===void 0?null:n;var i=void 0;if($e!==null){var a=$e.memoizedState;if(i=a.destroy,n!==null&&mh(n,a.deps)){o.memoizedState=Ha(e,r,i,n);return}}Ae.flags|=t,o.memoizedState=Ha(1|e,r,i,n)}function Yf(t,e){return zs(8390656,8,t,e)}function _h(t,e){return al(2048,8,t,e)}function lv(t,e){return al(4,2,t,e)}function uv(t,e){return al(4,4,t,e)}function dv(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function hv(t,e,r){return r=r!=null?r.concat([t]):null,al(4,4,dv.bind(null,e,t),r)}function wh(){}function fv(t,e){var r=Zt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&mh(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function pv(t,e){var r=Zt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&mh(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function gv(t,e,r){return(co&21)===0?(t.baseState&&(t.baseState=!1,Pt=!0),t.memoizedState=r):(fr(r,e)||(r=ym(),Ae.lanes|=r,lo|=r,t.baseState=!0),e)}function Tw(t,e){var r=ue;ue=r!==0&&4>r?r:4,t(!0);var n=Wl.transition;Wl.transition={};try{t(!1),e()}finally{ue=r,Wl.transition=n}}function mv(){return Zt().memoizedState}function bw(t,e,r){var n=An(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},vv(t))yv(e,r);else if(r=Wm(t,e,r,n),r!==null){var o=St();dr(r,t,n,o),_v(r,e,n)}}function Iw(t,e,r){var n=An(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(vv(t))yv(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,fr(s,a)){var c=e.interleaved;c===null?(o.next=o,dh(e)):(o.next=c.next,c.next=o),e.interleaved=o;return}}catch{}finally{}r=Wm(t,e,o,n),r!==null&&(o=St(),dr(r,t,n,o),_v(r,e,n))}}function vv(t){var e=t.alternate;return t===Ae||e!==null&&e===Ae}function yv(t,e){pa=wc=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function _v(t,e,r){if((r&4194240)!==0){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Jd(t,r)}}var Ec={readContext:Xt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},kw={readContext:Xt,useCallback:function(t,e){return yr().memoizedState=[t,e===void 0?null:e],t},useContext:Xt,useEffect:Yf,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,zs(4194308,4,dv.bind(null,e,t),r)},useLayoutEffect:function(t,e){return zs(4194308,4,t,e)},useInsertionEffect:function(t,e){return zs(4,2,t,e)},useMemo:function(t,e){var r=yr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=yr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=bw.bind(null,Ae,t),[n.memoizedState,t]},useRef:function(t){var e=yr();return t={current:t},e.memoizedState=t},useState:Wf,useDebugValue:wh,useDeferredValue:function(t){return yr().memoizedState=t},useTransition:function(){var t=Wf(!1),e=t[0];return t=Tw.bind(null,t[1]),yr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Ae,o=yr();if(Te){if(r===void 0)throw Error(b(407));r=r()}else{if(r=e(),Ve===null)throw Error(b(349));(co&30)!==0||nv(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,Yf(iv.bind(null,n,i,t),[t]),n.flags|=2048,Ha(9,ov.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=yr(),e=Ve.identifierPrefix;if(Te){var r=jr,n=zr;r=(n&~(1<<32-ur(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=La++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=Sw++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Aw={readContext:Xt,useCallback:fv,useContext:Xt,useEffect:_h,useImperativeHandle:hv,useInsertionEffect:lv,useLayoutEffect:uv,useMemo:pv,useReducer:Yl,useRef:cv,useState:function(){return Yl(Da)},useDebugValue:wh,useDeferredValue:function(t){var e=Zt();return gv(e,$e.memoizedState,t)},useTransition:function(){var t=Yl(Da)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:tv,useSyncExternalStore:rv,useId:mv,unstable_isNewReconciler:!1},Rw={readContext:Xt,useCallback:fv,useContext:Xt,useEffect:_h,useImperativeHandle:hv,useInsertionEffect:lv,useLayoutEffect:uv,useMemo:pv,useReducer:Ql,useRef:cv,useState:function(){return Ql(Da)},useDebugValue:wh,useDeferredValue:function(t){var e=Zt();return $e===null?e.memoizedState=t:gv(e,$e.memoizedState,t)},useTransition:function(){var t=Ql(Da)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:tv,useSyncExternalStore:rv,useId:mv,unstable_isNewReconciler:!1};function gi(t,e){try{var r="",n=e;do r+=n_(n),n=n.return;while(n);var o=r}catch(i){o=`
|
|
31
31
|
Error generating stack: `+i.message+`
|
|
32
|
-
`+i.stack}return{value:t,source:e,stack:o,digest:null}}function Gl(t,e,r){return{value:t,source:null,stack:r!=null?r:null,digest:e!=null?e:null}}function Xu(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var Aw=typeof WeakMap=="function"?WeakMap:Map;function yv(t,e,r){r=Kr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){_c||(_c=!0,cd=n),Xu(t,e)},r}function _v(t,e,r){r=Kr(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var o=e.value;r.payload=function(){return n(o)},r.callback=function(){Xu(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Xu(t,e),typeof n!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Wf(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new Aw;var o=new Set;n.set(e,o)}else o=n.get(e),o===void 0&&(o=new Set,n.set(e,o));o.has(r)||(o.add(r),t=jw.bind(null,t,e,r),e.then(t,t))}function Yf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Qf(t,e,r,n,o){return(t.mode&1)===0?(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Kr(-1,1),e.tag=2,In(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var Rw=on.ReactCurrentOwner,At=!1;function yt(t,e,r,n){e.child=t===null?Jm(e,null,r,n):fi(e,t.child,r,n)}function Jf(t,e,r,n,o){r=r.render;var i=e.ref;return oi(e,o),n=gh(t,e,r,n,i,o),r=mh(),t!==null&&!At?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,en(t,e,o)):(Te&&r&&nh(e),e.flags|=1,yt(t,e,n,o),e.child)}function Xf(t,e,r,n,o){if(t===null){var i=r.type;return typeof i=="function"&&!Ih(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,wv(t,e,i,n,o)):(t=js(r.type,null,n,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,(t.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Aa,r(a,n)&&t.ref===e.ref)return en(t,e,o)}return e.flags|=1,t=Rn(i,n),t.ref=e.ref,t.return=e,e.child=t}function wv(t,e,r,n,o){if(t!==null){var i=t.memoizedProps;if(Aa(i,n)&&t.ref===e.ref)if(At=!1,e.pendingProps=n=i,(t.lanes&o)!==0)(t.flags&131072)!==0&&(At=!0);else return e.lanes=t.lanes,en(t,e,o)}return Zu(t,e,r,n,o)}function Ev(t,e,r){var n=e.pendingProps,o=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if((e.mode&1)===0)e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Go,Ut),Ut|=r;else{if((r&1073741824)===0)return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ye(Go,Ut),Ut|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ye(Go,Ut),Ut|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,ye(Go,Ut),Ut|=n;return yt(t,e,o,r),e.child}function Cv(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Zu(t,e,r,n,o){var i=Pt(r)?ao:mt.current;return i=di(e,i),oi(e,o),r=gh(t,e,r,n,i,o),n=mh(),t!==null&&!At?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,en(t,e,o)):(Te&&n&&nh(e),e.flags|=1,yt(t,e,r,o),e.child)}function Zf(t,e,r,n,o){if(Pt(r)){var i=!0;lc(e)}else i=!1;if(oi(e,o),e.stateNode===null)Fs(t,e),Ym(e,r,n),Ju(e,r,n,o),n=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=Xt(l):(l=Pt(r)?ao:mt.current,l=di(e,l));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&qf(e,a,n,l),pn=!1;var h=e.memoizedState;a.state=h,pc(e,n,a,o),c=e.memoizedState,s!==n||h!==c||Rt.current||pn?(typeof u=="function"&&(Qu(e,r,u,n),c=e.memoizedState),(s=pn||Bf(e,r,s,n,h,c,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,Vm(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:ir(e.type,s),a.props=l,d=e.pendingProps,h=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=Xt(c):(c=Pt(r)?ao:mt.current,c=di(e,c));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==c)&&qf(e,a,n,c),pn=!1,h=e.memoizedState,a.state=h,pc(e,n,a,o);var m=e.memoizedState;s!==d||h!==m||Rt.current||pn?(typeof f=="function"&&(Qu(e,r,f,n),m=e.memoizedState),(l=pn||Bf(e,r,l,n,h,m,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=m),a.props=n,a.state=m,a.context=c,n=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=!1)}return ed(t,e,r,n,i,o)}function ed(t,e,r,n,o,i){Cv(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return o&&Hf(e,r,!1),en(t,e,i);n=e.stateNode,Rw.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=fi(e,t.child,null,i),e.child=fi(e,null,s,i)):yt(t,e,s,i),e.memoizedState=n.state,o&&Hf(e,r,!0),e.child}function Sv(t){var e=t.stateNode;e.pendingContext?Df(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Df(t,e.context,!1),dh(t,e.containerInfo)}function ep(t,e,r,n,o){return hi(),ih(o),e.flags|=256,yt(t,e,r,n),e.child}var td={dehydrated:null,treeContext:null,retryLane:0};function rd(t){return{baseLanes:t,cachePool:null,transitions:null}}function Tv(t,e,r){var n=e.pendingProps,o=ke.current,i=!1,a=(e.flags&128)!==0,s;if((s=a)||(s=t!==null&&t.memoizedState===null?!1:(o&2)!==0),s?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(o|=1),ye(ke,o&1),t===null)return Wu(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((e.mode&1)===0?e.lanes=1:t.data==="$!"?e.lanes=8:e.lanes=1073741824,null):(a=n.children,t=n.fallback,i?(n=e.mode,i=e.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ol(a,n,0,null),t=eo(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=rd(r),e.memoizedState=td,t):_h(e,a));if(o=t.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Pw(t,e,a,n,s,o,r);if(i){i=n.fallback,a=e.mode,o=t.child,s=o.sibling;var c={mode:"hidden",children:n.children};return(a&1)===0&&e.child!==o?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=Rn(o,c),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Rn(s,i):(i=eo(i,a,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,a=t.child.memoizedState,a=a===null?rd(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=td,n}return i=t.child,t=i.sibling,n=Rn(i,{mode:"visible",children:n.children}),(e.mode&1)===0&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function _h(t,e){return e=ol({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function ws(t,e,r,n){return n!==null&&ih(n),fi(e,t.child,null,r),t=_h(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Pw(t,e,r,n,o,i,a){if(r)return e.flags&256?(e.flags&=-257,n=Gl(Error(b(422))),ws(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=ol({mode:"visible",children:n.children},o,0,null),i=eo(i,o,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,(e.mode&1)!==0&&fi(e,t.child,null,a),e.child.memoizedState=rd(a),e.memoizedState=td,i);if((e.mode&1)===0)return ws(t,e,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(b(419)),n=Gl(i,n,void 0),ws(t,e,a,n)}if(s=(a&t.childLanes)!==0,At||s){if(n=Ve,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Zr(t,o),dr(n,t,o,-1))}return bh(),n=Gl(Error(b(421))),ws(t,e,a,n)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=Bw.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,Lt=bn(o.nextSibling),Ht=e,Te=!0,sr=null,t!==null&&(Gt[Vt++]=zr,Gt[Vt++]=jr,Gt[Vt++]=so,zr=t.id,jr=t.overflow,so=e),e=_h(e,n.children),e.flags|=4096,e)}function tp(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Yu(t.return,e,r)}function Vl(t,e,r,n,o){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function bv(t,e,r){var n=e.pendingProps,o=n.revealOrder,i=n.tail;if(yt(t,e,n.children,r),n=ke.current,(n&2)!==0)n=n&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&tp(t,r,e);else if(t.tag===19)tp(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(ye(ke,n),(e.mode&1)===0)e.memoizedState=null;else switch(o){case"forwards":for(r=e.child,o=null;r!==null;)t=r.alternate,t!==null&&gc(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Vl(e,!1,o,r,i);break;case"backwards":for(r=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&gc(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Vl(e,!0,r,null,i);break;case"together":Vl(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Fs(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function en(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),lo|=e.lanes,(r&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(b(153));if(e.child!==null){for(t=e.child,r=Rn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Rn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function Nw(t,e,r){switch(e.tag){case 3:Sv(e),hi();break;case 5:Xm(e);break;case 1:Pt(e.type)&&lc(e);break;case 4:dh(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;ye(hc,n._currentValue),n._currentValue=o;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(ye(ke,ke.current&1),e.flags|=128,null):(r&e.child.childLanes)!==0?Tv(t,e,r):(ye(ke,ke.current&1),t=en(t,e,r),t!==null?t.sibling:null);ye(ke,ke.current&1);break;case 19:if(n=(r&e.childLanes)!==0,(t.flags&128)!==0){if(n)return bv(t,e,r);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(ke,ke.current),n)break;return null;case 22:case 23:return e.lanes=0,Ev(t,e,r)}return en(t,e,r)}var Iv,nd,kv,Av;Iv=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};nd=function(){};kv=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,Yn(Tr.current);var i=null;switch(r){case"input":o=bu(t,o),n=bu(t,n),i=[];break;case"select":o=Re({},o,{value:void 0}),n=Re({},n,{value:void 0}),i=[];break;case"textarea":o=Au(t,o),n=Au(t,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=sc)}Pu(r,n);var a;r=null;for(l in o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var s=o[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Ea.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var c=n[l];if(s=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Ea.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&_e("scroll",t),i||s===c||(i=[])):(i=i||[]).push(l,c))}r&&(i=i||[]).push("style",r);var l=i;(e.updateQueue=l)&&(e.flags|=4)}};Av=function(t,e,r,n){r!==n&&(e.flags|=4)};function zi(t,e){if(!Te)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function Ow(t,e,r){var n=e.pendingProps;switch(oh(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(e),null;case 1:return Pt(e.type)&&cc(),lt(e),null;case 3:return n=e.stateNode,pi(),Ee(Rt),Ee(mt),fh(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ys(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,sr!==null&&(dd(sr),sr=null))),nd(t,e),lt(e),null;case 5:hh(e);var o=Yn(xa.current);if(r=e.type,t!==null&&e.stateNode!=null)kv(t,e,r,n,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(b(166));return lt(e),null}if(t=Yn(Tr.current),ys(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[wr]=e,n[Na]=i,t=(e.mode&1)!==0,r){case"dialog":_e("cancel",n),_e("close",n);break;case"iframe":case"object":case"embed":_e("load",n);break;case"video":case"audio":for(o=0;o<Ji.length;o++)_e(Ji[o],n);break;case"source":_e("error",n);break;case"img":case"image":case"link":_e("error",n),_e("load",n);break;case"details":_e("toggle",n);break;case"input":uf(n,i),_e("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},_e("invalid",n);break;case"textarea":hf(n,i),_e("invalid",n)}Pu(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&vs(n.textContent,s,t),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&vs(n.textContent,s,t),o=["children",""+s]):Ea.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&_e("scroll",n)}switch(r){case"input":ls(n),df(n,i,!0);break;case"textarea":ls(n),ff(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=sc)}n=o,e.updateQueue=n,n!==null&&(e.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=tm(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[wr]=e,t[Na]=n,Iv(t,e,!1,!1),e.stateNode=t;e:{switch(a=Nu(r,n),r){case"dialog":_e("cancel",t),_e("close",t),o=n;break;case"iframe":case"object":case"embed":_e("load",t),o=n;break;case"video":case"audio":for(o=0;o<Ji.length;o++)_e(Ji[o],t);o=n;break;case"source":_e("error",t),o=n;break;case"img":case"image":case"link":_e("error",t),_e("load",t),o=n;break;case"details":_e("toggle",t),o=n;break;case"input":uf(t,n),o=bu(t,n),_e("invalid",t);break;case"option":o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=Re({},n,{value:void 0}),_e("invalid",t);break;case"textarea":hf(t,n),o=Au(t,n),_e("invalid",t);break;default:o=n}Pu(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?om(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&rm(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Ca(t,c):typeof c=="number"&&Ca(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ea.hasOwnProperty(i)?c!=null&&i==="onScroll"&&_e("scroll",t):c!=null&&Bd(t,i,c,a))}switch(r){case"input":ls(t),df(t,n,!1);break;case"textarea":ls(t),ff(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Nn(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?ei(t,!!n.multiple,i,!1):n.defaultValue!=null&&ei(t,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=sc)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return lt(e),null;case 6:if(t&&e.stateNode!=null)Av(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(b(166));if(r=Yn(xa.current),Yn(Tr.current),ys(e)){if(n=e.stateNode,r=e.memoizedProps,n[wr]=e,(i=n.nodeValue!==r)&&(t=Ht,t!==null))switch(t.tag){case 3:vs(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&vs(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[wr]=e,e.stateNode=n}return lt(e),null;case 13:if(Ee(ke),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Te&&Lt!==null&&(e.mode&1)!==0&&(e.flags&128)===0)Km(),hi(),e.flags|=98560,i=!1;else if(i=ys(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(b(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(b(317));i[wr]=e}else hi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;lt(e),i=!1}else sr!==null&&(dd(sr),sr=null),i=!0;if(!i)return e.flags&65536?e:null}return(e.flags&128)!==0?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,(e.mode&1)!==0&&(t===null||(ke.current&1)!==0?ze===0&&(ze=3):bh())),e.updateQueue!==null&&(e.flags|=4),lt(e),null);case 4:return pi(),nd(t,e),t===null&&Ra(e.stateNode.containerInfo),lt(e),null;case 10:return ch(e.type._context),lt(e),null;case 17:return Pt(e.type)&&cc(),lt(e),null;case 19:if(Ee(ke),i=e.memoizedState,i===null)return lt(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)zi(i,!1);else{if(ze!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=gc(t),a!==null){for(e.flags|=128,zi(i,!1),n=a.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)i=r,t=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,t=a.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return ye(ke,ke.current&1|2),e.child}t=t.sibling}i.tail!==null&&Me()>mi&&(e.flags|=128,n=!0,zi(i,!1),e.lanes=4194304)}else{if(!n)if(t=gc(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),zi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Te)return lt(e),null}else 2*Me()-i.renderingStartTime>mi&&r!==1073741824&&(e.flags|=128,n=!0,zi(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Me(),e.sibling=null,r=ke.current,ye(ke,n?r&1|2:r&1),e):(lt(e),null);case 22:case 23:return Th(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&(e.mode&1)!==0?(Ut&1073741824)!==0&&(lt(e),e.subtreeFlags&6&&(e.flags|=8192)):lt(e),null;case 24:return null;case 25:return null}throw Error(b(156,e.tag))}function xw(t,e){switch(oh(e),e.tag){case 1:return Pt(e.type)&&cc(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return pi(),Ee(Rt),Ee(mt),fh(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return hh(e),null;case 13:if(Ee(ke),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(b(340));hi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ee(ke),null;case 4:return pi(),null;case 10:return ch(e.type._context),null;case 22:case 23:return Th(),null;case 24:return null;default:return null}}var Es=!1,pt=!1,Mw=typeof WeakSet=="function"?WeakSet:Set,H=null;function Ko(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Pe(t,e,n)}else r.current=null}function od(t,e,r){try{r()}catch(n){Pe(t,e,n)}}var rp=!1;function Uw(t,e){if(zu=oc,t=Om(),rh(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,c=-1,l=0,u=0,d=t,h=null;t:for(;;){for(var f;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(c=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===r&&++l===o&&(s=a),h===i&&++u===n&&(c=a),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(ju={focusedElem:t,selectionRange:r},oc=!1,H=e;H!==null;)if(e=H,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var m=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,E=m.memoizedState,g=e.stateNode,p=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:ir(e.type,v),E);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(w){Pe(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return m=rp,rp=!1,m}function fa(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&od(e,r,i)}o=o.next}while(o!==n)}}function rl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function id(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function Rv(t){var e=t.alternate;e!==null&&(t.alternate=null,Rv(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[wr],delete e[Na],delete e[Ku],delete e[vw],delete e[yw])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Pv(t){return t.tag===5||t.tag===3||t.tag===4}function np(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Pv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ad(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=sc));else if(n!==4&&(t=t.child,t!==null))for(ad(t,e,r),t=t.sibling;t!==null;)ad(t,e,r),t=t.sibling}function sd(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(sd(t,e,r),t=t.sibling;t!==null;)sd(t,e,r),t=t.sibling}var Xe=null,ar=!1;function un(t,e,r){for(r=r.child;r!==null;)Nv(t,e,r),r=r.sibling}function Nv(t,e,r){if(Sr&&typeof Sr.onCommitFiberUnmount=="function")try{Sr.onCommitFiberUnmount(Wc,r)}catch{}switch(r.tag){case 5:pt||Ko(r,e);case 6:var n=Xe,o=ar;Xe=null,un(t,e,r),Xe=n,ar=o,Xe!==null&&(ar?(t=Xe,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Xe.removeChild(r.stateNode));break;case 18:Xe!==null&&(ar?(t=Xe,r=r.stateNode,t.nodeType===8?$l(t.parentNode,r):t.nodeType===1&&$l(t,r),Ia(t)):$l(Xe,r.stateNode));break;case 4:n=Xe,o=ar,Xe=r.stateNode.containerInfo,ar=!0,un(t,e,r),Xe=n,ar=o;break;case 0:case 11:case 14:case 15:if(!pt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&od(r,e,a),o=o.next}while(o!==n)}un(t,e,r);break;case 1:if(!pt&&(Ko(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Pe(r,e,s)}un(t,e,r);break;case 21:un(t,e,r);break;case 22:r.mode&1?(pt=(n=pt)||r.memoizedState!==null,un(t,e,r),pt=n):un(t,e,r);break;default:un(t,e,r)}}function op(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new Mw),e.forEach(function(n){var o=qw.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}}function tr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=t,a=e,s=a;e:for(;s!==null;){switch(s.tag){case 5:Xe=s.stateNode,ar=!1;break e;case 3:Xe=s.stateNode.containerInfo,ar=!0;break e;case 4:Xe=s.stateNode.containerInfo,ar=!0;break e}s=s.return}if(Xe===null)throw Error(b(160));Nv(i,a,o),Xe=null,ar=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(l){Pe(o,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Ov(e,t),e=e.sibling}function Ov(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(tr(e,t),gr(t),n&4){try{fa(3,t,t.return),rl(3,t)}catch(v){Pe(t,t.return,v)}try{fa(5,t,t.return)}catch(v){Pe(t,t.return,v)}}break;case 1:tr(e,t),gr(t),n&512&&r!==null&&Ko(r,r.return);break;case 5:if(tr(e,t),gr(t),n&512&&r!==null&&Ko(r,r.return),t.flags&32){var o=t.stateNode;try{Ca(o,"")}catch(v){Pe(t,t.return,v)}}if(n&4&&(o=t.stateNode,o!=null)){var i=t.memoizedProps,a=r!==null?r.memoizedProps:i,s=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Zg(o,i),Nu(s,a);var l=Nu(s,i);for(a=0;a<c.length;a+=2){var u=c[a],d=c[a+1];u==="style"?om(o,d):u==="dangerouslySetInnerHTML"?rm(o,d):u==="children"?Ca(o,d):Bd(o,u,d,l)}switch(s){case"input":Iu(o,i);break;case"textarea":em(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?ei(o,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?ei(o,!!i.multiple,i.defaultValue,!0):ei(o,!!i.multiple,i.multiple?[]:"",!1))}o[Na]=i}catch(v){Pe(t,t.return,v)}}break;case 6:if(tr(e,t),gr(t),n&4){if(t.stateNode===null)throw Error(b(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(v){Pe(t,t.return,v)}}break;case 3:if(tr(e,t),gr(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ia(e.containerInfo)}catch(v){Pe(t,t.return,v)}break;case 4:tr(e,t),gr(t);break;case 13:tr(e,t),gr(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ch=Me())),n&4&&op(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(pt=(l=pt)||u,tr(e,t),pt=l):tr(e,t),gr(t),n&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!u&&(t.mode&1)!==0)for(H=t,u=t.child;u!==null;){for(d=H=u;H!==null;){switch(h=H,f=h.child,h.tag){case 0:case 11:case 14:case 15:fa(4,h,h.return);break;case 1:Ko(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){n=h,r=h.return;try{e=n,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(v){Pe(n,r,v)}}break;case 5:Ko(h,h.return);break;case 22:if(h.memoizedState!==null){ap(d);continue}}f!==null?(f.return=h,H=f):ap(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=nm("display",a))}catch(v){Pe(t,t.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(v){Pe(t,t.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:tr(e,t),gr(t),n&4&&op(t);break;case 21:break;default:tr(e,t),gr(t)}}function gr(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(Pv(r)){var n=r;break e}r=r.return}throw Error(b(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Ca(o,""),n.flags&=-33);var i=np(t);sd(t,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=np(t);ad(t,s,a);break;default:throw Error(b(161))}}catch(c){Pe(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Lw(t,e,r){H=t,xv(t)}function xv(t,e,r){for(var n=(t.mode&1)!==0;H!==null;){var o=H,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Es;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||pt;s=Es;var l=pt;if(Es=a,(pt=c)&&!l)for(H=o;H!==null;)a=H,c=a.child,a.tag===22&&a.memoizedState!==null?sp(o):c!==null?(c.return=a,H=c):sp(o);for(;i!==null;)H=i,xv(i),i=i.sibling;H=o,Es=s,pt=l}ip(t)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,H=i):ip(t)}}function ip(t){for(;H!==null;){var e=H;if((e.flags&8772)!==0){var r=e.alternate;try{if((e.flags&8772)!==0)switch(e.tag){case 0:case 11:case 15:pt||rl(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!pt)if(r===null)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:ir(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&jf(e,i,n);break;case 3:var a=e.updateQueue;if(a!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}jf(e,a,r)}break;case 5:var s=e.stateNode;if(r===null&&e.flags&4){r=s;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var u=l.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Ia(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}pt||e.flags&512&&id(e)}catch(h){Pe(e,e.return,h)}}if(e===t){H=null;break}if(r=e.sibling,r!==null){r.return=e.return,H=r;break}H=e.return}}function ap(t){for(;H!==null;){var e=H;if(e===t){H=null;break}var r=e.sibling;if(r!==null){r.return=e.return,H=r;break}H=e.return}}function sp(t){for(;H!==null;){var e=H;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{rl(4,e)}catch(c){Pe(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var o=e.return;try{n.componentDidMount()}catch(c){Pe(e,o,c)}}var i=e.return;try{id(e)}catch(c){Pe(e,i,c)}break;case 5:var a=e.return;try{id(e)}catch(c){Pe(e,a,c)}}}catch(c){Pe(e,e.return,c)}if(e===t){H=null;break}var s=e.sibling;if(s!==null){s.return=e.return,H=s;break}H=e.return}}var Dw=Math.ceil,yc=on.ReactCurrentDispatcher,wh=on.ReactCurrentOwner,Qt=on.ReactCurrentBatchConfig,ne=0,Ve=null,De=null,rt=0,Ut=0,Go=Mn(0),ze=0,Da=null,lo=0,nl=0,Eh=0,pa=null,kt=null,Ch=0,mi=1/0,Hr=null,_c=!1,cd=null,kn=null,Cs=!1,En=null,wc=0,ga=0,ld=null,$s=-1,zs=0;function Et(){return(ne&6)!==0?Me():$s!==-1?$s:$s=Me()}function An(t){return(t.mode&1)===0?1:(ne&2)!==0&&rt!==0?rt&-rt:ww.transition!==null?(zs===0&&(zs=mm()),zs):(t=ue,t!==0||(t=window.event,t=t===void 0?16:Sm(t.type)),t)}function dr(t,e,r,n){if(50<ga)throw ga=0,ld=null,Error(b(185));Ya(t,r,n),((ne&2)===0||t!==Ve)&&(t===Ve&&((ne&2)===0&&(nl|=r),ze===4&&yn(t,rt)),Nt(t,n),r===1&&ne===0&&(e.mode&1)===0&&(mi=Me()+500,Zc&&Un()))}function Nt(t,e){var r=t.callbackNode;w_(t,e);var n=nc(t,t===Ve?rt:0);if(n===0)r!==null&&mf(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&mf(r),e===1)t.tag===0?_w(cp.bind(null,t)):jm(cp.bind(null,t)),gw(function(){(ne&6)===0&&Un()}),r=null;else{switch(vm(n)){case 1:r=Wd;break;case 4:r=pm;break;case 16:r=rc;break;case 536870912:r=gm;break;default:r=rc}r=zv(r,Mv.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Mv(t,e){if($s=-1,zs=0,(ne&6)!==0)throw Error(b(327));var r=t.callbackNode;if(ii()&&t.callbackNode!==r)return null;var n=nc(t,t===Ve?rt:0);if(n===0)return null;if((n&30)!==0||(n&t.expiredLanes)!==0||e)e=Ec(t,n);else{e=n;var o=ne;ne|=2;var i=Lv();(Ve!==t||rt!==e)&&(Hr=null,mi=Me()+500,Zn(t,e));do try{$w();break}catch(s){Uv(t,s)}while(1);sh(),yc.current=i,ne=o,De!==null?e=0:(Ve=null,rt=0,e=ze)}if(e!==0){if(e===2&&(o=Lu(t),o!==0&&(n=o,e=ud(t,o))),e===1)throw r=Da,Zn(t,0),yn(t,n),Nt(t,Me()),r;if(e===6)yn(t,n);else{if(o=t.current.alternate,(n&30)===0&&!Hw(o)&&(e=Ec(t,n),e===2&&(i=Lu(t),i!==0&&(n=i,e=ud(t,i))),e===1))throw r=Da,Zn(t,0),yn(t,n),Nt(t,Me()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(b(345));case 2:Bn(t,kt,Hr);break;case 3:if(yn(t,n),(n&130023424)===n&&(e=Ch+500-Me(),10<e)){if(nc(t,0)!==0)break;if(o=t.suspendedLanes,(o&n)!==n){Et(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=qu(Bn.bind(null,t,kt,Hr),e);break}Bn(t,kt,Hr);break;case 4:if(yn(t,n),(n&4194240)===n)break;for(e=t.eventTimes,o=-1;0<n;){var a=31-ur(n);i=1<<a,a=e[a],a>o&&(o=a),n&=~i}if(n=o,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Dw(n/1960))-n,10<n){t.timeoutHandle=qu(Bn.bind(null,t,kt,Hr),n);break}Bn(t,kt,Hr);break;case 5:Bn(t,kt,Hr);break;default:throw Error(b(329))}}}return Nt(t,Me()),t.callbackNode===r?Mv.bind(null,t):null}function ud(t,e){var r=pa;return t.current.memoizedState.isDehydrated&&(Zn(t,e).flags|=256),t=Ec(t,e),t!==2&&(e=kt,kt=r,e!==null&&dd(e)),t}function dd(t){kt===null?kt=t:kt.push.apply(kt,t)}function Hw(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!fr(i(),o))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yn(t,e){for(e&=~Eh,e&=~nl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-ur(e),n=1<<r;t[r]=-1,e&=~n}}function cp(t){if((ne&6)!==0)throw Error(b(327));ii();var e=nc(t,0);if((e&1)===0)return Nt(t,Me()),null;var r=Ec(t,e);if(t.tag!==0&&r===2){var n=Lu(t);n!==0&&(e=n,r=ud(t,n))}if(r===1)throw r=Da,Zn(t,0),yn(t,e),Nt(t,Me()),r;if(r===6)throw Error(b(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Bn(t,kt,Hr),Nt(t,Me()),null}function Sh(t,e){var r=ne;ne|=1;try{return t(e)}finally{ne=r,ne===0&&(mi=Me()+500,Zc&&Un())}}function uo(t){En!==null&&En.tag===0&&(ne&6)===0&&ii();var e=ne;ne|=1;var r=Qt.transition,n=ue;try{if(Qt.transition=null,ue=1,t)return t()}finally{ue=n,Qt.transition=r,ne=e,(ne&6)===0&&Un()}}function Th(){Ut=Go.current,Ee(Go)}function Zn(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,pw(r)),De!==null)for(r=De.return;r!==null;){var n=r;switch(oh(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&cc();break;case 3:pi(),Ee(Rt),Ee(mt),fh();break;case 5:hh(n);break;case 4:pi();break;case 13:Ee(ke);break;case 19:Ee(ke);break;case 10:ch(n.type._context);break;case 22:case 23:Th()}r=r.return}if(Ve=t,De=t=Rn(t.current,null),rt=Ut=e,ze=0,Da=null,Eh=nl=lo=0,kt=pa=null,Wn!==null){for(e=0;e<Wn.length;e++)if(r=Wn[e],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}Wn=null}return t}function Uv(t,e){do{var r=De;try{if(sh(),Ds.current=vc,mc){for(var n=Ae.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}mc=!1}if(co=0,qe=$e=Ae=null,ha=!1,Ma=0,wh.current=null,r===null||r.return===null){ze=1,Da=e,De=null;break}e:{var i=t,a=r.return,s=r,c=e;if(e=rt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,u=s,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Yf(a);if(f!==null){f.flags&=-257,Qf(f,a,s,i,e),f.mode&1&&Wf(i,l,e),e=f,c=l;var m=e.updateQueue;if(m===null){var v=new Set;v.add(c),e.updateQueue=v}else m.add(c);break e}else{if((e&1)===0){Wf(i,l,e),bh();break e}c=Error(b(426))}}else if(Te&&s.mode&1){var E=Yf(a);if(E!==null){(E.flags&65536)===0&&(E.flags|=256),Qf(E,a,s,i,e),ih(gi(c,s));break e}}i=c=gi(c,s),ze!==4&&(ze=2),pa===null?pa=[i]:pa.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=yv(i,c,e);zf(i,g);break e;case 1:s=c;var p=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(kn===null||!kn.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var w=_v(i,s,e);zf(i,w);break e}}i=i.return}while(i!==null)}Hv(r)}catch(k){e=k,De===r&&r!==null&&(De=r=r.return);continue}break}while(1)}function Lv(){var t=yc.current;return yc.current=vc,t===null?vc:t}function bh(){(ze===0||ze===3||ze===2)&&(ze=4),Ve===null||(lo&268435455)===0&&(nl&268435455)===0||yn(Ve,rt)}function Ec(t,e){var r=ne;ne|=2;var n=Lv();(Ve!==t||rt!==e)&&(Hr=null,Zn(t,e));do try{Fw();break}catch(o){Uv(t,o)}while(1);if(sh(),ne=r,yc.current=n,De!==null)throw Error(b(261));return Ve=null,rt=0,ze}function Fw(){for(;De!==null;)Dv(De)}function $w(){for(;De!==null&&!d_();)Dv(De)}function Dv(t){var e=$v(t.alternate,t,Ut);t.memoizedProps=t.pendingProps,e===null?Hv(t):De=e,wh.current=null}function Hv(t){var e=t;do{var r=e.alternate;if(t=e.return,(e.flags&32768)===0){if(r=Ow(r,e,Ut),r!==null){De=r;return}}else{if(r=xw(r,e),r!==null){r.flags&=32767,De=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ze=6,De=null;return}}if(e=e.sibling,e!==null){De=e;return}De=e=t}while(e!==null);ze===0&&(ze=5)}function Bn(t,e,r){var n=ue,o=Qt.transition;try{Qt.transition=null,ue=1,zw(t,e,r,n)}finally{Qt.transition=o,ue=n}return null}function zw(t,e,r,n){do ii();while(En!==null);if((ne&6)!==0)throw Error(b(327));r=t.finishedWork;var o=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(b(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(E_(t,i),t===Ve&&(De=Ve=null,rt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Cs||(Cs=!0,zv(rc,function(){return ii(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Qt.transition,Qt.transition=null;var a=ue;ue=1;var s=ne;ne|=4,wh.current=null,Uw(t,r),Ov(r,t),sw(ju),oc=!!zu,ju=zu=null,t.current=r,Lw(r),h_(),ne=s,ue=a,Qt.transition=i}else t.current=r;if(Cs&&(Cs=!1,En=t,wc=o),i=t.pendingLanes,i===0&&(kn=null),g_(r.stateNode),Nt(t,Me()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)o=e[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(_c)throw _c=!1,t=cd,cd=null,t;return(wc&1)!==0&&t.tag!==0&&ii(),i=t.pendingLanes,(i&1)!==0?t===ld?ga++:(ga=0,ld=t):ga=0,Un(),null}function ii(){if(En!==null){var t=vm(wc),e=Qt.transition,r=ue;try{if(Qt.transition=null,ue=16>t?16:t,En===null)var n=!1;else{if(t=En,En=null,wc=0,(ne&6)!==0)throw Error(b(331));var o=ne;for(ne|=4,H=t.current;H!==null;){var i=H,a=i.child;if((H.flags&16)!==0){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(H=l;H!==null;){var u=H;switch(u.tag){case 0:case 11:case 15:fa(8,u,i)}var d=u.child;if(d!==null)d.return=u,H=d;else for(;H!==null;){u=H;var h=u.sibling,f=u.return;if(Rv(u),u===l){H=null;break}if(h!==null){h.return=f,H=h;break}H=f}}}var m=i.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}H=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,H=a;else e:for(;H!==null;){if(i=H,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:fa(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,H=g;break e}H=i.return}}var p=t.current;for(H=p;H!==null;){a=H;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,H=y;else e:for(a=p;H!==null;){if(s=H,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:rl(9,s)}}catch(k){Pe(s,s.return,k)}if(s===a){H=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,H=w;break e}H=s.return}}if(ne=o,Un(),Sr&&typeof Sr.onPostCommitFiberRoot=="function")try{Sr.onPostCommitFiberRoot(Wc,t)}catch{}n=!0}return n}finally{ue=r,Qt.transition=e}}return!1}function lp(t,e,r){e=gi(r,e),e=yv(t,e,1),t=In(t,e,1),e=Et(),t!==null&&(Ya(t,1,e),Nt(t,e))}function Pe(t,e,r){if(t.tag===3)lp(t,t,r);else for(;e!==null;){if(e.tag===3){lp(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(kn===null||!kn.has(n))){t=gi(r,t),t=_v(e,t,1),e=In(e,t,1),t=Et(),e!==null&&(Ya(e,1,t),Nt(e,t));break}}e=e.return}}function jw(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=Et(),t.pingedLanes|=t.suspendedLanes&r,Ve===t&&(rt&r)===r&&(ze===4||ze===3&&(rt&130023424)===rt&&500>Me()-Ch?Zn(t,0):Eh|=r),Nt(t,e)}function Fv(t,e){e===0&&((t.mode&1)===0?e=1:(e=hs,hs<<=1,(hs&130023424)===0&&(hs=4194304)));var r=Et();t=Zr(t,e),t!==null&&(Ya(t,e,r),Nt(t,r))}function Bw(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Fv(t,r)}function qw(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,o=t.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(b(314))}n!==null&&n.delete(e),Fv(t,r)}var $v;$v=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Rt.current)At=!0;else{if((t.lanes&r)===0&&(e.flags&128)===0)return At=!1,Nw(t,e,r);At=(t.flags&131072)!==0}else At=!1,Te&&(e.flags&1048576)!==0&&Bm(e,dc,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Fs(t,e),t=e.pendingProps;var o=di(e,mt.current);oi(e,r),o=gh(null,e,n,t,o,r);var i=mh();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Pt(n)?(i=!0,lc(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uh(e),o.updater=el,e.stateNode=o,o._reactInternals=e,Ju(e,n,t,r),e=ed(null,e,n,!0,i,r)):(e.tag=0,Te&&i&&nh(e),yt(null,e,o,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Fs(t,e),t=e.pendingProps,o=n._init,n=o(n._payload),e.type=n,o=e.tag=Gw(n),t=ir(n,t),o){case 0:e=Zu(null,e,n,t,r);break e;case 1:e=Zf(null,e,n,t,r);break e;case 11:e=Jf(null,e,n,t,r);break e;case 14:e=Xf(null,e,n,ir(n.type,t),r);break e}throw Error(b(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),Zu(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),Zf(t,e,n,o,r);case 3:e:{if(Sv(e),t===null)throw Error(b(387));n=e.pendingProps,i=e.memoizedState,o=i.element,Vm(t,e),pc(e,n,null,r);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=gi(Error(b(423)),e),e=ep(t,e,n,r,o);break e}else if(n!==o){o=gi(Error(b(424)),e),e=ep(t,e,n,r,o);break e}else for(Lt=bn(e.stateNode.containerInfo.firstChild),Ht=e,Te=!0,sr=null,r=Jm(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(hi(),n===o){e=en(t,e,r);break e}yt(t,e,n,r)}e=e.child}return e;case 5:return Xm(e),t===null&&Wu(e),n=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Bu(n,o)?a=null:i!==null&&Bu(n,i)&&(e.flags|=32),Cv(t,e),yt(t,e,a,r),e.child;case 6:return t===null&&Wu(e),null;case 13:return Tv(t,e,r);case 4:return dh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=fi(e,null,n,r):yt(t,e,n,r),e.child;case 11:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),Jf(t,e,n,o,r);case 7:return yt(t,e,e.pendingProps,r),e.child;case 8:return yt(t,e,e.pendingProps.children,r),e.child;case 12:return yt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,o=e.pendingProps,i=e.memoizedProps,a=o.value,ye(hc,n._currentValue),n._currentValue=a,i!==null)if(fr(i.value,a)){if(i.children===o.children&&!Rt.current){e=en(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Kr(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Yu(i.return,r,e),s.lanes|=r;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(b(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Yu(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}yt(t,e,o.children,r),e=e.child}return e;case 9:return o=e.type,n=e.pendingProps.children,oi(e,r),o=Xt(o),n=n(o),e.flags|=1,yt(t,e,n,r),e.child;case 14:return n=e.type,o=ir(n,e.pendingProps),o=ir(n.type,o),Xf(t,e,n,o,r);case 15:return wv(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),Fs(t,e),e.tag=1,Pt(n)?(t=!0,lc(e)):t=!1,oi(e,r),Ym(e,n,o),Ju(e,n,o,r),ed(null,e,n,!0,t,r);case 19:return bv(t,e,r);case 22:return Ev(t,e,r)}throw Error(b(156,e.tag))};function zv(t,e){return fm(t,e)}function Kw(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(t,e,r,n){return new Kw(t,e,r,n)}function Ih(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Gw(t){if(typeof t=="function")return Ih(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Kd)return 11;if(t===Gd)return 14}return 2}function Rn(t,e){var r=t.alternate;return r===null?(r=Yt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function js(t,e,r,n,o,i){var a=2;if(n=t,typeof t=="function")Ih(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Lo:return eo(r.children,o,i,e);case qd:a=8,o|=8;break;case Eu:return t=Yt(12,r,e,o|2),t.elementType=Eu,t.lanes=i,t;case Cu:return t=Yt(13,r,e,o),t.elementType=Cu,t.lanes=i,t;case Su:return t=Yt(19,r,e,o),t.elementType=Su,t.lanes=i,t;case Qg:return ol(r,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Wg:a=10;break e;case Yg:a=9;break e;case Kd:a=11;break e;case Gd:a=14;break e;case fn:a=16,n=null;break e}throw Error(b(130,t==null?t:typeof t,""))}return e=Yt(a,r,e,o),e.elementType=t,e.type=n,e.lanes=i,e}function eo(t,e,r,n){return t=Yt(7,t,n,e),t.lanes=r,t}function ol(t,e,r,n){return t=Yt(22,t,n,e),t.elementType=Qg,t.lanes=r,t.stateNode={isHidden:!1},t}function Wl(t,e,r){return t=Yt(6,t,null,e),t.lanes=r,t}function Yl(t,e,r){return e=Yt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Vw(t,e,r,n,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rl(0),this.expirationTimes=Rl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rl(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function kh(t,e,r,n,o,i,a,s,c){return t=new Vw(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Yt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},uh(i),t}function Ww(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Uo,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function jv(t){if(!t)return On;t=t._reactInternals;e:{if(_o(t)!==t||t.tag!==1)throw Error(b(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Pt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(b(171))}if(t.tag===1){var r=t.type;if(Pt(r))return zm(t,r,e)}return e}function Bv(t,e,r,n,o,i,a,s,c){return t=kh(r,n,!0,t,o,i,a,s,c),t.context=jv(null),r=t.current,n=Et(),o=An(r),i=Kr(n,o),i.callback=e!=null?e:null,In(r,i,o),t.current.lanes=o,Ya(t,o,n),Nt(t,n),t}function il(t,e,r,n){var o=e.current,i=Et(),a=An(o);return r=jv(r),e.context===null?e.context=r:e.pendingContext=r,e=Kr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=In(o,e,a),t!==null&&(dr(t,o,a,i),Ls(t,o,a)),a}function Cc(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function up(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function Ah(t,e){up(t,e),(t=t.alternate)&&up(t,e)}function Yw(){return null}var qv=typeof reportError=="function"?reportError:function(t){console.error(t)};function Rh(t){this._internalRoot=t}al.prototype.render=Rh.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(b(409));il(t,e,null,null)};al.prototype.unmount=Rh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;uo(function(){il(null,t,null,null)}),e[Xr]=null}};function al(t){this._internalRoot=t}al.prototype.unstable_scheduleHydration=function(t){if(t){var e=wm();t={blockedOn:null,target:t,priority:e};for(var r=0;r<vn.length&&e!==0&&e<vn[r].priority;r++);vn.splice(r,0,t),r===0&&Cm(t)}};function Ph(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function sl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function dp(){}function Qw(t,e,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=Cc(a);i.call(l)}}var a=Bv(e,n,t,0,null,!1,!1,"",dp);return t._reactRootContainer=a,t[Xr]=a.current,Ra(t.nodeType===8?t.parentNode:t),uo(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=Cc(c);s.call(l)}}var c=kh(t,0,!1,null,null,!1,!1,"",dp);return t._reactRootContainer=c,t[Xr]=c.current,Ra(t.nodeType===8?t.parentNode:t),uo(function(){il(e,c,r,n)}),c}function cl(t,e,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var c=Cc(a);s.call(c)}}il(e,a,t,o)}else a=Qw(r,e,t,o,n);return Cc(a)}ym=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=Qi(e.pendingLanes);r!==0&&(Yd(e,r|1),Nt(e,Me()),(ne&6)===0&&(mi=Me()+500,Un()))}break;case 13:uo(function(){var n=Zr(t,1);if(n!==null){var o=Et();dr(n,t,1,o)}}),Ah(t,1)}};Qd=function(t){if(t.tag===13){var e=Zr(t,134217728);if(e!==null){var r=Et();dr(e,t,134217728,r)}Ah(t,134217728)}};_m=function(t){if(t.tag===13){var e=An(t),r=Zr(t,e);if(r!==null){var n=Et();dr(r,t,e,n)}Ah(t,e)}};wm=function(){return ue};Em=function(t,e){var r=ue;try{return ue=t,e()}finally{ue=r}};xu=function(t,e,r){switch(e){case"input":if(Iu(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var o=Xc(n);if(!o)throw Error(b(90));Xg(n),Iu(n,o)}}}break;case"textarea":em(t,r);break;case"select":e=r.value,e!=null&&ei(t,!!r.multiple,e,!1)}};sm=Sh;cm=uo;var Jw={usingClientEntryPoint:!1,Events:[Ja,$o,Xc,im,am,Sh]},ji={findFiberByHostInstance:Vn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Xw={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=dm(t),t===null?null:t.stateNode},findFiberByHostInstance:ji.findFiberByHostInstance||Yw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ss.isDisabled&&Ss.supportsFiber)try{Wc=Ss.inject(Xw),Sr=Ss}catch{}}zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jw;zt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ph(e))throw Error(b(200));return Ww(t,e,null,r)};zt.createRoot=function(t,e){if(!Ph(t))throw Error(b(299));var r=!1,n="",o=qv;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=kh(t,1,!1,null,null,r,!1,n,o),t[Xr]=e.current,Ra(t.nodeType===8?t.parentNode:t),new Rh(e)};zt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(b(188)):(t=Object.keys(t).join(","),Error(b(268,t)));return t=dm(e),t=t===null?null:t.stateNode,t};zt.flushSync=function(t){return uo(t)};zt.hydrate=function(t,e,r){if(!sl(e))throw Error(b(200));return cl(null,t,e,!0,r)};zt.hydrateRoot=function(t,e,r){if(!Ph(t))throw Error(b(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=qv;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=Bv(e,null,t,1,r!=null?r:null,o,!1,i,a),t[Xr]=e.current,Ra(t),n)for(t=0;t<n.length;t++)r=n[t],o=r._getVersion,o=o(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,o]:e.mutableSourceEagerHydrationData.push(r,o);return new al(e)};zt.render=function(t,e,r){if(!sl(e))throw Error(b(200));return cl(null,t,e,!1,r)};zt.unmountComponentAtNode=function(t){if(!sl(t))throw Error(b(40));return t._reactRootContainer?(uo(function(){cl(null,null,t,!1,function(){t._reactRootContainer=null,t[Xr]=null})}),!0):!1};zt.unstable_batchedUpdates=Sh;zt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!sl(r))throw Error(b(200));if(t==null||t._reactInternals===void 0)throw Error(b(38));return cl(t,e,r,!1,n)};zt.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}e(),t.exports=zt})(Bg);var hp=Bg.exports;_u.createRoot=hp.createRoot,_u.hydrateRoot=hp.hydrateRoot;class Zw{constructor(e){this.domain=e,this.level=1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((r,n)=>[...r,n,`
|
|
33
|
-
`],[])]}debug(...e){this.level>3&&console.debug(...this._createMessage(e))}info(...e){this.level>2&&console.info(...this._createMessage(e))}warn(...e){this.level>1&&console.warn(...this._createMessage(e))}error(...e){this.level>0&&console.error(...this._createMessage(e))}}class
|
|
32
|
+
`+i.stack}return{value:t,source:e,stack:o,digest:null}}function Jl(t,e,r){return{value:t,source:null,stack:r!=null?r:null,digest:e!=null?e:null}}function td(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var Pw=typeof WeakMap=="function"?WeakMap:Map;function wv(t,e,r){r=Kr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Sc||(Sc=!0,dd=n),td(t,e)},r}function Ev(t,e,r){r=Kr(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var o=e.value;r.payload=function(){return n(o)},r.callback=function(){td(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){td(t,e),typeof n!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Qf(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new Pw;var o=new Set;n.set(e,o)}else o=n.get(e),o===void 0&&(o=new Set,n.set(e,o));o.has(r)||(o.add(r),t=qw.bind(null,t,e,r),e.then(t,t))}function Jf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Xf(t,e,r,n,o){return(t.mode&1)===0?(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Kr(-1,1),e.tag=2,In(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var Nw=on.ReactCurrentOwner,Pt=!1;function wt(t,e,r,n){e.child=t===null?Zm(e,null,r,n):fi(e,t.child,r,n)}function Zf(t,e,r,n,o){r=r.render;var i=e.ref;return oi(e,o),n=vh(t,e,r,n,i,o),r=yh(),t!==null&&!Pt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,en(t,e,o)):(Te&&r&&ih(e),e.flags|=1,wt(t,e,n,o),e.child)}function ep(t,e,r,n,o){if(t===null){var i=r.type;return typeof i=="function"&&!Ah(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,Cv(t,e,i,n,o)):(t=Ks(r.type,null,n,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,(t.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Pa,r(a,n)&&t.ref===e.ref)return en(t,e,o)}return e.flags|=1,t=Rn(i,n),t.ref=e.ref,t.return=e,e.child=t}function Cv(t,e,r,n,o){if(t!==null){var i=t.memoizedProps;if(Pa(i,n)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=n=i,(t.lanes&o)!==0)(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,en(t,e,o)}return rd(t,e,r,n,o)}function Sv(t,e,r){var n=e.pendingProps,o=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if((e.mode&1)===0)e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Go,Ut),Ut|=r;else{if((r&1073741824)===0)return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ye(Go,Ut),Ut|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ye(Go,Ut),Ut|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,ye(Go,Ut),Ut|=n;return wt(t,e,o,r),e.child}function Tv(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function rd(t,e,r,n,o){var i=Ot(r)?ao:vt.current;return i=di(e,i),oi(e,o),r=vh(t,e,r,n,i,o),n=yh(),t!==null&&!Pt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,en(t,e,o)):(Te&&n&&ih(e),e.flags|=1,wt(t,e,r,o),e.child)}function tp(t,e,r,n,o){if(Ot(r)){var i=!0;fc(e)}else i=!1;if(oi(e,o),e.stateNode===null)js(t,e),Jm(e,r,n),ed(e,r,n,o),n=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=Xt(l):(l=Ot(r)?ao:vt.current,l=di(e,l));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&Gf(e,a,n,l),pn=!1;var h=e.memoizedState;a.state=h,yc(e,n,a,o),c=e.memoizedState,s!==n||h!==c||Nt.current||pn?(typeof u=="function"&&(Zu(e,r,u,n),c=e.memoizedState),(s=pn||Kf(e,r,s,n,h,c,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,Ym(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:ir(e.type,s),a.props=l,d=e.pendingProps,h=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=Xt(c):(c=Ot(r)?ao:vt.current,c=di(e,c));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==c)&&Gf(e,a,n,c),pn=!1,h=e.memoizedState,a.state=h,yc(e,n,a,o);var m=e.memoizedState;s!==d||h!==m||Nt.current||pn?(typeof f=="function"&&(Zu(e,r,f,n),m=e.memoizedState),(l=pn||Kf(e,r,l,n,h,m,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=m),a.props=n,a.state=m,a.context=c,n=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=!1)}return nd(t,e,r,n,i,o)}function nd(t,e,r,n,o,i){Tv(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return o&&$f(e,r,!1),en(t,e,i);n=e.stateNode,Nw.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=fi(e,t.child,null,i),e.child=fi(e,null,s,i)):wt(t,e,s,i),e.memoizedState=n.state,o&&$f(e,r,!0),e.child}function bv(t){var e=t.stateNode;e.pendingContext?Ff(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Ff(t,e.context,!1),fh(t,e.containerInfo)}function rp(t,e,r,n,o){return hi(),sh(o),e.flags|=256,wt(t,e,r,n),e.child}var od={dehydrated:null,treeContext:null,retryLane:0};function id(t){return{baseLanes:t,cachePool:null,transitions:null}}function Iv(t,e,r){var n=e.pendingProps,o=ke.current,i=!1,a=(e.flags&128)!==0,s;if((s=a)||(s=t!==null&&t.memoizedState===null?!1:(o&2)!==0),s?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(o|=1),ye(ke,o&1),t===null)return Ju(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((e.mode&1)===0?e.lanes=1:t.data==="$!"?e.lanes=8:e.lanes=1073741824,null):(a=n.children,t=n.fallback,i?(n=e.mode,i=e.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ll(a,n,0,null),t=eo(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=id(r),e.memoizedState=od,t):Eh(e,a));if(o=t.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Ow(t,e,a,n,s,o,r);if(i){i=n.fallback,a=e.mode,o=t.child,s=o.sibling;var c={mode:"hidden",children:n.children};return(a&1)===0&&e.child!==o?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=Rn(o,c),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Rn(s,i):(i=eo(i,a,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,a=t.child.memoizedState,a=a===null?id(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=od,n}return i=t.child,t=i.sibling,n=Rn(i,{mode:"visible",children:n.children}),(e.mode&1)===0&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function Eh(t,e){return e=ll({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Cs(t,e,r,n){return n!==null&&sh(n),fi(e,t.child,null,r),t=Eh(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Ow(t,e,r,n,o,i,a){if(r)return e.flags&256?(e.flags&=-257,n=Jl(Error(b(422))),Cs(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=ll({mode:"visible",children:n.children},o,0,null),i=eo(i,o,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,(e.mode&1)!==0&&fi(e,t.child,null,a),e.child.memoizedState=id(a),e.memoizedState=od,i);if((e.mode&1)===0)return Cs(t,e,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(b(419)),n=Jl(i,n,void 0),Cs(t,e,a,n)}if(s=(a&t.childLanes)!==0,Pt||s){if(n=Ve,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Zr(t,o),dr(n,t,o,-1))}return kh(),n=Jl(Error(b(421))),Cs(t,e,a,n)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=Kw.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,Lt=bn(o.nextSibling),Ht=e,Te=!0,sr=null,t!==null&&(Gt[Vt++]=zr,Gt[Vt++]=jr,Gt[Vt++]=so,zr=t.id,jr=t.overflow,so=e),e=Eh(e,n.children),e.flags|=4096,e)}function np(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Xu(t.return,e,r)}function Xl(t,e,r,n,o){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function kv(t,e,r){var n=e.pendingProps,o=n.revealOrder,i=n.tail;if(wt(t,e,n.children,r),n=ke.current,(n&2)!==0)n=n&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&np(t,r,e);else if(t.tag===19)np(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(ye(ke,n),(e.mode&1)===0)e.memoizedState=null;else switch(o){case"forwards":for(r=e.child,o=null;r!==null;)t=r.alternate,t!==null&&_c(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Xl(e,!1,o,r,i);break;case"backwards":for(r=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&_c(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Xl(e,!0,r,null,i);break;case"together":Xl(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function js(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function en(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),lo|=e.lanes,(r&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(b(153));if(e.child!==null){for(t=e.child,r=Rn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Rn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function xw(t,e,r){switch(e.tag){case 3:bv(e),hi();break;case 5:ev(e);break;case 1:Ot(e.type)&&fc(e);break;case 4:fh(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;ye(mc,n._currentValue),n._currentValue=o;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(ye(ke,ke.current&1),e.flags|=128,null):(r&e.child.childLanes)!==0?Iv(t,e,r):(ye(ke,ke.current&1),t=en(t,e,r),t!==null?t.sibling:null);ye(ke,ke.current&1);break;case 19:if(n=(r&e.childLanes)!==0,(t.flags&128)!==0){if(n)return kv(t,e,r);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(ke,ke.current),n)break;return null;case 22:case 23:return e.lanes=0,Sv(t,e,r)}return en(t,e,r)}var Av,ad,Rv,Pv;Av=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ad=function(){};Rv=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,Yn(Tr.current);var i=null;switch(r){case"input":o=Au(t,o),n=Au(t,n),i=[];break;case"select":o=Re({},o,{value:void 0}),n=Re({},n,{value:void 0}),i=[];break;case"textarea":o=Nu(t,o),n=Nu(t,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=dc)}xu(r,n);var a;r=null;for(l in o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var s=o[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Sa.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var c=n[l];if(s=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Sa.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&_e("scroll",t),i||s===c||(i=[])):(i=i||[]).push(l,c))}r&&(i=i||[]).push("style",r);var l=i;(e.updateQueue=l)&&(e.flags|=4)}};Pv=function(t,e,r,n){r!==n&&(e.flags|=4)};function zi(t,e){if(!Te)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function Mw(t,e,r){var n=e.pendingProps;switch(ah(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(e),null;case 1:return Ot(e.type)&&hc(),lt(e),null;case 3:return n=e.stateNode,pi(),Ee(Nt),Ee(vt),gh(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ws(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,sr!==null&&(pd(sr),sr=null))),ad(t,e),lt(e),null;case 5:ph(e);var o=Yn(Ua.current);if(r=e.type,t!==null&&e.stateNode!=null)Rv(t,e,r,n,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(b(166));return lt(e),null}if(t=Yn(Tr.current),ws(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[wr]=e,n[xa]=i,t=(e.mode&1)!==0,r){case"dialog":_e("cancel",n),_e("close",n);break;case"iframe":case"object":case"embed":_e("load",n);break;case"video":case"audio":for(o=0;o<Xi.length;o++)_e(Xi[o],n);break;case"source":_e("error",n);break;case"img":case"image":case"link":_e("error",n),_e("load",n);break;case"details":_e("toggle",n);break;case"input":hf(n,i),_e("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},_e("invalid",n);break;case"textarea":pf(n,i),_e("invalid",n)}xu(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&_s(n.textContent,s,t),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&_s(n.textContent,s,t),o=["children",""+s]):Sa.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&_e("scroll",n)}switch(r){case"input":ds(n),ff(n,i,!0);break;case"textarea":ds(n),gf(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=dc)}n=o,e.updateQueue=n,n!==null&&(e.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=nm(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[wr]=e,t[xa]=n,Av(t,e,!1,!1),e.stateNode=t;e:{switch(a=Mu(r,n),r){case"dialog":_e("cancel",t),_e("close",t),o=n;break;case"iframe":case"object":case"embed":_e("load",t),o=n;break;case"video":case"audio":for(o=0;o<Xi.length;o++)_e(Xi[o],t);o=n;break;case"source":_e("error",t),o=n;break;case"img":case"image":case"link":_e("error",t),_e("load",t),o=n;break;case"details":_e("toggle",t),o=n;break;case"input":hf(t,n),o=Au(t,n),_e("invalid",t);break;case"option":o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=Re({},n,{value:void 0}),_e("invalid",t);break;case"textarea":pf(t,n),o=Nu(t,n),_e("invalid",t);break;default:o=n}xu(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?am(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&om(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Ta(t,c):typeof c=="number"&&Ta(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Sa.hasOwnProperty(i)?c!=null&&i==="onScroll"&&_e("scroll",t):c!=null&&Kd(t,i,c,a))}switch(r){case"input":ds(t),ff(t,n,!1);break;case"textarea":ds(t),gf(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Nn(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?ei(t,!!n.multiple,i,!1):n.defaultValue!=null&&ei(t,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=dc)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return lt(e),null;case 6:if(t&&e.stateNode!=null)Pv(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(b(166));if(r=Yn(Ua.current),Yn(Tr.current),ws(e)){if(n=e.stateNode,r=e.memoizedProps,n[wr]=e,(i=n.nodeValue!==r)&&(t=Ht,t!==null))switch(t.tag){case 3:_s(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&_s(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[wr]=e,e.stateNode=n}return lt(e),null;case 13:if(Ee(ke),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Te&&Lt!==null&&(e.mode&1)!==0&&(e.flags&128)===0)Vm(),hi(),e.flags|=98560,i=!1;else if(i=ws(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(b(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(b(317));i[wr]=e}else hi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;lt(e),i=!1}else sr!==null&&(pd(sr),sr=null),i=!0;if(!i)return e.flags&65536?e:null}return(e.flags&128)!==0?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,(e.mode&1)!==0&&(t===null||(ke.current&1)!==0?ze===0&&(ze=3):kh())),e.updateQueue!==null&&(e.flags|=4),lt(e),null);case 4:return pi(),ad(t,e),t===null&&Na(e.stateNode.containerInfo),lt(e),null;case 10:return uh(e.type._context),lt(e),null;case 17:return Ot(e.type)&&hc(),lt(e),null;case 19:if(Ee(ke),i=e.memoizedState,i===null)return lt(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)zi(i,!1);else{if(ze!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=_c(t),a!==null){for(e.flags|=128,zi(i,!1),n=a.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)i=r,t=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,t=a.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return ye(ke,ke.current&1|2),e.child}t=t.sibling}i.tail!==null&&Me()>mi&&(e.flags|=128,n=!0,zi(i,!1),e.lanes=4194304)}else{if(!n)if(t=_c(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),zi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Te)return lt(e),null}else 2*Me()-i.renderingStartTime>mi&&r!==1073741824&&(e.flags|=128,n=!0,zi(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Me(),e.sibling=null,r=ke.current,ye(ke,n?r&1|2:r&1),e):(lt(e),null);case 22:case 23:return Ih(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&(e.mode&1)!==0?(Ut&1073741824)!==0&&(lt(e),e.subtreeFlags&6&&(e.flags|=8192)):lt(e),null;case 24:return null;case 25:return null}throw Error(b(156,e.tag))}function Uw(t,e){switch(ah(e),e.tag){case 1:return Ot(e.type)&&hc(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return pi(),Ee(Nt),Ee(vt),gh(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return ph(e),null;case 13:if(Ee(ke),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(b(340));hi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ee(ke),null;case 4:return pi(),null;case 10:return uh(e.type._context),null;case 22:case 23:return Ih(),null;case 24:return null;default:return null}}var Ss=!1,gt=!1,Lw=typeof WeakSet=="function"?WeakSet:Set,H=null;function Ko(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Pe(t,e,n)}else r.current=null}function sd(t,e,r){try{r()}catch(n){Pe(t,e,n)}}var op=!1;function Dw(t,e){if(qu=cc,t=Mm(),oh(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,c=-1,l=0,u=0,d=t,h=null;t:for(;;){for(var f;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(c=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===r&&++l===o&&(s=a),h===i&&++u===n&&(c=a),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ku={focusedElem:t,selectionRange:r},cc=!1,H=e;H!==null;)if(e=H,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var m=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,E=m.memoizedState,g=e.stateNode,p=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:ir(e.type,v),E);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(w){Pe(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return m=op,op=!1,m}function ga(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&sd(e,r,i)}o=o.next}while(o!==n)}}function sl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function cd(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function Nv(t){var e=t.alternate;e!==null&&(t.alternate=null,Nv(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[wr],delete e[xa],delete e[Wu],delete e[_w],delete e[ww])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ov(t){return t.tag===5||t.tag===3||t.tag===4}function ip(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ov(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ld(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=dc));else if(n!==4&&(t=t.child,t!==null))for(ld(t,e,r),t=t.sibling;t!==null;)ld(t,e,r),t=t.sibling}function ud(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(ud(t,e,r),t=t.sibling;t!==null;)ud(t,e,r),t=t.sibling}var Xe=null,ar=!1;function un(t,e,r){for(r=r.child;r!==null;)xv(t,e,r),r=r.sibling}function xv(t,e,r){if(Sr&&typeof Sr.onCommitFiberUnmount=="function")try{Sr.onCommitFiberUnmount(Zc,r)}catch{}switch(r.tag){case 5:gt||Ko(r,e);case 6:var n=Xe,o=ar;Xe=null,un(t,e,r),Xe=n,ar=o,Xe!==null&&(ar?(t=Xe,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Xe.removeChild(r.stateNode));break;case 18:Xe!==null&&(ar?(t=Xe,r=r.stateNode,t.nodeType===8?Kl(t.parentNode,r):t.nodeType===1&&Kl(t,r),Aa(t)):Kl(Xe,r.stateNode));break;case 4:n=Xe,o=ar,Xe=r.stateNode.containerInfo,ar=!0,un(t,e,r),Xe=n,ar=o;break;case 0:case 11:case 14:case 15:if(!gt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&sd(r,e,a),o=o.next}while(o!==n)}un(t,e,r);break;case 1:if(!gt&&(Ko(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Pe(r,e,s)}un(t,e,r);break;case 21:un(t,e,r);break;case 22:r.mode&1?(gt=(n=gt)||r.memoizedState!==null,un(t,e,r),gt=n):un(t,e,r);break;default:un(t,e,r)}}function ap(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new Lw),e.forEach(function(n){var o=Gw.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}}function tr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=t,a=e,s=a;e:for(;s!==null;){switch(s.tag){case 5:Xe=s.stateNode,ar=!1;break e;case 3:Xe=s.stateNode.containerInfo,ar=!0;break e;case 4:Xe=s.stateNode.containerInfo,ar=!0;break e}s=s.return}if(Xe===null)throw Error(b(160));xv(i,a,o),Xe=null,ar=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(l){Pe(o,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Mv(e,t),e=e.sibling}function Mv(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(tr(e,t),gr(t),n&4){try{ga(3,t,t.return),sl(3,t)}catch(v){Pe(t,t.return,v)}try{ga(5,t,t.return)}catch(v){Pe(t,t.return,v)}}break;case 1:tr(e,t),gr(t),n&512&&r!==null&&Ko(r,r.return);break;case 5:if(tr(e,t),gr(t),n&512&&r!==null&&Ko(r,r.return),t.flags&32){var o=t.stateNode;try{Ta(o,"")}catch(v){Pe(t,t.return,v)}}if(n&4&&(o=t.stateNode,o!=null)){var i=t.memoizedProps,a=r!==null?r.memoizedProps:i,s=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&tm(o,i),Mu(s,a);var l=Mu(s,i);for(a=0;a<c.length;a+=2){var u=c[a],d=c[a+1];u==="style"?am(o,d):u==="dangerouslySetInnerHTML"?om(o,d):u==="children"?Ta(o,d):Kd(o,u,d,l)}switch(s){case"input":Ru(o,i);break;case"textarea":rm(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?ei(o,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?ei(o,!!i.multiple,i.defaultValue,!0):ei(o,!!i.multiple,i.multiple?[]:"",!1))}o[xa]=i}catch(v){Pe(t,t.return,v)}}break;case 6:if(tr(e,t),gr(t),n&4){if(t.stateNode===null)throw Error(b(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(v){Pe(t,t.return,v)}}break;case 3:if(tr(e,t),gr(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Aa(e.containerInfo)}catch(v){Pe(t,t.return,v)}break;case 4:tr(e,t),gr(t);break;case 13:tr(e,t),gr(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Th=Me())),n&4&&ap(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(gt=(l=gt)||u,tr(e,t),gt=l):tr(e,t),gr(t),n&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!u&&(t.mode&1)!==0)for(H=t,u=t.child;u!==null;){for(d=H=u;H!==null;){switch(h=H,f=h.child,h.tag){case 0:case 11:case 14:case 15:ga(4,h,h.return);break;case 1:Ko(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){n=h,r=h.return;try{e=n,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(v){Pe(n,r,v)}}break;case 5:Ko(h,h.return);break;case 22:if(h.memoizedState!==null){cp(d);continue}}f!==null?(f.return=h,H=f):cp(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=im("display",a))}catch(v){Pe(t,t.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(v){Pe(t,t.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:tr(e,t),gr(t),n&4&&ap(t);break;case 21:break;default:tr(e,t),gr(t)}}function gr(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(Ov(r)){var n=r;break e}r=r.return}throw Error(b(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Ta(o,""),n.flags&=-33);var i=ip(t);ud(t,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=ip(t);ld(t,s,a);break;default:throw Error(b(161))}}catch(c){Pe(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Hw(t,e,r){H=t,Uv(t)}function Uv(t,e,r){for(var n=(t.mode&1)!==0;H!==null;){var o=H,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Ss;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||gt;s=Ss;var l=gt;if(Ss=a,(gt=c)&&!l)for(H=o;H!==null;)a=H,c=a.child,a.tag===22&&a.memoizedState!==null?lp(o):c!==null?(c.return=a,H=c):lp(o);for(;i!==null;)H=i,Uv(i),i=i.sibling;H=o,Ss=s,gt=l}sp(t)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,H=i):sp(t)}}function sp(t){for(;H!==null;){var e=H;if((e.flags&8772)!==0){var r=e.alternate;try{if((e.flags&8772)!==0)switch(e.tag){case 0:case 11:case 15:gt||sl(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!gt)if(r===null)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:ir(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&qf(e,i,n);break;case 3:var a=e.updateQueue;if(a!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}qf(e,a,r)}break;case 5:var s=e.stateNode;if(r===null&&e.flags&4){r=s;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var u=l.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Aa(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}gt||e.flags&512&&cd(e)}catch(h){Pe(e,e.return,h)}}if(e===t){H=null;break}if(r=e.sibling,r!==null){r.return=e.return,H=r;break}H=e.return}}function cp(t){for(;H!==null;){var e=H;if(e===t){H=null;break}var r=e.sibling;if(r!==null){r.return=e.return,H=r;break}H=e.return}}function lp(t){for(;H!==null;){var e=H;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{sl(4,e)}catch(c){Pe(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var o=e.return;try{n.componentDidMount()}catch(c){Pe(e,o,c)}}var i=e.return;try{cd(e)}catch(c){Pe(e,i,c)}break;case 5:var a=e.return;try{cd(e)}catch(c){Pe(e,a,c)}}}catch(c){Pe(e,e.return,c)}if(e===t){H=null;break}var s=e.sibling;if(s!==null){s.return=e.return,H=s;break}H=e.return}}var Fw=Math.ceil,Cc=on.ReactCurrentDispatcher,Ch=on.ReactCurrentOwner,Qt=on.ReactCurrentBatchConfig,ne=0,Ve=null,De=null,rt=0,Ut=0,Go=Mn(0),ze=0,Fa=null,lo=0,cl=0,Sh=0,ma=null,Rt=null,Th=0,mi=1/0,Hr=null,Sc=!1,dd=null,kn=null,Ts=!1,En=null,Tc=0,va=0,hd=null,Bs=-1,qs=0;function St(){return(ne&6)!==0?Me():Bs!==-1?Bs:Bs=Me()}function An(t){return(t.mode&1)===0?1:(ne&2)!==0&&rt!==0?rt&-rt:Cw.transition!==null?(qs===0&&(qs=ym()),qs):(t=ue,t!==0||(t=window.event,t=t===void 0?16:bm(t.type)),t)}function dr(t,e,r,n){if(50<va)throw va=0,hd=null,Error(b(185));Ja(t,r,n),((ne&2)===0||t!==Ve)&&(t===Ve&&((ne&2)===0&&(cl|=r),ze===4&&yn(t,rt)),xt(t,n),r===1&&ne===0&&(e.mode&1)===0&&(mi=Me()+500,ol&&Un()))}function xt(t,e){var r=t.callbackNode;C_(t,e);var n=sc(t,t===Ve?rt:0);if(n===0)r!==null&&yf(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&yf(r),e===1)t.tag===0?Ew(up.bind(null,t)):qm(up.bind(null,t)),vw(function(){(ne&6)===0&&Un()}),r=null;else{switch(_m(n)){case 1:r=Qd;break;case 4:r=mm;break;case 16:r=ac;break;case 536870912:r=vm;break;default:r=ac}r=Bv(r,Lv.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Lv(t,e){if(Bs=-1,qs=0,(ne&6)!==0)throw Error(b(327));var r=t.callbackNode;if(ii()&&t.callbackNode!==r)return null;var n=sc(t,t===Ve?rt:0);if(n===0)return null;if((n&30)!==0||(n&t.expiredLanes)!==0||e)e=bc(t,n);else{e=n;var o=ne;ne|=2;var i=Hv();(Ve!==t||rt!==e)&&(Hr=null,mi=Me()+500,Zn(t,e));do try{jw();break}catch(s){Dv(t,s)}while(1);lh(),Cc.current=i,ne=o,De!==null?e=0:(Ve=null,rt=0,e=ze)}if(e!==0){if(e===2&&(o=Fu(t),o!==0&&(n=o,e=fd(t,o))),e===1)throw r=Fa,Zn(t,0),yn(t,n),xt(t,Me()),r;if(e===6)yn(t,n);else{if(o=t.current.alternate,(n&30)===0&&!$w(o)&&(e=bc(t,n),e===2&&(i=Fu(t),i!==0&&(n=i,e=fd(t,i))),e===1))throw r=Fa,Zn(t,0),yn(t,n),xt(t,Me()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(b(345));case 2:Bn(t,Rt,Hr);break;case 3:if(yn(t,n),(n&130023424)===n&&(e=Th+500-Me(),10<e)){if(sc(t,0)!==0)break;if(o=t.suspendedLanes,(o&n)!==n){St(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=Vu(Bn.bind(null,t,Rt,Hr),e);break}Bn(t,Rt,Hr);break;case 4:if(yn(t,n),(n&4194240)===n)break;for(e=t.eventTimes,o=-1;0<n;){var a=31-ur(n);i=1<<a,a=e[a],a>o&&(o=a),n&=~i}if(n=o,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Fw(n/1960))-n,10<n){t.timeoutHandle=Vu(Bn.bind(null,t,Rt,Hr),n);break}Bn(t,Rt,Hr);break;case 5:Bn(t,Rt,Hr);break;default:throw Error(b(329))}}}return xt(t,Me()),t.callbackNode===r?Lv.bind(null,t):null}function fd(t,e){var r=ma;return t.current.memoizedState.isDehydrated&&(Zn(t,e).flags|=256),t=bc(t,e),t!==2&&(e=Rt,Rt=r,e!==null&&pd(e)),t}function pd(t){Rt===null?Rt=t:Rt.push.apply(Rt,t)}function $w(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!fr(i(),o))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yn(t,e){for(e&=~Sh,e&=~cl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-ur(e),n=1<<r;t[r]=-1,e&=~n}}function up(t){if((ne&6)!==0)throw Error(b(327));ii();var e=sc(t,0);if((e&1)===0)return xt(t,Me()),null;var r=bc(t,e);if(t.tag!==0&&r===2){var n=Fu(t);n!==0&&(e=n,r=fd(t,n))}if(r===1)throw r=Fa,Zn(t,0),yn(t,e),xt(t,Me()),r;if(r===6)throw Error(b(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Bn(t,Rt,Hr),xt(t,Me()),null}function bh(t,e){var r=ne;ne|=1;try{return t(e)}finally{ne=r,ne===0&&(mi=Me()+500,ol&&Un())}}function uo(t){En!==null&&En.tag===0&&(ne&6)===0&&ii();var e=ne;ne|=1;var r=Qt.transition,n=ue;try{if(Qt.transition=null,ue=1,t)return t()}finally{ue=n,Qt.transition=r,ne=e,(ne&6)===0&&Un()}}function Ih(){Ut=Go.current,Ee(Go)}function Zn(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,mw(r)),De!==null)for(r=De.return;r!==null;){var n=r;switch(ah(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&hc();break;case 3:pi(),Ee(Nt),Ee(vt),gh();break;case 5:ph(n);break;case 4:pi();break;case 13:Ee(ke);break;case 19:Ee(ke);break;case 10:uh(n.type._context);break;case 22:case 23:Ih()}r=r.return}if(Ve=t,De=t=Rn(t.current,null),rt=Ut=e,ze=0,Fa=null,Sh=cl=lo=0,Rt=ma=null,Wn!==null){for(e=0;e<Wn.length;e++)if(r=Wn[e],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}Wn=null}return t}function Dv(t,e){do{var r=De;try{if(lh(),$s.current=Ec,wc){for(var n=Ae.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}wc=!1}if(co=0,qe=$e=Ae=null,pa=!1,La=0,Ch.current=null,r===null||r.return===null){ze=1,Fa=e,De=null;break}e:{var i=t,a=r.return,s=r,c=e;if(e=rt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,u=s,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Jf(a);if(f!==null){f.flags&=-257,Xf(f,a,s,i,e),f.mode&1&&Qf(i,l,e),e=f,c=l;var m=e.updateQueue;if(m===null){var v=new Set;v.add(c),e.updateQueue=v}else m.add(c);break e}else{if((e&1)===0){Qf(i,l,e),kh();break e}c=Error(b(426))}}else if(Te&&s.mode&1){var E=Jf(a);if(E!==null){(E.flags&65536)===0&&(E.flags|=256),Xf(E,a,s,i,e),sh(gi(c,s));break e}}i=c=gi(c,s),ze!==4&&(ze=2),ma===null?ma=[i]:ma.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=wv(i,c,e);Bf(i,g);break e;case 1:s=c;var p=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(kn===null||!kn.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var w=Ev(i,s,e);Bf(i,w);break e}}i=i.return}while(i!==null)}$v(r)}catch(k){e=k,De===r&&r!==null&&(De=r=r.return);continue}break}while(1)}function Hv(){var t=Cc.current;return Cc.current=Ec,t===null?Ec:t}function kh(){(ze===0||ze===3||ze===2)&&(ze=4),Ve===null||(lo&268435455)===0&&(cl&268435455)===0||yn(Ve,rt)}function bc(t,e){var r=ne;ne|=2;var n=Hv();(Ve!==t||rt!==e)&&(Hr=null,Zn(t,e));do try{zw();break}catch(o){Dv(t,o)}while(1);if(lh(),ne=r,Cc.current=n,De!==null)throw Error(b(261));return Ve=null,rt=0,ze}function zw(){for(;De!==null;)Fv(De)}function jw(){for(;De!==null&&!f_();)Fv(De)}function Fv(t){var e=jv(t.alternate,t,Ut);t.memoizedProps=t.pendingProps,e===null?$v(t):De=e,Ch.current=null}function $v(t){var e=t;do{var r=e.alternate;if(t=e.return,(e.flags&32768)===0){if(r=Mw(r,e,Ut),r!==null){De=r;return}}else{if(r=Uw(r,e),r!==null){r.flags&=32767,De=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ze=6,De=null;return}}if(e=e.sibling,e!==null){De=e;return}De=e=t}while(e!==null);ze===0&&(ze=5)}function Bn(t,e,r){var n=ue,o=Qt.transition;try{Qt.transition=null,ue=1,Bw(t,e,r,n)}finally{Qt.transition=o,ue=n}return null}function Bw(t,e,r,n){do ii();while(En!==null);if((ne&6)!==0)throw Error(b(327));r=t.finishedWork;var o=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(b(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(S_(t,i),t===Ve&&(De=Ve=null,rt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ts||(Ts=!0,Bv(ac,function(){return ii(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Qt.transition,Qt.transition=null;var a=ue;ue=1;var s=ne;ne|=4,Ch.current=null,Dw(t,r),Mv(r,t),lw(Ku),cc=!!qu,Ku=qu=null,t.current=r,Hw(r),p_(),ne=s,ue=a,Qt.transition=i}else t.current=r;if(Ts&&(Ts=!1,En=t,Tc=o),i=t.pendingLanes,i===0&&(kn=null),v_(r.stateNode),xt(t,Me()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)o=e[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Sc)throw Sc=!1,t=dd,dd=null,t;return(Tc&1)!==0&&t.tag!==0&&ii(),i=t.pendingLanes,(i&1)!==0?t===hd?va++:(va=0,hd=t):va=0,Un(),null}function ii(){if(En!==null){var t=_m(Tc),e=Qt.transition,r=ue;try{if(Qt.transition=null,ue=16>t?16:t,En===null)var n=!1;else{if(t=En,En=null,Tc=0,(ne&6)!==0)throw Error(b(331));var o=ne;for(ne|=4,H=t.current;H!==null;){var i=H,a=i.child;if((H.flags&16)!==0){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(H=l;H!==null;){var u=H;switch(u.tag){case 0:case 11:case 15:ga(8,u,i)}var d=u.child;if(d!==null)d.return=u,H=d;else for(;H!==null;){u=H;var h=u.sibling,f=u.return;if(Nv(u),u===l){H=null;break}if(h!==null){h.return=f,H=h;break}H=f}}}var m=i.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}H=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,H=a;else e:for(;H!==null;){if(i=H,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:ga(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,H=g;break e}H=i.return}}var p=t.current;for(H=p;H!==null;){a=H;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,H=y;else e:for(a=p;H!==null;){if(s=H,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:sl(9,s)}}catch(k){Pe(s,s.return,k)}if(s===a){H=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,H=w;break e}H=s.return}}if(ne=o,Un(),Sr&&typeof Sr.onPostCommitFiberRoot=="function")try{Sr.onPostCommitFiberRoot(Zc,t)}catch{}n=!0}return n}finally{ue=r,Qt.transition=e}}return!1}function dp(t,e,r){e=gi(r,e),e=wv(t,e,1),t=In(t,e,1),e=St(),t!==null&&(Ja(t,1,e),xt(t,e))}function Pe(t,e,r){if(t.tag===3)dp(t,t,r);else for(;e!==null;){if(e.tag===3){dp(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(kn===null||!kn.has(n))){t=gi(r,t),t=Ev(e,t,1),e=In(e,t,1),t=St(),e!==null&&(Ja(e,1,t),xt(e,t));break}}e=e.return}}function qw(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=St(),t.pingedLanes|=t.suspendedLanes&r,Ve===t&&(rt&r)===r&&(ze===4||ze===3&&(rt&130023424)===rt&&500>Me()-Th?Zn(t,0):Sh|=r),xt(t,e)}function zv(t,e){e===0&&((t.mode&1)===0?e=1:(e=ps,ps<<=1,(ps&130023424)===0&&(ps=4194304)));var r=St();t=Zr(t,e),t!==null&&(Ja(t,e,r),xt(t,r))}function Kw(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),zv(t,r)}function Gw(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,o=t.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(b(314))}n!==null&&n.delete(e),zv(t,r)}var jv;jv=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Nt.current)Pt=!0;else{if((t.lanes&r)===0&&(e.flags&128)===0)return Pt=!1,xw(t,e,r);Pt=(t.flags&131072)!==0}else Pt=!1,Te&&(e.flags&1048576)!==0&&Km(e,gc,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;js(t,e),t=e.pendingProps;var o=di(e,vt.current);oi(e,r),o=vh(null,e,n,t,o,r);var i=yh();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ot(n)?(i=!0,fc(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hh(e),o.updater=il,e.stateNode=o,o._reactInternals=e,ed(e,n,t,r),e=nd(null,e,n,!0,i,r)):(e.tag=0,Te&&i&&ih(e),wt(null,e,o,r),e=e.child),e;case 16:n=e.elementType;e:{switch(js(t,e),t=e.pendingProps,o=n._init,n=o(n._payload),e.type=n,o=e.tag=Ww(n),t=ir(n,t),o){case 0:e=rd(null,e,n,t,r);break e;case 1:e=tp(null,e,n,t,r);break e;case 11:e=Zf(null,e,n,t,r);break e;case 14:e=ep(null,e,n,ir(n.type,t),r);break e}throw Error(b(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),rd(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),tp(t,e,n,o,r);case 3:e:{if(bv(e),t===null)throw Error(b(387));n=e.pendingProps,i=e.memoizedState,o=i.element,Ym(t,e),yc(e,n,null,r);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=gi(Error(b(423)),e),e=rp(t,e,n,r,o);break e}else if(n!==o){o=gi(Error(b(424)),e),e=rp(t,e,n,r,o);break e}else for(Lt=bn(e.stateNode.containerInfo.firstChild),Ht=e,Te=!0,sr=null,r=Zm(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(hi(),n===o){e=en(t,e,r);break e}wt(t,e,n,r)}e=e.child}return e;case 5:return ev(e),t===null&&Ju(e),n=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Gu(n,o)?a=null:i!==null&&Gu(n,i)&&(e.flags|=32),Tv(t,e),wt(t,e,a,r),e.child;case 6:return t===null&&Ju(e),null;case 13:return Iv(t,e,r);case 4:return fh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=fi(e,null,n,r):wt(t,e,n,r),e.child;case 11:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),Zf(t,e,n,o,r);case 7:return wt(t,e,e.pendingProps,r),e.child;case 8:return wt(t,e,e.pendingProps.children,r),e.child;case 12:return wt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,o=e.pendingProps,i=e.memoizedProps,a=o.value,ye(mc,n._currentValue),n._currentValue=a,i!==null)if(fr(i.value,a)){if(i.children===o.children&&!Nt.current){e=en(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Kr(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Xu(i.return,r,e),s.lanes|=r;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(b(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Xu(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}wt(t,e,o.children,r),e=e.child}return e;case 9:return o=e.type,n=e.pendingProps.children,oi(e,r),o=Xt(o),n=n(o),e.flags|=1,wt(t,e,n,r),e.child;case 14:return n=e.type,o=ir(n,e.pendingProps),o=ir(n.type,o),ep(t,e,n,o,r);case 15:return Cv(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),js(t,e),e.tag=1,Ot(n)?(t=!0,fc(e)):t=!1,oi(e,r),Jm(e,n,o),ed(e,n,o,r),nd(null,e,n,!0,t,r);case 19:return kv(t,e,r);case 22:return Sv(t,e,r)}throw Error(b(156,e.tag))};function Bv(t,e){return gm(t,e)}function Vw(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(t,e,r,n){return new Vw(t,e,r,n)}function Ah(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ww(t){if(typeof t=="function")return Ah(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Vd)return 11;if(t===Wd)return 14}return 2}function Rn(t,e){var r=t.alternate;return r===null?(r=Yt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Ks(t,e,r,n,o,i){var a=2;if(n=t,typeof t=="function")Ah(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Lo:return eo(r.children,o,i,e);case Gd:a=8,o|=8;break;case Tu:return t=Yt(12,r,e,o|2),t.elementType=Tu,t.lanes=i,t;case bu:return t=Yt(13,r,e,o),t.elementType=bu,t.lanes=i,t;case Iu:return t=Yt(19,r,e,o),t.elementType=Iu,t.lanes=i,t;case Xg:return ll(r,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Qg:a=10;break e;case Jg:a=9;break e;case Vd:a=11;break e;case Wd:a=14;break e;case fn:a=16,n=null;break e}throw Error(b(130,t==null?t:typeof t,""))}return e=Yt(a,r,e,o),e.elementType=t,e.type=n,e.lanes=i,e}function eo(t,e,r,n){return t=Yt(7,t,n,e),t.lanes=r,t}function ll(t,e,r,n){return t=Yt(22,t,n,e),t.elementType=Xg,t.lanes=r,t.stateNode={isHidden:!1},t}function Zl(t,e,r){return t=Yt(6,t,null,e),t.lanes=r,t}function eu(t,e,r){return e=Yt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Yw(t,e,r,n,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rh(t,e,r,n,o,i,a,s,c){return t=new Yw(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Yt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},hh(i),t}function Qw(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Uo,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function qv(t){if(!t)return On;t=t._reactInternals;e:{if(_o(t)!==t||t.tag!==1)throw Error(b(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Ot(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(b(171))}if(t.tag===1){var r=t.type;if(Ot(r))return Bm(t,r,e)}return e}function Kv(t,e,r,n,o,i,a,s,c){return t=Rh(r,n,!0,t,o,i,a,s,c),t.context=qv(null),r=t.current,n=St(),o=An(r),i=Kr(n,o),i.callback=e!=null?e:null,In(r,i,o),t.current.lanes=o,Ja(t,o,n),xt(t,n),t}function ul(t,e,r,n){var o=e.current,i=St(),a=An(o);return r=qv(r),e.context===null?e.context=r:e.pendingContext=r,e=Kr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=In(o,e,a),t!==null&&(dr(t,o,a,i),Fs(t,o,a)),a}function Ic(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function hp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function Ph(t,e){hp(t,e),(t=t.alternate)&&hp(t,e)}function Jw(){return null}var Gv=typeof reportError=="function"?reportError:function(t){console.error(t)};function Nh(t){this._internalRoot=t}dl.prototype.render=Nh.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(b(409));ul(t,e,null,null)};dl.prototype.unmount=Nh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;uo(function(){ul(null,t,null,null)}),e[Xr]=null}};function dl(t){this._internalRoot=t}dl.prototype.unstable_scheduleHydration=function(t){if(t){var e=Cm();t={blockedOn:null,target:t,priority:e};for(var r=0;r<vn.length&&e!==0&&e<vn[r].priority;r++);vn.splice(r,0,t),r===0&&Tm(t)}};function Oh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function hl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function fp(){}function Xw(t,e,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=Ic(a);i.call(l)}}var a=Kv(e,n,t,0,null,!1,!1,"",fp);return t._reactRootContainer=a,t[Xr]=a.current,Na(t.nodeType===8?t.parentNode:t),uo(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=Ic(c);s.call(l)}}var c=Rh(t,0,!1,null,null,!1,!1,"",fp);return t._reactRootContainer=c,t[Xr]=c.current,Na(t.nodeType===8?t.parentNode:t),uo(function(){ul(e,c,r,n)}),c}function fl(t,e,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var c=Ic(a);s.call(c)}}ul(e,a,t,o)}else a=Xw(r,e,t,o,n);return Ic(a)}wm=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=Ji(e.pendingLanes);r!==0&&(Jd(e,r|1),xt(e,Me()),(ne&6)===0&&(mi=Me()+500,Un()))}break;case 13:uo(function(){var n=Zr(t,1);if(n!==null){var o=St();dr(n,t,1,o)}}),Ph(t,1)}};Xd=function(t){if(t.tag===13){var e=Zr(t,134217728);if(e!==null){var r=St();dr(e,t,134217728,r)}Ph(t,134217728)}};Em=function(t){if(t.tag===13){var e=An(t),r=Zr(t,e);if(r!==null){var n=St();dr(r,t,e,n)}Ph(t,e)}};Cm=function(){return ue};Sm=function(t,e){var r=ue;try{return ue=t,e()}finally{ue=r}};Lu=function(t,e,r){switch(e){case"input":if(Ru(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var o=nl(n);if(!o)throw Error(b(90));em(n),Ru(n,o)}}}break;case"textarea":rm(t,r);break;case"select":e=r.value,e!=null&&ei(t,!!r.multiple,e,!1)}};lm=bh;um=uo;var Zw={usingClientEntryPoint:!1,Events:[Za,$o,nl,sm,cm,bh]},ji={findFiberByHostInstance:Vn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},eE={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=fm(t),t===null?null:t.stateNode},findFiberByHostInstance:ji.findFiberByHostInstance||Jw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{Zc=bs.inject(eE),Sr=bs}catch{}}zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zw;zt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Oh(e))throw Error(b(200));return Qw(t,e,null,r)};zt.createRoot=function(t,e){if(!Oh(t))throw Error(b(299));var r=!1,n="",o=Gv;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Rh(t,1,!1,null,null,r,!1,n,o),t[Xr]=e.current,Na(t.nodeType===8?t.parentNode:t),new Nh(e)};zt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(b(188)):(t=Object.keys(t).join(","),Error(b(268,t)));return t=fm(e),t=t===null?null:t.stateNode,t};zt.flushSync=function(t){return uo(t)};zt.hydrate=function(t,e,r){if(!hl(e))throw Error(b(200));return fl(null,t,e,!0,r)};zt.hydrateRoot=function(t,e,r){if(!Oh(t))throw Error(b(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=Gv;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=Kv(e,null,t,1,r!=null?r:null,o,!1,i,a),t[Xr]=e.current,Na(t),n)for(t=0;t<n.length;t++)r=n[t],o=r._getVersion,o=o(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,o]:e.mutableSourceEagerHydrationData.push(r,o);return new dl(e)};zt.render=function(t,e,r){if(!hl(e))throw Error(b(200));return fl(null,t,e,!1,r)};zt.unmountComponentAtNode=function(t){if(!hl(t))throw Error(b(40));return t._reactRootContainer?(uo(function(){fl(null,null,t,!1,function(){t._reactRootContainer=null,t[Xr]=null})}),!0):!1};zt.unstable_batchedUpdates=bh;zt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!hl(r))throw Error(b(200));if(t==null||t._reactInternals===void 0)throw Error(b(38));return fl(t,e,r,!1,n)};zt.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}e(),t.exports=zt})(Kg);var pp=Kg.exports;Cu.createRoot=pp.createRoot,Cu.hydrateRoot=pp.hydrateRoot;class tE{constructor(e){this.domain=e,this.level=1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((r,n)=>[...r,n,`
|
|
33
|
+
`],[])]}debug(...e){this.level>3&&console.debug(...this._createMessage(e))}info(...e){this.level>2&&console.info(...this._createMessage(e))}warn(...e){this.level>1&&console.warn(...this._createMessage(e))}error(...e){this.level>0&&console.error(...this._createMessage(e))}}class Vv extends tE{formatModuleName(e){return`\u{1F4E6}\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var gd=function(t,e){return gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},gd(t,e)};function Ar(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");gd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ho=function(){return ho=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ho.apply(this,arguments)};function Wv(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function Rr(t,e,r,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(o<3?a(i):o>3?a(e,r,i):a(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i}function rE(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function Yv(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function fo(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ir(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function tn(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function ai(t){return this instanceof ai?(this.v=t,this):new ai(t)}function nE(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){n[h]&&(o[h]=function(f){return new Promise(function(m,v){i.push([h,f,m,v])>1||s(h,f)})})}function s(h,f){try{c(n[h](f))}catch(m){d(i[0][3],m)}}function c(h){h.value instanceof ai?Promise.resolve(h.value.v).then(l,u):d(i[0][2],h)}function l(h){s("next",h)}function u(h){s("throw",h)}function d(h,f){h(f),i.shift(),i.length&&s(i[0][0],i[0][1])}}function oE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof fo=="function"?fo(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(s,c){a=t[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function de(t){return typeof t=="function"}function pl(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var tu=pl(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
34
34
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
35
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Sc(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var an=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=fo(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){e={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(de(u))try{u()}catch(v){i=v instanceof Ql?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=fo(d),f=h.next();!f.done;f=h.next()){var m=f.value;try{fp(m)}catch(v){i=i!=null?i:[],v instanceof Ql?i=tn(tn([],Ir(i)),Ir(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new Ql(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)fp(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Sc(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Sc(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Wv=an.EMPTY;function Yv(t){return t instanceof an||t&&"closed"in t&&de(t.remove)&&de(t.add)&&de(t.unsubscribe)}function fp(t){de(t)?t():t.unsubscribe()}var Nh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},fd={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=fd.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,tn([t,e],Ir(r))):setTimeout.apply(void 0,tn([t,e],Ir(r)))},clearTimeout:function(t){var e=fd.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Qv(t){fd.setTimeout(function(){throw t})}function Tc(){}var Ts=null;function Bs(t){if(Nh.useDeprecatedSynchronousErrorHandling){var e=!Ts;if(e&&(Ts={errorThrown:!1,error:null}),t(),e){var r=Ts,n=r.errorThrown,o=r.error;if(Ts=null,n)throw o}}else t()}var Oh=function(t){Ar(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Yv(r)&&r.add(n)):n.destination=aE,n}return e.create=function(r,n,o){return new bc(r,n,o)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(an),nE=Function.prototype.bind;function Jl(t,e){return nE.call(t,e)}var oE=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){bs(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){bs(n)}else bs(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){bs(r)}},t}(),bc=function(t){Ar(e,t);function e(r,n,o){var i=t.call(this)||this,a;if(de(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:o!=null?o:void 0};else{var s;i&&Nh.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Jl(r.next,s),error:r.error&&Jl(r.error,s),complete:r.complete&&Jl(r.complete,s)}):a=r}return i.destination=new oE(a),i}return e}(Oh);function bs(t){Qv(t)}function iE(t){throw t}var aE={closed:!0,next:Tc,error:iE,complete:Tc},xh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ki(t){return t}function sE(t){return t.length===0?ki:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var be=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,i=lE(e)?e:new bc(e,r,n);return Bs(function(){var a=o,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=pp(r),new r(function(o,i){var a=new bc({next:function(s){try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[xh]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return sE(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=pp(e),new e(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function pp(t){var e;return(e=t!=null?t:Nh.Promise)!==null&&e!==void 0?e:Promise}function cE(t){return t&&de(t.next)&&de(t.error)&&de(t.complete)}function lE(t){return t&&t instanceof Oh||cE(t)&&Yv(t)}function uE(t){return de(t==null?void 0:t.lift)}function Be(t){return function(e){if(uE(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,e,r,n,o){return new dE(t,e,r,n,o)}var dE=function(t){Ar(e,t);function e(r,n,o,i,a,s){var c=t.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:t.prototype._next,c._error=i?function(l){try{i(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=o?function(){try{o()}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Oh),hE=ll(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gr=function(t){Ar(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new gp(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new hE},e.prototype.next=function(r){var n=this;Bs(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=fo(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;Bs(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;Bs(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Wv:(this.currentObservers=null,s.push(r),new an(function(){n.currentObservers=null,Sc(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},e.prototype.asObservable=function(){var r=new be;return r.source=this,r},e.create=function(r,n){return new gp(r,n)},e}(be),gp=function(t){Ar(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Wv},e}(Gr),ul=function(t){Ar(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(Gr),Mh={now:function(){return(Mh.delegate||Date).now()},delegate:void 0},Jv=function(t){Ar(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Mh);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=o.now(),l=0,u=1;u<i.length&&i[u]<=c;u+=2)l=u;l&&i.splice(0,l+1)}},e}(Gr),fE=function(t){Ar(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(an),Ic={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ic.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,tn([t,e],Ir(r))):setInterval.apply(void 0,tn([t,e],Ir(r)))},clearInterval:function(t){var e=Ic.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},pE=function(t){Ar(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Ic.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Ic.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Sc(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(fE),mp=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Mh.now,t}(),gE=function(t){Ar(e,t);function e(r,n){n===void 0&&(n=mp.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(mp),kc=new gE(pE),mE=kc,po=new be(function(t){return t.complete()});function Xv(t){return t&&de(t.schedule)}function Uh(t){return t[t.length-1]}function vE(t){return de(Uh(t))?t.pop():void 0}function Zv(t){return Xv(Uh(t))?t.pop():void 0}function yE(t,e){return typeof Uh(t)=="number"?t.pop():e}var Lh=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function ey(t){return de(t==null?void 0:t.then)}function ty(t){return de(t[xh])}function ry(t){return Symbol.asyncIterator&&de(t==null?void 0:t[Symbol.asyncIterator])}function ny(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function _E(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oy=_E();function iy(t){return de(t==null?void 0:t[oy])}function ay(t){return tE(this,arguments,function(){var r,n,o,i;return Vv(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,ai(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,ai(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,ai(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function sy(t){return de(t==null?void 0:t.getReader)}function Bt(t){if(t instanceof be)return t;if(t!=null){if(ty(t))return wE(t);if(Lh(t))return EE(t);if(ey(t))return CE(t);if(ry(t))return cy(t);if(iy(t))return SE(t);if(sy(t))return TE(t)}throw ny(t)}function wE(t){return new be(function(e){var r=t[xh]();if(de(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function EE(t){return new be(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function CE(t){return new be(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Qv)})}function SE(t){return new be(function(e){var r,n;try{for(var o=fo(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function cy(t){return new be(function(e){bE(t,e).catch(function(r){return e.error(r)})})}function TE(t){return cy(ay(t))}function bE(t,e){var r,n,o,i;return eE(this,void 0,void 0,function(){var a,s;return Vv(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=rE(t),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Vr(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Ac(t,e){return e===void 0&&(e=0),Be(function(r,n){r.subscribe(Ue(n,function(o){return Vr(n,t,function(){return n.next(o)},e)},function(){return Vr(n,t,function(){return n.complete()},e)},function(o){return Vr(n,t,function(){return n.error(o)},e)}))})}function ly(t,e){return e===void 0&&(e=0),Be(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function IE(t,e){return Bt(t).pipe(ly(e),Ac(e))}function kE(t,e){return Bt(t).pipe(ly(e),Ac(e))}function AE(t,e){return new be(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function RE(t,e){return new be(function(r){var n;return Vr(r,e,function(){n=t[oy](),Vr(r,e,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return de(n==null?void 0:n.return)&&n.return()}})}function uy(t,e){if(!t)throw new Error("Iterable cannot be null");return new be(function(r){Vr(r,e,function(){var n=t[Symbol.asyncIterator]();Vr(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function PE(t,e){return uy(ay(t),e)}function NE(t,e){if(t!=null){if(ty(t))return IE(t,e);if(Lh(t))return AE(t,e);if(ey(t))return kE(t,e);if(ry(t))return uy(t,e);if(iy(t))return RE(t,e);if(sy(t))return PE(t,e)}throw ny(t)}function br(t,e){return e?NE(t,e):Bt(t)}function dl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Zv(t);return br(t,r)}function OE(t,e){var r=de(t)?t:function(){return t},n=function(o){return o.error(r())};return new be(e?function(o){return e.schedule(n,0,o)}:n)}var hl=ll(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function pd(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=!1,a;t.subscribe({next:function(s){a=s,i=!0},error:o,complete:function(){i?n(a):r?n(e.defaultValue):o(new hl)}})})}function go(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=new bc({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(e.defaultValue):o(new hl)}});t.subscribe(i)})}function dy(t){return t instanceof Date&&!isNaN(t)}var xE=ll(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function ME(t,e){var r=dy(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,o=r.each,i=r.with,a=i===void 0?UE:i,s=r.scheduler,c=s===void 0?e!=null?e:kc:s,l=r.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return Be(function(d,h){var f,m,v=null,E=0,g=function(p){m=Vr(h,c,function(){try{f.unsubscribe(),Bt(a({meta:u,lastValue:v,seen:E})).subscribe(h)}catch(y){h.error(y)}},p)};f=d.subscribe(Ue(h,function(p){m==null||m.unsubscribe(),E++,h.next(v=p),o>0&&g(o)},void 0,void 0,function(){m!=null&&m.closed||m==null||m.unsubscribe(),v=null})),!E&&g(n!=null?typeof n=="number"?n:+n-c.now():o)})}function UE(t){throw new xE(t)}function Ot(t,e){return Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){n.next(t.call(e,i,o++))}))})}var LE=Array.isArray;function DE(t,e){return LE(e)?t.apply(void 0,tn([],Ir(e))):t(e)}function HE(t){return Ot(function(e){return DE(t,e)})}function hy(t,e,r,n,o,i,a,s){var c=[],l=0,u=0,d=!1,h=function(){d&&!c.length&&!l&&e.complete()},f=function(v){return l<n?m(v):c.push(v)},m=function(v){i&&e.next(v),l++;var E=!1;Bt(r(v,u++)).subscribe(Ue(e,function(g){o==null||o(g),i?f(g):e.next(g)},function(){E=!0},void 0,function(){if(E)try{l--;for(var g=function(){var p=c.shift();a?Vr(e,a,function(){return m(p)}):m(p)};c.length&&l<n;)g();h()}catch(p){e.error(p)}}))};return t.subscribe(Ue(e,f,function(){d=!0,h()})),function(){s==null||s()}}function mo(t,e,r){return r===void 0&&(r=1/0),de(e)?mo(function(n,o){return Ot(function(i,a){return e(n,i,o,a)})(Bt(t(n,o)))},r):(typeof e=="number"&&(r=e),Be(function(n,o){return hy(n,o,t,r)}))}function FE(t){return t===void 0&&(t=1/0),mo(ki,t)}var $E=["addListener","removeListener"],zE=["addEventListener","removeEventListener"],jE=["on","off"];function gd(t,e,r,n){if(de(r)&&(n=r,r=void 0),n)return gd(t,e,r).pipe(HE(n));var o=Ir(KE(t)?zE.map(function(s){return function(c){return t[s](e,c,r)}}):BE(t)?$E.map(vp(t,e)):qE(t)?jE.map(vp(t,e)):[],2),i=o[0],a=o[1];if(!i&&Lh(t))return mo(function(s){return gd(s,e,r)})(Bt(t));if(!i)throw new TypeError("Invalid event target");return new be(function(s){var c=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return s.next(1<l.length?l:l[0])};return i(c),function(){return a(c)}})}function vp(t,e){return function(r){return function(n){return t[r](e,n)}}}function BE(t){return de(t.addListener)&&de(t.removeListener)}function qE(t){return de(t.on)&&de(t.off)}function KE(t){return de(t.addEventListener)&&de(t.removeEventListener)}function GE(t,e,r){t===void 0&&(t=0),r===void 0&&(r=mE);var n=-1;return e!=null&&(Xv(e)?r=e:n=e),new be(function(o){var i=dy(t)?+t-r.now():t;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function VE(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Zv(t),n=yE(t,1/0),o=t;return o.length?o.length===1?Bt(o[0]):FE(n)(br(o,r)):po}function Ai(t,e){return Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function rn(t){return Be(function(e,r){var n=null,o=!1,i;n=e.subscribe(Ue(r,void 0,void 0,function(a){i=Bt(t(a,rn(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function WE(t,e,r,n,o){return function(i,a){var s=r,c=e,l=0;i.subscribe(Ue(a,function(u){var d=l++;c=s?t(c,u,d):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function YE(t){return Be(function(e,r){var n=!1;e.subscribe(Ue(r,function(o){n=!0,r.next(o)},function(){n||r.next(t),r.complete()}))})}function fy(t,e){return e===void 0&&(e=ki),t=t!=null?t:QE,Be(function(r,n){var o,i=!0;r.subscribe(Ue(n,function(a){var s=e(a);(i||!t(o,s))&&(i=!1,o=s,n.next(a))}))})}function QE(t,e){return t===e}function py(t){return t===void 0&&(t=JE),Be(function(e,r){var n=!1;e.subscribe(Ue(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(t())}))})}function JE(){return new hl}function XE(t){return t<=0?function(){return po}:Be(function(e,r){var n=[];e.subscribe(Ue(r,function(o){n.push(o),t<n.length&&n.shift()},function(){var o,i;try{for(var a=fo(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function ZE(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?Ai(function(o,i){return t(o,i,n)}):ki,XE(1),r?YE(e):py(function(){return new hl}))}}function eC(t,e,r){return r===void 0&&(r=1/0),Be(function(n,o){var i=e;return hy(n,o,function(a,s){return t(i,a,s)},r,function(a){i=a},!1,void 0,function(){return i=null})})}function gy(){return Be(function(t,e){var r,n=!1;t.subscribe(Ue(e,function(o){var i=r;r=o,n&&e.next([i,o]),n=!0}))})}function Dh(t,e){return Be(WE(t,e,arguments.length>=2,!0))}function Qn(t,e){return Be(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(Ue(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;Bt(t(c,u)).subscribe(o=Ue(n,function(d){return n.next(e?e(c,d,u,l++):d)},function(){o=null,s()}))},function(){a=!0,s()}))})}function tC(t){return Be(function(e,r){Bt(t).subscribe(Ue(r,function(){return r.complete()},Tc)),!r.closed&&e.subscribe(r)})}function my(t,e){return e===void 0&&(e=!1),Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){var a=t(i,o++);(a||e)&&n.next(i),!a&&n.complete()}))})}function md(t,e,r){var n=de(t)||e||r?{next:t,error:e,complete:r}:t;return n?Be(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(Ue(i,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),i.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),i.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):ki}function rC(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=vE(t);return Be(function(n,o){for(var i=t.length,a=new Array(i),s=t.map(function(){return!1}),c=!1,l=function(d){Bt(t[d]).subscribe(Ue(o,function(h){a[d]=h,!c&&!s[d]&&(s[d]=!0,(c=s.every(ki))&&(s=null))},Tc))},u=0;u<i;u++)l(u);n.subscribe(Ue(o,function(d){if(c){var h=tn([d],Ir(a));o.next(r?r.apply(void 0,tn([],Ir(h))):h)}}))})}var mr=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class nC extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class oC{constructor(e){this.logger=new Kv("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(r=>this.addConfig(r))}addConfig(e){const{module:r,afterConfig:n,afterInit:o,configure:i}=e;this._modules.add(r),i&&this._configs.push((a,s)=>i(a[r.name],s)),n&&this._afterConfiguration.push(a=>n(a[r.name])),o&&this._afterInit.push(a=>o(a[r.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return mr(this,void 0,void 0,function*(){const r=yield this._configure(e),n=yield this._initialize(r,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return mr(this,void 0,void 0,function*(){const r=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(r,e)))),yield this._postConfigure(r),r})}_createConfig(e){const{modules:r,logger:n,_afterConfiguration:o,_afterInit:i}=this,a=br(r).pipe(mo(s=>mr(this,void 0,void 0,function*(){var c;n.debug(`\u{1F6E0} creating configurator ${n.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return n.debug(`\u{1F6E0} created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`\u{1F6E0} Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),Dh((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return pd(a)}_postConfigure(e){return mr(this,void 0,void 0,function*(){const{modules:r,logger:n,_afterConfiguration:o}=this;if(yield Promise.allSettled(r.filter(i=>!!i.postConfigure).map(i=>mr(this,void 0,void 0,function*(){var a;try{yield(a=i.postConfigure)===null||a===void 0?void 0:a.call(i,e),n.debug(`\u{1F3D7}\u{1F4CC} post configured ${n.formatModuleName(i)}`,i)}catch{n.warn(`\u{1F3D7}\u{1F4CC} post configure failed ${n.formatModuleName(i)}`)}}))),o.length)try{n.debug(`\u{1F3D7}\u{1F4CC} post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(i=>Promise.resolve(i(e)))),n.debug("\u{1F3D7}\u{1F4CC} post configure hooks complete")}catch(i){n.warn("\u{1F3D7}\u{1F4CC} post configure hook failed",i)}})}_initialize(e,r){return mr(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new ul({}),s=u=>i.includes(u),c=(u,d=60)=>{if(!i.includes(u))throw o.error(`\u{1F680}\u231B\uFE0F Cannot not require ${o.formatModuleName(String(u))} since module is not defined!`),Error(`cannot not require [${String(u)}] since module is not defined!`);return a.value[u]?(o.debug(`\u{1F680}\u231B\uFE0F ${o.formatModuleName(String(u))} is initiated, skipping queue`),Promise.resolve(a.value[u])):(o.debug(`\u{1F680}\u231B\uFE0F Awaiting init ${o.formatModuleName(String(u))}, timeout ${d}s`),go(a.pipe(Ai(h=>!!h[u]),Ot(h=>h[u]),ME({each:d*1e3,with:()=>OE(()=>new nC)}))))};br(n).pipe(mo(u=>{const d=u.name;return o.debug(`\u{1F680} initializing ${o.formatModuleName(u)}`),br(Promise.resolve(u.initialize({ref:r,config:e[d],requireInstance:c,hasModule:s}))).pipe(Ot(h=>(o.debug(`\u{1F680} initialized ${o.formatModuleName(u)}`),[d,h])))})).subscribe({next:([u,d])=>{a.next(Object.assign(a.value,{[u]:d}))},complete:()=>a.complete()});const l=yield pd(a);return Object.seal(l),l})}_postInitialize(e,r){return mr(this,void 0,void 0,function*(){const{modules:n,logger:o,_afterInit:i}=this;if(yield Promise.allSettled(n.filter(a=>!!a.postInitialize).map(a=>mr(this,void 0,void 0,function*(){var s;try{o.debug(`\u{1F680}\u{1F4CC} post initializing moule ${o.formatModuleName(a)}`),yield(s=a.postInitialize)===null||s===void 0?void 0:s.call(a,{ref:r,modules:e,instance:e[a.name]}),o.debug(`\u{1F680}\u{1F4CC} post initialized moule ${o.formatModuleName(a)}`)}catch{o.warn(`\u{1F680}\u{1F4CC} post initialize failed moule ${o.formatModuleName(a)}`)}}))),i.length)try{o.debug(`\u{1F680}\u{1F4CC} post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(a=>Promise.resolve(a(e)))),o.debug("\u{1F680}\u{1F4CC} post configure hooks complete")}catch(a){o.warn("\u{1F680}\u{1F4CC} post configure hook failed",a)}o.debug(`\u{1F389} Modules initialized ${n.map(o.formatModuleName)}`,e),o.info("\u{1F7E2} Modules initialized")})}dispose(e,r){return mr(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>mr(this,void 0,void 0,function*(){var i;yield(i=o.dispose)===null||i===void 0?void 0:i.call(o,{ref:r,modules:e,instance:e[o.name]})})))})}}var bo=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},$n=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},qs,Ks,Xi,Gs,Zi,vd;class iC{constructor(e,r){this.__type=e,qs.set(this,void 0),Ks.set(this,void 0),Xi.set(this,!1),Gs.set(this,void 0),Zi.set(this,void 0),vd.set(this,Date.now()),bo(this,qs,r.detail,"f"),bo(this,Ks,r.source,"f"),bo(this,Gs,!!r.cancelable,"f"),bo(this,Zi,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return $n(this,Zi,"f")&&!$n(this,Xi,"f")}get created(){return $n(this,vd,"f")}get cancelable(){return $n(this,Gs,"f")}get canceled(){return $n(this,Xi,"f")}get detail(){return $n(this,qs,"f")}get source(){return $n(this,Ks,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&bo(this,Xi,!0,"f")}stopPropagation(){bo(this,Zi,!1,"f")}}qs=new WeakMap,Ks=new WeakMap,Xi=new WeakMap,Gs=new WeakMap,Zi=new WeakMap,vd=new WeakMap;var aC=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class sC{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,o;return aC(this,void 0,void 0,function*(){try{yield(n=this.__onDispatch)===null||n===void 0?void 0:n.call(this,e)}catch(a){throw a}const i=e;if(!i.dispatcher)i.dispatcher=this;else if(i.dispatcher===this)throw Error("loop detected");for(const a of r)e.cancelable?e.canceled||(yield Promise.resolve(a(e))):a(e);if(e.bubbles)try{yield(o=this.__onBubble)===null||o===void 0?void 0:o.call(this,e)}catch(a){throw a}})}}var yp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class cC extends be{constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new Gr,this.__dispatcher=new sC({onDispatch:e.onDispatch,onBubble:e.onBubble})}get closed(){return this.__event$.closed}addEventListener(e,r){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:r};return this.__listeners.push(n),()=>{const o=this.__listeners.indexOf(n);0<=o&&this.__listeners.splice(o,1)}}dispatchEvent(e,r){return yp(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new iC(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return yp(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const r=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,r)}catch(r){throw r}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var lC=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const uC="event",dC={name:uC,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>lC(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new cC(t),postInitialize({instance:t,modules:e}){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})},dispose({instance:t}){t.dispose()}};class vy{constructor(){this._operators={}}add(e,r){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,r)}set(e,r){return this._operators[e]=r,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?br(Object.values(this._operators)).pipe(eC((n,o)=>Promise.resolve(o(n)).then(i=>i!=null?i:n),e,1),ZE()):dl(e)}}const hC=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class yy extends vy{setHeader(e,r){const n=hC(e,r);return this.set("header-"+e,n)}}class fC extends vy{}class pC{constructor(e){this._clients={},this.defaultHttpRequestHandler=new yy,this.defaultHttpClientCtor=e}get clients(){return Object.assign({},this._clients)}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,r){const n=typeof r=="string"?i=>i.uri=String(r):r,o=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),o),this}}class gC extends Error{constructor(e){super(e)}}const mC=t=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t);class vC{constructor(e){this.config=e}get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const r=this._resolveConfig(e),{baseUri:n,defaultScopes:o=[],onCreate:i,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=r,c={requestHandler:s},l=new a(n||"",c);return Object.assign(l,{defaultScopes:o}),i&&i(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const r=this.config.clients[e];if(!r&&mC(e))return{baseUri:e};if(!r)throw new gC(`No registered http client for key [${e}]`);return r}return e}}function yC(t,e){e===void 0&&(e={});var r=e.selector,n=Gv(e,["selector"]);return new be(function(o){var i=new AbortController,a=i.signal,s=!0,c=n.signal;if(c)if(c.aborted)i.abort();else{var l=function(){a.aborted||i.abort()};c.addEventListener("abort",l),o.add(function(){return c.removeEventListener("abort",l)})}var u=ho(ho({},n),{signal:a}),d=function(h){s=!1,o.error(h)};return fetch(t,u).then(function(h){r?Bt(r(h)).subscribe(Ue(o,void 0,function(){s=!1,o.complete()},d)):(s=!1,o.next(h),o.complete())}).catch(d),function(){s&&i.abort()}})}const _C=t=>{if(!t.ok)throw new Error("Network response was not OK");if(t.status===204)return Promise.resolve();try{return t.json()}catch{throw Error("failed to parse response")}};var _p=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r};class wC{constructor(e,r){var n,o;this.uri=e,this._request$=new Gr,this._response$=new Gr,this._abort$=new Gr,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new yy,this.responseHandler=(o=r==null?void 0:r.responseHandler)!==null&&o!==void 0?o:new fC,this._init()}get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return go(this.fetch$(e,r))}fetchAsync(e,r){return this.fetch(e,r)}json$(e,r){var n;const o=typeof(r==null?void 0:r.body)=="object"?JSON.stringify(r==null?void 0:r.body):r==null?void 0:r.body,i=(n=r==null?void 0:r.selector)!==null&&n!==void 0?n:_C;return new Headers(r==null?void 0:r.headers).append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},r),{body:o,selector:i}))}json(e,r){return go(this.json$(e,r))}jsonAsync(e,r){return this.json(e,r)}execute(e,r,n){return this[e](r,n)}abort(){this._abort$.next()}_fetch$(e,r){const n=r||{},{selector:o}=n,i=_p(n,["selector"]);return dl(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(Qn(s=>this._prepareRequest(s)),md(s=>this._request$.next(s)),Qn(s=>{var{uri:c,path:l}=s,u=_p(s,["uri","path"]);return yC(c,u)}),Qn(s=>this._prepareResponse(s)),md(s=>this._response$.next(s)),Qn(s=>o?o(s):Promise.resolve(s)),tC(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const r=this.uri||window.location.origin;return new URL(e,r).href}}class EC extends wC{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,r){const n=Object.assign(r||{},{scopes:this.defaultScopes.concat((r==null?void 0:r.scopes)||[])});return super._fetch$(e,n)}}var wp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Hh={name:"http",configure:()=>new pC(EC),initialize:({config:t,hasModule:e,requireInstance:r})=>wp(void 0,void 0,void 0,function*(){const n=new vC(t);if(e("auth")){const o=yield r("auth");n.defaultHttpRequestHandler.set("MSAL",i=>wp(void 0,void 0,void 0,function*(){const{scopes:a=[]}=i;if(a.length){const s=yield o.acquireToken({scopes:a});if(s){const c=new Headers(i.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},i),{headers:c})}}}))}return n})},CC=t=>({module:Hh,configure:t}),_y=(t,e)=>({module:Hh,configure:r=>{r.configureClient(t,e)}}),Xl="default";class SC{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[Xl]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[Xl])throw Error("Default AuthClient already provided");this.configureClient(Xl,e)}}/*! @azure/msal-browser v2.30.0 2022-10-10 *//*! *****************************************************************************
|
|
35
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function kc(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var an=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=fo(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){e={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(de(u))try{u()}catch(v){i=v instanceof tu?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=fo(d),f=h.next();!f.done;f=h.next()){var m=f.value;try{gp(m)}catch(v){i=i!=null?i:[],v instanceof tu?i=tn(tn([],Ir(i)),Ir(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new tu(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gp(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&kc(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&kc(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Qv=an.EMPTY;function Jv(t){return t instanceof an||t&&"closed"in t&&de(t.remove)&&de(t.add)&&de(t.unsubscribe)}function gp(t){de(t)?t():t.unsubscribe()}var xh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},md={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=md.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,tn([t,e],Ir(r))):setTimeout.apply(void 0,tn([t,e],Ir(r)))},clearTimeout:function(t){var e=md.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Xv(t){md.setTimeout(function(){throw t})}function Ac(){}var Is=null;function Gs(t){if(xh.useDeprecatedSynchronousErrorHandling){var e=!Is;if(e&&(Is={errorThrown:!1,error:null}),t(),e){var r=Is,n=r.errorThrown,o=r.error;if(Is=null,n)throw o}}else t()}var Mh=function(t){Ar(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Jv(r)&&r.add(n)):n.destination=cE,n}return e.create=function(r,n,o){return new Rc(r,n,o)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(an),iE=Function.prototype.bind;function ru(t,e){return iE.call(t,e)}var aE=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){ks(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){ks(n)}else ks(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){ks(r)}},t}(),Rc=function(t){Ar(e,t);function e(r,n,o){var i=t.call(this)||this,a;if(de(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:o!=null?o:void 0};else{var s;i&&xh.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&ru(r.next,s),error:r.error&&ru(r.error,s),complete:r.complete&&ru(r.complete,s)}):a=r}return i.destination=new aE(a),i}return e}(Mh);function ks(t){Xv(t)}function sE(t){throw t}var cE={closed:!0,next:Ac,error:sE,complete:Ac},Uh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ki(t){return t}function lE(t){return t.length===0?ki:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var be=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,i=dE(e)?e:new Rc(e,r,n);return Gs(function(){var a=o,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=mp(r),new r(function(o,i){var a=new Rc({next:function(s){try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[Uh]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return lE(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=mp(e),new e(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function mp(t){var e;return(e=t!=null?t:xh.Promise)!==null&&e!==void 0?e:Promise}function uE(t){return t&&de(t.next)&&de(t.error)&&de(t.complete)}function dE(t){return t&&t instanceof Mh||uE(t)&&Jv(t)}function hE(t){return de(t==null?void 0:t.lift)}function Be(t){return function(e){if(hE(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,e,r,n,o){return new fE(t,e,r,n,o)}var fE=function(t){Ar(e,t);function e(r,n,o,i,a,s){var c=t.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:t.prototype._next,c._error=i?function(l){try{i(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=o?function(){try{o()}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Mh),pE=pl(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gr=function(t){Ar(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new vp(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new pE},e.prototype.next=function(r){var n=this;Gs(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=fo(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;Gs(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;Gs(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Qv:(this.currentObservers=null,s.push(r),new an(function(){n.currentObservers=null,kc(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},e.prototype.asObservable=function(){var r=new be;return r.source=this,r},e.create=function(r,n){return new vp(r,n)},e}(be),vp=function(t){Ar(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Qv},e}(Gr),gl=function(t){Ar(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(Gr),Lh={now:function(){return(Lh.delegate||Date).now()},delegate:void 0},Zv=function(t){Ar(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Lh);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=o.now(),l=0,u=1;u<i.length&&i[u]<=c;u+=2)l=u;l&&i.splice(0,l+1)}},e}(Gr),gE=function(t){Ar(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(an),Pc={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Pc.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,tn([t,e],Ir(r))):setInterval.apply(void 0,tn([t,e],Ir(r)))},clearInterval:function(t){var e=Pc.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},mE=function(t){Ar(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Pc.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Pc.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,kc(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(gE),yp=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Lh.now,t}(),vE=function(t){Ar(e,t);function e(r,n){n===void 0&&(n=yp.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(yp),Nc=new vE(mE),yE=Nc,po=new be(function(t){return t.complete()});function ey(t){return t&&de(t.schedule)}function Dh(t){return t[t.length-1]}function _E(t){return de(Dh(t))?t.pop():void 0}function ty(t){return ey(Dh(t))?t.pop():void 0}function wE(t,e){return typeof Dh(t)=="number"?t.pop():e}var Hh=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function ry(t){return de(t==null?void 0:t.then)}function ny(t){return de(t[Uh])}function oy(t){return Symbol.asyncIterator&&de(t==null?void 0:t[Symbol.asyncIterator])}function iy(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function EE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ay=EE();function sy(t){return de(t==null?void 0:t[ay])}function cy(t){return nE(this,arguments,function(){var r,n,o,i;return Yv(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,ai(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,ai(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,ai(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function ly(t){return de(t==null?void 0:t.getReader)}function Bt(t){if(t instanceof be)return t;if(t!=null){if(ny(t))return CE(t);if(Hh(t))return SE(t);if(ry(t))return TE(t);if(oy(t))return uy(t);if(sy(t))return bE(t);if(ly(t))return IE(t)}throw iy(t)}function CE(t){return new be(function(e){var r=t[Uh]();if(de(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function SE(t){return new be(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function TE(t){return new be(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Xv)})}function bE(t){return new be(function(e){var r,n;try{for(var o=fo(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function uy(t){return new be(function(e){kE(t,e).catch(function(r){return e.error(r)})})}function IE(t){return uy(cy(t))}function kE(t,e){var r,n,o,i;return rE(this,void 0,void 0,function(){var a,s;return Yv(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=oE(t),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Vr(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Oc(t,e){return e===void 0&&(e=0),Be(function(r,n){r.subscribe(Ue(n,function(o){return Vr(n,t,function(){return n.next(o)},e)},function(){return Vr(n,t,function(){return n.complete()},e)},function(o){return Vr(n,t,function(){return n.error(o)},e)}))})}function dy(t,e){return e===void 0&&(e=0),Be(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function AE(t,e){return Bt(t).pipe(dy(e),Oc(e))}function RE(t,e){return Bt(t).pipe(dy(e),Oc(e))}function PE(t,e){return new be(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function NE(t,e){return new be(function(r){var n;return Vr(r,e,function(){n=t[ay](),Vr(r,e,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return de(n==null?void 0:n.return)&&n.return()}})}function hy(t,e){if(!t)throw new Error("Iterable cannot be null");return new be(function(r){Vr(r,e,function(){var n=t[Symbol.asyncIterator]();Vr(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function OE(t,e){return hy(cy(t),e)}function xE(t,e){if(t!=null){if(ny(t))return AE(t,e);if(Hh(t))return PE(t,e);if(ry(t))return RE(t,e);if(oy(t))return hy(t,e);if(sy(t))return NE(t,e);if(ly(t))return OE(t,e)}throw iy(t)}function br(t,e){return e?xE(t,e):Bt(t)}function ml(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=ty(t);return br(t,r)}function ME(t,e){var r=de(t)?t:function(){return t},n=function(o){return o.error(r())};return new be(e?function(o){return e.schedule(n,0,o)}:n)}var vl=pl(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function xc(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=!1,a;t.subscribe({next:function(s){a=s,i=!0},error:o,complete:function(){i?n(a):r?n(e.defaultValue):o(new vl)}})})}function go(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=new Rc({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(e.defaultValue):o(new vl)}});t.subscribe(i)})}function fy(t){return t instanceof Date&&!isNaN(t)}var UE=pl(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function LE(t,e){var r=fy(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,o=r.each,i=r.with,a=i===void 0?DE:i,s=r.scheduler,c=s===void 0?e!=null?e:Nc:s,l=r.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return Be(function(d,h){var f,m,v=null,E=0,g=function(p){m=Vr(h,c,function(){try{f.unsubscribe(),Bt(a({meta:u,lastValue:v,seen:E})).subscribe(h)}catch(y){h.error(y)}},p)};f=d.subscribe(Ue(h,function(p){m==null||m.unsubscribe(),E++,h.next(v=p),o>0&&g(o)},void 0,void 0,function(){m!=null&&m.closed||m==null||m.unsubscribe(),v=null})),!E&&g(n!=null?typeof n=="number"?n:+n-c.now():o)})}function DE(t){throw new UE(t)}function yt(t,e){return Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){n.next(t.call(e,i,o++))}))})}var HE=Array.isArray;function FE(t,e){return HE(e)?t.apply(void 0,tn([],Ir(e))):t(e)}function $E(t){return yt(function(e){return FE(t,e)})}function py(t,e,r,n,o,i,a,s){var c=[],l=0,u=0,d=!1,h=function(){d&&!c.length&&!l&&e.complete()},f=function(v){return l<n?m(v):c.push(v)},m=function(v){i&&e.next(v),l++;var E=!1;Bt(r(v,u++)).subscribe(Ue(e,function(g){o==null||o(g),i?f(g):e.next(g)},function(){E=!0},void 0,function(){if(E)try{l--;for(var g=function(){var p=c.shift();a?Vr(e,a,function(){return m(p)}):m(p)};c.length&&l<n;)g();h()}catch(p){e.error(p)}}))};return t.subscribe(Ue(e,f,function(){d=!0,h()})),function(){s==null||s()}}function mo(t,e,r){return r===void 0&&(r=1/0),de(e)?mo(function(n,o){return yt(function(i,a){return e(n,i,o,a)})(Bt(t(n,o)))},r):(typeof e=="number"&&(r=e),Be(function(n,o){return py(n,o,t,r)}))}function zE(t){return t===void 0&&(t=1/0),mo(ki,t)}var jE=["addListener","removeListener"],BE=["addEventListener","removeEventListener"],qE=["on","off"];function vd(t,e,r,n){if(de(r)&&(n=r,r=void 0),n)return vd(t,e,r).pipe($E(n));var o=Ir(VE(t)?BE.map(function(s){return function(c){return t[s](e,c,r)}}):KE(t)?jE.map(_p(t,e)):GE(t)?qE.map(_p(t,e)):[],2),i=o[0],a=o[1];if(!i&&Hh(t))return mo(function(s){return vd(s,e,r)})(Bt(t));if(!i)throw new TypeError("Invalid event target");return new be(function(s){var c=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return s.next(1<l.length?l:l[0])};return i(c),function(){return a(c)}})}function _p(t,e){return function(r){return function(n){return t[r](e,n)}}}function KE(t){return de(t.addListener)&&de(t.removeListener)}function GE(t){return de(t.on)&&de(t.off)}function VE(t){return de(t.addEventListener)&&de(t.removeEventListener)}function WE(t,e,r){t===void 0&&(t=0),r===void 0&&(r=yE);var n=-1;return e!=null&&(ey(e)?r=e:n=e),new be(function(o){var i=fy(t)?+t-r.now():t;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function YE(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=ty(t),n=wE(t,1/0),o=t;return o.length?o.length===1?Bt(o[0]):zE(n)(br(o,r)):po}function Ai(t,e){return Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function rn(t){return Be(function(e,r){var n=null,o=!1,i;n=e.subscribe(Ue(r,void 0,void 0,function(a){i=Bt(t(a,rn(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function QE(t,e,r,n,o){return function(i,a){var s=r,c=e,l=0;i.subscribe(Ue(a,function(u){var d=l++;c=s?t(c,u,d):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function JE(t){return Be(function(e,r){var n=!1;e.subscribe(Ue(r,function(o){n=!0,r.next(o)},function(){n||r.next(t),r.complete()}))})}function gy(t,e){return e===void 0&&(e=ki),t=t!=null?t:XE,Be(function(r,n){var o,i=!0;r.subscribe(Ue(n,function(a){var s=e(a);(i||!t(o,s))&&(i=!1,o=s,n.next(a))}))})}function XE(t,e){return t===e}function my(t){return t===void 0&&(t=ZE),Be(function(e,r){var n=!1;e.subscribe(Ue(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(t())}))})}function ZE(){return new vl}function eC(t){return t<=0?function(){return po}:Be(function(e,r){var n=[];e.subscribe(Ue(r,function(o){n.push(o),t<n.length&&n.shift()},function(){var o,i;try{for(var a=fo(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function tC(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?Ai(function(o,i){return t(o,i,n)}):ki,eC(1),r?JE(e):my(function(){return new vl}))}}function rC(t,e,r){return r===void 0&&(r=1/0),Be(function(n,o){var i=e;return py(n,o,function(a,s){return t(i,a,s)},r,function(a){i=a},!1,void 0,function(){return i=null})})}function vy(){return Be(function(t,e){var r,n=!1;t.subscribe(Ue(e,function(o){var i=r;r=o,n&&e.next([i,o]),n=!0}))})}function Fh(t,e){return Be(QE(t,e,arguments.length>=2,!0))}function Qn(t,e){return Be(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(Ue(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;Bt(t(c,u)).subscribe(o=Ue(n,function(d){return n.next(e?e(c,d,u,l++):d)},function(){o=null,s()}))},function(){a=!0,s()}))})}function nC(t){return Be(function(e,r){Bt(t).subscribe(Ue(r,function(){return r.complete()},Ac)),!r.closed&&e.subscribe(r)})}function yy(t,e){return e===void 0&&(e=!1),Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){var a=t(i,o++);(a||e)&&n.next(i),!a&&n.complete()}))})}function yd(t,e,r){var n=de(t)||e||r?{next:t,error:e,complete:r}:t;return n?Be(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(Ue(i,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),i.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),i.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):ki}function oC(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=_E(t);return Be(function(n,o){for(var i=t.length,a=new Array(i),s=t.map(function(){return!1}),c=!1,l=function(d){Bt(t[d]).subscribe(Ue(o,function(h){a[d]=h,!c&&!s[d]&&(s[d]=!0,(c=s.every(ki))&&(s=null))},Ac))},u=0;u<i;u++)l(u);n.subscribe(Ue(o,function(d){if(c){var h=tn([d],Ir(a));o.next(r?r.apply(void 0,tn([],Ir(h))):h)}}))})}var mr=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class iC extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class aC{constructor(e){this.logger=new Vv("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(r=>this.addConfig(r))}addConfig(e){const{module:r,afterConfig:n,afterInit:o,configure:i}=e;this._modules.add(r),i&&this._configs.push((a,s)=>i(a[r.name],s)),n&&this._afterConfiguration.push(a=>n(a[r.name])),o&&this._afterInit.push(a=>o(a[r.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return mr(this,void 0,void 0,function*(){const r=yield this._configure(e),n=yield this._initialize(r,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return mr(this,void 0,void 0,function*(){const r=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(r,e)))),yield this._postConfigure(r),r})}_createConfig(e){const{modules:r,logger:n,_afterConfiguration:o,_afterInit:i}=this,a=br(r).pipe(mo(s=>mr(this,void 0,void 0,function*(){var c;n.debug(`\u{1F6E0} creating configurator ${n.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return n.debug(`\u{1F6E0} created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`\u{1F6E0} Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),Fh((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return xc(a)}_postConfigure(e){return mr(this,void 0,void 0,function*(){const{modules:r,logger:n,_afterConfiguration:o}=this;if(yield Promise.allSettled(r.filter(i=>!!i.postConfigure).map(i=>mr(this,void 0,void 0,function*(){var a;try{yield(a=i.postConfigure)===null||a===void 0?void 0:a.call(i,e),n.debug(`\u{1F3D7}\u{1F4CC} post configured ${n.formatModuleName(i)}`,i)}catch{n.warn(`\u{1F3D7}\u{1F4CC} post configure failed ${n.formatModuleName(i)}`)}}))),o.length)try{n.debug(`\u{1F3D7}\u{1F4CC} post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(i=>Promise.resolve(i(e)))),n.debug("\u{1F3D7}\u{1F4CC} post configure hooks complete")}catch(i){n.warn("\u{1F3D7}\u{1F4CC} post configure hook failed",i)}})}_initialize(e,r){return mr(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new gl({}),s=u=>i.includes(u),c=(u,d=60)=>{if(!i.includes(u))throw o.error(`\u{1F680}\u231B\uFE0F Cannot not require ${o.formatModuleName(String(u))} since module is not defined!`),Error(`cannot not require [${String(u)}] since module is not defined!`);return a.value[u]?(o.debug(`\u{1F680}\u231B\uFE0F ${o.formatModuleName(String(u))} is initiated, skipping queue`),Promise.resolve(a.value[u])):(o.debug(`\u{1F680}\u231B\uFE0F Awaiting init ${o.formatModuleName(String(u))}, timeout ${d}s`),go(a.pipe(Ai(h=>!!h[u]),yt(h=>h[u]),LE({each:d*1e3,with:()=>ME(()=>new iC)}))))};br(n).pipe(mo(u=>{const d=u.name;return o.debug(`\u{1F680} initializing ${o.formatModuleName(u)}`),br(Promise.resolve(u.initialize({ref:r,config:e[d],requireInstance:c,hasModule:s}))).pipe(yt(h=>(o.debug(`\u{1F680} initialized ${o.formatModuleName(u)}`),[d,h])))})).subscribe({next:([u,d])=>{a.next(Object.assign(a.value,{[u]:d}))},complete:()=>a.complete()});const l=yield xc(a);return Object.seal(l),l})}_postInitialize(e,r){return mr(this,void 0,void 0,function*(){const{modules:n,logger:o,_afterInit:i}=this;if(yield Promise.allSettled(n.filter(a=>!!a.postInitialize).map(a=>mr(this,void 0,void 0,function*(){var s;try{o.debug(`\u{1F680}\u{1F4CC} post initializing moule ${o.formatModuleName(a)}`),yield(s=a.postInitialize)===null||s===void 0?void 0:s.call(a,{ref:r,modules:e,instance:e[a.name]}),o.debug(`\u{1F680}\u{1F4CC} post initialized moule ${o.formatModuleName(a)}`)}catch{o.warn(`\u{1F680}\u{1F4CC} post initialize failed moule ${o.formatModuleName(a)}`)}}))),i.length)try{o.debug(`\u{1F680}\u{1F4CC} post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(a=>Promise.resolve(a(e)))),o.debug("\u{1F680}\u{1F4CC} post configure hooks complete")}catch(a){o.warn("\u{1F680}\u{1F4CC} post configure hook failed",a)}o.debug(`\u{1F389} Modules initialized ${n.map(o.formatModuleName)}`,e),o.info("\u{1F7E2} Modules initialized")})}dispose(e,r){return mr(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>mr(this,void 0,void 0,function*(){var i;yield(i=o.dispose)===null||i===void 0?void 0:i.call(o,{ref:r,modules:e,instance:e[o.name]})})))})}}var bo=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},$n=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Vs,Ws,Zi,Ys,ea,_d;class sC{constructor(e,r){this.__type=e,Vs.set(this,void 0),Ws.set(this,void 0),Zi.set(this,!1),Ys.set(this,void 0),ea.set(this,void 0),_d.set(this,Date.now()),bo(this,Vs,r.detail,"f"),bo(this,Ws,r.source,"f"),bo(this,Ys,!!r.cancelable,"f"),bo(this,ea,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return $n(this,ea,"f")&&!$n(this,Zi,"f")}get created(){return $n(this,_d,"f")}get cancelable(){return $n(this,Ys,"f")}get canceled(){return $n(this,Zi,"f")}get detail(){return $n(this,Vs,"f")}get source(){return $n(this,Ws,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&bo(this,Zi,!0,"f")}stopPropagation(){bo(this,ea,!1,"f")}}Vs=new WeakMap,Ws=new WeakMap,Zi=new WeakMap,Ys=new WeakMap,ea=new WeakMap,_d=new WeakMap;var cC=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class lC{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,o;return cC(this,void 0,void 0,function*(){try{yield(n=this.__onDispatch)===null||n===void 0?void 0:n.call(this,e)}catch(a){throw a}const i=e;if(!i.dispatcher)i.dispatcher=this;else if(i.dispatcher===this)throw Error("loop detected");for(const a of r)e.cancelable?e.canceled||(yield Promise.resolve(a(e))):a(e);if(e.bubbles)try{yield(o=this.__onBubble)===null||o===void 0?void 0:o.call(this,e)}catch(a){throw a}})}}var wp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class uC extends be{constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new Gr,this.__dispatcher=new lC({onDispatch:e.onDispatch,onBubble:e.onBubble})}get closed(){return this.__event$.closed}addEventListener(e,r){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:r};return this.__listeners.push(n),()=>{const o=this.__listeners.indexOf(n);0<=o&&this.__listeners.splice(o,1)}}dispatchEvent(e,r){return wp(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new sC(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return wp(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const r=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,r)}catch(r){throw r}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var dC=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const hC="event",fC={name:hC,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>dC(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new uC(t),postInitialize({instance:t,modules:e}){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})},dispose({instance:t}){t.dispose()}};class _y{constructor(){this._operators={}}add(e,r){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,r)}set(e,r){return this._operators[e]=r,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?br(Object.values(this._operators)).pipe(rC((n,o)=>Promise.resolve(o(n)).then(i=>i!=null?i:n),e,1),tC()):ml(e)}}const pC=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class wy extends _y{setHeader(e,r){const n=pC(e,r);return this.set("header-"+e,n)}}class gC extends _y{}class mC{constructor(e){this._clients={},this.defaultHttpRequestHandler=new wy,this.defaultHttpClientCtor=e}get clients(){return Object.assign({},this._clients)}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,r){const n=typeof r=="string"?i=>i.uri=String(r):r,o=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),o),this}}class vC extends Error{constructor(e){super(e)}}const yC=t=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t);class _C{constructor(e){this.config=e}get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const r=this._resolveConfig(e),{baseUri:n,defaultScopes:o=[],onCreate:i,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=r,c={requestHandler:s},l=new a(n||"",c);return Object.assign(l,{defaultScopes:o}),i&&i(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const r=this.config.clients[e];if(!r&&yC(e))return{baseUri:e};if(!r)throw new vC(`No registered http client for key [${e}]`);return r}return e}}function wC(t,e){e===void 0&&(e={});var r=e.selector,n=Wv(e,["selector"]);return new be(function(o){var i=new AbortController,a=i.signal,s=!0,c=n.signal;if(c)if(c.aborted)i.abort();else{var l=function(){a.aborted||i.abort()};c.addEventListener("abort",l),o.add(function(){return c.removeEventListener("abort",l)})}var u=ho(ho({},n),{signal:a}),d=function(h){s=!1,o.error(h)};return fetch(t,u).then(function(h){r?Bt(r(h)).subscribe(Ue(o,void 0,function(){s=!1,o.complete()},d)):(s=!1,o.next(h),o.complete())}).catch(d),function(){s&&i.abort()}})}const EC=t=>{if(!t.ok)throw new Error("Network response was not OK");if(t.status===204)return Promise.resolve();try{return t.json()}catch{throw Error("failed to parse response")}};var Ep=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r};class CC{constructor(e,r){var n,o;this.uri=e,this._request$=new Gr,this._response$=new Gr,this._abort$=new Gr,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new wy,this.responseHandler=(o=r==null?void 0:r.responseHandler)!==null&&o!==void 0?o:new gC,this._init()}get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return go(this.fetch$(e,r))}fetchAsync(e,r){return this.fetch(e,r)}json$(e,r){var n;const o=typeof(r==null?void 0:r.body)=="object"?JSON.stringify(r==null?void 0:r.body):r==null?void 0:r.body,i=(n=r==null?void 0:r.selector)!==null&&n!==void 0?n:EC;return new Headers(r==null?void 0:r.headers).append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},r),{body:o,selector:i}))}json(e,r){return go(this.json$(e,r))}jsonAsync(e,r){return this.json(e,r)}execute(e,r,n){return this[e](r,n)}abort(){this._abort$.next()}_fetch$(e,r){const n=r||{},{selector:o}=n,i=Ep(n,["selector"]);return ml(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(Qn(s=>this._prepareRequest(s)),yd(s=>this._request$.next(s)),Qn(s=>{var{uri:c,path:l}=s,u=Ep(s,["uri","path"]);return wC(c,u)}),Qn(s=>this._prepareResponse(s)),yd(s=>this._response$.next(s)),Qn(s=>o?o(s):Promise.resolve(s)),nC(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const r=this.uri||window.location.origin;return new URL(e,r).href}}class SC extends CC{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,r){const n=Object.assign(r||{},{scopes:this.defaultScopes.concat((r==null?void 0:r.scopes)||[])});return super._fetch$(e,n)}}var Cp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const $h={name:"http",configure:()=>new mC(SC),initialize:({config:t,hasModule:e,requireInstance:r})=>Cp(void 0,void 0,void 0,function*(){const n=new _C(t);if(e("auth")){const o=yield r("auth");n.defaultHttpRequestHandler.set("MSAL",i=>Cp(void 0,void 0,void 0,function*(){const{scopes:a=[]}=i;if(a.length){const s=yield o.acquireToken({scopes:a});if(s){const c=new Headers(i.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},i),{headers:c})}}}))}return n})},TC=t=>({module:$h,configure:t}),Ey=(t,e)=>({module:$h,configure:r=>{r.configureClient(t,e)}}),nu="default";class bC{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[nu]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[nu])throw Error("Default AuthClient already provided");this.configureClient(nu,e)}}/*! @azure/msal-browser v2.30.0 2022-10-10 *//*! *****************************************************************************
|
|
36
36
|
Copyright (c) Microsoft Corporation.
|
|
37
37
|
|
|
38
38
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -45,7 +45,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
45
45
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
46
46
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
47
47
|
PERFORMANCE OF THIS SOFTWARE.
|
|
48
|
-
***************************************************************************** */var
|
|
48
|
+
***************************************************************************** */var wd=function(t,e){return wd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},wd(t,e)};function ot(t,e){wd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var $=function(){return $=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},$.apply(this,arguments)};function IC(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function S(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function T(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function kC(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function zh(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(kC(arguments[e]));return t}/*! @azure/msal-common v7.6.0 2022-10-10 *//*! *****************************************************************************
|
|
49
49
|
Copyright (c) Microsoft Corporation.
|
|
50
50
|
|
|
51
51
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -58,7 +58,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
58
58
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
59
59
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
60
60
|
PERFORMANCE OF THIS SOFTWARE.
|
|
61
|
-
***************************************************************************** */var _d=function(t,e){return _d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},_d(t,e)};function xt(t,e){_d(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ne=function(){return Ne=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ne.apply(this,arguments)};function K(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function G(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function fl(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}/*! @azure/msal-common v7.6.0 2022-10-10 */var _={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240},Za=[_.OPENID_SCOPE,_.PROFILE_SCOPE,_.OFFLINE_ACCESS_SCOPE],Ep=fl(Za,[_.EMAIL_SCOPE]),hr;(function(t){t.CONTENT_TYPE="Content-Type",t.RETRY_AFTER="Retry-After",t.CCS_HEADER="X-AnchorMailbox",t.WWWAuthenticate="WWW-Authenticate",t.AuthenticationInfo="Authentication-Info",t.X_MS_REQUEST_ID="x-ms-request-id"})(hr||(hr={}));var He;(function(t){t.ID_TOKEN="idtoken",t.CLIENT_INFO="client.info",t.ADAL_ID_TOKEN="adal.idtoken",t.ERROR="error",t.ERROR_DESC="error.description",t.ACTIVE_ACCOUNT="active-account",t.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(He||(He={}));var Rc;(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"})(Rc||(Rc={}));var Q;(function(t){t.CLIENT_ID="client_id",t.REDIRECT_URI="redirect_uri",t.RESPONSE_TYPE="response_type",t.RESPONSE_MODE="response_mode",t.GRANT_TYPE="grant_type",t.CLAIMS="claims",t.SCOPE="scope",t.ERROR="error",t.ERROR_DESCRIPTION="error_description",t.ACCESS_TOKEN="access_token",t.ID_TOKEN="id_token",t.REFRESH_TOKEN="refresh_token",t.EXPIRES_IN="expires_in",t.STATE="state",t.NONCE="nonce",t.PROMPT="prompt",t.SESSION_STATE="session_state",t.CLIENT_INFO="client_info",t.CODE="code",t.CODE_CHALLENGE="code_challenge",t.CODE_CHALLENGE_METHOD="code_challenge_method",t.CODE_VERIFIER="code_verifier",t.CLIENT_REQUEST_ID="client-request-id",t.X_CLIENT_SKU="x-client-SKU",t.X_CLIENT_VER="x-client-VER",t.X_CLIENT_OS="x-client-OS",t.X_CLIENT_CPU="x-client-CPU",t.X_CLIENT_CURR_TELEM="x-client-current-telemetry",t.X_CLIENT_LAST_TELEM="x-client-last-telemetry",t.X_MS_LIB_CAPABILITY="x-ms-lib-capability",t.X_APP_NAME="x-app-name",t.X_APP_VER="x-app-ver",t.POST_LOGOUT_URI="post_logout_redirect_uri",t.ID_TOKEN_HINT="id_token_hint",t.DEVICE_CODE="device_code",t.CLIENT_SECRET="client_secret",t.CLIENT_ASSERTION="client_assertion",t.CLIENT_ASSERTION_TYPE="client_assertion_type",t.TOKEN_TYPE="token_type",t.REQ_CNF="req_cnf",t.OBO_ASSERTION="assertion",t.REQUESTED_TOKEN_USE="requested_token_use",t.ON_BEHALF_OF="on_behalf_of",t.FOCI="foci",t.CCS_HEADER="X-AnchorMailbox",t.RETURN_SPA_CODE="return_spa_code",t.NATIVE_BROKER="nativebroker",t.LOGOUT_HINT="logout_hint"})(Q||(Q={}));var Vo;(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"})(Vo||(Vo={}));var gt={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},ma;(function(t){t.ACCOUNT="account",t.SID="sid",t.LOGIN_HINT="login_hint",t.ID_TOKEN="id_token",t.DOMAIN_HINT="domain_hint",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers",t.ACCOUNT_ID="accountIdentifier",t.HOMEACCOUNT_ID="homeAccountIdentifier"})(ma||(ma={}));var Cp={PLAIN:"plain",S256:"S256"},Pc;(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"})(Pc||(Pc={}));var Nc;(function(t){t.IMPLICIT_GRANT="implicit",t.AUTHORIZATION_CODE_GRANT="authorization_code",t.CLIENT_CREDENTIALS_GRANT="client_credentials",t.RESOURCE_OWNER_PASSWORD_GRANT="password",t.REFRESH_TOKEN_GRANT="refresh_token",t.DEVICE_CODE_GRANT="device_code",t.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(Nc||(Nc={}));var Fr;(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"})(Fr||(Fr={}));var Ft;(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."})(Ft||(Ft={}));var ee;(function(t){t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",t.REFRESH_TOKEN="RefreshToken"})(ee||(ee={}));var to;(function(t){t.ACCOUNT="Account",t.CREDENTIAL="Credential",t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.REFRESH_TOKEN="RefreshToken",t.APP_METADATA="AppMetadata",t.TEMPORARY="TempCache",t.TELEMETRY="Telemetry",t.UNDEFINED="Undefined",t.THROTTLING="Throttling"})(to||(to={}));var Br;(function(t){t[t.ADFS=1001]="ADFS",t[t.MSA=1002]="MSA",t[t.MSSTS=1003]="MSSTS",t[t.GENERIC=1004]="GENERIC",t[t.ACCESS_TOKEN=2001]="ACCESS_TOKEN",t[t.REFRESH_TOKEN=2002]="REFRESH_TOKEN",t[t.ID_TOKEN=2003]="ID_TOKEN",t[t.APP_METADATA=3001]="APP_METADATA",t[t.UNDEFINED=9999]="UNDEFINED"})(Br||(Br={}));var wd="appmetadata",IC="client_info",Oc="1",va={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},qt;(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network",t.HARDCODED_VALUES="hardcoded_values"})(qt||(qt={}));var Ye={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},le;(function(t){t.BEARER="Bearer",t.POP="pop",t.SSH="ssh-cert"})(le||(le={}));var ya={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Sp={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},xc;(function(t){t.username="username",t.password="password"})(xc||(xc={}));var Wo;(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"})(Wo||(Wo={}));var gn;(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"})(gn||(gn={}));var Gn;(function(t){t.CONFIGURED_MATCHES_DETECTED="1",t.CONFIGURED_NO_AUTO_DETECTION="2",t.CONFIGURED_NOT_DETECTED="3",t.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",t.AUTO_DETECTION_REQUESTED_FAILED="5"})(Gn||(Gn={}));var Jn;(function(t){t.NO_CACHE_HIT="0",t.FORCE_REFRESH="1",t.NO_CACHED_ACCESS_TOKEN="2",t.CACHED_ACCESS_TOKEN_EXPIRED="3",t.REFRESH_CACHED_ACCESS_TOKEN="4"})(Jn||(Jn={}));var Ed;(function(t){t.Jwt="JWT",t.Jwk="JWK"})(Ed||(Ed={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Is={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},z=function(t){xt(e,t);function e(r,n,o){var i=this,a=n?r+": "+n:r;return i=t.call(this,a)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=r||_.EMPTY_STRING,i.errorMessage=n||_.EMPTY_STRING,i.subError=o||_.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(r){this.correlationId=r},e.createUnexpectedError=function(r){return new e(Is.unexpectedError.code,Is.unexpectedError.desc+": "+r)},e.createPostRequestFailed=function(r){return new e(Is.postRequestFailed.code,Is.postRequestFailed.desc+": "+r)},e}(Error);/*! @azure/msal-common v7.6.0 2022-10-10 */var Mc={createNewGuid:function(){var t="Crypto interface - createNewGuid() has not been implemented";throw z.createUnexpectedError(t)},base64Decode:function(){var t="Crypto interface - base64Decode() has not been implemented";throw z.createUnexpectedError(t)},base64Encode:function(){var t="Crypto interface - base64Encode() has not been implemented";throw z.createUnexpectedError(t)},generatePkceCodes:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - generatePkceCodes() has not been implemented",z.createUnexpectedError(t)})})},getPublicKeyThumbprint:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - getPublicKeyThumbprint() has not been implemented",z.createUnexpectedError(t)})})},removeTokenBindingKey:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - removeTokenBindingKey() has not been implemented",z.createUnexpectedError(t)})})},clearKeystore:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - clearKeystore() has not been implemented",z.createUnexpectedError(t)})})},signJwt:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - signJwt() has not been implemented",z.createUnexpectedError(t)})})},hashString:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - hashString() has not been implemented",z.createUnexpectedError(t)})})}};/*! @azure/msal-common v7.6.0 2022-10-10 */var A={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."}},D=function(t){xt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(r){return new e(A.clientInfoDecodingError.code,A.clientInfoDecodingError.desc+" Failed with error: "+r)},e.createClientInfoEmptyError=function(){return new e(A.clientInfoEmptyError.code,""+A.clientInfoEmptyError.desc)},e.createTokenParsingError=function(r){return new e(A.tokenParsingError.code,A.tokenParsingError.desc+" Failed with error: "+r)},e.createTokenNullOrEmptyError=function(r){return new e(A.nullOrEmptyToken.code,A.nullOrEmptyToken.desc+" Raw Token Value: "+r)},e.createEndpointDiscoveryIncompleteError=function(r){return new e(A.endpointResolutionError.code,A.endpointResolutionError.desc+" Detail: "+r)},e.createNetworkError=function(r,n){return new e(A.networkError.code,A.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToGetOpenidConfigError=function(r){return new e(A.unableToGetOpenidConfigError.code,A.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},e.createHashNotDeserializedError=function(r){return new e(A.hashNotDeserialized.code,A.hashNotDeserialized.desc+" Given Object: "+r)},e.createInvalidStateError=function(r,n){return new e(A.invalidStateError.code,A.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(A.stateMismatchError.code,A.stateMismatchError.desc)},e.createStateNotFoundError=function(r){return new e(A.stateNotFoundError.code,A.stateNotFoundError.desc+": "+r)},e.createNonceMismatchError=function(){return new e(A.nonceMismatchError.code,A.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(A.authTimeNotFoundError.code,A.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(A.maxAgeTranspiredError.code,A.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(r){return new e(A.nonceNotFoundError.code,A.nonceNotFoundError.desc+": "+r)},e.createMultipleMatchingTokensInCacheError=function(){return new e(A.multipleMatchingTokens.code,A.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(A.multipleMatchingAccounts.code,A.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(A.multipleMatchingAppMetadata.code,A.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(A.tokenRequestCannotBeMade.code,A.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(r){return new e(A.appendEmptyScopeError.code,A.appendEmptyScopeError.desc+" Given Scope: "+r)},e.createRemoveEmptyScopeFromSetError=function(r){return new e(A.removeEmptyScopeError.code,A.removeEmptyScopeError.desc+" Given Scope: "+r)},e.createAppendScopeSetError=function(r){return new e(A.appendScopeSetError.code,A.appendScopeSetError.desc+" Detail Error: "+r)},e.createEmptyInputScopeSetError=function(){return new e(A.emptyInputScopeSetError.code,""+A.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(A.DeviceCodePollingCancelled.code,""+A.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(A.DeviceCodeExpired.code,""+A.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(A.DeviceCodeUnknownError.code,""+A.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(A.NoAccountInSilentRequest.code,""+A.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(A.invalidCacheRecord.code,A.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(A.invalidCacheEnvironment.code,A.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(A.noAccountFound.code,A.noAccountFound.desc)},e.createCachePluginError=function(){return new e(A.CachePluginError.code,""+A.CachePluginError.desc)},e.createNoCryptoObjectError=function(r){return new e(A.noCryptoObj.code,""+A.noCryptoObj.desc+r)},e.createInvalidCacheTypeError=function(){return new e(A.invalidCacheType.code,""+A.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(A.unexpectedAccountType.code,""+A.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(A.unexpectedCredentialType.code,""+A.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(A.invalidAssertion.code,""+A.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(A.invalidClientCredential.code,""+A.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(A.tokenRefreshRequired.code,A.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(A.userTimeoutReached.code,A.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(A.tokenClaimsRequired.code,A.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(A.noAuthorizationCodeFromServer.code,A.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(A.bindingKeyNotRemovedError.code,A.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(A.logoutNotSupported.code,A.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(A.keyIdMissing.code,A.keyIdMissing.desc)},e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var x=function(){function t(){}return t.decodeAuthToken=function(e){if(t.isEmpty(e))throw D.createTokenNullOrEmptyError(e);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=r.exec(e);if(!n||n.length<4)throw D.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:n[1],JWSPayload:n[2],JWSSig:n[3]};return o},t.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},t.isEmptyObj=function(e){if(e&&!t.isEmpty(e))try{var r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0},t.startsWith=function(e,r){return e.indexOf(r)===0},t.endsWith=function(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length},t.queryStringToObject=function(e){var r={},n=e.split("&"),o=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return n.forEach(function(i){if(i.trim()){var a=i.split(/=(.+)/g,2),s=a[0],c=a[1];s&&c&&(r[o(s)]=o(c))}}),r},t.trimArrayEntries=function(e){return e.map(function(r){return r.trim()})},t.removeEmptyStringsFromArray=function(e){return e.filter(function(r){return!t.isEmpty(r)})},t.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},t.matchPattern=function(e,r){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(r)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var xe;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(xe||(xe={}));var $h=function(){function t(e,r,n){this.level=xe.Info;var o=function(){};this.localCallback=e.loggerCallback||o,this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:xe.Info,this.correlationId=e.correlationId||_.EMPTY_STRING,this.packageName=r||_.EMPTY_STRING,this.packageVersion=n||_.EMPTY_STRING}return t.prototype.clone=function(e,r,n){return new t({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,r)},t.prototype.logMessage=function(e,r){if(!(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)){var n=new Date().toUTCString(),o;x.isEmpty(r.correlationId)?x.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+r.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+xe[r.logLevel]+" - "+e;this.executeCallback(r.logLevel,i,r.containsPii||!1)}},t.prototype.executeCallback=function(e,r,n){this.localCallback&&this.localCallback(e,r,n)},t.prototype.error=function(e,r){this.logMessage(e,{logLevel:xe.Error,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.errorPii=function(e,r){this.logMessage(e,{logLevel:xe.Error,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.warning=function(e,r){this.logMessage(e,{logLevel:xe.Warning,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.warningPii=function(e,r){this.logMessage(e,{logLevel:xe.Warning,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.info=function(e,r){this.logMessage(e,{logLevel:xe.Info,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.infoPii=function(e,r){this.logMessage(e,{logLevel:xe.Info,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.verbose=function(e,r){this.logMessage(e,{logLevel:xe.Verbose,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.verbosePii=function(e,r){this.logMessage(e,{logLevel:xe.Verbose,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.trace=function(e,r){this.logMessage(e,{logLevel:xe.Trace,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.tracePii=function(e,r){this.logMessage(e,{logLevel:xe.Trace,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var kC="@azure/msal-common",wy="7.6.0";/*! @azure/msal-common v7.6.0 2022-10-10 */var Ha;(function(t){t[t.None=0]="None",t.AzurePublic="https://login.microsoftonline.com",t.AzurePpe="https://login.windows-ppe.net",t.AzureChina="https://login.chinacloudapi.cn",t.AzureGermany="https://login.microsoftonline.de",t.AzureUsGovernment="https://login.microsoftonline.us"})(Ha||(Ha={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Fa=function(){function t(){}return t.prototype.generateAccountId=function(){return t.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},t.prototype.generateCredentialId=function(){return t.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},t.prototype.generateTarget=function(){return t.generateTargetForCacheKey(this.target)},t.prototype.generateCredentialKey=function(){return t.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},t.prototype.generateType=function(){switch(this.credentialType){case ee.ID_TOKEN:return Br.ID_TOKEN;case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Br.ACCESS_TOKEN;case ee.REFRESH_TOKEN:return Br.REFRESH_TOKEN;default:throw D.createUnexpectedCredentialTypeError()}},t.getCredentialType=function(e){return e.indexOf(ee.ACCESS_TOKEN.toLowerCase())!==-1?e.indexOf(ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())!==-1?ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:ee.ACCESS_TOKEN:e.indexOf(ee.ID_TOKEN.toLowerCase())!==-1?ee.ID_TOKEN:e.indexOf(ee.REFRESH_TOKEN.toLowerCase())!==-1?ee.REFRESH_TOKEN:_.NOT_DEFINED},t.generateCredentialCacheKey=function(e,r,n,o,i,a,s,c,l){var u=[this.generateAccountIdForCacheKey(e,r),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return u.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,r){var n=[e,r];return n.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(e,r,n,o){var i=e===ee.REFRESH_TOKEN&&o||r,a=[e,i,n||_.EMPTY_STRING];return a.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateTargetForCacheKey=function(e){return(e||_.EMPTY_STRING).toLowerCase()},t.generateClaimsHashForCacheKey=function(e){return(e||_.EMPTY_STRING).toLowerCase()},t.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==le.BEARER.toLowerCase()?e.toLowerCase():_.EMPTY_STRING},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Y={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"}},we=function(t){xt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(Y.redirectUriNotSet.code,Y.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Y.postLogoutUriNotSet.code,Y.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(r){return new e(Y.claimsRequestParsingError.code,Y.claimsRequestParsingError.desc+" Given value: "+r)},e.createInsecureAuthorityUriError=function(r){return new e(Y.authorityUriInsecure.code,Y.authorityUriInsecure.desc+" Given URI: "+r)},e.createUrlParseError=function(r){return new e(Y.urlParseError.code,Y.urlParseError.desc+" Given Error: "+r)},e.createUrlEmptyError=function(){return new e(Y.urlEmptyError.code,Y.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(Y.emptyScopesError.code,""+Y.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(r){return new e(Y.clientIdSingleScopeError.code,Y.clientIdSingleScopeError.desc+" Given Scopes: "+r)},e.createInvalidPromptError=function(r){return new e(Y.invalidPrompt.code,Y.invalidPrompt.desc+" Given value: "+r)},e.createInvalidClaimsRequestError=function(){return new e(Y.invalidClaimsRequest.code,Y.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(Y.logoutRequestEmptyError.code,Y.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(Y.tokenRequestEmptyError.code,Y.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(Y.invalidCodeChallengeMethod.code,Y.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(Y.invalidCodeChallengeParams.code,Y.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(Y.invalidCloudDiscoveryMetadata.code,Y.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(Y.invalidAuthorityMetadata.code,Y.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(Y.untrustedAuthority.code,Y.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(Y.invalidAzureCloudInstance.code,Y.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(Y.missingSshJwk.code,Y.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(Y.missingSshKid.code,Y.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(Y.missingNonceAuthenticationHeader.code,Y.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(r,n){return new e(Y.invalidAuthenticationHeader.code,Y.invalidAuthenticationHeader.desc+". Invalid header: "+r+". Details: "+n)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var wt=function(){function t(e){var r=this,n=e?x.trimArrayEntries(fl(e)):[],o=n?x.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return r.scopes.add(i)})}return t.fromString=function(e){var r=e||_.EMPTY_STRING,n=r.split(" ");return new t(n)},t.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw we.createEmptyScopesArrayError()},t.prototype.containsScope=function(e){var r=this.printScopesLowerCase().split(" "),n=new t(r);return x.isEmpty(e)?!1:n.scopes.has(e.toLowerCase())},t.prototype.containsScopeSet=function(e){var r=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return r.containsScope(n)})},t.prototype.containsOnlyOIDCScopes=function(){var e=this,r=0;return Ep.forEach(function(n){e.containsScope(n)&&(r+=1)}),this.scopes.size===r},t.prototype.appendScope=function(e){x.isEmpty(e)||this.scopes.add(e.trim())},t.prototype.appendScopes=function(e){var r=this;try{e.forEach(function(n){return r.appendScope(n)})}catch(n){throw D.createAppendScopeSetError(n)}},t.prototype.removeScope=function(e){if(x.isEmpty(e))throw D.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},t.prototype.removeOIDCScopes=function(){var e=this;Ep.forEach(function(r){e.scopes.delete(r)})},t.prototype.unionScopeSets=function(e){if(!e)throw D.createEmptyInputScopeSetError();var r=new Set;return e.scopes.forEach(function(n){return r.add(n.toLowerCase())}),this.scopes.forEach(function(n){return r.add(n.toLowerCase())}),r},t.prototype.intersectingScopeSets=function(e){if(!e)throw D.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var r=this.unionScopeSets(e),n=e.getScopeCount(),o=this.getScopeCount(),i=r.size;return i<o+n},t.prototype.getScopeCount=function(){return this.scopes.size},t.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(r){return e.push(r)}),e},t.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return _.EMPTY_STRING},t.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */function Uc(t,e){if(x.isEmpty(t))throw D.createClientInfoEmptyError();try{var r=e.base64Decode(t);return JSON.parse(r)}catch(n){throw D.createClientInfoDecodingError(n.message)}}function Yo(t){if(x.isEmpty(t))throw D.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(Ft.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?_.EMPTY_STRING:e[1]}}/*! @azure/msal-common v7.6.0 2022-10-10 */var Wt;(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs",t[t.Dsts=2]="Dsts"})(Wt||(Wt={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var tt=function(){function t(){}return t.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.prototype.generateAccountKey=function(){return t.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},t.prototype.generateType=function(){switch(this.authorityType){case Fr.ADFS_ACCOUNT_TYPE:return Br.ADFS;case Fr.MSAV1_ACCOUNT_TYPE:return Br.MSA;case Fr.MSSTS_ACCOUNT_TYPE:return Br.MSSTS;case Fr.GENERIC_ACCOUNT_TYPE:return Br.GENERIC;default:throw D.createUnexpectedAccountTypeError()}},t.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},t.generateAccountCacheKey=function(e){var r=[e.homeAccountId,e.environment||_.EMPTY_STRING,e.tenantId||_.EMPTY_STRING];return r.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,r,n,o,i,a,s,c){var l,u,d,h,f,m,v=new t;v.authorityType=Fr.MSSTS_ACCOUNT_TYPE,v.clientInfo=e,v.homeAccountId=r,v.nativeAccountId=c;var E=s||o&&o.getPreferredCache();if(!E)throw D.createInvalidCacheEnvironmentError();if(v.environment=E,v.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||_.EMPTY_STRING,n){v.idTokenClaims=n.claims,v.localAccountId=((u=n==null?void 0:n.claims)===null||u===void 0?void 0:u.oid)||((d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.sub)||_.EMPTY_STRING;var g=(h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.preferred_username,p=!((f=n==null?void 0:n.claims)===null||f===void 0)&&f.emails?n.claims.emails[0]:null;v.username=g||p||_.EMPTY_STRING,v.name=(m=n==null?void 0:n.claims)===null||m===void 0?void 0:m.name}return v.cloudGraphHostName=i,v.msGraphHost=a,v},t.createGenericAccount=function(e,r,n,o,i,a){var s,c,l,u,d=new t;d.authorityType=n&&n.authorityType===Wt.Adfs?Fr.ADFS_ACCOUNT_TYPE:Fr.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=_.EMPTY_STRING;var h=a||n&&n.getPreferredCache();if(!h)throw D.createInvalidCacheEnvironmentError();return r&&(d.localAccountId=((s=r==null?void 0:r.claims)===null||s===void 0?void 0:s.oid)||((c=r==null?void 0:r.claims)===null||c===void 0?void 0:c.sub)||_.EMPTY_STRING,d.username=((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.upn)||_.EMPTY_STRING,d.name=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.name)||_.EMPTY_STRING,d.idTokenClaims=r==null?void 0:r.claims),d.environment=h,d.cloudGraphHostName=o,d.msGraphHost=i,d},t.generateHomeAccountId=function(e,r,n,o,i){var a,s=!((a=i==null?void 0:i.claims)===null||a===void 0)&&a.sub?i.claims.sub:_.EMPTY_STRING;if(r===Wt.Adfs||r===Wt.Dsts)return s;if(e)try{var c=Uc(e,o);if(!x.isEmpty(c.uid)&&!x.isEmpty(c.utid))return""+c.uid+Ft.CLIENT_INFO_SEPARATOR+c.utid}catch{}return n.verbose("No client info in response"),s},t.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},t.accountInfoIsEqual=function(e,r,n){if(!e||!r)return!1;var o=!0;if(n){var i=e.idTokenClaims||{},a=r.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var kr=function(){function t(e,r){if(x.isEmpty(e))throw D.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=t.extractTokenClaims(e,r)}return t.extractTokenClaims=function(e,r){var n=x.decodeAuthToken(e);try{var o=n.JWSPayload,i=r.base64Decode(o);return JSON.parse(i)}catch(a){throw D.createTokenParsingError(a)}},t.checkMaxAge=function(e,r){var n=3e5;if(r===0||Date.now()-n>e+r)throw D.createMaxAgeTranspiredError()},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var or=function(){function t(e,r){this.clientId=e,this.cryptoImpl=r}return t.prototype.getAllAccounts=function(){var e=this,r=this.getAccountsFilteredBy(),n=Object.keys(r).map(function(a){return r[a]}),o=n.length;if(o<1)return[];var i=n.map(function(a){var s=t.toObject(new tt,a),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new kr(l.secret,e.cryptoImpl).claims),c});return i},t.prototype.saveCacheRecord=function(e){return K(this,void 0,void 0,function(){return G(this,function(r){switch(r.label){case 0:if(!e)throw D.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:r.sent(),r.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},t.prototype.saveAccessToken=function(e){return K(this,void 0,void 0,function(){var r,n,o,i,a=this;return G(this,function(s){switch(s.label){case 0:return r=this.getCredentialsFilteredBy({clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash}),n=wt.fromString(e.target),o=Object.keys(r.accessTokens).map(function(c){return r.accessTokens[c]}),o?(i=[],o.forEach(function(c){var l=wt.fromString(c.target);l.intersectingScopeSets(n)&&i.push(a.removeCredential(c))}),[4,Promise.all(i)]):[3,2];case 1:s.sent(),s.label=2;case 2:return this.setAccessTokenCredential(e),[2]}})})},t.prototype.getAccountsFilteredBy=function(e){return this.getAccountsFilteredByInternal(e?e.homeAccountId:_.EMPTY_STRING,e?e.environment:_.EMPTY_STRING,e?e.realm:_.EMPTY_STRING,e?e.nativeAccountId:_.EMPTY_STRING)},t.prototype.getAccountsFilteredByInternal=function(e,r,n,o){var i=this,a=this.getKeys(),s={};return a.forEach(function(c){var l=i.getAccount(c);!l||!!e&&!i.matchHomeAccountId(l,e)||!!r&&!i.matchEnvironment(l,r)||!!n&&!i.matchRealm(l,n)||!!o&&!i.matchNativeAccountId(l,o)||(s[c]=l)}),s},t.prototype.getCredentialsFilteredBy=function(e){return this.getCredentialsFilteredByInternal(e.homeAccountId,e.environment,e.credentialType,e.clientId,e.familyId,e.realm,e.target,e.userAssertionHash,e.tokenType,e.keyId,e.requestedClaimsHash)},t.prototype.getCredentialsFilteredByInternal=function(e,r,n,o,i,a,s,c,l,u,d){var h=this,f=this.getKeys(),m={idTokens:{},accessTokens:{},refreshTokens:{}};return f.forEach(function(v){var E=Fa.getCredentialType(v);if(E!==_.NOT_DEFINED){var g=h.getSpecificCredential(v,E);if(!!g&&!(!!c&&!h.matchUserAssertionHash(g,c))&&!(typeof e=="string"&&!h.matchHomeAccountId(g,e))&&!(!!r&&!h.matchEnvironment(g,r))&&!(!!a&&!h.matchRealm(g,a))&&!(!!n&&!h.matchCredentialType(g,n))&&!(!!o&&!h.matchClientId(g,o))&&!(!!i&&!h.matchFamilyId(g,i))&&!(!!s&&!h.matchTarget(g,s))&&!((d||g.requestedClaimsHash)&&g.requestedClaimsHash!==d)&&!(n===ee.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(!!l&&!h.matchTokenType(g,l)||l===le.SSH&&u&&!h.matchKeyId(g,u)))){var p=h.updateCredentialCacheKey(v,g);switch(E){case ee.ID_TOKEN:m.idTokens[p]=g;break;case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:m.accessTokens[p]=g;break;case ee.REFRESH_TOKEN:m.refreshTokens[p]=g;break}}}}),m},t.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},t.prototype.getAppMetadataFilteredByInternal=function(e,r){var n=this,o=this.getKeys(),i={};return o.forEach(function(a){if(!!n.isAppMetadata(a)){var s=n.getAppMetadata(a);!s||!!e&&!n.matchEnvironment(s,e)||!!r&&!n.matchClientId(s,r)||(i[a]=s)}}),i},t.prototype.getAuthorityMetadataByAlias=function(e){var r=this,n=this.getAuthorityMetadataKeys(),o=null;return n.forEach(function(i){if(!(!r.isAuthorityMetadata(i)||i.indexOf(r.clientId)===-1)){var a=r.getAuthorityMetadata(i);!a||a.aliases.indexOf(e)!==-1&&(o=a)}}),o},t.prototype.removeAllAccounts=function(){return K(this,void 0,void 0,function(){var e,r,n=this;return G(this,function(o){switch(o.label){case 0:return e=this.getKeys(),r=[],e.forEach(function(i){var a=n.getAccount(i);!a||r.push(n.removeAccount(i))}),[4,Promise.all(r)];case 1:return o.sent(),[2,!0]}})})},t.prototype.removeAccount=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:if(r=this.getAccount(e),!r)throw D.createNoAccountFoundError();return[4,this.removeAccountContext(r)];case 1:return[2,n.sent()&&this.removeItem(e,to.ACCOUNT)]}})})},t.prototype.removeAccountContext=function(e){return K(this,void 0,void 0,function(){var r,n,o,i=this;return G(this,function(a){switch(a.label){case 0:return r=this.getKeys(),n=e.generateAccountId(),o=[],r.forEach(function(s){var c=Fa.getCredentialType(s);if(c!==_.NOT_DEFINED){var l=i.getSpecificCredential(s,c);!!l&&n===l.generateAccountId()&&o.push(i.removeCredential(l))}}),[4,Promise.all(o)];case 1:return a.sent(),[2,!0]}})})},t.prototype.removeCredential=function(e){return K(this,void 0,void 0,function(){var r,n,o;return G(this,function(i){switch(i.label){case 0:if(r=e.generateCredentialKey(),e.credentialType.toLowerCase()!==ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==le.POP)return[3,4];if(n=e,o=n.keyId,!o)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),D.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(r,to.CREDENTIAL)]}})})},t.prototype.removeAppMetadata=function(){var e=this,r=this.getKeys();return r.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n,to.APP_METADATA)}),!0},t.prototype.readCacheRecord=function(e,r,n,o){var i=this.readAccountFromCache(e),a=this.readIdTokenFromCache(r,e),s=this.readAccessTokenFromCache(r,e,n),c=this.readRefreshTokenFromCache(r,e,!1),l=this.readAppMetadataFromCache(o,r);return i&&a&&(i.idTokenClaims=new kr(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},t.prototype.readAccountFromCache=function(e){var r=tt.generateAccountCacheKey(e);return this.getAccount(r)},t.prototype.readAccountFromCacheWithNativeAccountId=function(e){var r={nativeAccountId:e},n=this.getAccountsFilteredBy(r),o=Object.keys(n).map(function(i){return n[i]});if(o.length<1)return null;if(o.length>1)throw D.createMultipleMatchingAccountsInCacheError();return n[0]},t.prototype.readIdTokenFromCache=function(e,r){var n={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:ee.ID_TOKEN,clientId:e,realm:r.tenantId},o=this.getCredentialsFilteredBy(n),i=Object.keys(o.idTokens).map(function(s){return o.idTokens[s]}),a=i.length;if(a<1)return null;if(a>1)throw D.createMultipleMatchingTokensInCacheError();return i[0]},t.prototype.readAccessTokenFromCache=function(e,r,n){var o=new wt(n.scopes||[]),i=n.authenticationScheme||le.BEARER,a=i&&i.toLowerCase()!==le.BEARER.toLowerCase()?ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:ee.ACCESS_TOKEN,s={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:a,clientId:e,realm:r.tenantId,target:o.printScopesLowerCase(),tokenType:i,keyId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},c=this.getCredentialsFilteredBy(s),l=Object.keys(c.accessTokens).map(function(d){return c.accessTokens[d]}),u=l.length;if(u<1)return null;if(u>1)throw D.createMultipleMatchingTokensInCacheError();return l[0]},t.prototype.readRefreshTokenFromCache=function(e,r,n){var o=n?Oc:void 0,i={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:ee.REFRESH_TOKEN,clientId:e,familyId:o},a=this.getCredentialsFilteredBy(i),s=Object.keys(a.refreshTokens).map(function(l){return a.refreshTokens[l]}),c=s.length;return c<1?null:s[0]},t.prototype.readAppMetadataFromCache=function(e,r){var n={environment:e,clientId:r},o=this.getAppMetadataFilteredBy(n),i=Object.keys(o).map(function(s){return o[s]}),a=i.length;if(a<1)return null;if(a>1)throw D.createMultipleMatchingAppMetadataInCacheError();return i[0]},t.prototype.isAppMetadataFOCI=function(e,r){var n=this.readAppMetadataFromCache(e,r);return!!(n&&n.familyId===Oc)},t.prototype.matchHomeAccountId=function(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId},t.prototype.matchUserAssertionHash=function(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)},t.prototype.matchEnvironment=function(e,r){var n=this.getAuthorityMetadataByAlias(r);return!!(n&&n.aliases.indexOf(e.environment)>-1)},t.prototype.matchCredentialType=function(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()},t.prototype.matchClientId=function(e,r){return!!(e.clientId&&r===e.clientId)},t.prototype.matchFamilyId=function(e,r){return!!(e.familyId&&r===e.familyId)},t.prototype.matchRealm=function(e,r){return!!(e.realm&&r===e.realm)},t.prototype.matchNativeAccountId=function(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)},t.prototype.matchTarget=function(e,r){var n=e.credentialType!==ee.ACCESS_TOKEN&&e.credentialType!==ee.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=wt.fromString(e.target),i=wt.fromString(r);return i.containsOnlyOIDCScopes()?i.removeScope(_.OFFLINE_ACCESS_SCOPE):i.removeOIDCScopes(),o.containsScopeSet(i)},t.prototype.matchTokenType=function(e,r){return!!(e.tokenType&&e.tokenType===r)},t.prototype.matchKeyId=function(e,r){return!!(e.keyId&&e.keyId===r)},t.prototype.isAppMetadata=function(e){return e.indexOf(wd)!==-1},t.prototype.isAuthorityMetadata=function(e){return e.indexOf(va.CACHE_KEY)!==-1},t.prototype.generateAuthorityMetadataCacheKey=function(e){return va.CACHE_KEY+"-"+this.clientId+"-"+e},t.prototype.getSpecificCredential=function(e,r){switch(r){case ee.ID_TOKEN:return this.getIdTokenCredential(e);case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case ee.REFRESH_TOKEN:return this.getRefreshTokenCredential(e);default:return null}},t.toObject=function(e,r){for(var n in r)e[n]=r[n];return e},t}(),AC=function(t){xt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setAccount=function(){var r="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAccount=function(){var r="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setIdTokenCredential=function(){var r="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getIdTokenCredential=function(){var r="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAccessTokenCredential=function(){var r="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAccessTokenCredential=function(){var r="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setRefreshTokenCredential=function(){var r="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getRefreshTokenCredential=function(){var r="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAppMetadata=function(){var r="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAppMetadata=function(){var r="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setServerTelemetry=function(){var r="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getServerTelemetry=function(){var r="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAuthorityMetadata=function(){var r="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAuthorityMetadata=function(){var r="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAuthorityMetadataKeys=function(){var r="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setThrottlingCache=function(){var r="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getThrottlingCache=function(){var r="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.removeItem=function(){var r="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.containsKey=function(){var r="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getKeys=function(){var r="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.clear=function(){return K(this,void 0,void 0,function(){var r;return G(this,function(n){throw r="Storage interface - clear() has not been implemented for the cacheStorage interface.",z.createUnexpectedError(r)})})},e.prototype.updateCredentialCacheKey=function(){var r="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e}(or);/*! @azure/msal-common v7.6.0 2022-10-10 */var RC=300,Ey={tokenRenewalOffsetSeconds:RC,preventCorsPreflight:!1,proxyUrl:_.EMPTY_STRING},PC={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:xe.Info,correlationId:_.EMPTY_STRING},NC={sendGetRequestAsync:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Network interface - sendGetRequestAsync() has not been implemented",z.createUnexpectedError(t)})})},sendPostRequestAsync:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Network interface - sendPostRequestAsync() has not been implemented",z.createUnexpectedError(t)})})}},OC={sku:_.SKU,version:wy,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},xC={clientSecret:_.EMPTY_STRING,clientAssertion:void 0},MC={azureCloudInstance:Ha.None,tenant:""+_.DEFAULT_COMMON_TENANT},UC={application:{appName:"",appVersion:""}};function LC(t){var e=t.authOptions,r=t.systemOptions,n=t.loggerOptions,o=t.storageInterface,i=t.networkInterface,a=t.cryptoInterface,s=t.clientCredentials,c=t.libraryInfo,l=t.telemetry,u=t.serverTelemetryManager,d=t.persistencePlugin,h=t.serializableCache,f=Ne(Ne({},PC),n);return{authOptions:DC(e),systemOptions:Ne(Ne({},Ey),r),loggerOptions:f,storageInterface:o||new AC(e.clientId,Mc),networkInterface:i||NC,cryptoInterface:a||Mc,clientCredentials:s||xC,libraryInfo:Ne(Ne({},OC),c),telemetry:Ne(Ne({},UC),l),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}function DC(t){return Ne({clientCapabilities:[],azureCloudOptions:MC,skipAuthorityMetadataCache:!1},t)}/*! @azure/msal-common v7.6.0 2022-10-10 */var vo=function(t){xt(e,t);function e(r,n,o){var i=t.call(this,r,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var Lc=function(){function t(){}return t.generateThrottlingStorageKey=function(e){return ya.THROTTLING_PREFIX+"."+JSON.stringify(e)},t.preProcess=function(e,r){var n,o=t.generateThrottlingStorageKey(r),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o,to.THROTTLING);return}throw new vo(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||_.EMPTY_STRING,i.errorMessage,i.subError)}},t.postProcess=function(e,r,n){if(t.checkResponseStatus(n)||t.checkResponseForRetryAfter(n)){var o={throttleTime:t.calculateThrottleTime(parseInt(n.headers[hr.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(t.generateThrottlingStorageKey(r),o)}},t.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},t.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(hr.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},t.calculateThrottleTime=function(e){var r=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(r||ya.DEFAULT_THROTTLE_TIME_SECONDS),n+ya.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},t.removeThrottle=function(e,r,n,o){var i={clientId:r,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:o,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(i);return e.removeItem(a,to.THROTTLING)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var HC=function(){function t(e,r){this.networkClient=e,this.cacheManager=r}return t.prototype.sendPostRequest=function(e,r,n){return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:Lc.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(r,n)];case 2:return o=a.sent(),[3,4];case 3:throw i=a.sent(),i instanceof z?i:D.createNetworkError(r,i);case 4:return Lc.postProcess(this.cacheManager,e,o),[2,o]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Dt;(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"})(Dt||(Dt={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var zh=function(){function t(e,r){this.config=LC(e),this.logger=new $h(this.config.loggerOptions,kC,wy),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new HC(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}return t.prototype.createTokenRequestHeaders=function(e){var r={};if(r[hr.CONTENT_TYPE]=_.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Dt.HOME_ACCOUNT_ID:try{var n=Yo(e.credential);r[hr.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case Dt.UPN:r[hr.CCS_HEADER]="UPN: "+e.credential;break}return r},t.prototype.executePostToTokenEndpoint=function(e,r,n,o){return K(this,void 0,void 0,function(){var i;return G(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:r,headers:n,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},t.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw D.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var qn=function(){function t(){}return t.validateRedirectUri=function(e){if(x.isEmpty(e))throw we.createRedirectUriEmptyError()},t.validatePrompt=function(e){var r=[];for(var n in gt)r.push(gt[n]);if(r.indexOf(e)<0)throw we.createInvalidPromptError(e)},t.validateClaims=function(e){try{JSON.parse(e)}catch{throw we.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(e,r){if(x.isEmpty(e)||x.isEmpty(r))throw we.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},t.validateCodeChallengeMethod=function(e){if([Cp.PLAIN,Cp.S256].indexOf(e)<0)throw we.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(e,r){return e?(r.forEach(function(n,o){e[o]&&delete e[o]}),e):{}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Qo=function(){function t(){this.parameters=new Map}return t.prototype.addResponseTypeCode=function(){this.parameters.set(Q.RESPONSE_TYPE,encodeURIComponent(_.CODE_RESPONSE_TYPE))},t.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Q.RESPONSE_TYPE,encodeURIComponent(_.TOKEN_RESPONSE_TYPE+" "+_.ID_TOKEN_RESPONSE_TYPE))},t.prototype.addResponseMode=function(e){this.parameters.set(Q.RESPONSE_MODE,encodeURIComponent(e||Pc.QUERY))},t.prototype.addNativeBroker=function(){this.parameters.set(Q.NATIVE_BROKER,encodeURIComponent("1"))},t.prototype.addScopes=function(e,r){r===void 0&&(r=!0);var n=r?fl(e||[],Za):e||[],o=new wt(n);this.parameters.set(Q.SCOPE,encodeURIComponent(o.printScopes()))},t.prototype.addClientId=function(e){this.parameters.set(Q.CLIENT_ID,encodeURIComponent(e))},t.prototype.addRedirectUri=function(e){qn.validateRedirectUri(e),this.parameters.set(Q.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){qn.validateRedirectUri(e),this.parameters.set(Q.POST_LOGOUT_URI,encodeURIComponent(e))},t.prototype.addIdTokenHint=function(e){this.parameters.set(Q.ID_TOKEN_HINT,encodeURIComponent(e))},t.prototype.addDomainHint=function(e){this.parameters.set(ma.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(ma.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(hr.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(hr.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(ma.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,r){var n=this.addClientCapabilitiesToClaims(e,r);qn.validateClaims(n),this.parameters.set(Q.CLAIMS,encodeURIComponent(n))},t.prototype.addCorrelationId=function(e){this.parameters.set(Q.CLIENT_REQUEST_ID,encodeURIComponent(e))},t.prototype.addLibraryInfo=function(e){this.parameters.set(Q.X_CLIENT_SKU,e.sku),this.parameters.set(Q.X_CLIENT_VER,e.version),e.os&&this.parameters.set(Q.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(Q.X_CLIENT_CPU,e.cpu)},t.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(Q.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(Q.X_APP_VER,e.appVersion)},t.prototype.addPrompt=function(e){qn.validatePrompt(e),this.parameters.set(""+Q.PROMPT,encodeURIComponent(e))},t.prototype.addState=function(e){x.isEmpty(e)||this.parameters.set(Q.STATE,encodeURIComponent(e))},t.prototype.addNonce=function(e){this.parameters.set(Q.NONCE,encodeURIComponent(e))},t.prototype.addCodeChallengeParams=function(e,r){if(qn.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(Q.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Q.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw we.createInvalidCodeChallengeParamsError()},t.prototype.addAuthorizationCode=function(e){this.parameters.set(Q.CODE,encodeURIComponent(e))},t.prototype.addDeviceCode=function(e){this.parameters.set(Q.DEVICE_CODE,encodeURIComponent(e))},t.prototype.addRefreshToken=function(e){this.parameters.set(Q.REFRESH_TOKEN,encodeURIComponent(e))},t.prototype.addCodeVerifier=function(e){this.parameters.set(Q.CODE_VERIFIER,encodeURIComponent(e))},t.prototype.addClientSecret=function(e){this.parameters.set(Q.CLIENT_SECRET,encodeURIComponent(e))},t.prototype.addClientAssertion=function(e){x.isEmpty(e)||this.parameters.set(Q.CLIENT_ASSERTION,encodeURIComponent(e))},t.prototype.addClientAssertionType=function(e){x.isEmpty(e)||this.parameters.set(Q.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},t.prototype.addOboAssertion=function(e){this.parameters.set(Q.OBO_ASSERTION,encodeURIComponent(e))},t.prototype.addRequestTokenUse=function(e){this.parameters.set(Q.REQUESTED_TOKEN_USE,encodeURIComponent(e))},t.prototype.addGrantType=function(e){this.parameters.set(Q.GRANT_TYPE,encodeURIComponent(e))},t.prototype.addClientInfo=function(){this.parameters.set(IC,"1")},t.prototype.addExtraQueryParameters=function(e){var r=this;qn.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach(function(n){r.parameters.set(n,e[n])})},t.prototype.addClientCapabilitiesToClaims=function(e,r){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw we.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(Vo.ACCESS_TOKEN)||(n[Vo.ACCESS_TOKEN]={}),n[Vo.ACCESS_TOKEN][Vo.XMS_CC]={values:r}),JSON.stringify(n)},t.prototype.addUsername=function(e){this.parameters.set(xc.username,encodeURIComponent(e))},t.prototype.addPassword=function(e){this.parameters.set(xc.password,encodeURIComponent(e))},t.prototype.addPopToken=function(e){x.isEmpty(e)||(this.parameters.set(Q.TOKEN_TYPE,le.POP),this.parameters.set(Q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addSshJwk=function(e){x.isEmpty(e)||(this.parameters.set(Q.TOKEN_TYPE,le.SSH),this.parameters.set(Q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addServerTelemetry=function(e){this.parameters.set(Q.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(Q.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},t.prototype.addThrottling=function(){this.parameters.set(Q.X_MS_LIB_CAPABILITY,ya.X_MS_LIB_CAPABILITY_VALUE)},t.prototype.addLogoutHint=function(e){this.parameters.set(Q.LOGOUT_HINT,encodeURIComponent(e))},t.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(r,n){e.push(n+"="+r)}),e.join("&")},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var $a=function(t){xt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createIdTokenEntity=function(r,n,o,i,a){var s=new e;return s.credentialType=ee.ID_TOKEN,s.homeAccountId=r,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},e.isIdTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===ee.ID_TOKEN:!1},e}(Fa);/*! @azure/msal-common v7.6.0 2022-10-10 */var Jt=function(){function t(){}return t.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},t.isTokenExpired=function(e,r){var n=Number(e)||0,o=t.nowSeconds()+r;return o>n},t.wasClockTurnedBack=function(e){var r=Number(e);return r>t.nowSeconds()},t.delay=function(e,r){return new Promise(function(n){return setTimeout(function(){return n(r)},e)})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var za=function(t){xt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createAccessTokenEntity=function(r,n,o,i,a,s,c,l,u,d,h,f,m,v,E){var g,p,y=new e;y.homeAccountId=r,y.credentialType=ee.ACCESS_TOKEN,y.secret=o;var w=Jt.nowSeconds();if(y.cachedAt=w.toString(),y.expiresOn=c.toString(),y.extendedExpiresOn=l.toString(),d&&(y.refreshOn=d.toString()),y.environment=n,y.clientId=i,y.realm=a,y.target=s,y.userAssertionHash=f,y.tokenType=x.isEmpty(h)?le.BEARER:h,v&&(y.requestedClaims=v,y.requestedClaimsHash=E),((g=y.tokenType)===null||g===void 0?void 0:g.toLowerCase())!==le.BEARER.toLowerCase())switch(y.credentialType=ee.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case le.POP:var k=kr.extractTokenClaims(o,u);if(!(!((p=k==null?void 0:k.cnf)===null||p===void 0)&&p.kid))throw D.createTokenClaimsRequiredError();y.keyId=k.cnf.kid;break;case le.SSH:y.keyId=m}return y},e.isAccessTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.hasOwnProperty("target")&&(r.credentialType===ee.ACCESS_TOKEN||r.credentialType===ee.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Fa);/*! @azure/msal-common v7.6.0 2022-10-10 */var Dc=function(t){xt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(r,n,o,i,a,s){var c=new e;return c.clientId=i,c.credentialType=ee.REFRESH_TOKEN,c.environment=n,c.homeAccountId=r,c.secret=o,c.userAssertionHash=s,a&&(c.familyId=a),c},e.isRefreshTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===ee.REFRESH_TOKEN:!1},e}(Fa);/*! @azure/msal-common v7.6.0 2022-10-10 */var Tp=["interaction_required","consent_required","login_required"],FC=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ea={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},lr=function(t){xt(e,t);function e(r,n,o){var i=t.call(this,r,n,o)||this;return i.name="InteractionRequiredAuthError",Object.setPrototypeOf(i,e.prototype),i}return e.isInteractionRequiredError=function(r,n,o){var i=!!r&&Tp.indexOf(r)>-1,a=!!o&&FC.indexOf(o)>-1,s=!!n&&Tp.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(ea.noTokensFoundError.code,ea.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ea.native_account_unavailable.code,ea.native_account_unavailable.desc)},e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var Vs=function(){function t(e,r,n,o,i){this.account=e||null,this.idToken=r||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Wr=function(){function t(){}return t.setRequestState=function(e,r,n){var o=t.generateLibraryState(e,n);return x.isEmpty(r)?o:""+o+_.RESOURCE_DELIM+r},t.generateLibraryState=function(e,r){if(!e)throw D.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};r&&(n.meta=r);var o=JSON.stringify(n);return e.base64Encode(o)},t.parseRequestState=function(e,r){if(!e)throw D.createNoCryptoObjectError("parseRequestState");if(x.isEmpty(r))throw D.createInvalidStateError(r,"Null, undefined or empty state");try{var n=r.split(_.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(_.RESOURCE_DELIM):_.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:x.isEmpty(i)?_.EMPTY_STRING:i,libraryState:s}}catch(c){throw D.createInvalidStateError(r,c)}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var oe=function(){function t(e){if(this._urlString=e,x.isEmpty(this._urlString))throw we.createUrlEmptyError();x.isEmpty(this.getHash())&&(this._urlString=t.canonicalizeUri(e))}return Object.defineProperty(t.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),t.canonicalizeUri=function(e){if(e){var r=e.toLowerCase();return x.endsWith(r,"?")?r=r.slice(0,-1):x.endsWith(r,"?/")&&(r=r.slice(0,-2)),x.endsWith(r,"/")||(r+="/"),r}return e},t.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(r){throw we.createUrlParseError(r)}if(!e.HostNameAndPort||!e.PathSegments)throw we.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw we.createInsecureAuthorityUriError(this.urlString)},t.appendQueryString=function(e,r){return x.isEmpty(r)?e:e.indexOf("?")<0?e+"?"+r:e+"&"+r},t.removeHashFromUrl=function(e){return t.canonicalizeUri(e.split("#")[0])},t.prototype.replaceTenantPath=function(e){var r=this.getUrlComponents(),n=r.PathSegments;return e&&n.length!==0&&(n[0]===Rc.COMMON||n[0]===Rc.ORGANIZATIONS)&&(n[0]=e),t.constructAuthorityUriFromObject(r)},t.prototype.getHash=function(){return t.parseHash(this.urlString)},t.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw we.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),n.PathSegments=o,!x.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},t.getDomainFromUrl=function(e){var r=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(r);if(!n)throw we.createUrlParseError("Given url string: "+e);return n[2]},t.getAbsoluteUrl=function(e,r){if(e[0]===_.FORWARD_SLASH){var n=new t(r),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},t.parseHash=function(e){var r=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):r>-1?e.substring(r+1):_.EMPTY_STRING},t.parseQueryString=function(e){var r=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):r>-1?e.substring(r+1):_.EMPTY_STRING},t.constructAuthorityUriFromObject=function(e){return new t(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},t.getDeserializedHash=function(e){if(x.isEmpty(e))return{};var r=t.parseHash(e),n=x.queryStringToObject(x.isEmpty(r)?e:r);if(!n)throw D.createHashNotDeserializedError(JSON.stringify(n));return n},t.getDeserializedQueryString=function(e){if(x.isEmpty(e))return{};var r=t.parseQueryString(e),n=x.queryStringToObject(x.isEmpty(r)?e:r);if(!n)throw D.createHashNotDeserializedError(JSON.stringify(n));return n},t.hashContainsKnownProperties=function(e){if(x.isEmpty(e)||e.indexOf("=")<0)return!1;var r=t.getDeserializedHash(e);return!!(r.code||r.error_description||r.error||r.state)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Cd;(function(t){t.SW="sw",t.UHW="uhw"})(Cd||(Cd={}));var vi=function(){function t(e){this.cryptoUtils=e}return t.prototype.generateCnf=function(e){return K(this,void 0,void 0,function(){var r,n,o;return G(this,function(i){switch(i.label){case 0:return[4,this.generateKid(e)];case 1:return r=i.sent(),n=this.cryptoUtils.base64Encode(JSON.stringify(r)),o={kid:r.kid,reqCnfString:n},[4,this.cryptoUtils.hashString(n)];case 2:return[2,(o.reqCnfHash=i.sent(),o)]}})})},t.prototype.generateKid=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return r=n.sent(),[2,{kid:r,xms_ksl:Cd.SW}]}})})},t.prototype.signPopToken=function(e,r,n){return K(this,void 0,void 0,function(){return G(this,function(o){return[2,this.signPayload(e,r,n)]})})},t.prototype.signPayload=function(e,r,n,o){return K(this,void 0,void 0,function(){var i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new oe(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(Ne({at:e,ts:Jt.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0},o),r,n.correlationId)];case 1:return[2,d.sent()]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Sd=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(e,r){var n=[wd,e,r];return n.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAppMetadataEntity=function(e,r,n){var o=new t;return o.clientId=e,o.environment=r,n&&(o.familyId=n),o},t.isAppMetadataEntity=function(e,r){return r?e.indexOf(wd)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var $C=function(){function t(e,r){this.cache=e,this.hasChanged=r}return Object.defineProperty(t.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Hc=function(){function t(e,r,n,o,i,a){this.clientId=e,this.cacheStorage=r,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a}return t.prototype.validateServerAuthorizationCodeResponse=function(e,r,n){if(!e.state||!r)throw e.state?D.createStateNotFoundError("Cached State"):D.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(r))throw D.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw lr.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new lr(e.error||_.EMPTY_STRING,e.error_description,e.suberror):new vo(e.error||_.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&Uc(e.client_info,n)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(lr.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new lr(e.error,e.error_description,e.suberror);var r=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new vo(e.error,r,e.suberror)}},t.prototype.handleServerTokenResponse=function(e,r,n,o,i,a,s,c,l){return K(this,void 0,void 0,function(){var u,d,h,f,m,v,E;return G(this,function(g){switch(g.label){case 0:if(e.id_token){if(u=new kr(e.id_token||_.EMPTY_STRING,this.cryptoObj),i&&!x.isEmpty(i.nonce)&&u.claims.nonce!==i.nonce)throw D.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(d=u.claims.auth_time,!d)throw D.createAuthTimeNotFoundError();kr.checkMaxAge(d,o.maxAge)}}this.homeAccountIdentifier=tt.generateHomeAccountId(e.client_info||_.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u),!!i&&!!i.state&&(h=Wr.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,f=this.generateCacheRecord(e,r,n,o,u,a,i),g.label=1;case 1:return g.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new $C(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:g.sent(),g.label=3;case 3:return s&&!c&&f.account&&(v=f.account.generateAccountKey(),E=this.cacheStorage.getAccount(v),!E)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,t.generateAuthenticationResult(this.cryptoObj,r,f,!1,o,u,h,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(f)];case 4:return g.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:g.sent(),g.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,r,f,!1,o,u,h,e.spa_code,l)]}})})},t.prototype.generateCacheRecord=function(e,r,n,o,i,a,s){var c=r.getPreferredCache();if(x.isEmpty(c))throw D.createInvalidCacheEnvironmentError();var l,u;!x.isEmpty(e.id_token)&&!!i&&(l=$a.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||_.EMPTY_STRING,this.clientId,i.claims.tid||_.EMPTY_STRING),u=this.generateAccountEntity(e,i,r,s));var d=null;if(!x.isEmpty(e.access_token)){var h=e.scope?wt.fromString(e.scope):new wt(o.scopes||[]),f=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,m=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,v=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,E=n+f,g=E+m,p=v&&v>0?n+v:void 0;d=za.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||_.EMPTY_STRING,this.clientId,i?i.claims.tid||_.EMPTY_STRING:r.tenant,h.printScopes(),E,g,this.cryptoObj,p,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var y=null;x.isEmpty(e.refresh_token)||(y=Dc.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||_.EMPTY_STRING,this.clientId,e.foci,a));var w=null;return x.isEmpty(e.foci)||(w=Sd.createAppMetadataEntity(this.clientId,c,e.foci)),new Vs(u,l,d,y,w)},t.prototype.generateAccountEntity=function(e,r,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:_.EMPTY_STRING,s=o?o.msgraph_host:_.EMPTY_STRING;if(i===Wt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),tt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(x.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw D.createClientInfoEmptyError();return e.client_info?tt.createAccount(e.client_info,this.homeAccountIdentifier,r,n,a,s):tt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},t.generateAuthenticationResult=function(e,r,n,o,i,a,s,c,l){var u,d,h;return K(this,void 0,void 0,function(){var f,m,v,E,g,p,y,w,k,P,M;return G(this,function(O){switch(O.label){case 0:if(f=_.EMPTY_STRING,m=[],v=null,g=_.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==le.POP)return[3,2];if(p=new vi(e),y=n.accessToken,w=y.secret,k=y.keyId,!k)throw D.createKeyIdMissingError();return[4,p.signPopToken(w,k,i)];case 1:return f=O.sent(),[3,3];case 2:f=n.accessToken.secret,O.label=3;case 3:m=wt.fromString(n.accessToken.target).asArray(),v=new Date(Number(n.accessToken.expiresOn)*1e3),E=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),O.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===Oc?Oc:_.EMPTY_STRING),P=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||_.EMPTY_STRING,M=(a==null?void 0:a.claims.tid)||_.EMPTY_STRING,[2,{authority:r.canonicalAuthority,uniqueId:P,tenantId:M,scopes:m,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:_.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:f,fromCache:o,expiresOn:v,correlationId:i.correlationId,requestId:l||_.EMPTY_STRING,extExpiresOn:E,familyId:g,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||_.EMPTY_STRING,state:s?s.userRequestState:_.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((h=n.account)===null||h===void 0?void 0:h.msGraphHost)||_.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Cy=function(t){xt(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!0,n}return e.prototype.getAuthCodeUrl=function(r){return K(this,void 0,void 0,function(){var n;return G(this,function(o){switch(o.label){case 0:return[4,this.createAuthCodeUrlQueryString(r)];case 1:return n=o.sent(),[2,oe.appendQueryString(this.authority.authorizationEndpoint,n)]}})})},e.prototype.acquireToken=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s,c;return G(this,function(l){switch(l.label){case 0:if(this.logger.info("in acquireToken call"),!r||x.isEmpty(r.code))throw D.createTokenRequestCannotBeMadeError();return i=Jt.nowSeconds(),[4,this.executeTokenRequest(this.authority,r)];case 1:return a=l.sent(),s=(o=a.headers)===null||o===void 0?void 0:o[hr.X_MS_REQUEST_ID],c=new Hc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),c.validateTokenResponse(a.body),[4,c.handleServerTokenResponse(a.body,this.authority,i,r,n,void 0,void 0,void 0,s)];case 2:return[2,l.sent()]}})})},e.prototype.handleFragmentResponse=function(r,n){var o=new Hc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new oe(r),a=oe.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw D.createNoAuthCodeInServerResponseError();return Ne(Ne({},a),{code:a.code})},e.prototype.getLogoutUri=function(r){if(!r)throw we.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(r);return oe.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(r,n){return K(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return o={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[4,this.createTokenRequestBody(n)];case 1:if(i=d.sent(),a=this.createTokenQueryParameters(n),s=void 0,n.clientInfo)try{c=Uc(n.clientInfo,this.cryptoUtils),s={credential:""+c.uid+Ft.CLIENT_INFO_SEPARATOR+c.utid,type:Dt.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return l=this.createTokenRequestHeaders(s||n.ccsCredential),u=x.isEmpty(a)?r.tokenEndpoint:r.tokenEndpoint+"?"+a,[2,this.executePostToTokenEndpoint(u,i,l,o)]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new Qo;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){return K(this,void 0,void 0,function(){var n,o,i,a,s,c,l,l,u;return G(this,function(d){switch(d.label){case 0:return n=new Qo,n.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?n.addRedirectUri(r.redirectUri):qn.validateRedirectUri(r.redirectUri),n.addScopes(r.scopes),n.addAuthorizationCode(r.code),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&n.addServerTelemetry(this.serverTelemetryManager),r.codeVerifier&&n.addCodeVerifier(r.codeVerifier),this.config.clientCredentials.clientSecret&&n.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(o=this.config.clientCredentials.clientAssertion,n.addClientAssertion(o.assertion),n.addClientAssertionType(o.assertionType)),n.addGrantType(Nc.AUTHORIZATION_CODE_GRANT),n.addClientInfo(),r.authenticationScheme!==le.POP?[3,2]:(i=new vi(this.cryptoUtils),[4,i.generateCnf(r)]);case 1:return a=d.sent(),n.addPopToken(a.reqCnfString),[3,3];case 2:if(r.authenticationScheme===le.SSH)if(r.sshJwk)n.addSshJwk(r.sshJwk);else throw we.createMissingSshJwkError();d.label=3;case 3:if(s=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(s),(!x.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(r.claims,this.config.authOptions.clientCapabilities),c=void 0,r.clientInfo)try{l=Uc(r.clientInfo,this.cryptoUtils),c={credential:""+l.uid+Ft.CLIENT_INFO_SEPARATOR+l.utid,type:Dt.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else c=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case Dt.HOME_ACCOUNT_ID:try{l=Yo(c.credential),n.addCcsOid(l)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case Dt.UPN:n.addCcsUpn(c.credential);break}return r.tokenBodyParameters&&n.addExtraQueryParameters(r.tokenBodyParameters),r.enableSpaAuthorizationCode&&(!r.tokenBodyParameters||!r.tokenBodyParameters[Q.RETURN_SPA_CODE])&&n.addExtraQueryParameters((u={},u[Q.RETURN_SPA_CODE]="1",u)),[2,n.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(r){return K(this,void 0,void 0,function(){var n,o,i,a,s,c,c,c,l,u;return G(this,function(d){switch(d.label){case 0:if(n=new Qo,n.addClientId(this.config.authOptions.clientId),o=fl(r.scopes||[],r.extraScopesToConsent||[]),n.addScopes(o),n.addRedirectUri(r.redirectUri),i=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(i),n.addResponseMode(r.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),r.codeChallenge&&r.codeChallengeMethod&&n.addCodeChallengeParams(r.codeChallenge,r.codeChallengeMethod),r.prompt&&n.addPrompt(r.prompt),r.domainHint&&n.addDomainHint(r.domainHint),r.prompt!==gt.SELECT_ACCOUNT)if(r.sid&&r.prompt===gt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(r.sid);else if(r.account){if(a=this.extractAccountSid(r.account),s=this.extractLoginHint(r.account),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(s);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&r.prompt===gt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(r.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(r.loginHint),n.addCcsUpn(r.loginHint);else if(r.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(r.account.username);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else r.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(r.loginHint),n.addCcsUpn(r.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return r.nonce&&n.addNonce(r.nonce),r.state&&n.addState(r.state),(!x.isEmpty(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(r.claims,this.config.authOptions.clientCapabilities),r.extraQueryParameters&&n.addExtraQueryParameters(r.extraQueryParameters),r.nativeBroker?(n.addNativeBroker(),r.authenticationScheme!==le.POP?[3,2]:(l=new vi(this.cryptoUtils),[4,l.generateCnf(r)])):[3,2];case 1:u=d.sent(),n.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,n.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(r){var n=new Qo;return r.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(r.postLogoutRedirectUri),r.correlationId&&n.addCorrelationId(r.correlationId),r.idTokenHint&&n.addIdTokenHint(r.idTokenHint),r.state&&n.addState(r.state),r.logoutHint&&n.addLogoutHint(r.logoutHint),r.extraQueryParameters&&n.addExtraQueryParameters(r.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},e.prototype.extractLoginHint=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},e}(zh);/*! @azure/msal-common v7.6.0 2022-10-10 */var je;(function(t){t.AcquireTokenByCode="acquireTokenByCode",t.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",t.AcquireTokenSilent="acquireTokenSilent",t.AcquireTokenSilentAsync="acquireTokenSilentAsync",t.AcquireTokenPopup="acquireTokenPopup",t.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",t.CryptoOptsSignJwt="cryptoOptsSignJwt",t.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",t.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",t.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",t.SsoSilent="ssoSilent",t.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",t.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",t.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",t.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",t.BrokerHandhshake="brokerHandshake",t.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",t.AcquireTokenByBroker="acquireTokenByBroker",t.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",t.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",t.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken"})(je||(je={}));var Jo;(function(t){t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Completed=2]="Completed"})(Jo||(Jo={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Sy=function(t){xt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){var n,o;return K(this,void 0,void 0,function(){var i,a,s,c,l,u=this;return G(this,function(d){switch(d.label){case 0:return i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(je.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),a=Jt.nowSeconds(),[4,this.executeTokenRequest(r,this.authority)];case 1:return s=d.sent(),c=(o=s.headers)===null||o===void 0?void 0:o[hr.X_MS_REQUEST_ID],l=new Hc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),l.validateTokenResponse(s.body),[2,l.handleServerTokenResponse(s.body,this.authority,a,r,void 0,void 0,!0,r.forceCache,c).then(function(h){var f;return i==null||i.endMeasurement({success:!0,refreshTokenSize:((f=s.body.refresh_token)===null||f===void 0?void 0:f.length)||0}),h}).catch(function(h){throw u.logger.verbose("Error in fetching refresh token",r.correlationId),i==null||i.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1,refreshTokenSize:void 0}),h})]}})})},e.prototype.acquireTokenByRefreshToken=function(r){return K(this,void 0,void 0,function(){var n,o,i;return G(this,function(a){if(!r)throw we.createEmptyTokenRequestError();if(!r.account)throw D.createNoAccountInSilentRequestError();if(n=this.cacheManager.isAppMetadataFOCI(r.account.environment,this.config.authOptions.clientId),n)try{return[2,this.acquireTokenWithCachedRefreshToken(r,!0)]}catch(s){if(o=s instanceof lr&&s.errorCode===ea.noTokensFoundError.code,i=s instanceof vo&&s.errorCode===Sp.INVALID_GRANT_ERROR&&s.subError===Sp.CLIENT_MISMATCH_ERROR,o||i)return[2,this.acquireTokenWithCachedRefreshToken(r,!1)];throw s}return[2,this.acquireTokenWithCachedRefreshToken(r,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s;return G(this,function(c){if(i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",r.correlationId),a=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,r.account,n),!a)throw i==null||i.discardMeasurement(),lr.createNoTokensFoundError();return i==null||i.endMeasurement({success:!0}),s=Ne(Ne({},r),{refreshToken:a.secret,authenticationScheme:r.authenticationScheme||le.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:Dt.HOME_ACCOUNT_ID}}),[2,this.acquireToken(s)]})})},e.prototype.executeTokenRequest=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.createTokenRequestBody(r)];case 1:return a=d.sent(),s=this.createTokenQueryParameters(r),c=this.createTokenRequestHeaders(r.ccsCredential),l={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},u=oe.appendQueryString(n.tokenEndpoint,s),[2,this.executePostToTokenEndpoint(u,a,c,l).then(function(h){return i==null||i.endMeasurement({success:!0}),h}).catch(function(h){throw i==null||i.endMeasurement({success:!1}),h})]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new Qo;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){var n;return K(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return o=r.correlationId,i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(je.BaseClientCreateTokenRequestHeaders,o),a=new Qo,a.addClientId(this.config.authOptions.clientId),a.addScopes(r.scopes),a.addGrantType(Nc.REFRESH_TOKEN_GRANT),a.addClientInfo(),a.addLibraryInfo(this.config.libraryInfo),a.addApplicationTelemetry(this.config.telemetry.application),a.addThrottling(),this.serverTelemetryManager&&a.addServerTelemetry(this.serverTelemetryManager),a.addCorrelationId(o),a.addRefreshToken(r.refreshToken),this.config.clientCredentials.clientSecret&&a.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,a.addClientAssertion(s.assertion),a.addClientAssertionType(s.assertionType)),r.authenticationScheme!==le.POP?[3,2]:(c=new vi(this.cryptoUtils),[4,c.generateCnf(r)]);case 1:return l=d.sent(),a.addPopToken(l.reqCnfString),[3,3];case 2:if(r.authenticationScheme===le.SSH)if(r.sshJwk)a.addSshJwk(r.sshJwk);else throw i==null||i.endMeasurement({success:!1}),we.createMissingSshJwkError();d.label=3;case 3:if((!x.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&a.addClaims(r.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&r.ccsCredential)switch(r.ccsCredential.type){case Dt.HOME_ACCOUNT_ID:try{u=Yo(r.ccsCredential.credential),a.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case Dt.UPN:a.addCcsUpn(r.ccsCredential.credential);break}return i==null||i.endMeasurement({success:!0}),[2,a.createQueryString()]}})})},e}(zh);/*! @azure/msal-common v7.6.0 2022-10-10 */var zC=function(t){xt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){return K(this,void 0,void 0,function(){var n,o;return G(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(r)];case 1:return[2,i.sent()];case 2:if(n=i.sent(),n instanceof D&&n.errorCode===A.tokenRefreshRequired.code)return o=new Sy(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(r)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(r){var n,o,i,a;return K(this,void 0,void 0,function(){var s,c;return G(this,function(l){switch(l.label){case 0:if(!r)throw we.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(Jn.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),D.createRefreshRequiredError();if(!r.account)throw D.createNoAccountInSilentRequestError();if(s=r.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(r.account,this.config.authOptions.clientId,r,s),c.accessToken){if(Jt.wasClockTurnedBack(c.accessToken.cachedAt)||Jt.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Jn.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),D.createRefreshRequiredError();if(c.accessToken.refreshOn&&Jt.isTokenExpired(c.accessToken.refreshOn,0))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Jn.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),D.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Jn.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),D.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,r)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(r,n){return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:if(r.idToken&&(o=new kr(r.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw D.createAuthTimeNotFoundError();kr.checkMaxAge(i,n.maxAge)}return[4,Hc.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(zh);/*! @azure/msal-common v7.6.0 2022-10-10 */function jC(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v7.6.0 2022-10-10 */var Ty={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},bp=Ty.endpointMetadata,Ip=Ty.instanceDiscoveryMetadata;/*! @azure/msal-common v7.6.0 2022-10-10 */var Fc;(function(t){t.AAD="AAD",t.OIDC="OIDC"})(Fc||(Fc={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Td=function(){function t(){this.expiresAt=Jt.nowSeconds()+va.REFRESH_TIME_SECONDS}return t.prototype.updateCloudDiscoveryMetadata=function(e,r){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=r},t.prototype.updateEndpointMetadata=function(e,r){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=r,this.jwks_uri=e.jwks_uri},t.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},t.prototype.resetExpiresAt=function(){this.expiresAt=Jt.nowSeconds()+va.REFRESH_TIME_SECONDS},t.prototype.isExpired=function(){return this.expiresAt<=Jt.nowSeconds()},t.isAuthorityMetadataEntity=function(e,r){return r?e.indexOf(va.CACHE_KEY)===0&&r.hasOwnProperty("aliases")&&r.hasOwnProperty("preferred_cache")&&r.hasOwnProperty("preferred_network")&&r.hasOwnProperty("canonical_authority")&&r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("aliasesFromNetwork")&&r.hasOwnProperty("endpointsFromNetwork")&&r.hasOwnProperty("expiresAt")&&r.hasOwnProperty("jwks_uri"):!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */function BC(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v7.6.0 2022-10-10 */var qC=function(){function t(e){this.networkInterface=e}return t.prototype.detectRegion=function(e,r,n){return K(this,void 0,void 0,function(){var o,i,a,s,c;return G(this,function(l){switch(l.label){case 0:if(o=e,o)return[3,8];i=t.IMDS_OPTIONS,n&&(i.proxyUrl=n),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(_.IMDS_VERSION,i)];case 2:return a=l.sent(),a.status===Wo.httpSuccess&&(o=a.body,r.region_source=gn.IMDS),a.status!==Wo.httpBadRequest?[3,5]:[4,this.getCurrentVersion(i)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,i)]:(r.region_source=gn.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===Wo.httpSuccess&&(o=c.body,r.region_source=gn.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),r.region_source=gn.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=gn.ENVIRONMENT_VARIABLE,l.label=9;case 9:return o||(r.region_source=gn.FAILED_AUTO_DETECTION),[2,o||null]}})})},t.prototype.getRegionFromIMDS=function(e,r){return K(this,void 0,void 0,function(){return G(this,function(n){return[2,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?api-version="+e+"&format=text",r,_.IMDS_TIMEOUT)]})})},t.prototype.getCurrentVersion=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?format=json",e)];case 1:return r=n.sent(),r.status===Wo.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 2:return n.sent(),[2,null];case 3:return[2]}})})},t.IMDS_OPTIONS={headers:{Metadata:"true"}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var $c=function(){function t(e,r,n,o,i){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=n,this.authorityOptions=o,this.regionDiscovery=new qC(r),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=i||_.EMPTY_STRING}return Object.defineProperty(t.prototype,"authorityType",{get:function(){var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case _.ADFS:return Wt.Adfs;case _.DSTS:return Wt.Dsts}return Wt.Default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new oe(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw D.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),t.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},t.prototype.replacePath=function(e){var r=e,n=new oe(this.metadata.canonical_authority),o=n.getUrlComponents().PathSegments,i=this.canonicalAuthorityUrlComponents.PathSegments;return i.forEach(function(a,s){var c=o[s];a!==c&&(r=r.replace("/"+c+"/","/"+a+"/"))}),r},Object.defineProperty(t.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Wt.Adfs||this.authorityType===Wt.Dsts||this.protocolMode===Fc.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),t.prototype.discoveryComplete=function(){return!!this.metadata},t.prototype.resolveEndpointsAsync=function(){return K(this,void 0,void 0,function(){var e,r,n,o;return G(this,function(i){switch(i.label){case 0:return e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),e||(e=new Td,e.updateCanonicalAuthority(this.canonicalAuthority)),[4,this.updateCloudDiscoveryMetadata(e)];case 1:return r=i.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network),[4,this.updateEndpointMetadata(e)];case 2:return n=i.sent(),r!==qt.CACHE&&n!==qt.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority)),o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache),this.cacheManager.setAuthorityMetadata(o,e),this.metadata=e,[2]}})})},t.prototype.updateEndpointMetadata=function(e){var r,n;return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:return o=this.getEndpointMetadataFromConfig(),o?(e.updateEndpointMetadata(o,!1),[2,qt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,qt.CACHE]:(i=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return o=a.sent(),o?!((r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0)&&r.azureRegion?[4,this.updateMetadataWithRegionalInformation(o)]:[3,3]:[3,4];case 2:o=a.sent(),a.label=3;case 3:return e.updateEndpointMetadata(o,!0),[2,qt.NETWORK];case 4:return i&&!this.authorityOptions.skipAuthorityMetadataCache?!((n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0)&&n.azureRegion?[4,this.updateMetadataWithRegionalInformation(i)]:[3,6]:[3,7];case 5:i=a.sent(),a.label=6;case 6:return e.updateEndpointMetadata(i,!1),[2,qt.HARDCODED_VALUES];case 7:throw D.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},t.prototype.isAuthoritySameType=function(e){var r=new oe(e.canonical_authority),n=r.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},t.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw we.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){return K(this,void 0,void 0,function(){var e,r;return G(this,function(n){switch(n.label){case 0:e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,e)];case 2:return r=n.sent(),[2,jC(r.body)?r.body:null];case 3:return n.sent(),[2,null];case 4:return[2]}})})},t.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in bp?bp[this.canonicalAuthority]:null},t.prototype.updateMetadataWithRegionalInformation=function(e){var r,n,o,i,a;return K(this,void 0,void 0,function(){var s,c;return G(this,function(l){switch(l.label){case 0:return[4,this.regionDiscovery.detectRegion((r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return s=l.sent(),c=((n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion)===_.AZURE_REGION_AUTO_DISCOVER_FLAG?s:(o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.azureRegion,((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.azureRegion)===_.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=s?Gn.AUTO_DETECTION_REQUESTED_SUCCESSFUL:Gn.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===s?Gn.CONFIGURED_MATCHES_DETECTED:Gn.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=Gn.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,t.replaceWithRegionalInformation(e,c)]):[2,e]}})})},t.prototype.updateCloudDiscoveryMetadata=function(e){return K(this,void 0,void 0,function(){var r,n;return G(this,function(o){switch(o.label){case 0:return r=this.getCloudDiscoveryMetadataFromConfig(),r?(e.updateCloudDiscoveryMetadata(r,!1),[2,qt.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,qt.CACHE]:(n=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(r=o.sent(),r)return e.updateCloudDiscoveryMetadata(r,!0),[2,qt.NETWORK];if(n&&!this.options.skipAuthorityMetadataCache)return e.updateCloudDiscoveryMetadata(n,!1),[2,qt.HARDCODED_VALUES];throw we.createUntrustedAuthorityError()}})})},t.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=t.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(r)return r}catch{throw we.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return K(this,void 0,void 0,function(){var e,r,n,o,i;return G(this,function(a){switch(a.label){case 0:e=""+_.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},this.proxyUrl&&(r.proxyUrl=this.proxyUrl),n=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e,r)];case 2:return o=a.sent(),i=BC(o.body)?o.body.metadata:[],i.length===0?[2,null]:(n=t.getCloudDiscoveryMetadataFromNetworkResponse(i,this.hostnameAndPort),[3,4]);case 3:return a.sent(),[2,null];case 4:return n||(n=t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,n]}})})},t.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Ip?Ip[this.canonicalAuthority]:null},t.prototype.isInKnownAuthorities=function(){var e=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return oe.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return r.length>0},t.generateAuthority=function(e,r){var n;if(r&&r.azureCloudInstance!==Ha.None){var o=r.tenant?r.tenant:_.DEFAULT_COMMON_TENANT;n=r.azureCloudInstance+"/"+o+"/"}return n||e},t.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},t.getCloudDiscoveryMetadataFromNetworkResponse=function(e,r){for(var n=0;n<e.length;n++){var o=e[n];if(o.aliases.indexOf(r)>-1)return o}return null},t.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},t.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},t.isPublicCloudAuthority=function(e){return _.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},t.buildRegionalAuthorityString=function(e,r,n){var o=new oe(e);o.validateAsUri();var i=o.getUrlComponents(),a=r+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=r+"."+_.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=oe.constructAuthorityUriFromObject(Ne(Ne({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},t.replaceWithRegionalInformation=function(e,r){return e.authorization_endpoint=t.buildRegionalAuthorityString(e.authorization_endpoint,r),e.token_endpoint=t.buildRegionalAuthorityString(e.token_endpoint,r,_.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=t.buildRegionalAuthorityString(e.end_session_endpoint,r)),e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var zc=function(){function t(){}return t.createDiscoveredInstance=function(e,r,n,o,i){return K(this,void 0,void 0,function(){var a,s;return G(this,function(c){switch(c.label){case 0:a=t.createInstance(e,r,n,o,i),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,a.resolveEndpointsAsync()];case 2:return c.sent(),[2,a];case 3:throw s=c.sent(),D.createEndpointDiscoveryIncompleteError(s);case 4:return[2]}})})},t.createInstance=function(e,r,n,o,i){if(x.isEmpty(e))throw we.createUrlEmptyError();return new $c(e,r,n,o,i)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var jc=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(Ye.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var kp=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(ya.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var KC={sendGetRequestAsync:function(){var t="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(z.createUnexpectedError(t))},sendPostRequestAsync:function(){var t="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(z.createUnexpectedError(t))}};/*! @azure/msal-common v7.6.0 2022-10-10 */var ks={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},Ap=function(t){xt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(ks.missingKidError.code,ks.missingKidError.desc)},e.createMissingAlgError=function(){return new e(ks.missingAlgError.code,ks.missingAlgError.desc)},e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var GC=function(){function t(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return t.getShrHeaderString=function(e){if(!e.kid)throw Ap.createMissingKidError();if(!e.alg)throw Ap.createMissingAlgError();var r=new t({typ:e.typ||Ed.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var VC=function(){function t(e,r){this.cacheOutcome=Jn.NO_CACHE_HIT,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||_.EMPTY_STRING,this.wrapperVer=e.wrapperVer||_.EMPTY_STRING,this.telemetryCacheKey=Ye.CACHE_KEY+Ft.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Ye.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(Ye.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(Ye.VALUE_SEPARATOR);return[Ye.SCHEMA_VERSION,o,r].join(Ye.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(Ye.VALUE_SEPARATOR),o=e.errors.slice(0,r).join(Ye.VALUE_SEPARATOR),i=e.errors.length,a=r<i?Ye.OVERFLOW_TRUE:Ye.OVERFLOW_FALSE,s=[i,a].join(Ye.VALUE_SEPARATOR);return[Ye.SCHEMA_VERSION,e.cacheHits,n,o,s].join(Ye.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=Ye.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),x.isEmpty(e.subError)?x.isEmpty(e.errorCode)?!!e&&e.toString()?r.errors.push(e.toString()):r.errors.push(Ye.UNKNOWN_ERROR):r.errors.push(e.errorCode):r.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)},t.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},t.prototype.getLastRequests=function(){var e=new jc,r=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return r||e},t.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.errors.length;if(r===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new jc;o.failedRequests=e.failedRequests.slice(r*2),o.errors=e.errors.slice(r),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},t.maxErrorsToSend=function(e){var r,n=0,o=0,i=e.errors.length;for(r=0;r<i;r++){var a=e.failedRequests[2*r]||_.EMPTY_STRING,s=e.failedRequests[2*r+1]||_.EMPTY_STRING,c=e.errors[r]||_.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+c.length+3,o<Ye.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},t.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||_.EMPTY_STRING),e.push(this.regionSource||_.EMPTY_STRING),e.push(this.regionOutcome||_.EMPTY_STRING),e.join(",")},t.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},t.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var by=function(){function t(e,r,n,o,i,a){this.authority=r,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.measurementsById=new Map}return t.prototype.startMeasurement=function(e,r){var n=this,o,i,a=r||this.generateId();r||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s=this.startPerformanceMeasuremeant(e,a);s.startMeasurement();var c={eventId:this.generateId(),status:Jo.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a};return this.cacheEventByCorrelationId(c),this.cacheMeasurement(c,s),{endMeasurement:function(l){var u=n.endMeasurement(Ne(Ne({},c),l));return u&&n.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return n.flushMeasurements(c.name,c.correlationId)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},measurement:s,event:c}},t.prototype.endMeasurement=function(e){var r=this.measurementsById.get(e.eventId);if(r){this.measurementsById.delete(e.eventId),r.endMeasurement();var n=r.flushMeasurement();if(n!==null){this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+n+" ms",e.correlationId);var o=Ne(Ne({durationMs:Math.round(n)},e),{status:Jo.Completed});return o}else this.logger.trace("PerformanceClient: Performance measurement not taken",e.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId);return null},t.prototype.cacheEventByCorrelationId=function(e){var r=this.eventsByCorrelationId.get(e.correlationId);r?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),r.set(e.eventId,e)):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,new Map().set(e.eventId,e)))},t.prototype.cacheMeasurement=function(e,r){this.measurementsById.set(e.eventId,r)},t.prototype.flushMeasurements=function(e,r){var n=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+e,r);var o=this.eventsByCorrelationId.get(r);if(o){this.discardMeasurements(r);var i=[];o.forEach(function(u){if(u.name!==e&&u.status!==Jo.Completed){n.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+e,r);var d=n.endMeasurement(u);d&&i.push(d)}i.push(u)});var a=i.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),s=a.filter(function(u){return u.name===e&&u.status===Jo.Completed});if(s.length>0){s.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",r);var c=s[0];this.logger.verbose("PerformanceClient: Measurement found for "+e,r);var l=a.reduce(function(u,d){if(d.name!==e){n.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,r);var h=d.name+"DurationMs";u[h]?n.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+d.name+", ignoring",r):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize),d.refreshTokenSize&&(u.refreshTokenSize=d.refreshTokenSize)}return u},c);this.emitEvents([l],l.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+e,r)}else this.logger.verbose("PerformanceClient: No measurements found",r)},t.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},t.prototype.addPerformanceCallback=function(e){var r=this.generateId();return this.callbacks.set(r,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+r),r},t.prototype.removePerformanceCallback=function(e){var r=this.callbacks.delete(e);return r?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),r},t.prototype.emitEvents=function(e,r){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",r),this.callbacks.forEach(function(o,i){n.logger.trace("PerformanceClient: Emitting event to callback "+i,r),o.apply(null,[e])})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var WC=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),YC=function(t){xt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new WC},e}(by);/*! @azure/msal-browser v2.30.0 2022-10-10 */var I={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},N=function(t){ot(e,t);function e(r,n){var o=t.call(this,r,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(r){return new e(I.pkceNotGenerated.code,I.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(I.cryptoDoesNotExist.code,I.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(I.httpMethodNotImplementedError.code,I.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(I.emptyNavigateUriError.code,I.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(I.hashEmptyError.code,I.hashEmptyError.desc+" Given Url: "+r)},e.createHashDoesNotContainStateError=function(){return new e(I.hashDoesNotContainStateError.code,I.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(I.hashDoesNotContainKnownPropertiesError.code,I.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(I.unableToParseStateError.code,I.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(I.stateInteractionTypeMismatchError.code,I.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(I.interactionInProgress.code,I.interactionInProgress.desc)},e.createPopupWindowError=function(r){var n=I.popupWindowError.desc;return n=x.isEmpty(r)?n:n+" Details: "+r,new e(I.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(I.emptyWindowError.code,I.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(I.userCancelledError.code,I.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(I.monitorPopupTimeoutError.code,I.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(I.monitorIframeTimeoutError.code,I.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(r){return new e(I.redirectInIframeError.code,I.redirectInIframeError.desc+" (window.parent !== window) => "+r)},e.createBlockReloadInHiddenIframeError=function(){return new e(I.blockTokenRequestsInHiddenIframeError.code,I.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(I.blockAcquireTokenInPopupsError.code,I.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(I.iframeClosedPrematurelyError.code,I.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(I.silentLogoutUnsupportedError.code,I.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(I.noAccountError.code,I.noAccountError.desc)},e.createSilentPromptValueError=function(r){return new e(I.silentPromptValueError.code,I.silentPromptValueError.desc+" Given value: "+r)},e.createUnableToParseTokenRequestCacheError=function(){return new e(I.unableToParseTokenRequestCacheError.code,I.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(I.noTokenRequestCacheError.code,I.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(I.authRequestNotSet.code,I.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(I.noCachedAuthorityError.code,I.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(I.invalidCacheType.code,""+I.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(I.notInBrowserEnvironment.code,I.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(I.databaseNotOpen.code,I.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(I.noNetworkConnectivity.code,I.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(r,n){return new e(I.postRequestFailed.code,I.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(I.getRequestFailed.code,I.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(I.failedToParseNetworkResponse.code,I.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(I.unableToLoadTokenError.code,I.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(I.signingKeyNotFoundInStorage.code,I.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},e.createAuthCodeRequiredError=function(){return new e(I.authCodeRequired.code,I.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(I.authCodeOrNativeAccountRequired.code,I.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(I.databaseUnavailable.code,I.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(I.unableToAcquireTokenFromNativePlatform.code,I.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(I.nativeHandshakeTimeout.code,I.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(I.nativeExtensionNotInstalled.code,I.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(I.nativeConnectionNotEstablished.code,I.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(I.nativeBrokerCalledBeforeInitialize.code,I.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(I.nativePromptNotSupported.code,I.nativePromptNotSupported.desc)},e}(z);/*! @azure/msal-browser v2.30.0 2022-10-10 */var cr={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},ta={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},qr;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(qr||(qr={}));var ft;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(ft||(ft={}));var _r;(function(t){t.GET="GET",t.POST="POST"})(_r||(_r={}));var ae;(function(t){t.AUTHORITY="authority",t.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",t.SESSION_STATE="session.state",t.REQUEST_STATE="request.state",t.NONCE_IDTOKEN="nonce.id_token",t.ORIGIN_URI="request.origin",t.RENEW_STATUS="token.renew.status",t.URL_HASH="urlHash",t.REQUEST_PARAMS="request.params",t.SCOPES="scopes",t.INTERACTION_STATUS_KEY="interaction.status",t.CCS_CREDENTIAL="ccs.credential",t.CORRELATION_ID="request.correlationId",t.NATIVE_REQUEST="request.native"})(ae||(ae={}));var Xo;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(Xo||(Xo={}));var ve;(function(t){t[t.acquireTokenRedirect=861]="acquireTokenRedirect",t[t.acquireTokenPopup=862]="acquireTokenPopup",t[t.ssoSilent=863]="ssoSilent",t[t.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",t[t.handleRedirectPromise=865]="handleRedirectPromise",t[t.acquireTokenByCode=866]="acquireTokenByCode",t[t.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",t[t.logout=961]="logout",t[t.logoutPopup=962]="logoutPopup"})(ve||(ve={}));var F;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(F||(F={}));var Rp;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(Rp||(Rp={}));var Pp={scopes:Za},yi="jwk",Np;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(Np||(Np={}));var bd="msal.db",QC=1,JC=bd+".keys",It;(function(t){t[t.Default=0]="Default",t[t.AccessToken=1]="AccessToken",t[t.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",t[t.RefreshToken=3]="RefreshToken",t[t.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",t[t.Skip=5]="Skip"})(It||(It={}));/*! @azure/msal-browser v2.30.0 2022-10-10 */var bt={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},Bc=function(t){ot(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(bt.redirectUriNotSet.code,bt.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(bt.postLogoutUriNotSet.code,bt.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(r){return new e(bt.storageNotSupportedError.code,bt.storageNotSupportedError.desc+" Given Location: "+r)},e.createRedirectCallbacksNotSetError=function(){return new e(bt.noRedirectCallbacksSet.code,bt.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(bt.stubPcaInstanceCalled.code,bt.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(bt.inMemRedirectUnavailable.code,bt.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(bt.entropyNotProvided.code,bt.entropyNotProvided.desc)},e}(z);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Op=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==ft.LocalStorage&&e!==ft.SessionStorage)throw Bc.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw Bc.createStorageNotSupportedError(e)},t.prototype.getItem=function(e){return this.windowStorage.getItem(e)},t.prototype.setItem=function(e,r){this.windowStorage.setItem(e,r)},t.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},t.prototype.getKeys=function(){return Object.keys(this.windowStorage)},t.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Id=function(){function t(){this.cache=new Map}return t.prototype.getItem=function(e){return this.cache.get(e)||null},t.prototype.setItem=function(e,r){this.cache.set(e,r)},t.prototype.removeItem=function(e){this.cache.delete(e)},t.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(r,n){e.push(n)}),e},t.prototype.containsKey=function(e){return this.cache.has(e)},t.prototype.clear=function(){this.cache.clear()},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Iy=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(x.isEmpty(r))return null;try{var n=Wr.parseRequestState(e,r);return n.libraryState.meta}catch(o){throw D.createInvalidStateError(r,o)}},t.parseServerResponseFromHash=function(e){if(!e)return{};var r=new oe(e);return oe.getDeserializedHash(r.getHash())},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var kd=function(t){ot(e,t);function e(r,n,o,i){var a=t.call(this,r,o)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new Id,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.cacheLocation),a.migrateCacheEntries(),a}return e.prototype.setupBrowserStorage=function(r){switch(r){case ft.LocalStorage:case ft.SessionStorage:try{return new Op(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=ft.MemoryStorage,new Id},e.prototype.setupTemporaryCacheStorage=function(r){switch(r){case ft.LocalStorage:case ft.SessionStorage:try{return new Op(ft.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case ft.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=_.CACHE_PREFIX+"."+He.ID_TOKEN,o=_.CACHE_PREFIX+"."+He.CLIENT_INFO,i=_.CACHE_PREFIX+"."+He.ERROR,a=_.CACHE_PREFIX+"."+He.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),d=[s,c,l,u],h=[He.ID_TOKEN,He.CLIENT_INFO,He.ERROR,He.ERROR_DESC];h.forEach(function(f,m){return r.migrateCacheEntry(f,d[m])})},e.prototype.migrateCacheEntry=function(r,n){n&&this.setTemporaryCache(r,n,!0)},e.prototype.validateAndParseJson=function(r){try{var n=JSON.parse(r);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(r){return this.browserStorage.getItem(r)},e.prototype.setItem=function(r,n){this.browserStorage.setItem(r,n)},e.prototype.getAccount=function(r){var n=this.getItem(r);if(!n)return null;var o=this.validateAndParseJson(n);return!o||!tt.isAccountEntity(o)?null:or.toObject(new tt,o)},e.prototype.setAccount=function(r){this.logger.trace("BrowserCacheManager.setAccount called");var n=r.generateAccountKey();this.setItem(n,JSON.stringify(r))},e.prototype.getIdTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!$a.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),or.toObject(new $a,o))},e.prototype.setIdTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAccessTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!za.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),or.toObject(new za,o))},e.prototype.setAccessTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getRefreshTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Dc.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),or.toObject(new Dc,o))},e.prototype.setRefreshTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAppMetadata=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Sd.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),or.toObject(new Sd,o))},e.prototype.setAppMetadata=function(r){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=r.generateAppMetadataKey();this.setItem(n,JSON.stringify(r))},e.prototype.getServerTelemetry=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!jc.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),or.toObject(new jc,o))},e.prototype.setServerTelemetry=function(r,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(r,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(r){var n=this.internalStorage.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return o&&Td.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),or.toObject(new Td,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var r=this,n=this.internalStorage.getKeys();return n.filter(function(o){return r.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(r,n){this.internalStorage.setItem(Xo.WRAPPER_SKU,r),this.internalStorage.setItem(Xo.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(Xo.WRAPPER_SKU)||_.EMPTY_STRING,n=this.internalStorage.getItem(Xo.WRAPPER_VER)||_.EMPTY_STRING;return[r,n]},e.prototype.setAuthorityMetadata=function(r,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(r,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var r=this.generateCacheKey(He.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(r);if(!n){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(He.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},e.prototype.setActiveAccount=function(r){var n=this.generateCacheKey(He.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(He.ACTIVE_ACCOUNT);if(r){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:r.homeAccountId,localAccountId:r.localAccountId};this.browserStorage.setItem(n,JSON.stringify(i)),this.browserStorage.setItem(o,r.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(r){var n=this.getAllAccounts();return n.filter(function(o){return!(r.username&&r.username.toLowerCase()!==o.username.toLowerCase()||r.homeAccountId&&r.homeAccountId!==o.homeAccountId||r.localAccountId&&r.localAccountId!==o.localAccountId||r.tenantId&&r.tenantId!==o.tenantId||r.environment&&r.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(r,n){var o=this.getAllAccounts().filter(function(i){if(n){var a=i.idTokenClaims&&i.idTokenClaims.sid;return n===a}return r?r===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw D.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!kp.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),or.toObject(new kp,o))},e.prototype.setThrottlingCache=function(r,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(r,JSON.stringify(n))},e.prototype.getTemporaryCache=function(r,n){var o=n?this.generateCacheKey(r):r;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var a=this.temporaryCacheStorage.getItem(o);if(!a){if(this.cacheConfig.cacheLocation===ft.LocalStorage){var s=this.browserStorage.getItem(o);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(r,n,o){var i=o?this.generateCacheKey(r):r;this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,n))},e.prototype.removeItem=function(r){return this.browserStorage.removeItem(r),this.temporaryCacheStorage.removeItem(r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(r)),!0},e.prototype.containsKey=function(r){return this.browserStorage.containsKey(r)||this.temporaryCacheStorage.containsKey(r)},e.prototype.getKeys=function(){return Fh(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(r.browserStorage.containsKey(o)||r.temporaryCacheStorage.containsKey(o))&&(o.indexOf(_.CACHE_PREFIX)!==-1||o.indexOf(r.clientId)!==-1)&&r.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.setItemCookie=function(r,n,o){var i=encodeURIComponent(r)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(o){var a=this.getCookieExpirationTime(o);i+="expires="+a+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(r){for(var n=encodeURIComponent(r)+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var a=o[i];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return _.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var r=this,n=_.CACHE_PREFIX+"."+this.clientId,o=document.cookie.split(";");o.forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(n)===0){var a=i.split("=")[0];r.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(r){this.setItemCookie(r,_.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(r){var n=new Date,o=new Date(n.getTime()+r*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(r){var n=this.validateAndParseJson(r);return n?JSON.stringify(r):x.startsWith(r,_.CACHE_PREFIX)||x.startsWith(r,He.ADAL_ID_TOKEN)?r:_.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(r){var n=this.generateStateKey(r),o=this.getTemporaryCache(n);if(!o)return null;var i=this.generateAuthorityKey(o);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(r,n,o,i,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(r);this.setTemporaryCache(s,r,!1);var c=this.generateNonceKey(r);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(r);if(this.setTemporaryCache(l,o,!1),a){var u={credential:a.homeAccountId,type:Dt.HOME_ACCOUNT_ID};this.setTemporaryCache(ae.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!x.isEmpty(i)){var u={credential:i,type:Dt.UPN};this.setTemporaryCache(ae.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),x.isEmpty(r)||this.getKeys().forEach(function(o){o.indexOf(r)!==-1&&n.removeItem(o)}),r&&(this.removeItem(this.generateStateKey(r)),this.removeItem(this.generateNonceKey(r)),this.removeItem(this.generateAuthorityKey(r))),this.removeItem(this.generateCacheKey(ae.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ae.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ae.URL_HASH)),this.removeItem(this.generateCacheKey(ae.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ae.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ae.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(r){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),r){var n=this.generateStateKey(r),o=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||_.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(r){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(ae.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(!!i){var a=Iy.extractBrowserRequestState(n.cryptoImpl,i);a&&a.interactionType===r&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),n.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(r,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=n.base64Encode(JSON.stringify(r));this.setTemporaryCache(ae.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(ae.REQUEST_PARAMS,!0);if(!o)throw N.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw N.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ae.REQUEST_PARAMS)),x.isEmpty(i.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw N.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(ae.NATIVE_REQUEST,!0);if(!r)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(r);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(r){var n=this.getInteractionInProgress();return r?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var r=_.CACHE_PREFIX+"."+ae.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},e.prototype.setInteractionInProgress=function(r){var n=_.CACHE_PREFIX+"."+ae.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw N.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(He.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(He.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(He.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(He.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new kr(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(r,n){var o=n.generateCredentialKey();if(r!==o){var i=this.getItem(r);if(i)return this.removeItem(r),this.setItem(o,i),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),o;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return r},e}(or),XC=function(t,e){var r={cacheLocation:ft.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new kd(t,r,Mc,e)};/*! @azure/msal-browser v2.30.0 2022-10-10 */var Zl="@azure/msal-browser",_a="2.30.0";/*! @azure/msal-browser v2.30.0 2022-10-10 */var ZC=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return S(this,void 0,void 0,function(){var n,o,i;return T(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:_r.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?N.createGetRequestFailedError(o,e):N.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=a.sent(),i.status=n.status,i)];case 5:throw a.sent(),N.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(e,r){return S(this,void 0,void 0,function(){var n,o,i,a;return T(this,function(s){switch(s.label){case 0:n=r&&r.body||_.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:_r.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?N.createPostRequestFailedError(i,e):N.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(a.body=s.sent(),a.status=o.status,a)];case 6:throw s.sent(),N.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},t.prototype.getFetchHeaders=function(e){var r=new Headers;if(!(e&&e.headers))return r;var n=e.headers;return Object.keys(n).forEach(function(o){r.append(o,n[o])}),r},t.prototype.getHeaderDict=function(e){var r={};return e.forEach(function(n,o){r[o]=n}),r},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var eS=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.sendRequestAsync(e,_r.GET,r)]})})},t.prototype.sendPostRequestAsync=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.sendRequestAsync(e,_r.POST,r)]})})},t.prototype.sendRequestAsync=function(e,r,n){var o=this;return new Promise(function(i,a){var s=new XMLHttpRequest;if(s.open(r,e,!0),o.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(r===_r.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:o.getHeaderDict(s),body:c,status:s.status};i(l)}catch{a(N.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?r===_r.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)):a(N.createNoNetworkConnectivityError())},r===_r.POST&&n&&n.body)s.send(n.body);else if(r===_r.GET)s.send();else throw N.createHttpMethodNotImplementedError(r)})},t.prototype.setXhrHeaders=function(e,r){if(r&&r.headers){var n=r.headers;Object.keys(n).forEach(function(o){e.setRequestHeader(o,n[o])})}},t.prototype.getHeaderDict=function(e){var r=e.getAllResponseHeaders(),n=r.trim().split(/[\r\n]+/),o={};return n.forEach(function(i){var a=i.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(o[s]=c)}),o},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Oe=function(){function t(){}return t.clearHash=function(e){e.location.hash=_.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,_.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},t.replaceHash=function(e){var r=e.split("#");r.shift(),window.location.hash=r.length>0?r.join("#"):_.EMPTY_STRING},t.isInIframe=function(){return window.parent!==window},t.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(cr.POPUP_NAME_PREFIX+".")===0},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new oe(window.location.href),r=e.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new ZC:new eS},t.blockReloadInHiddenIframes=function(){var e=oe.hashContainsKnownProperties(window.location.hash);if(e&&t.isInIframe())throw N.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,r){var n=t.isInIframe();if(e===F.Redirect&&n&&!r)throw N.createRedirectInIframeError(n)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw N.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw N.createNonBrowserEnvironmentError()},t.blockNativeBrokerCalledBeforeInitialized=function(e,r){if(e&&!r)throw N.createNativeBrokerCalledBeforeInitialize()},t.detectIEOrEdge=function(){var e=window.navigator.userAgent,r=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=r>0||n>0,a=o>0;return i||a},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var ky=function(){function t(e,r,n,o,i,a,s,c,l){this.config=e,this.browserStorage=r,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=o.clone(cr.MSAL_SKU,_a,this.correlationId),this.performanceClient=s}return t.prototype.clearCacheOnLogout=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){switch(r.label){case 0:if(!e)return[3,5];tt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(tt.generateAccountCacheKey(e))];case 2:return r.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return r.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return r.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return r.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return r.sent(),[3,9];case 8:return r.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},t.prototype.initializeBaseRequest=function(e){return S(this,void 0,void 0,function(){var r,n,o,i;return T(this,function(a){switch(a.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,n=Fh(e&&e.scopes||[]),o=$($({},e),{correlationId:this.correlationId,authority:r,scopes:n}),!o.authenticationScheme)o.authenticationScheme=le.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===le.SSH){if(!e.sshJwk)throw we.createMissingSshJwkError();if(!e.sshKid)throw we.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return e.claims&&!x.isEmpty(e.claims)?(i=o,[4,this.browserCrypto.hashString(e.claims)]):[3,2];case 1:i.requestedClaimsHash=a.sent(),a.label=2;case 2:return[2,o]}})})},t.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var r=e||this.config.auth.redirectUri||Oe.getCurrentUri();return oe.getAbsoluteUrl(r,Oe.getCurrentUri())},t.prototype.initializeServerTelemetryManager=function(e,r){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new VC(n,this.browserStorage)},t.prototype.getDiscoveredAuthority=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),r={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,zc.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,r)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,zc.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ri=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(r){return S(this,void 0,void 0,function(){var n,o;return T(this,function(i){switch(i.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",r.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=$($({},r),{redirectUri:r.redirectUri,code:_.EMPTY_STRING,codeVerifier:n.verifier}),r.codeChallenge=n.challenge,r.codeChallengeMethod=_.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(r){this.logger.verbose("initializeLogoutRequest called",r==null?void 0:r.correlationId);var n=$({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},r);if(r)if(r.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(r.account){var o=this.getLogoutHintFromIdTokenClaims(r.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!r||r.postLogoutRedirectUri!==null?r&&r.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(r.postLogoutRedirectUri,Oe.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Oe.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(Oe.getCurrentUri(),Oe.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(r){var n=r.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new Cy(i)]}})})},e.prototype.getClientConfiguration=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return this.logger.verbose("getClientConfiguration called",this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=a.sent(),[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:this.config.system.loggerOptions.loggerCallback,piiLoggingEnabled:this.config.system.loggerOptions.piiLoggingEnabled,logLevel:this.config.system.loggerOptions.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:r,libraryInfo:{sku:cr.MSAL_SKU,version:_a,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(r,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!r.state)throw N.createHashDoesNotContainStateError();var i=Iy.extractBrowserRequestState(this.browserCrypto,r.state);if(!i)throw N.createUnableToParseStateError();if(i.interactionType!==n)throw N.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),r.state},e.prototype.getDiscoveredAuthority=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s;return T(this,function(c){switch(c.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=this.performanceClient.startMeasurement(je.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),i={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},a=r||this.config.auth.authority,s=$c.generateAuthority(a,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,zc.createDiscoveredInstance(s,this.config.system.networkClient,this.browserStorage,i).then(function(l){return o.endMeasurement({success:!0}),l}).catch(function(l){throw o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l})];case 1:return[2,c.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return T(this,function(d){switch(d.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=Wr.setRequestState(this.browserCrypto,r&&r.state||_.EMPTY_STRING,i),c=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=$.apply(void 0,[$.apply(void 0,c.concat([d.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:Pc.FRAGMENT}]),l=r.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),x.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(ky);/*! @azure/msal-browser v2.30.0 2022-10-10 */var jh=function(){function t(e,r,n,o){this.authModule=e,this.browserStorage=r,this.authCodeRequest=n,this.logger=o}return t.prototype.handleCodeResponseFromHash=function(e,r,n,o){return S(this,void 0,void 0,function(){var i,a,s;return T(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),x.isEmpty(e))throw N.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(i),!a)throw D.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof vo&&l.subError===I.userCancelledError.code?N.createUserCancelledError():l}return[2,this.handleCodeResponseFromServer(s,r,n,o)]})})},t.prototype.handleCodeResponseFromServer=function(e,r,n,o,i){return i===void 0&&(i=!0),S(this,void 0,void 0,function(){var a,s,c,l,u,d;return T(this,function(h){switch(h.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw D.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,o)]:[3,2];case 1:h.sent(),h.label=2;case 2:return i&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=h.sent(),this.browserStorage.cleanRequestByState(r),[2,d]}})})},t.prototype.updateTokenEndpointAuthority=function(e,r,n){return S(this,void 0,void 0,function(){var o,i;return T(this,function(a){switch(a.label){case 0:return o="https://"+e+"/"+r.tenant+"/",[4,zc.createDiscoveredInstance(o,n,this.browserStorage,r.options)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},t.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(ae.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var xp=function(t){ot(e,t);function e(r,n,o,i,a){var s=t.call(this,r,n,o,i)||this;return s.browserCrypto=a,s}return e.prototype.initiateAuthRequest=function(r,n){return S(this,void 0,void 0,function(){var o,i;return T(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),x.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ae.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ae.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),o={apiId:ve.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=n.onRedirectNavigate(r),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(r,o)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(r,o)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),N.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(r,n,o,i){return S(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return T(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),x.isEmpty(r))throw N.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw D.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(r,s)}catch(m){throw m instanceof vo&&m.subError===I.userCancelledError.code?N.createUserCancelledError():m}return l=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,o,i)]:[3,2];case 1:f.sent(),f.label=2;case 2:return c.nonce=u||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=f.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(jh);/*! @azure/msal-browser v2.30.0 2022-10-10 */var q;(function(t){t.INITIALIZE_START="msal:initializeStart",t.INITIALIZE_END="msal:initializeEnd",t.ACCOUNT_ADDED="msal:accountAdded",t.ACCOUNT_REMOVED="msal:accountRemoved",t.LOGIN_START="msal:loginStart",t.LOGIN_SUCCESS="msal:loginSuccess",t.LOGIN_FAILURE="msal:loginFailure",t.ACQUIRE_TOKEN_START="msal:acquireTokenStart",t.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",t.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",t.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",t.SSO_SILENT_START="msal:ssoSilentStart",t.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",t.SSO_SILENT_FAILURE="msal:ssoSilentFailure",t.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",t.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",t.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",t.HANDLE_REDIRECT_START="msal:handleRedirectStart",t.HANDLE_REDIRECT_END="msal:handleRedirectEnd",t.POPUP_OPENED="msal:popupOpened",t.LOGOUT_START="msal:logoutStart",t.LOGOUT_SUCCESS="msal:logoutSuccess",t.LOGOUT_FAILURE="msal:logoutFailure",t.LOGOUT_END="msal:logoutEnd"})(q||(q={}));/*! @azure/msal-browser v2.30.0 2022-10-10 */var mn;(function(t){t.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",t.USER_CANCEL="USER_CANCEL",t.NO_NETWORK="NO_NETWORK",t.TRANSIENT_ERROR="TRANSIENT_ERROR",t.PERSISTENT_ERROR="PERSISTENT_ERROR",t.DISABLED="DISABLED",t.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(mn||(mn={}));var Bi={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},Er=function(t){ot(e,t);function e(r,n,o){var i=t.call(this,r,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=o,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===mn.PERSISTENT_ERROR||this.ext.status===mn.DISABLED))return!0;switch(this.errorCode){case Bi.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,o){if(o&&o.status)switch(o.status){case mn.ACCOUNT_UNAVAILABLE:return lr.createNativeAccountUnavailableError();case mn.USER_INTERACTION_REQUIRED:return new lr(r,n);case mn.USER_CANCEL:return N.createUserCancelledError();case mn.NO_NETWORK:return N.createNoNetworkConnectivityError()}return new e(r,n,o)},e.createUserSwitchError=function(){return new e(Bi.userSwitch.code,Bi.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Bi.tokensNotFoundInCache.code,Bi.tokensNotFoundInCache.desc)},e}(z);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ay=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(je.SilentCacheClientAcquireToken,r.correlationId),o=this.initializeServerTelemetryManager(ve.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,r.authority,r.azureCloudOptions)];case 1:i=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i.acquireCachedToken(r)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof N&&s.errorCode===I.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof z&&s.errorCode||void 0,subErrorCode:s instanceof z&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new zC(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(r,n){return S(this,void 0,void 0,function(){var o;return T(this,function(i){switch(i.label){case 0:return o=[$({},r)],[4,this.initializeBaseRequest(r)];case 1:return[2,$.apply(void 0,[$.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var si=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d,h,f){var m=t.call(this,r,n,o,i,a,s,l,u,f)||this;return m.apiId=c,m.accountId=d,m.nativeMessageHandler=u,m.nativeStorageManager=h,m.silentCacheClient=new Ay(r,m.nativeStorageManager,o,i,a,s,l,u,f),m}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(je.NativeInteractionClientAcquireToken,r.correlationId),o=Jt.nowSeconds(),[4,this.initializeNativeRequest(r)];case 1:i=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return a=u.sent(),n.endMeasurement({success:!0,isNativeBroker:!0,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:qr.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=u.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,i,o).then(function(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(r,n){return{authority:r.authority,correlationId:this.correlationId,scopes:wt.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c;return T(this,function(l){switch(l.label){case 0:if(o=this.browserStorage.readAccountFromCacheWithNativeAccountId(r),!o)throw D.createNoAccountFoundError();i=o.getAccountInfo(),l.label=1;case 1:return l.trys.push([1,3,,4]),a=this.createSilentCacheRequest(n,i),[4,this.silentCacheClient.acquireToken(a)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c;return T(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(r)];case 1:n=l.sent(),o={method:qr.GetToken,request:n},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=l.sent(),this.validateNativeResponse(i),[3,5];case 4:if(a=l.sent(),a instanceof Er&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ae.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:ve.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(r.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return S(this,void 0,void 0,function(){var r,n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(r=this.browserStorage.getCachedNativeRequest(),!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ae.NATIVE_REQUEST)),n={method:qr.GetToken,request:r},o=Jt.nowSeconds(),c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(n)];case 2:return i=c.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,r,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=c.sent(),this.browserStorage.setInteractionInProgress(!1),s;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(r,n,o){return S(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,f,m,v,E,g,p,y,w,k,P,M,O,se=this;return T(this,function(B){switch(B.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),r.account.id!==n.accountId)throw Er.createUserSwitchError();return i=new kr(r.id_token||_.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(n.authority)];case 1:switch(a=B.sent(),s=a.getPreferredCache(),c=tt.generateHomeAccountId(r.client_info||_.EMPTY_STRING,Wt.Default,this.logger,this.browserCrypto,i),l=tt.createAccount(r.client_info,c,i,void 0,void 0,void 0,s,r.account.id),this.browserStorage.setAccount(l),u=r.scope?wt.fromString(r.scope):wt.fromString(n.scope),d=r.account.properties||{},h=d.UID||i.claims.oid||i.claims.sub||_.EMPTY_STRING,f=d.TenantId||i.claims.tid||_.EMPTY_STRING,v=le.BEARER,E=n.tokenType,E){case le.POP:return[3,2]}return[3,4];case 2:if(v=le.POP,r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),m=r.shr,[3,5];if(g=new vi(this.browserCrypto),p={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw D.createKeyIdMissingError();return[4,g.signPopToken(r.access_token,n.keyId,p)];case 3:return m=B.sent(),[3,5];case 4:m=r.access_token,B.label=5;case 5:return y=this.getMATSFromResponse(r),w={authority:a.canonicalAuthority,uniqueId:h,tenantId:f,scopes:u.asArray(),account:l.getAccountInfo(),idToken:r.id_token,idTokenClaims:i.claims,accessToken:m,fromCache:y?this.isResponseFromCache(y):!1,expiresOn:new Date(Number(o+r.expires_in)*1e3),tokenType:v,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},k=$a.createIdTokenEntity(c,n.authority,r.id_token||_.EMPTY_STRING,n.clientId,i.claims.tid||_.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(k),P=v===le.POP?_.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,M=o+P,O=za.createAccessTokenEntity(c,n.authority,m,n.clientId,f,u.printScopes(),M,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(O),this.browserStorage.removeAccountContext(l).catch(function(vt){se.logger.error("Error occurred while removing account context from browser storage. "+vt)}),[2,w]}})})},e.prototype.validateNativeResponse=function(r){if(r.hasOwnProperty("access_token")&&r.hasOwnProperty("id_token")&&r.hasOwnProperty("client_info")&&r.hasOwnProperty("account")&&r.hasOwnProperty("scope")&&r.hasOwnProperty("expires_in"))return r;throw Er.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(r){if(r.properties.MATS)try{return JSON.parse(r.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(r){return typeof r.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!r.is_cached},e.prototype.initializeNativeRequest=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f=this;return T(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,o=new oe(n),o.validateAsUri(),i=r.scopes,a=TC(r,["scopes"]),s=new wt(i||[]),s.appendScopes(Za),c=function(){switch(f.apiId){case ve.ssoSilent:case ve.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),gt.NONE}if(!r.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case gt.NONE:case gt.CONSENT:case gt.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+r.prompt+" is not compatible with native flow"),N.createNativePromptParameterNotSupportedError()}},l=$($({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(r.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:r.authenticationScheme,windowTitleSubstring:document.title,extraParameters:$($($({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:ta.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==le.POP?[3,2]:(u={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},d=new vi(this.browserCrypto),[4,d.generateCnf(u)]);case 1:h=m.sent(),l.reqCnf=h.reqCnfHash,l.keyId=h.kid,m.label=2;case 2:return[2,l]}})})},e}(ky);/*! @azure/msal-browser v2.30.0 2022-10-10 */var ro=function(){function t(e,r,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this)}return t.prototype.sendMessage=function(e){return S(this,void 0,void 0,function(){var r,n=this;return T(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:ta.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(r)),this.messageChannel.port1.postMessage(r),[2,new Promise(function(i,a){n.resolvers.set(r.responseId,{resolve:i,reject:a})})]})})},t.createProvider=function(e,r){return S(this,void 0,void 0,function(){var n,o;return T(this,function(i){switch(i.label){case 0:e.trace("NativeMessageHandler - createProvider called."),i.label=1;case 1:return i.trys.push([1,3,,5]),n=new t(e,r,ta.PREFERRED_EXTENSION_ID),[4,n.sendHandshakeRequest()];case 2:return i.sent(),[2,n];case 3:return i.sent(),o=new t(e,r),[4,o.sendHandshakeRequest()];case 4:return i.sent(),[2,o];case 5:return[2]}})})},t.prototype.sendHandshakeRequest=function(){return S(this,void 0,void 0,function(){var e,r=this;return T(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:ta.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:qr.HandshakeRequest}},this.messageChannel.port1.onmessage=function(o){r.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){r.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),r.timeoutId=window.setTimeout(function(){window.removeEventListener("message",r.windowListener,!1),r.messageChannel.port1.close(),r.messageChannel.port2.close(),i(N.createNativeHandshakeTimeoutError()),r.handshakeResolvers.delete(e.responseId)},r.handshakeTimeoutMs)})]})})},t.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var r=e.data;if(!(!r.channel||r.channel!==ta.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===qr.HandshakeRequest){this.logger.verbose(r.extensionId?"Extension with id: "+r.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(r.responseId);n&&n.reject(N.createNativeExtensionNotInstalledError())}}},t.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var r=e.data,n=this.resolvers.get(r.responseId),o=this.handshakeResolvers.get(r.responseId);try{var i=r.body.method;if(i===qr.Response){if(!n)return;var a=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(Er.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Er.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw z.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===qr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),o.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):o&&o.reject(s)}},t.isNativeAvailable=function(e,r,n,o){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case le.BEARER:case le.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var tS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h=this;return T(this,function(f){switch(f.label){case 0:return[4,this.initializeAuthorizationRequest(r,F.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(ve.acquireTokenRedirect),i=function(m){m.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state))},f.label=2;case 2:return f.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new xp(s,this.browserStorage,a,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl($($({},n),{nativeBroker:ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return l=f.sent(),u=this.getRedirectStartPage(r.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:r.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw d=f.sent(),d instanceof z&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f,m;return T(this,function(v){switch(v.label){case 0:n=this.initializeServerTelemetryManager(ve.handleRedirectPromise),v.label=1;case 1:if(v.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(r||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(F.Redirect),[2,null];i=void 0;try{a=oe.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,F.Redirect),this.logger.verbose("State extracted from hash")}catch(E){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+E),this.browserStorage.cleanRequestByInteractionType(F.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(ae.ORIGIN_URI,!0)||_.EMPTY_STRING,c=oe.removeHashFromUrl(s),l=oe.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,i,n)]):[3,3];case 2:return u=v.sent(),s.indexOf("#")>-1&&Oe.replaceHash(s),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,i,n)]);case 4:return!Oe.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ae.URL_HASH,o,!0),d={apiId:ve.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(f=Oe.getHomepage(),this.browserStorage.setTemporaryCache(ae.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,d)]):[3,6]):[3,9];case 5:return h=v.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:h=v.sent(),v.label=8;case 8:if(!h)return[2,this.handleHash(o,i,n)];v.label=9;case 9:return[2,null];case 10:throw m=v.sent(),m instanceof z&&m.setCorrelationId(this.correlationId),n.cacheFailedRequest(m),this.browserStorage.cleanRequestByInteractionType(F.Redirect),m;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=oe.hashContainsKnownProperties(r);if(n)return Oe.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var o=this.browserStorage.getTemporaryCache(ae.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ae.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(r,n,o){return S(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h=this;return T(this,function(f){switch(f.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=oe.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return s=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,i.correlationId),c=Wr.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken($($({},i),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw N.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(o,l)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),Lc.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new xp(u,this.browserStorage,i,this.logger,this.browserCrypto),[4,d.handleCodeResponseFromHash(r,n,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),o=this.initializeServerTelemetryManager(ve.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(q.LOGOUT_START,F.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:ve.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(o,r&&r.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,F.Redirect,n),r&&typeof r.onRedirectNavigate=="function"?(c=r.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw l=u.sent(),l instanceof z&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,F.Redirect,null,l),this.eventHandler.emitEvent(q.LOGOUT_END,F.Redirect),l;case 11:return this.eventHandler.emitEvent(q.LOGOUT_END,F.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return oe.getAbsoluteUrl(n,Oe.getCurrentUri())},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var rS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||Za,r.authority||this.config.auth.authority),o=r.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(r,n,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",n,o);return this.acquireTokenPopupAsync(r,n,o,i)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(r){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(r),o=this.generateLogoutPopupName(n),i=r&&r.authority,a=r&&r.mainWindowRedirectUri,s=(r==null?void 0:r.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,o,s,i,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,c,a)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(r,n,o,i){return S(this,void 0,void 0,function(){var a,s,c,l,u,d,h,f,m,v,E,g,p,y,w,k,P,M=this;return T(this,function(O){switch(O.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(ve.acquireTokenPopup),[4,this.initializeAuthorizationRequest(r,F.Popup)];case 1:s=O.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||_.EMPTY_STRING,s.account||null),O.label=2;case 2:return O.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=O.sent(),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=O.sent(),this.logger.verbose("Auth code client created"),u=ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(je.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl($($({},s),{nativeBroker:u}))];case 5:return h=O.sent(),f=new jh(l,this.browserStorage,c,this.logger),m={popup:i,popupName:n,popupWindowAttributes:o},v=this.initiateAuthRequest(h,m),this.eventHandler.emitEvent(q.POPUP_OPENED,F.Popup,{popupWindow:v},null),[4,this.monitorPopupForHash(v)];case 6:if(E=O.sent(),g=oe.getDeserializedHash(E),p=this.validateAndExtractStateFromHash(g,F.Popup,s.correlationId),Lc.removeThrottle(this.browserStorage,this.config.auth.clientId,c),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return y=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,s.correlationId),w=Wr.parseRequestState(this.browserCrypto,p).userRequestState,[2,y.acquireToken($($({},s),{state:w,prompt:void 0})).finally(function(){M.browserStorage.cleanRequestByState(p)})]}return[4,f.handleCodeResponseFromHash(E,p,l.authority,this.networkClient)];case 7:return k=O.sent(),[2,k];case 8:throw P=O.sent(),i&&i.close(),P instanceof z&&P.setCorrelationId(this.correlationId),a.cacheFailedRequest(P),this.browserStorage.cleanRequestByState(s.state),P;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(r,n,o,i,a,s){return S(this,void 0,void 0,function(){var c,l,u,d,h,f,m;return T(this,function(v){switch(v.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(q.LOGOUT_START,F.Popup,r),c=this.initializeServerTelemetryManager(ve.logoutPopup),v.label=1;case 1:return v.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return v.sent(),[4,this.createAuthCodeClient(c,i)];case 3:return l=v.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(r),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,F.Popup,r),d=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(q.POPUP_OPENED,F.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return v.sent(),s?(h={apiId:ve.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=oe.getAbsoluteUrl(s,Oe.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw m=v.sent(),a&&a.close(),m instanceof z&&m.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,F.Popup,null,m),this.eventHandler.emitEvent(q.LOGOUT_END,F.Popup),c.cacheFailedRequest(m),m;case 6:return this.eventHandler.emitEvent(q.LOGOUT_END,F.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(r,n){if(x.isEmpty(r))throw this.logger.error("Navigate url is empty"),N.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+r),this.openPopup(r,n)},e.prototype.monitorPopupForHash=function(r){var n=this;return new Promise(function(o,i){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(r.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),i(N.createUserCancelledError());return}var l=_.EMPTY_STRING,u=_.EMPTY_STRING;try{l=r.location.href,u=r.location.hash}catch{}x.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,u?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(r),oe.hashContainsKnownProperties(u)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(u)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),i(N.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(N.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(r){var n=this;return new Promise(function(o){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){r.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(i),o());var a=_.EMPTY_STRING;try{a=r.location.href}catch{}x.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),n.cleanPopup(r),o())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(r,n){try{var o=void 0;if(n.popup?(o=n.popup,this.logger.verbosePii("Navigating popup window to: "+r),o.location.assign(r)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+r),o=this.openSizedPopup(r,n.popupName,n.popupWindowAttributes)),!o)throw N.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),N.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(r,n,o){var i,a,s,c,l=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=(i=o.popupSize)===null||i===void 0?void 0:i.width,m=(a=o.popupSize)===null||a===void 0?void 0:a.height,v=(s=o.popupPosition)===null||s===void 0?void 0:s.top,E=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!f||f<0||f>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=cr.POPUP_WIDTH),(!m||m<0||m>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),m=cr.POPUP_HEIGHT),(!v||v<0||v>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),v=Math.max(0,h/2-cr.POPUP_HEIGHT/2+u)),(!E||E<0||E>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),E=Math.max(0,d/2-cr.POPUP_WIDTH/2+l)),window.open(r,n,"width="+f+", height="+m+", top="+v+", left="+E+", scrollbars=yes")},e.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(F.Popup),this.currentWindow&&this.currentWindow.close(),r.preventDefault()},e.prototype.cleanPopup=function(r){r&&r.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(r,n){return cr.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(r){var n=r.account&&r.account.homeAccountId;return cr.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var nS=function(){function t(){}return t.prototype.navigateInternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.prototype.navigateExternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.defaultNavigateWindow=function(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},r.timeout)})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var oS=6e4,Ad=6e3,iS=3e4,aS=2e3;function sS(t,e){var r=t.auth,n=t.cache,o=t.system,i=t.telemetry,a={clientId:_.EMPTY_STRING,authority:""+_.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:_.EMPTY_STRING,authorityMetadata:_.EMPTY_STRING,redirectUri:_.EMPTY_STRING,postLogoutRedirectUri:_.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Fc.AAD,azureCloudOptions:{azureCloudInstance:Ha.None,tenant:_.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:ft.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:xe.Info,piiLoggingEnabled:!1},l=$($({},Ey),{loggerOptions:c,networkClient:e?Oe.getBrowserNetworkClient():KC,navigationClient:new nS,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||oS,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Ad,navigateFrameWait:e&&Oe.detectIEOrEdge()?500:0,redirectNavigationTimeout:iS,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||aS,pollIntervalMilliseconds:cr.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u={application:{appName:_.EMPTY_STRING,appVersion:_.EMPTY_STRING}},d={auth:$($({},a),r),cache:$($({},s),n),system:$($({},l),o),telemetry:$($({},u),i)};return d}/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ry=function(t){ot(e,t);function e(r,n,o,i,a){var s=t.call(this,r,n,o,i)||this;return s.navigateFrameWait=a.navigateFrameWait,s.pollIntervalMilliseconds=a.pollIntervalMilliseconds,s}return e.prototype.initiateAuthRequest=function(r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(o.label){case 0:if(x.isEmpty(r))throw this.logger.info("Navigate url is empty"),N.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(r)]:[3,2];case 1:return n=o.sent(),[3,3];case 2:n=this.loadFrameSync(r),o.label=3;case 3:return[2,n]}})})},e.prototype.monitorIframeForHash=function(r,n){var o=this;return new Promise(function(i,a){n<Ad&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Ad+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){o.removeHiddenIframe(r),clearInterval(l),a(N.createMonitorIframeTimeoutError());return}var u=_.EMPTY_STRING,d=r.contentWindow;try{u=d?d.location.href:_.EMPTY_STRING}catch{}if(!x.isEmpty(u)){var h=d?d.location.hash:_.EMPTY_STRING;if(oe.hashContainsKnownProperties(h)){o.removeHiddenIframe(r),clearInterval(l),i(h);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(r){var n=this;return new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=r,o(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(r){var n=this.createHiddenIframe();return n.src=r,n},e.prototype.createHiddenIframe=function(){var r=document.createElement("iframe");return r.style.visibility="hidden",r.style.position="absolute",r.style.width=r.style.height="0",r.style.border="0",r.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(r),r},e.prototype.removeHiddenIframe=function(r){document.body===r.parentNode&&document.body.removeChild(r)},e}(jh);/*! @azure/msal-browser v2.30.0 2022-10-10 */var cS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d,h){var f=t.call(this,r,n,o,i,a,s,l,d,h)||this;return f.apiId=c,f.nativeStorage=u,f}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(je.SilentIframeClientAcquireToken,r.correlationId),x.isEmpty(r.loginHint)&&x.isEmpty(r.sid)&&(!r.account||x.isEmpty(r.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),r.prompt&&r.prompt!==gt.NONE&&r.prompt!==gt.NO_SESSION)throw n.endMeasurement({success:!1}),N.createSilentPromptValueError(r.prompt);return[4,this.initializeAuthorizationRequest($($({},r),{prompt:r.prompt||gt.NONE}),F.Silent)];case 1:o=c.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||_.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(a,o).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof z&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof z&&s.errorCode||void 0,subErrorCode:s instanceof z&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u,d,h,f=this;return T(this,function(m){switch(m.label){case 0:return[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=m.sent(),[4,r.getAuthCodeUrl($($({},n),{nativeBroker:ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=m.sent(),a=new Ry(r,this.browserStorage,o,this.logger,this.config.system),[4,a.initiateAuthRequest(i)];case 3:return s=m.sent(),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=m.sent(),l=oe.getDeserializedHash(c),u=this.validateAndExtractStateFromHash(l,F.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return d=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),h=Wr.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken($($({},n),{state:h,prompt:n.prompt||gt.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return[2,a.handleCodeResponseFromHash(c,u,r.authority,this.networkClient)]}})})},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var lS=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return T(this,function(l){switch(l.label){case 0:return o=[$({},r)],[4,this.initializeBaseRequest(r)];case 1:return n=$.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(je.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(ve.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),[2,s.acquireTokenByRefreshToken(n).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof z&&u.setCorrelationId(c.correlationId),a.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new Sy(i,this.performanceClient)]}})})},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var uS=function(){function t(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return t.prototype.addEventCallback=function(e){if(typeof window<"u"){var r=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(r,e),this.logger.verbose("Event callback registered with id: "+r),r}return null},t.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},t.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},t.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},t.prototype.emitEvent=function(e,r,n,o){var i=this;if(typeof window<"u"){var a={eventType:e,interactionType:r||null,payload:n||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){i.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},t.prototype.handleAccountCacheChange=function(e){try{var r=e.newValue||e.oldValue;if(!r)return;var n=JSON.parse(r);if(typeof n!="object"||!tt.isAccountEntity(n))return;var o=or.toObject(new tt,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(q.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(q.ACCOUNT_REMOVED,void 0,i))}catch{return}},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var ut=function(){function t(){}return t.decimalToHex=function(e){for(var r=e.toString(16);r.length<2;)r="0"+r;return r},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Py=function(){function t(e){this.cryptoObj=e}return t.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,ut.decimalToHex(e[0])+ut.decimalToHex(e[1])+ut.decimalToHex(e[2])+ut.decimalToHex(e[3])+"-"+ut.decimalToHex(e[4])+ut.decimalToHex(e[5])+"-"+ut.decimalToHex(e[6])+ut.decimalToHex(e[7])+"-"+ut.decimalToHex(e[8])+ut.decimalToHex(e[9])+"-"+ut.decimalToHex(e[10])+ut.decimalToHex(e[11])+ut.decimalToHex(e[12])+ut.decimalToHex(e[13])+ut.decimalToHex(e[14])+ut.decimalToHex(e[15])}catch{for(var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=_.EMPTY_STRING,a=0;a<36;a++)r[a]!=="-"&&r[a]!=="4"&&(o=Math.random()*16|0),r[a]==="x"?i+=n[o]:r[a]==="y"?(o&=3,o|=8,i+=n[o]):i+=r[a];return i}},t.prototype.isGuid=function(e){var r=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return r.test(e)},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Yr=function(){function t(){}return t.stringToUtf8Arr=function(e){for(var r,n=0,o=e.length,i=0;i<o;i++)r=e.charCodeAt(i),n+=r<128?1:r<2048?2:r<65536?3:r<2097152?4:r<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)r=e.charCodeAt(c),r<128?a[s++]=r:r<2048?(a[s++]=192+(r>>>6),a[s++]=128+(r&63)):r<65536?(a[s++]=224+(r>>>12),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<2097152?(a[s++]=240+(r>>>18),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<67108864?(a[s++]=248+(r>>>24),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):(a[s++]=252+(r>>>30),a[s++]=128+(r>>>24&63),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63));return a},t.stringToArrayBuffer=function(e){for(var r=new ArrayBuffer(e.length),n=new Uint8Array(r),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return r},t.utf8ArrToString=function(e){for(var r=_.EMPTY_STRING,n=void 0,o=e.length,i=0;i<o;i++)n=e[i],r+=String.fromCharCode(n>251&&n<254&&i+5<o?(n-252)*1073741824+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>247&&n<252&&i+4<o?(n-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>239&&n<248&&i+3<o?(n-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>223&&n<240&&i+2<o?(n-224<<12)+(e[++i]-128<<6)+e[++i]-128:n>191&&n<224&&i+1<o?(n-192<<6)+e[++i]-128:n);return r},t.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ny=function(){function t(){}return t.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,_.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},t.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,_.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},t.prototype.encode=function(e){var r=Yr.stringToUtf8Arr(e);return this.base64EncArr(r)},t.prototype.base64EncArr=function(e){for(var r=(3-e.length%3)%3,n=_.EMPTY_STRING,o=void 0,i=e.length,a=0,s=0;s<i;s++)o=s%3,a|=e[s]<<(16>>>o&24),(o===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return r===0?n:n.substring(0,n.length-r)+(r===1?"=":"==")},t.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var dS=function(){function t(){}return t.prototype.decode=function(e){var r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(r);return Yr.utf8ArrToString(n)},t.prototype.base64DecToArr=function(e,r){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,_.EMPTY_STRING),o=n.length,i=r?Math.ceil((o*3+1>>>2)/r)*r:o*3+1>>>2,a=new Uint8Array(i),s=void 0,c=void 0,l=0,u=0,d=0;d<o;d++)if(c=d&3,l|=this.b64ToUint6(n.charCodeAt(d))<<18-6*c,c===3||o-d===1){for(s=0;s<3&&u<i;s++,u++)a[u]=l>>>(16>>>s&24)&255;l=0}return a},t.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var hS=32,fS=function(){function t(e){this.base64Encode=new Ny,this.cryptoObj=e}return t.prototype.generateCodes=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return r=n.sent(),[2,{verifier:e,challenge:r}]}})})},t.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(hS);this.cryptoObj.getRandomValues(e);var r=this.base64Encode.urlEncodeArr(e);return r}catch(n){throw N.createPkceNotGeneratedError(n)}},t.prototype.generateCodeChallengeFromVerifier=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return r=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(r))];case 2:throw n=o.sent(),N.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var pS=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.crypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,window.crypto.subtle.exportKey(yi,e)]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){return T(this,function(i){return[2,window.crypto.subtle.importKey(yi,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.crypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,window.crypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var gS=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Fh(e))},t.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,window.msrCrypto.subtle.exportKey(yi,e)]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){return T(this,function(i){return[2,window.msrCrypto.subtle.importKey(yi,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.msrCrypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,window.msrCrypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var mS=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,r,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(yi,e);i.addEventListener("complete",function(a){var s=a.target.result,c=Yr.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,_.EMPTY_STRING).replace(/\n/g,_.EMPTY_STRING).replace(/\t/g,_.EMPTY_STRING).split(" ").join(_.EMPTY_STRING).replace("\0",_.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){o(l)}}),i.addEventListener("error",function(a){o(a)})})]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){var i,a;return T(this,function(s){return i=Yr.getSortedObjectString(e),a=Yr.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(yi,a,r,n,o);u.addEventListener("complete",function(d){c(d.target.result)}),u.addEventListener("error",function(d){l(d)})})]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,r,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(e,r.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var vS="RSASSA-PKCS1-v1_5",Mp="SHA-256",yS=2048,_S=new Uint8Array([1,0,1]),Oy=function(){function t(e,r){var n,o;if(this.logger=e,this.cryptoOptions=r,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new pS;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new mS;else if(this.hasMsrCrypto()&&((n=this.cryptoOptions)===null||n===void 0?void 0:n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new gS;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),N.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Bc.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:vS,hash:Mp,modulusLength:yS,publicExponent:_S}}return t.prototype.hasIECrypto=function(){return"msCrypto"in window},t.prototype.hasBrowserCrypto=function(){return"crypto"in window},t.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},t.prototype.sha256Digest=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=Yr.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Mp},r)]})})},t.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},t.prototype.generateKeyPair=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,r)]})})},t.prototype.exportJwk=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,this.subtleCrypto.exportKey(e)]})})},t.prototype.importJwk=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,r,n)]})})},t.prototype.sign=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var wS=function(){function t(){this.dbName=bd,this.version=QC,this.tableName=JC,this.dbOpen=!1}return t.prototype.open=function(){return S(this,void 0,void 0,function(){var e=this;return T(this,function(r){return[2,new Promise(function(n,o){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),i.addEventListener("error",function(){return o(N.createDatabaseUnavailableError())})})]})})},t.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},t.prototype.validateDbIsOpen=function(){return S(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},t.prototype.getItem=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.get(e);c.addEventListener("success",function(l){var u=l;r.closeConnection(),o(u.target.result)}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.setItem=function(e,r){return S(this,void 0,void 0,function(){var n=this;return T(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(i,a){if(!n.db)return a(N.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(r,e);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},t.prototype.removeItem=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readwrite"),s=a.objectStore(r.tableName),c=s.delete(e);c.addEventListener("success",function(){r.closeConnection(),o()}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.getKeys=function(){return S(this,void 0,void 0,function(){var e=this;return T(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(n,o){if(!e.db)return o(N.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),a=i.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},t.prototype.containsKey=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.count(e);c.addEventListener("success",function(l){var u=l;r.closeConnection(),o(u.target.result===1)}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.deleteDatabase=function(){return S(this,void 0,void 0,function(){return T(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var o=window.indexedDB.deleteDatabase(bd);o.addEventListener("success",function(){return r(!0)}),o.addEventListener("blocked",function(){return r(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Up=function(){function t(e,r){this.inMemoryCache=new Id,this.indexedDBCache=new wS,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof N&&e.errorCode===I.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},t.prototype.getItem=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.getItem(e),r)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},t.prototype.setItem=function(e,r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,r)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},t.prototype.removeItem=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},t.prototype.getKeys=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,e]}})})},t.prototype.containsKey=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.containsKey(e),r)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},t.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},t.prototype.clearPersistent=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return r=n.sent(),this.handleDatabaseAccessError(r),[2,!1];case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var qc;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(qc||(qc={}));var ES=function(){function t(e){this.logger=e,this.asymmetricKeys=new Up(this.logger,qc.asymmetricKeys),this.symmetricKeys=new Up(this.logger,qc.symmetricKeys)}return t.prototype.clear=function(){return S(this,void 0,void 0,function(){var e;return T(this,function(r){switch(r.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return r.sent(),[2,!0];case 3:return e=r.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var CS=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new Oy(this.logger,n),this.b64Encode=new Ny,this.b64Decode=new dS,this.guidGenerator=new Py(this.browserCrypto),this.pkceGenerator=new fS(this.browserCrypto),this.cache=new ES(this.logger),this.performanceClient=r}return t.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},t.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},t.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},t.prototype.generatePkceCodes=function(){return S(this,void 0,void 0,function(){return T(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){var r;return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return T(this,function(d){switch(d.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(je.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=Yr.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},t.prototype.removeTokenBindingKey=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return r=n.sent(),[2,!r]}})})},t.prototype.clearKeystore=function(){return S(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},t.prototype.signJwt=function(e,r,n){var o;return S(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,f,m,v,E,g;return T(this,function(p){switch(p.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=p.sent(),!a)throw N.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=p.sent(),c=Yr.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),u=GC.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),f=d+"."+h,m=Yr.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,m)];case 3:return v=p.sent(),E=this.b64Encode.urlEncodeArr(new Uint8Array(v)),g=f+"."+E,i&&i.endMeasurement({success:!0}),[2,g]}})})},t.prototype.hashString=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return r=o.sent(),n=new Uint8Array(r),[2,this.b64Encode.urlEncodeArr(n)]}})})},t.POP_KEY_USAGES=["sign","verify"],t.EXTRACTABLE=!0,t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var SS=function(){function t(e,r,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=n,this.cryptoObj=o}return t.prototype.loadExternalTokens=function(e,r,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw N.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new kr(r.id_token,this.cryptoObj),i,a;if(e.account){var s=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);i=new Vs(s,this.loadIdToken(o,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment))}else if(e.authority){var c=$c.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new $c(c,this.config.system.networkClient,this.storage,l),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new Vs(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else if(r.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(o,a.hostnameAndPort,r.client_info,a.authorityType);i=new Vs(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else throw N.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw N.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,a)},t.prototype.loadAccount=function(e,r,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=tt.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw N.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?tt.createAccount(n,a,e,void 0,void 0,void 0,r):tt.createGenericAccount(a,e,void 0,void 0,void 0,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadIdToken=function(e,r,n,o){var i=$a.createIdTokenEntity(r,n,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadAccessToken=function(e,r,n,o,i,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in)throw N.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw N.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new wt(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=za.createAccessTokenEntity(n,o,r.access_token,this.config.auth.clientId,i,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadRefreshToken=function(e,r,n,o){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=Dc.createRefreshTokenEntity(n,o,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.generateAuthenticationResult=function(e,r,n,o){var i,a,s,c=_.EMPTY_STRING,l=[],u=null,d;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=wt.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||_.EMPTY_STRING,f=(r==null?void 0:r.claims.tid)||_.EMPTY_STRING;return{authority:o?o.canonicalAuthority:_.EMPTY_STRING,uniqueId:h,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:r?r.rawToken:_.EMPTY_STRING,idTokenClaims:r?r.claims:{},accessToken:c,fromCache:!0,expiresOn:u,correlationId:e.correlationId||_.EMPTY_STRING,requestId:_.EMPTY_STRING,extExpiresOn:d,familyId:_.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||_.EMPTY_STRING,state:_.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||_.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var TS=function(t){ot(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}(Cy);/*! @azure/msal-browser v2.30.0 2022-10-10 */var bS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,l,u,d)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw N.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(r,F.Silent)];case 1:n=u.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=$($({},n),{code:r.code}),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new TS(a),this.logger.verbose("Auth code client created"),c=new Ry(s,this.browserStorage,i,this.logger,this.config.system),[2,c.handleCodeResponseFromServer({code:r.code,msgraph_host:r.msGraphHost,cloud_graph_host_name:r.cloudGraphHostName,cloud_instance_host_name:r.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=u.sent(),l instanceof z&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var IS=function(){function t(e,r){this.correlationId=r,this.measureName="msal.measure."+e+"."+this.correlationId,this.startMark="msal.start."+e+"."+this.correlationId,this.endMark="msal.end."+e+"."+this.correlationId}return t.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},t.prototype.startMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},t.prototype.endMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},t.prototype.flushMeasurement=function(){if(t.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var r=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),r}}catch{}return null},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var kS=function(t){ot(e,t);function e(r,n,o,i,a,s,c){var l=t.call(this,r,n,o,i,a,s)||this;return l.browserCrypto=new Oy(l.logger,c),l.guidGenerator=new Py(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(r,n){return new IS(r,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var r;return((r=document.visibilityState)===null||r===void 0?void 0:r.toString())||null},e.prototype.startMeasurement=function(r,n){var o=this,i=this.getPageVisibility(),a=t.prototype.startMeasurement.call(this,r,n);return $($({},a),{endMeasurement:function(s){return a.endMeasurement($({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s))}})},e}(by);/*! @azure/msal-browser v2.30.0 2022-10-10 */var AS=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=sS(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new $h(this.config.system.loggerOptions,Zl,_a),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new kS(this.config.auth.clientId,this.config.auth.authority,this.logger,Zl,_a,this.config.telemetry.application,this.config.system.cryptoOptions):new YC(this.config.auth.clientId,this.config.auth.authority,this.logger,Zl,_a,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new CS(this.logger,this.performanceClient,this.config.system.cryptoOptions):Mc,this.eventHandler=new uS(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new kd(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):XC(this.config.auth.clientId,this.logger);var r={cacheLocation:ft.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new kd(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new SS(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.initialize=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(q.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,ro.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return e.nativeExtensionProvider=n.sent(),[3,4];case 3:return r=n.sent(),this.logger.verbose(r),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(q.INITIALIZE_END),[2]}})})},t.prototype.handleRedirectPromise=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s,c,l,u=this;return T(this,function(d){return this.logger.verbose("handleRedirectPromise called"),Oe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),r=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||_.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START,F.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(ae.CORRELATION_ID,!0)||_.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(h){if(h){var f=r.length<u.getAllAccounts().length;f?(u.eventHandler.emitEvent(q.LOGIN_SUCCESS,F.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,F.Redirect),h}).catch(function(h){throw r.length>0?u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,h):u.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Redirect,null,h),u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,F.Redirect),h}),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},t.prototype.acquireTokenRedirect=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return T(this,function(c){return r=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Redirect,e):this.eventHandler.emitEvent(q.LOGIN_START,F.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(l){if(l instanceof Er&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(l instanceof lr){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(e.correlationId),o=a.acquireToken(e)),[2,o.catch(function(l){throw n?s.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,l):s.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Redirect,null,l),l})]})})},t.prototype.acquireTokenPopup=function(e){var r=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(je.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(F.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Popup,e):this.eventHandler.emitEvent(q.LOGIN_START,F.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,ve.acquireTokenPopup).then(function(c){return r.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){if(c instanceof Er&&c.isFatal()){r.nativeExtensionProvider=void 0;var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof lr){r.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}throw r.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=i.length<r.getAllAccounts().length;return l?r.eventHandler.emitEvent(q.LOGIN_SUCCESS,F.Popup,c):r.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Popup,c),o.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){return i.length>0?r.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Popup,null,c):r.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),o.flushMeasurement(),Promise.reject(c)})},t.prototype.ssoSilent=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return T(this,function(c){return r=this.getRequestCorrelationId(e),n=$($({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(F.Silent),o=this.performanceClient.startMeasurement(je.SsoSilent,r),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(q.SSO_SILENT_START,F.Silent,n),this.canUseNative(n)?i=this.acquireTokenNative(n,ve.ssoSilent).catch(function(l){if(l instanceof Er&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(n.correlationId);return u.acquireToken(n)}throw l}):(a=this.createSilentIframeClient(n.correlationId),i=a.acquireToken(n)),[2,i.then(function(l){return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS,F.Silent,l),o.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,requestId:l.requestId}),o.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE,F.Silent,null,l),o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),o.flushMeasurement(),l})]})})},t.prototype.acquireTokenByCode=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a=this;return T(this,function(s){r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_START,F.Silent,e),n=this.performanceClient.startMeasurement(je.AcquireTokenByCode,e.correlationId);try{if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.endMeasurement({success:!0}),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync($($({},e),{correlationId:r})).then(function(c){return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS,F.Silent,c),a.hybridAuthCodeResponses.delete(o),n.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),n.flushMeasurement(),c}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ve.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof Er&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw N.createUnableToAcquireTokenFromNativePlatformError()}else throw N.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c instanceof z&&c.errorCode||void 0,subErrorCode:c instanceof z&&c.subError||void 0,success:!1}),c}return[2]})})},t.prototype.acquireTokenByCodeAsync=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),r=this.createSilentAuthCodeClient(e.correlationId),[4,r.acquireToken(e)];case 1:return n=o.sent(),[2,n]}})})},t.prototype.acquireTokenFromCache=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){switch(n.cacheLookupPolicy){case It.Default:case It.AccessToken:case It.AccessTokenAndRefreshToken:return[2,e.acquireToken(r)];default:throw D.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenByRefreshToken=function(e,r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(r.cacheLookupPolicy){case It.Default:case It.AccessTokenAndRefreshToken:case It.RefreshToken:case It.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),[2,n.acquireToken(e)];default:throw D.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenBySilentIframe=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=this.createSilentIframeClient(e.correlationId),[2,r.acquireToken(e)]})})},t.prototype.logout=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),[2,this.logoutRedirect($({correlationId:r},e))]})})},t.prototype.logoutRedirect=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){return r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.createRedirectClient(r),[2,n.logout(e)]})})},t.prototype.logoutPopup=function(e){try{var r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(F.Popup);var n=this.createPopupClient(r);return n.logout(e)}catch(o){return Promise.reject(o)}},t.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},t.prototype.getAccountByUsername=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),r.filter(function(n){return n.username.toLowerCase()===e.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},t.prototype.getAccountByHomeId=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),r.filter(function(n){return n.homeAccountId===e})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},t.prototype.getAccountByLocalId=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),r.filter(function(n){return n.localAccountId===e})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},t.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},t.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},t.prototype.preflightBrowserEnvironmentCheck=function(e,r){if(r===void 0&&(r=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Oe.blockNonBrowserEnvironment(this.isBrowserEnvironment),Oe.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Oe.blockReloadInHiddenIframes(),Oe.blockAcquireTokenInPopups(),Oe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===F.Redirect&&this.config.cache.cacheLocation===ft.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Bc.createInMemoryRedirectUnavailableError();(e===F.Redirect||e===F.Popup)&&this.preflightInteractiveRequest(r)},t.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Oe.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},t.prototype.acquireTokenNative=function(e,r,n){return S(this,void 0,void 0,function(){var o;return T(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw N.createNativeConnectionNotEstablishedError();return o=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},t.prototype.canUseNative=function(e,r){if(this.logger.trace("canUseNative called"),!ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case gt.NONE:case gt.CONSENT:case gt.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},t.prototype.getNativeAccountId=function(e){var r=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return r&&r.nativeAccountId||""},t.prototype.createPopupClient=function(e){return new rS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createRedirectClient=function(e){return new tS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentIframeClient=function(e){return new cS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentCacheClient=function(e){return new Ay(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new lS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new bS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},t.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},t.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},t.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},t.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},t.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},t.prototype.getTokenCache=function(){return this.tokenCache},t.prototype.getLogger=function(){return this.logger},t.prototype.setLogger=function(e){this.logger=e},t.prototype.initializeWrapperLibrary=function(e,r){this.browserStorage.setWrapperMetadata(e,r)},t.prototype.setNavigationClient=function(e){this.navigationClient=e},t.prototype.getConfiguration=function(){return this.config},t.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():_.EMPTY_STRING},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var RS=function(t){ot(e,t);function e(r){var n=t.call(this,r)||this;return n.activeSilentTokenRequests=new Map,n}return e.prototype.loginRedirect=function(r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect($({correlationId:n},r||Pp))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup($({correlationId:n},r||Pp))},e.prototype.acquireTokenSilent=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return T(this,function(d){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(je.AcquireTokenSilent,n),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.verbose("acquireTokenSilent called",n),i=r.account||this.getActiveAccount(),!i)throw N.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:r.authority||_.EMPTY_STRING,scopes:r.scopes,homeAccountIdentifier:i.homeAccountId,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),l=this.acquireTokenSilentAsync($($({},r),{correlationId:n}),i).then(function(h){return u.activeSilentTokenRequests.delete(s),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,requestId:h.requestId}),o.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),o.flushMeasurement(),h}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.endMeasurement({success:!0}),o.discardMeasurement(),[2,c])})})},e.prototype.acquireTokenSilentAsync=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u=this;return T(this,function(d){switch(d.label){case 0:return this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Silent,r),o=this.performanceClient.startMeasurement(je.AcquireTokenSilentAsync,r.correlationId),ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=$($({},r),{account:n}),i=this.acquireTokenNative(a,ve.acquireTokenSilent_silentFlow).catch(function(h){return S(u,void 0,void 0,function(){var f;return T(this,function(m){if(h instanceof Er&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(r.correlationId),[2,f.acquireToken(r)];throw h})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(r.correlationId),[4,s.initializeSilentRequest(r,n)];case 2:c=d.sent(),l=$($({},r),{cacheLookupPolicy:r.cacheLookupPolicy||It.Default}),i=this.acquireTokenFromCache(s,c,l).catch(function(h){if(l.cacheLookupPolicy===It.AccessToken)throw h;return Oe.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START,F.Silent,c),u.acquireTokenByRefreshToken(c,l).catch(function(f){var m=f instanceof vo,v=f instanceof lr,E=f.errorCode===cr.INVALID_GRANT_ERROR;if((!m||!E||v||l.cacheLookupPolicy===It.AccessTokenAndRefreshToken||l.cacheLookupPolicy===It.RefreshToken)&&l.cacheLookupPolicy!==It.Skip)throw f;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),u.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,i.then(function(h){return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Silent,h),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Silent,null,h),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})]}})})},e}(AS);const Lp="redirect";var Dp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class PS extends RS{constructor(e,r){super(r),this.tenantId=e}get account(){return this.getAllAccounts().find(n=>{var o;return((o=n.idTokenClaims)===null||o===void 0?void 0:o.aud)===this.clientId})}get hasValidClaims(){var e;const r=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(r){const n=Math.ceil(Date.now()/1e3);return r.exp>n}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}login(e,r=Lp,n=!0){var o;return Dp(this,void 0,void 0,function*(){const i=(e==null?void 0:e.loginHint)||((o=this.account)===null||o===void 0?void 0:o.username),a=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:i,scopes:a});if(i&&n){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${r}]`),r){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},r=Lp,n=!0){return Dp(this,void 0,void 0,function*(){const o=yield this.account;if(n&&o){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:o},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${r}]`),r){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const NS=(t,e=window.location.origin)=>{t=t.match(/^http[s]?/)?t:e+t;const{origin:r,pathname:n}=new URL(t);return r+n.replace(/([^:]\/)\/+/g,"$1")},OS=(t,e,r,n,o)=>{const i=Object.assign({clientId:e,redirectUri:NS(r||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${t}`},n==null?void 0:n.auth),a=Object.assign({cacheLocation:"localStorage"},n==null?void 0:n.cache),s=n==null?void 0:n.system;return new(o||PS)(t,{auth:i,cache:a,system:s})};class xy extends $h{constructor(e){super({logLevel:e,loggerCallback:(...r)=>this.loggerCallback(...r)}),this.getLogType=r=>{switch(r){case xe.Error:return"error";case xe.Warning:return"warn";case xe.Info:return"info";case xe.Verbose:default:return"debug"}}}loggerCallback(e,r,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",r)}}var eu=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const xS="default";class MS{constructor(e){this._config=e,this._clients={}}get defaultClient(){return this.getClient(xS)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}getClient(e){return this._clients[e]||(this._clients[e]=this.createClient(e)),this._clients[e]}createClient(e){const r=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!r)throw Error("Could not find any config");const n=OS(r.tenantId,r.clientId,r.redirectUri,r.config);return n.setLogger(new xy(0)),n}handleRedirect(){return eu(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const r=this.defaultClient,n=r.getLogger(),{requestOrigin:o}=r;yield r.handleRedirectPromise(),o===e?(n.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(o||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return eu(this,void 0,void 0,function*(){const r=yield this.acquireToken(e);return r?r.accessToken:void 0})}login(){return eu(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var US=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const My={name:"auth",configure:t=>{var e;const r=new SC;return!((e=t==null?void 0:t.auth)===null||e===void 0)&&e.defaultConfig&&r.configureDefault(t.auth.defaultConfig),r},initialize:({config:t})=>US(void 0,void 0,void 0,function*(){const e=new MS(t);return t.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},LS=(t,e)=>({module:My,configure:r=>{r.configureDefault(t),(e==null?void 0:e.requiresAuth)!==void 0&&(r.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e!=null?e:{};n&&Object.entries(n).forEach(([o,i])=>r.configureClient(o,i))}});var Uy=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const DS=t=>{var e;return{id:t.id,isChildType:t.isChildType,parentTypeIds:(e=t.parentTypeIds)!==null&&e!==void 0?e:[]}},Ly=t=>{var e,r,n,o;return{id:t.id,externalId:(e=t.externalId)!==null&&e!==void 0?e:void 0,isActive:t.isActive,isDeleted:t.isDeleted,created:new Date(t.created),source:(r=t.source)!==null&&r!==void 0?r:void 0,title:(n=t.title)!==null&&n!==void 0?n:void 0,type:DS(t.type),value:(o=t.value)!==null&&o!==void 0?o:{}}},HS=t=>Uy(void 0,void 0,void 0,function*(){const e=yield t.json();return Ly(e)}),FS=t=>Uy(void 0,void 0,void 0,function*(){return(yield t.json()).map(Ly)});var tu=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class $S{constructor(){this.defaultExpireTime=1*60*1e3}createContextClientGet(e){return tu(this,void 0,void 0,function*(){const n=yield(yield e.requireInstance("services")).createContextClient("json$");return{fn:o=>n.get("v1",o,{selector:HS})}})}createContextClientQuery(e){return tu(this,void 0,void 0,function*(){const n=yield(yield e.requireInstance("services")).createContextClient("json$");return{fn:o=>n.query("v1",{query:o},{selector:FS})}})}createConfig(e){return tu(this,void 0,void 0,function*(){const r={getContext:{query:{client:yield this.createContextClientGet(e),key:({id:n})=>n,expire:this.defaultExpireTime}},queryContext:{client:yield this.createContextClientQuery(e),key:n=>JSON.stringify(n),expire:this.defaultExpireTime}};return this.processConfig(r)})}processConfig(e){return e}}var Hp;(function(t){t.IDLE="idle",t.ACTIVE="active",t.FAILED="failed",t.CANCELED="canceled"})(Hp||(Hp={}));const zS=t=>e=>e.pipe(Qn(t)),jS=t=>t.pipe(Ot(e=>e.value));var As,BS=new Uint8Array(16);function qS(){if(!As&&(As=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!As))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return As(BS)}const KS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dy(t){return typeof t=="string"&&KS.test(t)}var Qe=[];for(var ru=0;ru<256;++ru)Qe.push((ru+256).toString(16).substr(1));function Hy(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Qe[t[e+0]]+Qe[t[e+1]]+Qe[t[e+2]]+Qe[t[e+3]]+"-"+Qe[t[e+4]]+Qe[t[e+5]]+"-"+Qe[t[e+6]]+Qe[t[e+7]]+"-"+Qe[t[e+8]]+Qe[t[e+9]]+"-"+Qe[t[e+10]]+Qe[t[e+11]]+Qe[t[e+12]]+Qe[t[e+13]]+Qe[t[e+14]]+Qe[t[e+15]]).toLowerCase();if(!Dy(r))throw TypeError("Stringified UUID is invalid");return r}function GS(t){if(!Dy(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function VS(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var WS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",YS="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function QS(t,e,r){function n(o,i,a,s){if(typeof o=="string"&&(o=VS(o)),typeof i=="string"&&(i=GS(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+o.length);if(c.set(i),c.set(o,i.length),c=r(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return Hy(c)}try{n.name=t}catch{}return n.DNS=WS,n.URL=YS,n}function Fy(t,e,r){t=t||{};var n=t.random||(t.rng||qS)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return Hy(n)}function JS(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function nu(t,e){return t<<e|t>>>32-e}function XS(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=t[c*64+u*4]<<24|t[c*64+u*4+1]<<16|t[c*64+u*4+2]<<8|t[c*64+u*4+3];s[c]=l}s[a-1][14]=(t.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(t.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),f=0;f<16;++f)h[f]=s[d][f];for(var m=16;m<80;++m)h[m]=nu(h[m-3]^h[m-8]^h[m-14]^h[m-16],1);for(var v=r[0],E=r[1],g=r[2],p=r[3],y=r[4],w=0;w<80;++w){var k=Math.floor(w/20),P=nu(v,5)+JS(k,E,g,p)+y+e[k]+h[w]>>>0;y=p,p=g,g=nu(E,30)>>>0,E=v,v=P}r[0]=r[0]+v>>>0,r[1]=r[1]+E>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+p>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var ZS=QS("v5",80,XS);const eT=ZS;class Rd extends Error{constructor(e,r,n){super(r),this.type=e,this.cause=n}}const _i=(...t)=>Ai(e=>t.includes(e.type));var dt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},tT=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},vr,rr;class $y extends be{constructor(e,r){super(n=>dt(this,rr,"f").subscribe(n)),this.__initial=r,vr.set(this,new Gr),rr.set(this,void 0),tT(this,rr,new ul(r),"f"),dt(this,vr,"f").pipe(Dh(e,r),fy()).subscribe(dt(this,rr,"f"))}get action$(){return dt(this,vr,"f").asObservable()}get value(){return dt(this,rr,"f").value}get closed(){return dt(this,rr,"f").closed||dt(this,vr,"f").closed}next(e){dt(this,vr,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(_i(e)):this.action$,o=r||e;return n.pipe(mo(i=>br(new Promise((a,s)=>{try{a(o(i,this.value))}catch(c){s(c)}})).pipe(rn(a=>(console.warn("unhandled effect",a),po)))),Ai(i=>!!i),Ac(kc)).subscribe(dt(this,vr,"f"))}addEpic(e){const r=e(this.action$,this);if(!r)throw new TypeError(`addEpic: one of the provided effects "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return r.pipe(rn(n=>(console.trace("unhandled exception, epic closed!",n),po)),Ac(kc)).subscribe(dt(this,vr,"f"))}reset(){dt(this,rr,"f").next(this.__initial)}unsubscribe(){dt(this,vr,"f").unsubscribe(),dt(this,rr,"f").unsubscribe()}complete(){dt(this,vr,"f").complete(),dt(this,rr,"f").complete()}asObservable(){return dt(this,rr,"f").asObservable()}}vr=new WeakMap,rr=new WeakMap;class Pd extends Error{constructor(e,r,n){super(n!=null?n:r.message),this.action=e,this.cause=r}}const zy=t=>(e,r)=>new be(n=>{const{meta:{controller:o,transaction:i}}=e;if(o.signal.aborted)return n.next({type:"cancel",payload:{transaction:i,reason:`request [${i}] was aborted!`}}),n.complete();if(n.add(t.pipe(_i("cancel")).subscribe(a=>{a.payload.transaction===i&&(o.signal.aborted||o.abort(),n.complete())})),n.add(gd(o.signal,"abort").subscribe(()=>{n.next({type:"cancel",payload:{transaction:i,reason:`request [${i}] was aborted!`}}),n.complete()})),r)return r(n)}),rT=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>{const n=zy(e);return e.pipe(_i("failure"),rC(r),Qn(([o,i])=>{var a,s;const{request:c}=o.meta,{transaction:l}=c.meta,u=i[l];if(!u)return po;const d=(s=(a=u.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,h={type:"retry",payload:o.meta.request},f=Object.assign({},t,c.meta.retry);return n(c,m=>{if(d>=f.count){const E=f.count?"maximum retries executed!":o.payload.message;return m.next({type:"error",payload:new Pd(o,o.payload.cause,E),meta:{request:c}}),m.complete()}return(typeof f.delay=="function"?br(f.delay(o.payload.cause)):GE(f.delay)).pipe(Ot(()=>h),rn(E=>dl({type:"error",payload:new Pd(h,E,"failed to resolve delay"),meta:{request:c}}))).subscribe(m)})}))}),nT=t=>e=>{const r=zy(e);return e.pipe(_i("request","retry"),mo(n=>{const o=n.type==="request"?n:n.payload;return r(o,i=>{br(t(o.payload,o.meta.controller.signal)).pipe(Ot(a=>({type:"success",payload:a,meta:{request:o}})),rn(a=>dl({type:"failure",payload:new Pd(n,a,`failed to execute request for transaction ${o.meta.transaction}`),meta:{request:o}}))).subscribe(i)})}))},jy=()=>Ai(t=>t.status==="complete"),oT=()=>(t,e)=>{switch(e.type){case"request":{const{transaction:r,task:n,ref:o}=e.meta;return Object.assign({},t,{[r]:{transaction:r,task:n,ref:o,created:Date.now()}})}case"retry":{const{transaction:r}=e.payload.meta,n=Object.assign({},t[r]);if(n)return n.retry=n.retry?[...n.retry,Date.now()]:[],Object.assign({},t,{[r]:n});break}case"failure":{const{transaction:r}=e.meta.request.meta,n=Object.assign({},t[r]);if(n)return n.errors=n.errors?[...n.errors,e.payload]:[],Object.assign({},t,{[r]:n});break}case"cancel":{const{transaction:r,reason:n}=e.payload,o=t[r];if(o){o.task.error(new Rd("abort","request was canceled",new Error(n)));const i=Object.assign({},t);return delete i[r],i}break}case"error":{const{transaction:r}=e.meta.request.meta,n=t[r];if(n){n.task.error(new Rd("error","failed to execute request",e.payload));const o=Object.assign({},t);return delete o[r],o}break}case"success":{const{request:r}=e.meta,{transaction:n,ref:o}=r.meta,i=t[n];if(i){const a={status:"complete",transaction:n,ref:o,value:e.payload,args:r.payload,created:i.created,completed:Date.now()};i.task.next(a),i.task.complete();const s=Object.assign({},t);return delete s[n],s}break}}return t};var iT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},We=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Fp=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},Je,Ao;class $p extends be{constructor(e,r){super(o=>We(this,Je,"f").subscribe(o)),Je.set(this,void 0),Ao.set(this,void 0),Fp(this,Je,new $y(oT(),{}),"f"),Fp(this,Ao,new an(()=>We(this,Je,"f").complete()),"f"),We(this,Ao,"f").add(We(this,Je,"f").addEpic(nT(e)));const n=Object.assign({count:0,delay:0},r==null?void 0:r.retry);We(this,Ao,"f").add(We(this,Je,"f").addEpic(rT(n)))}get action$(){return We(this,Je,"f").action$}get closed(){return We(this,Je,"f").closed}get success$(){return this.action$.pipe(_i("success"),Ot(({payload:e})=>e))}get error$(){return this.action$.pipe(_i("error"),Ot(({payload:e})=>new Rd("error","failed to execute request",e)))}next(e,r){return this._next(e,r).meta}nextAsync(e,r){return iT(this,void 0,void 0,function*(){return go(this.next(e,r).task.pipe(jy()))})}getTaskByTransaction(e){const r=We(this,Je,"f").value[e];return r&&r.task}getTaskByRef(e){const r=Object.values(We(this,Je,"f").value).find(n=>n.ref===e);return r&&r.task}cancel(e,r){if(e&&We(this,Je,"f").value[e])r!=null||(r=`[${e}]: transaction canceled`),We(this,Je,"f").next({type:"cancel",payload:{transaction:e,reason:r}});else for(const n of Object.keys(We(this,Je,"f").value))this.cancel(n,`[${e}]: all transactions canceled`)}on(e,r){return We(this,Je,"f").addEffect(e,n=>{r(n,this)})}complete(){We(this,Ao,"f").unsubscribe()}asObservable(){return We(this,Je,"f").asObservable()}_next(e,r){const n=Object.assign({transaction:Fy(),controller:new AbortController,task:new Jv},r!=null?r:{}),o={type:"request",payload:e,meta:n};return We(this,Je,"f").next(o),o}}Je=new WeakMap,Ao=new WeakMap;const aT=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)},sT=()=>(t,e)=>{var r,n,o,i,a;const{type:s,payload:c}=e;switch(s){case"set":{const{key:l,value:u}=c,d=t.data[l],h=Object.assign(Object.assign(Object.assign({},d),u),{created:(r=d==null?void 0:d.created)!==null&&r!==void 0?r:Date.now(),updated:Date.now(),updates:((n=d==null?void 0:d.updates)!==null&&n!==void 0?n:-1)+1}),f=Object.assign(Object.assign({},t.data),{[l]:h});return Object.assign(Object.assign({},t),{data:f,lastTransaction:h.transaction})}case"clear":{const l=Object.assign({},t.data);return delete l[c.key],Object.assign(Object.assign({},t),{data:l})}case"invalidate":{const{key:l}=c,u=t.data[l];if(u){const d=Object.assign(Object.assign({},t.data),{[l]:Object.assign(Object.assign({},u),{updated:void 0})});return Object.assign(Object.assign({},t),{data:d})}break}case"reset":return{data:(o=c.data)!==null&&o!==void 0?o:{}};case"trim":{const l=(i=c.sort)!==null&&i!==void 0?i:aT,d=Object.entries(t.data).sort((f,m)=>l(f[1],m[1])).filter(([f,m])=>!c.validate||c.validate(m)).slice(0,(a=c.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).reduce((f,[m,v])=>Object.assign(f,{[m]:v}),{});return Object.keys(d).length===Object.keys(t.data).length?t:{lastTransaction:t.lastTransaction&&Object.keys(d).includes(t.lastTransaction)?t.lastTransaction:Object.values(d)[0].transaction,data:d}}}return t},cT=t=>{const e=t.lastTransaction,r=Object.values(t.data);return e?r.find(n=>n.transaction===e):r.sort((n,o)=>{var i,a;return((i=n.updated)!==null&&i!==void 0?i:0)-((a=o.updated)!==null&&a!==void 0?a:0)}).pop()};class zp extends $y{get data$(){return this.pipe(Ot(e=>e.data))}get latest(){return cT(this.value)}constructor(e){const{trimming:r,initial:n}=e;super(sT(),{data:n!=null?n:{}}),r&&this.addEffect("set",()=>this.trim(r))}setItem(e,r){this.next({type:"set",payload:{key:e,value:r}})}getItem(e){return this.value.data[e]}invalidate(e){this.next({type:"invalidate",payload:{key:e}})}trim(e){this.next({type:"trim",payload:e})}}var me=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Io=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},lT=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r},Kn,nr,Ur,Ro,Po,Ws,Nd;const uT=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()};class Kt extends be{constructor(e){var r,n;super(i=>me(this,Ur,"f").pipe(Ot(({data:a})=>a)).subscribe(i)),Kn.set(this,new an),nr.set(this,void 0),Ur.set(this,void 0),Ro.set(this,new Gr),Po.set(this,void 0),Ws.set(this,void 0),Nd.set(this,Fy()),Io(this,Po,i=>eT(e.key(i),me(this,Nd,"f")),"f"),Io(this,Ws,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:uT(e==null?void 0:e.expire),"f"),e.client instanceof $p?Io(this,nr,e.client,"f"):(Io(this,nr,new $p(e.client.fn,e.client.options),"f"),me(this,Kn,"f").add(()=>me(this,nr,"f").complete())),e.cache instanceof zp?Io(this,Ur,e.cache,"f"):(Io(this,Ur,new zp(e.cache||{}),"f"),me(this,Kn,"f").add(()=>me(this,Ur,"f").complete()));const o=(n=e.queueOperator)!==null&&n!==void 0?n:zS;me(this,Kn,"f").add(()=>me(this,Ro,"f").complete()),me(this,Kn,"f").add(me(this,Ro,"f").pipe(o(({args:i,options:a})=>new be(s=>{const{task:c,transaction:l}=me(this,nr,"f").next(i,a);s.add(c.pipe(rn(()=>po)).subscribe(s)),s.add(()=>{me(this,nr,"f").cancel(l)})})),jy(),my(()=>!me(this,nr,"f").closed)).subscribe(i=>{const{args:a,value:s,transaction:c,ref:l}=i,u=l!=null?l:me(this,Po,"f").call(this,a);me(this,Ur,"f").setItem(u,{value:s,args:a,transaction:c})}))}get client(){return me(this,nr,"f")}get state$(){return me(this,Ur,"f")}next(e,r){me(this,Ro,"f").next({args:e,options:r})}query(e,r){var n;const o=me(this,Po,"f").call(this,e);return(n=me(this,nr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}queryAsync(e,r){const n=r||{},{awaitResolve:o}=n,i=lT(n,["awaitResolve"]);return(o?pd:go)(this._query(e,i))}complete(){me(this,Kn,"f").unsubscribe()}_query(e,r){var n;const o=me(this,Po,"f").call(this,e);return(n=me(this,nr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}_createTask(e,r,n){var o;const i=new Jv,a=me(this,Ur,"f").getItem(e);if(a){const{value:l,args:u,created:d,updated:h,updates:f,transaction:m}=a,v={status:"cache",value:l,args:u,created:d,updated:h,updates:f,transaction:m};i.next(v)}const s=((o=n==null?void 0:n.cache)===null||o===void 0?void 0:o.validate)||me(this,Ws,"f");return a&&s(a,r)?i.complete():me(this,Ro,"f").next({args:r,options:{ref:e,task:i}}),i.asObservable()}}Kn=new WeakMap,nr=new WeakMap,Ur=new WeakMap,Ro=new WeakMap,Po=new WeakMap,Ws=new WeakMap,Nd=new WeakMap;Kt.extractQueryValue=jS;var dn=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},jp=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},ra,Lr;class dT extends be{constructor(e){super(r=>dn(this,Lr,"f").subscribe(r)),ra.set(this,void 0),Lr.set(this,void 0),jp(this,ra,new Kt(e.query),"f"),jp(this,Lr,new ul(e.initial),"f")}get currentContext(){return dn(this,Lr,"f").value}get currentContext$(){return dn(this,Lr,"f").asObservable()}get client(){return dn(this,ra,"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(rn(()=>po)).subscribe(r=>dn(this,Lr,"f").next(r)):e!==dn(this,Lr,"f").value&&dn(this,Lr,"f").next(e)}resolveContext(e){return dn(this,ra,"f").query({id:e}).pipe(Ot(r=>r.value))}}ra=new WeakMap,Lr=new WeakMap;var ou=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},Mt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Dr,Ys,na,No;class hT{constructor(e){Dr.set(this,void 0),Ys.set(this,void 0),na.set(this,void 0),No.set(this,new an);const{config:r,event:n,parentContext:o}=e;ou(this,Dr,new dT(r.getContext),"f"),ou(this,Ys,new Kt(r.queryContext),"f"),n&&(ou(this,na,n,"f"),Mt(this,No,"f").add(Mt(this,Dr,"f").currentContext$.pipe(gy()).subscribe(([i,a])=>{n.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:i,next:a}})})),Mt(this,No,"f").add(n.addEventListener("onCurrentContextChanged",i=>{i.source!==this&&(this.currentContext=i.detail.next)}))),o&&Mt(this,No,"f").add(o.contextClient.currentContext$.subscribe(i=>this.currentContext=i))}get contextClient(){return Mt(this,Dr,"f")}get queryClient(){return Mt(this,Ys,"f")}get currentContext$(){return Mt(this,Dr,"f").currentContext$}get currentContext(){return Mt(this,Dr,"f").currentContext}set currentContext(e){Mt(this,na,"f")?Mt(this,na,"f").dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}}).then(r=>{r.canceled||Mt(this,Dr,"f").setCurrentContext(e)}):Mt(this,Dr,"f").setCurrentContext(e)}dispose(){Mt(this,No,"f").unsubscribe()}}Dr=new WeakMap,Ys=new WeakMap,na=new WeakMap,No=new WeakMap;var fT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const pT="context",gT={name:pT,configure:()=>new $S,initialize:t=>fT(void 0,void 0,void 0,function*(){var e;const r=yield t.config.createConfig(t),n=t.hasModule("event")?yield t.requireInstance("event"):void 0,o=(e=t.ref)===null||e===void 0?void 0:e.context;return new hT({config:r,event:n,parentContext:o})}),dispose:t=>{t.instance.dispose()}},mT="modulepreload",vT=function(t){return"/"+t},Bp={},yT=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=vT(i),i in Bp)return;Bp[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const d=o[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":mT,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((u,d)=>{l.addEventListener("load",u),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},_T=(t,e)=>JSON.stringify(t)===JSON.stringify(e);var Rs=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},ht=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Oo,oa,ia,xo,hn;class wT extends be{constructor(e){super(o=>this.current$.subscribe(o)),Oo.set(this,void 0),oa.set(this,void 0),ia.set(this,void 0),xo.set(this,void 0),hn.set(this,new an);const{event:r,config:n}=e;Rs(this,xo,new ul(void 0),"f"),Rs(this,Oo,new Kt(n.getApp),"f"),Rs(this,oa,new Kt(n.getApps),"f"),Rs(this,ia,new Kt(n.getConfig),"f"),ht(this,hn,"f").add(ht(this,Oo,"f").complete),ht(this,hn,"f").add(ht(this,oa,"f").complete),ht(this,hn,"f").add(ht(this,ia,"f").complete),ht(this,hn,"f").add(this.current$.pipe(gy(),my(()=>!!r)).subscribe(([o,i])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:i}})}))}get current(){return ht(this,xo,"f").value}get current$(){return ht(this,xo,"f").pipe(fy(_T))}getApp(e){return Kt.extractQueryValue(ht(this,Oo,"f").query({appKey:e}).pipe(rn(r=>{throw Error("failed to load manifest",{cause:r})})))}getAllApps(){return Kt.extractQueryValue(ht(this,oa,"f").query())}getAppConfig(e,r){return Kt.extractQueryValue(ht(this,ia,"f").query({appKey:e,tag:r}).pipe(rn(n=>{throw Error("failed to load config",{cause:n})})))}setCurrentApp(e){return new Promise((r,n)=>{const o=ht(this,Oo,"f").query({appKey:e});ht(this,hn,"f").add(Kt.extractQueryValue(o).subscribe({next:i=>ht(this,xo,"f").next(i),error:n,complete:r}))})}loadApp(e){const r=this.getApp(e).pipe(Qn(o=>go(br(yT(()=>import(o.entry),[])).pipe(Ot(i=>({manifest:o,module:i})))))),n=this.getAppConfig(e).pipe(Ot(o=>({config:o})));return VE(r,n).pipe(Dh((o,i)=>Object.assign({},o,i),{}),Ai(o=>["manifest","module","config"].every(i=>!!o[i])),py(()=>"failed to load application"))}dispose(){ht(this,hn,"f").unsubscribe()}}Oo=new WeakMap,oa=new WeakMap,ia=new WeakMap,xo=new WeakMap,hn=new WeakMap;var ET=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Od="app",CT={name:Od,configure:()=>new ST,initialize:t=>ET(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new wT({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var qp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class ST{constructor(){this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return qp(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(Od))return r.createClient(Od);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){return qp(this,void 0,void 0,function*(){const r=yield this._createHttpClient(e),n={getApp:{client:{fn:({appKey:o})=>r.json$(`/api/apps/${o}`)},key:({appKey:o})=>o},getApps:{client:{fn:()=>r.json$("/api/apps")},key:()=>"apps"},getConfig:{client:{fn:({appKey:o,tag:i})=>r.json$(`/api/apps/${o}/config${i?`?tag=${i}`:""}`)},key:o=>JSON.stringify(o)}};return this.processConfig(n)})}processConfig(e){return e}}var Kp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class TT{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Kp(this,void 0,void 0,function*(){if(!this.clientKey)throw Error("no http client for service discovery is provided!");return e.createClient(this.clientKey)})}createClient(e){return Kp(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var iu=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class bT{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveService(e){return iu(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return iu(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},r),{baseUri:n.uri,defaultScopes:n.defaultScopes}))})}configureClient(e,r){return iu(this,void 0,void 0,function*(){const{key:n,alias:o}=typeof e=="string"?{key:e,alias:e}:e,{uri:i,defaultScopes:a}=yield this.resolveService(n);r.addConfig(_y(o,{baseUri:i,defaultScopes:a}))})}}var Gp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},IT=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},kT=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Qs;class AT{constructor({http:e,endpoint:r}){Qs.set(this,void 0),this.http=e,this.endpoint=r,IT(this,Qs,new Kt({client:{fn:()=>e.fetch$(r,{selector:this.selector.bind(this)}).pipe(md(n=>console.log("\u{1F525}",n)))},key:()=>"services",expire:5*60*1e3}),"f")}get environment(){return go(Kt.extractQueryValue(kT(this,Qs,"f").query(void 0,{cache:{suppressInvalid:!0}})))}selector(e){return Gp(this,void 0,void 0,function*(){const r=yield e.json(),n=r.services.reduce((o,i)=>Object.assign(o,{[i.key]:{clientId:r.clientId,uri:i.uri,defaultScopes:[r.clientId+"/.default"]}}),{});return Object.assign(Object.assign({},r),{services:n})})}resolveService(e){return Gp(this,void 0,void 0,function*(){try{const{services:r}=yield this.environment;return r[e]}catch(r){throw console.error(r),r}})}}Qs=new WeakMap;const RT="serviceDiscovery";var PT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const NT={name:RT,configure:()=>new TT({clientCtor:AT,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>PT(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),o=yield t.createClient(n);return new bT(o,r)})};class OT{}class By extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const xT=(t,e)=>{var r;const n=(r=Qr[t])!==null&&r!==void 0?r:t;switch(n){case Qr.v2:throw new By(t);case Qr.v1:default:{const{id:o}=e,i=new URLSearchParams;return i.append("api-version",n),`/contexts/${o}/?${String(i)}`}}},MT=(t,e,r)=>[xT(t,e),r],UT=(t,e,r="json")=>(n,o)=>t[r](...MT(e,n,o));var LT=["eq","ne","gt","ge","lt","le"],Ps=["and","or","not"],DT=["any","all"],HT=["startswith","endswith","contains"],FT=["expand","levels","select","skip","top","count","orderby","filter"],Vp=/\((.*)\)/,Wp=/(?!indexof)\((\w+)\)/,Yp;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(Yp||(Yp={}));var Mr="";function $T(t){var e=t===void 0?{}:t,r=e.select,n=e.search,o=e.skiptoken,i=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,u=e.orderBy,d=e.key,h=e.count,f=e.expand,m=e.action,v=e.func,E="",g=[],p={};if(d!=null&&(E+="(".concat(Cr(d,g),")")),(c||typeof h=="object")&&(p.$filter=ja(typeof h=="object"?h:c,g)),l&&(p.$apply=qy(l)),f&&(p.$expand=Js(f)),u&&(p.$orderby=Bh(u)),h&&(typeof h=="boolean"?p.$count=!0:E+="/$count"),typeof a=="number"&&(p.$top=a),typeof s=="number"&&(p.$skip=s),m&&(E+="/".concat(m)),v){if(typeof v=="string")E+="/".concat(v);else if(typeof v=="object"){var y=Object.keys(v)[0],w=Cr(v[y],g);E+="/".concat(y),w!==""&&(E+="(".concat(w,")"))}}return g.length>0&&Object.assign(p,g.reduce(function(k,P){var M;return Object.assign(k,(M={},M["@".concat(P.name)]=Cr(P.value),M))},{})),KT(E,ho({$select:r,$search:n,$skiptoken:o,$format:i},p))}function au(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(Cr(e,r))}function ja(t,e,r){return t===void 0&&(t={}),e===void 0&&(e=[]),r===void 0&&(r=""),(Array.isArray(t)?t:[t]).reduce(function(i,a){if(a){var s=n(a,e,r);s&&i.push(s)}return i},[]).join(" and ");function n(i,a,s){i===void 0&&(i={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof i=="string")c=i;else if(i&&typeof i=="object"){var l=Object.keys(i).reduce(function(u,d){var h=i[d];if(h===void 0)return u;var f="";if(s?d===Mr?f=s:Wp.test(d)?f=d.replace(Wp,function(p,y){return y.trim()===Mr?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):Vp.test(d)?f=d.replace(Vp,function(p,y){return y.trim()===Mr?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):f="".concat(s,"/").concat(d):f=d,d===Mr&&Array.isArray(h))return u.concat(h.map(function(p){return au(f,p)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)u.push(au(f,h,a));else if(Array.isArray(h)){var m=d,v=h.map(function(p){return ja(p,a,s)}).filter(function(p){return p}).map(function(p){return Ps.indexOf(m)!==-1?"(".concat(p,")"):p});v.length&&(Ps.indexOf(m)!==-1?v.length&&(m==="not"?u.push(Qp(v)):u.push("(".concat(v.join(" ".concat(m," ")),")"))):u.push(v.join(" ".concat(m," "))))}else if(Ps.indexOf(f)!==-1){var E=f,v=Object.keys(h).map(function(y){var w;return n((w={},w[y]=h[y],w))});v.length&&(E==="not"?u.push(Qp(v)):u.push("(".concat(v.join(" ".concat(E," ")),")")))}else if(typeof h=="object")if("type"in h)u.push(au(f,h,a));else{var g=Object.keys(h);g.forEach(function(p){if(h[p]!==void 0)if(LT.indexOf(p)!==-1)u.push("".concat(f," ").concat(p," ").concat(Cr(h[p],a)));else if(Ps.indexOf(p)!==-1)Array.isArray(h[p])?u.push(h[p].map(function(P){return"("+n(P,a,f)+")"}).join(" ".concat(p," "))):u.push("("+n(h[p],a,f)+")");else if(DT.indexOf(p)!==-1){var y=o(d.toLowerCase(),h[p],p,f);y&&u.push(y)}else if(p==="has")u.push("".concat(f," ").concat(p," ").concat(Cr(h[p],a)));else if(p==="in"){var w=Array.isArray(h[p])?h[p]:h[p].value.map(function(P){return{type:h[p].type,value:P}});u.push(f+" in ("+w.map(function(P){return Cr(P,a)}).join(",")+")")}else if(HT.indexOf(p)!==-1)u.push("".concat(p,"(").concat(f,",").concat(Cr(h[p],a),")"));else{var k=n(h,a,f);k&&u.push(k)}})}else throw new Error("Unexpected value type: ".concat(h));return u},[]);c=l.join(" and ")}return c}function o(i,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=zT(i,a,s,c);else if(a){var u=Array.isArray(a)?a.reduce(function(h,f){return f.hasOwnProperty(Mr)?(h.hasOwnProperty(Mr)||(h[Mr]=[]),h[Mr].push(f[Mr]),h):ho(ho({},h),f)},{}):a,d=n(u,e,i);l="".concat(c,"/").concat(s,"(").concat(d?"".concat(i,":").concat(d):"",")")}return l}}function zT(t,e,r,n){var o="",i=r=="all"?"ne":"eq";return o="".concat(n,"/").concat(r,"(").concat(t,": ").concat(t," ").concat(i," '").concat(e,"')"),o}function jT(t){return t=t.replace(/%/g,"%25"),t=t.replace(/\+/g,"%2B"),t=t.replace(/\//g,"%2F"),t=t.replace(/\?/g,"%3F"),t=t.replace(/#/g,"%23"),t=t.replace(/&/g,"%26"),t=t.replace(/'/g,"''"),t}function Cr(t,e){if(typeof t=="string")return"'".concat(jT(t),"'");if(t instanceof Date)return t.toISOString();if(typeof t=="number")return t;if(Array.isArray(t))return"[".concat(t.map(function(r){return Cr(r)}).join(","),"]");if(t===null)return t;if(typeof t=="object")switch(t.type){case"raw":case"guid":return t.value;case"duration":return"duration'".concat(t.value,"'");case"binary":return"binary'".concat(t.value,"'");case"alias":return Array.isArray(e)&&e.push(t),"@".concat(t.name);case"json":return escape(JSON.stringify(t.value));case"decimal":return"".concat(t.value,"M");default:return Object.entries(t).filter(function(r){var n=r[1];return n!==void 0}).map(function(r){var n=r[0],o=r[1];return"".concat(n,"=").concat(Cr(o,e))}).join(",")}return t}function Js(t){if(typeof t=="number")return t;if(typeof t=="string")return t.indexOf("/")===-1?t:t.split("/").reverse().reduce(function(r,n,o,i){return o===0?"$expand=".concat(n):o===i.length-1?"".concat(n,"(").concat(r,")"):"$expand=".concat(n,"(").concat(r,")")},"");if(Array.isArray(t))return"".concat(t.map(function(r){return Js(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return FT.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=ja(t[r]);break;case"orderBy":n=Bh(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=Js(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=Js(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function qy(t){var e=Array.isArray(t)?t:[t],r=e.reduce(function(n,o){var i=o.aggregate,a=o.filter,s=o.groupBy,c=Gv(o,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(i&&n.push("aggregate(".concat(BT(i),")")),a){var u=ja(a);u&&n.push("filter(".concat(ja(u),")"))}return s&&n.push("groupby(".concat(qT(s),")")),n},[]);return r.join("/")||void 0}function BT(t){var e=Array.isArray(t)?t:[t];return e.map(function(r){return typeof r=="string"?r:Object.keys(r).map(function(n){var o=r[n];if(!o.with)throw new Error("'with' property required for '".concat(n,"'"));if(!o.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(o.with," as ").concat(o.as)})}).join(",")}function qT(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(qy(t.transform))),e}function Bh(t,e){return e===void 0&&(e=""),Array.isArray(t)?t.map(function(r){return Array.isArray(r)&&r.length===2&&["asc","desc"].indexOf(r[1])!==-1?r.join(" "):r}).map(function(r){return"".concat(e).concat(String(r))}).join(","):typeof t=="object"?Object.entries(t).map(function(r){var n=r[0],o=r[1];return Bh(o,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function KT(t,e){var r=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return r.length?"".concat(t,"?").concat(r.join("&")):t}function Qp(t){return"not(".concat(t.join(" and "),")")}const GT=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),VT=t=>Object.keys(t).reduce((e,r)=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:GT(t.filter)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),WT=t=>typeof t=="string"?t:$T(VT(t)),YT=(t,e)=>{var r;const n=(r=Qr[t])!==null&&r!==void 0?r:t;switch(n){case Qr.v2:throw new By(t);case Qr.v1:default:{const{query:o,includeDeleted:i}=e,a=new URLSearchParams(WT(o));return a.append("api-version",n),i&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},QT=(t,e,r)=>[YT(t,e),r],JT=(t,e,r="json")=>(n,o)=>t[r](...QT(e,n,o));class XT{constructor(e,r){this._client=e,this._method=r}get Version(){return Qr}get(e,...r){return UT(this._client,e,this._method)(...r)}query(e,...r){return JT(this._client,e,this._method)(...r)}}var Qr;(function(t){t.v1="1.0",t.v2="2.0"})(Qr||(Qr={}));const ZT=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},e1=(t,e,r)=>{const n=ZT(t,e),o=Object.assign({},{method:"Delete"},r);return[n,o]},t1=(t,e,r="json")=>(n,o)=>t[r](...e1(e,n,o)),r1=t1,n1=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},o1=(t,e,r)=>[n1(t,e),r],i1=(t,e,r="json")=>(n,o)=>t[r](...o1(e,n,o)),a1=i1,s1=(t,e)=>{switch(t){case"v1":{const r=new URLSearchParams;return r.append("api-version","1.0"),`/bookmarks?${String(r)}`}default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks?${String(r)}`}}},c1=(t,e,r)=>{const n=s1(t),o=new Headers;o.append("content-type","application/json");const i=Object.assign({},{method:"post",body:JSON.stringify(e),headers:o},r);return[n,i]},l1=(t,e,r="json")=>(n,o)=>t[r](...c1(e,n,o)),u1=l1;class d1{constructor(e,r){this._client=e,this._method=r}get(e,...r){return a1(this._client,e,this._method)(...r)}post(e,...r){return u1(this._client,e,this._method)(...r)}delete(e,...r){return r1(this._client,e,this._method)(...r)}}const h1=d1;var Jp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class f1{constructor({createClient:e}){this._createClientFn=e}createBookmarksClient(e){return Jp(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return new h1(r,e)})}createContextClient(e){return Jp(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return new XT(r,e)})}}var Ky=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const p1="services",g1=(t,e)=>r=>Ky(void 0,void 0,void 0,function*(){if(t.hasClient(r))return t.createClient(r);if(e)return e.createClient(r);throw Error(`failed to create http client for service ${r}`)}),m1={name:p1,configure:()=>new OT,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>Ky(void 0,void 0,void 0,function*(){if(!e.createClient){const o=yield r("http"),i=n("serviceDiscovery")?yield r("serviceDiscovery"):t==null?void 0:t.serviceDiscovery;e.createClient=g1(o,i)}if(!e.createClient)throw Error("missing configuration for creating API client");return new f1(e)})},v1=m1;class y1 extends oC{constructor(){super([dC,My,Hh,NT,v1,CT,gT]),this.logger=new Kv("FrameworkConfigurator")}configureHttp(...e){this.addConfig(CC(...e))}configureHttpClient(...e){this.addConfig(_y(...e))}configureMsal(...e){this.addConfig(LS(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var _1=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const w1=(t,e)=>_1(void 0,void 0,void 0,function*(){const r=yield t.initialize(e),n={modules:r};return window.Fusion=n,r.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n});var pl={exports:{}},gl={};/**
|
|
61
|
+
***************************************************************************** */var Ed=function(t,e){return Ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ed(t,e)};function Mt(t,e){Ed(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ne=function(){return Ne=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ne.apply(this,arguments)};function K(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function G(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function yl(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}/*! @azure/msal-common v7.6.0 2022-10-10 */var _={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240},ts=[_.OPENID_SCOPE,_.PROFILE_SCOPE,_.OFFLINE_ACCESS_SCOPE],Sp=yl(ts,[_.EMAIL_SCOPE]),hr;(function(t){t.CONTENT_TYPE="Content-Type",t.RETRY_AFTER="Retry-After",t.CCS_HEADER="X-AnchorMailbox",t.WWWAuthenticate="WWW-Authenticate",t.AuthenticationInfo="Authentication-Info",t.X_MS_REQUEST_ID="x-ms-request-id"})(hr||(hr={}));var He;(function(t){t.ID_TOKEN="idtoken",t.CLIENT_INFO="client.info",t.ADAL_ID_TOKEN="adal.idtoken",t.ERROR="error",t.ERROR_DESC="error.description",t.ACTIVE_ACCOUNT="active-account",t.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(He||(He={}));var Mc;(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"})(Mc||(Mc={}));var Q;(function(t){t.CLIENT_ID="client_id",t.REDIRECT_URI="redirect_uri",t.RESPONSE_TYPE="response_type",t.RESPONSE_MODE="response_mode",t.GRANT_TYPE="grant_type",t.CLAIMS="claims",t.SCOPE="scope",t.ERROR="error",t.ERROR_DESCRIPTION="error_description",t.ACCESS_TOKEN="access_token",t.ID_TOKEN="id_token",t.REFRESH_TOKEN="refresh_token",t.EXPIRES_IN="expires_in",t.STATE="state",t.NONCE="nonce",t.PROMPT="prompt",t.SESSION_STATE="session_state",t.CLIENT_INFO="client_info",t.CODE="code",t.CODE_CHALLENGE="code_challenge",t.CODE_CHALLENGE_METHOD="code_challenge_method",t.CODE_VERIFIER="code_verifier",t.CLIENT_REQUEST_ID="client-request-id",t.X_CLIENT_SKU="x-client-SKU",t.X_CLIENT_VER="x-client-VER",t.X_CLIENT_OS="x-client-OS",t.X_CLIENT_CPU="x-client-CPU",t.X_CLIENT_CURR_TELEM="x-client-current-telemetry",t.X_CLIENT_LAST_TELEM="x-client-last-telemetry",t.X_MS_LIB_CAPABILITY="x-ms-lib-capability",t.X_APP_NAME="x-app-name",t.X_APP_VER="x-app-ver",t.POST_LOGOUT_URI="post_logout_redirect_uri",t.ID_TOKEN_HINT="id_token_hint",t.DEVICE_CODE="device_code",t.CLIENT_SECRET="client_secret",t.CLIENT_ASSERTION="client_assertion",t.CLIENT_ASSERTION_TYPE="client_assertion_type",t.TOKEN_TYPE="token_type",t.REQ_CNF="req_cnf",t.OBO_ASSERTION="assertion",t.REQUESTED_TOKEN_USE="requested_token_use",t.ON_BEHALF_OF="on_behalf_of",t.FOCI="foci",t.CCS_HEADER="X-AnchorMailbox",t.RETURN_SPA_CODE="return_spa_code",t.NATIVE_BROKER="nativebroker",t.LOGOUT_HINT="logout_hint"})(Q||(Q={}));var Vo;(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"})(Vo||(Vo={}));var mt={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},ya;(function(t){t.ACCOUNT="account",t.SID="sid",t.LOGIN_HINT="login_hint",t.ID_TOKEN="id_token",t.DOMAIN_HINT="domain_hint",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers",t.ACCOUNT_ID="accountIdentifier",t.HOMEACCOUNT_ID="homeAccountIdentifier"})(ya||(ya={}));var Tp={PLAIN:"plain",S256:"S256"},Uc;(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"})(Uc||(Uc={}));var Lc;(function(t){t.IMPLICIT_GRANT="implicit",t.AUTHORIZATION_CODE_GRANT="authorization_code",t.CLIENT_CREDENTIALS_GRANT="client_credentials",t.RESOURCE_OWNER_PASSWORD_GRANT="password",t.REFRESH_TOKEN_GRANT="refresh_token",t.DEVICE_CODE_GRANT="device_code",t.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(Lc||(Lc={}));var Fr;(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"})(Fr||(Fr={}));var Ft;(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."})(Ft||(Ft={}));var ee;(function(t){t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",t.REFRESH_TOKEN="RefreshToken"})(ee||(ee={}));var to;(function(t){t.ACCOUNT="Account",t.CREDENTIAL="Credential",t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.REFRESH_TOKEN="RefreshToken",t.APP_METADATA="AppMetadata",t.TEMPORARY="TempCache",t.TELEMETRY="Telemetry",t.UNDEFINED="Undefined",t.THROTTLING="Throttling"})(to||(to={}));var Br;(function(t){t[t.ADFS=1001]="ADFS",t[t.MSA=1002]="MSA",t[t.MSSTS=1003]="MSSTS",t[t.GENERIC=1004]="GENERIC",t[t.ACCESS_TOKEN=2001]="ACCESS_TOKEN",t[t.REFRESH_TOKEN=2002]="REFRESH_TOKEN",t[t.ID_TOKEN=2003]="ID_TOKEN",t[t.APP_METADATA=3001]="APP_METADATA",t[t.UNDEFINED=9999]="UNDEFINED"})(Br||(Br={}));var Cd="appmetadata",AC="client_info",Dc="1",_a={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},qt;(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network",t.HARDCODED_VALUES="hardcoded_values"})(qt||(qt={}));var Ye={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},le;(function(t){t.BEARER="Bearer",t.POP="pop",t.SSH="ssh-cert"})(le||(le={}));var wa={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},bp={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Hc;(function(t){t.username="username",t.password="password"})(Hc||(Hc={}));var Wo;(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"})(Wo||(Wo={}));var gn;(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"})(gn||(gn={}));var Gn;(function(t){t.CONFIGURED_MATCHES_DETECTED="1",t.CONFIGURED_NO_AUTO_DETECTION="2",t.CONFIGURED_NOT_DETECTED="3",t.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",t.AUTO_DETECTION_REQUESTED_FAILED="5"})(Gn||(Gn={}));var Jn;(function(t){t.NO_CACHE_HIT="0",t.FORCE_REFRESH="1",t.NO_CACHED_ACCESS_TOKEN="2",t.CACHED_ACCESS_TOKEN_EXPIRED="3",t.REFRESH_CACHED_ACCESS_TOKEN="4"})(Jn||(Jn={}));var Sd;(function(t){t.Jwt="JWT",t.Jwk="JWK"})(Sd||(Sd={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var As={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},z=function(t){Mt(e,t);function e(r,n,o){var i=this,a=n?r+": "+n:r;return i=t.call(this,a)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=r||_.EMPTY_STRING,i.errorMessage=n||_.EMPTY_STRING,i.subError=o||_.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(r){this.correlationId=r},e.createUnexpectedError=function(r){return new e(As.unexpectedError.code,As.unexpectedError.desc+": "+r)},e.createPostRequestFailed=function(r){return new e(As.postRequestFailed.code,As.postRequestFailed.desc+": "+r)},e}(Error);/*! @azure/msal-common v7.6.0 2022-10-10 */var Fc={createNewGuid:function(){var t="Crypto interface - createNewGuid() has not been implemented";throw z.createUnexpectedError(t)},base64Decode:function(){var t="Crypto interface - base64Decode() has not been implemented";throw z.createUnexpectedError(t)},base64Encode:function(){var t="Crypto interface - base64Encode() has not been implemented";throw z.createUnexpectedError(t)},generatePkceCodes:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - generatePkceCodes() has not been implemented",z.createUnexpectedError(t)})})},getPublicKeyThumbprint:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - getPublicKeyThumbprint() has not been implemented",z.createUnexpectedError(t)})})},removeTokenBindingKey:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - removeTokenBindingKey() has not been implemented",z.createUnexpectedError(t)})})},clearKeystore:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - clearKeystore() has not been implemented",z.createUnexpectedError(t)})})},signJwt:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - signJwt() has not been implemented",z.createUnexpectedError(t)})})},hashString:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - hashString() has not been implemented",z.createUnexpectedError(t)})})}};/*! @azure/msal-common v7.6.0 2022-10-10 */var A={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."}},D=function(t){Mt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(r){return new e(A.clientInfoDecodingError.code,A.clientInfoDecodingError.desc+" Failed with error: "+r)},e.createClientInfoEmptyError=function(){return new e(A.clientInfoEmptyError.code,""+A.clientInfoEmptyError.desc)},e.createTokenParsingError=function(r){return new e(A.tokenParsingError.code,A.tokenParsingError.desc+" Failed with error: "+r)},e.createTokenNullOrEmptyError=function(r){return new e(A.nullOrEmptyToken.code,A.nullOrEmptyToken.desc+" Raw Token Value: "+r)},e.createEndpointDiscoveryIncompleteError=function(r){return new e(A.endpointResolutionError.code,A.endpointResolutionError.desc+" Detail: "+r)},e.createNetworkError=function(r,n){return new e(A.networkError.code,A.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToGetOpenidConfigError=function(r){return new e(A.unableToGetOpenidConfigError.code,A.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},e.createHashNotDeserializedError=function(r){return new e(A.hashNotDeserialized.code,A.hashNotDeserialized.desc+" Given Object: "+r)},e.createInvalidStateError=function(r,n){return new e(A.invalidStateError.code,A.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(A.stateMismatchError.code,A.stateMismatchError.desc)},e.createStateNotFoundError=function(r){return new e(A.stateNotFoundError.code,A.stateNotFoundError.desc+": "+r)},e.createNonceMismatchError=function(){return new e(A.nonceMismatchError.code,A.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(A.authTimeNotFoundError.code,A.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(A.maxAgeTranspiredError.code,A.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(r){return new e(A.nonceNotFoundError.code,A.nonceNotFoundError.desc+": "+r)},e.createMultipleMatchingTokensInCacheError=function(){return new e(A.multipleMatchingTokens.code,A.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(A.multipleMatchingAccounts.code,A.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(A.multipleMatchingAppMetadata.code,A.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(A.tokenRequestCannotBeMade.code,A.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(r){return new e(A.appendEmptyScopeError.code,A.appendEmptyScopeError.desc+" Given Scope: "+r)},e.createRemoveEmptyScopeFromSetError=function(r){return new e(A.removeEmptyScopeError.code,A.removeEmptyScopeError.desc+" Given Scope: "+r)},e.createAppendScopeSetError=function(r){return new e(A.appendScopeSetError.code,A.appendScopeSetError.desc+" Detail Error: "+r)},e.createEmptyInputScopeSetError=function(){return new e(A.emptyInputScopeSetError.code,""+A.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(A.DeviceCodePollingCancelled.code,""+A.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(A.DeviceCodeExpired.code,""+A.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(A.DeviceCodeUnknownError.code,""+A.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(A.NoAccountInSilentRequest.code,""+A.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(A.invalidCacheRecord.code,A.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(A.invalidCacheEnvironment.code,A.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(A.noAccountFound.code,A.noAccountFound.desc)},e.createCachePluginError=function(){return new e(A.CachePluginError.code,""+A.CachePluginError.desc)},e.createNoCryptoObjectError=function(r){return new e(A.noCryptoObj.code,""+A.noCryptoObj.desc+r)},e.createInvalidCacheTypeError=function(){return new e(A.invalidCacheType.code,""+A.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(A.unexpectedAccountType.code,""+A.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(A.unexpectedCredentialType.code,""+A.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(A.invalidAssertion.code,""+A.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(A.invalidClientCredential.code,""+A.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(A.tokenRefreshRequired.code,A.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(A.userTimeoutReached.code,A.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(A.tokenClaimsRequired.code,A.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(A.noAuthorizationCodeFromServer.code,A.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(A.bindingKeyNotRemovedError.code,A.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(A.logoutNotSupported.code,A.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(A.keyIdMissing.code,A.keyIdMissing.desc)},e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var x=function(){function t(){}return t.decodeAuthToken=function(e){if(t.isEmpty(e))throw D.createTokenNullOrEmptyError(e);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=r.exec(e);if(!n||n.length<4)throw D.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:n[1],JWSPayload:n[2],JWSSig:n[3]};return o},t.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},t.isEmptyObj=function(e){if(e&&!t.isEmpty(e))try{var r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0},t.startsWith=function(e,r){return e.indexOf(r)===0},t.endsWith=function(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length},t.queryStringToObject=function(e){var r={},n=e.split("&"),o=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return n.forEach(function(i){if(i.trim()){var a=i.split(/=(.+)/g,2),s=a[0],c=a[1];s&&c&&(r[o(s)]=o(c))}}),r},t.trimArrayEntries=function(e){return e.map(function(r){return r.trim()})},t.removeEmptyStringsFromArray=function(e){return e.filter(function(r){return!t.isEmpty(r)})},t.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},t.matchPattern=function(e,r){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(r)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var xe;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(xe||(xe={}));var jh=function(){function t(e,r,n){this.level=xe.Info;var o=function(){};this.localCallback=e.loggerCallback||o,this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:xe.Info,this.correlationId=e.correlationId||_.EMPTY_STRING,this.packageName=r||_.EMPTY_STRING,this.packageVersion=n||_.EMPTY_STRING}return t.prototype.clone=function(e,r,n){return new t({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,r)},t.prototype.logMessage=function(e,r){if(!(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)){var n=new Date().toUTCString(),o;x.isEmpty(r.correlationId)?x.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+r.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+xe[r.logLevel]+" - "+e;this.executeCallback(r.logLevel,i,r.containsPii||!1)}},t.prototype.executeCallback=function(e,r,n){this.localCallback&&this.localCallback(e,r,n)},t.prototype.error=function(e,r){this.logMessage(e,{logLevel:xe.Error,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.errorPii=function(e,r){this.logMessage(e,{logLevel:xe.Error,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.warning=function(e,r){this.logMessage(e,{logLevel:xe.Warning,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.warningPii=function(e,r){this.logMessage(e,{logLevel:xe.Warning,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.info=function(e,r){this.logMessage(e,{logLevel:xe.Info,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.infoPii=function(e,r){this.logMessage(e,{logLevel:xe.Info,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.verbose=function(e,r){this.logMessage(e,{logLevel:xe.Verbose,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.verbosePii=function(e,r){this.logMessage(e,{logLevel:xe.Verbose,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.trace=function(e,r){this.logMessage(e,{logLevel:xe.Trace,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.tracePii=function(e,r){this.logMessage(e,{logLevel:xe.Trace,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var RC="@azure/msal-common",Cy="7.6.0";/*! @azure/msal-common v7.6.0 2022-10-10 */var $a;(function(t){t[t.None=0]="None",t.AzurePublic="https://login.microsoftonline.com",t.AzurePpe="https://login.windows-ppe.net",t.AzureChina="https://login.chinacloudapi.cn",t.AzureGermany="https://login.microsoftonline.de",t.AzureUsGovernment="https://login.microsoftonline.us"})($a||($a={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var za=function(){function t(){}return t.prototype.generateAccountId=function(){return t.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},t.prototype.generateCredentialId=function(){return t.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},t.prototype.generateTarget=function(){return t.generateTargetForCacheKey(this.target)},t.prototype.generateCredentialKey=function(){return t.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},t.prototype.generateType=function(){switch(this.credentialType){case ee.ID_TOKEN:return Br.ID_TOKEN;case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Br.ACCESS_TOKEN;case ee.REFRESH_TOKEN:return Br.REFRESH_TOKEN;default:throw D.createUnexpectedCredentialTypeError()}},t.getCredentialType=function(e){return e.indexOf(ee.ACCESS_TOKEN.toLowerCase())!==-1?e.indexOf(ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())!==-1?ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:ee.ACCESS_TOKEN:e.indexOf(ee.ID_TOKEN.toLowerCase())!==-1?ee.ID_TOKEN:e.indexOf(ee.REFRESH_TOKEN.toLowerCase())!==-1?ee.REFRESH_TOKEN:_.NOT_DEFINED},t.generateCredentialCacheKey=function(e,r,n,o,i,a,s,c,l){var u=[this.generateAccountIdForCacheKey(e,r),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return u.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,r){var n=[e,r];return n.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(e,r,n,o){var i=e===ee.REFRESH_TOKEN&&o||r,a=[e,i,n||_.EMPTY_STRING];return a.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateTargetForCacheKey=function(e){return(e||_.EMPTY_STRING).toLowerCase()},t.generateClaimsHashForCacheKey=function(e){return(e||_.EMPTY_STRING).toLowerCase()},t.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==le.BEARER.toLowerCase()?e.toLowerCase():_.EMPTY_STRING},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Y={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"}},we=function(t){Mt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(Y.redirectUriNotSet.code,Y.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Y.postLogoutUriNotSet.code,Y.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(r){return new e(Y.claimsRequestParsingError.code,Y.claimsRequestParsingError.desc+" Given value: "+r)},e.createInsecureAuthorityUriError=function(r){return new e(Y.authorityUriInsecure.code,Y.authorityUriInsecure.desc+" Given URI: "+r)},e.createUrlParseError=function(r){return new e(Y.urlParseError.code,Y.urlParseError.desc+" Given Error: "+r)},e.createUrlEmptyError=function(){return new e(Y.urlEmptyError.code,Y.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(Y.emptyScopesError.code,""+Y.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(r){return new e(Y.clientIdSingleScopeError.code,Y.clientIdSingleScopeError.desc+" Given Scopes: "+r)},e.createInvalidPromptError=function(r){return new e(Y.invalidPrompt.code,Y.invalidPrompt.desc+" Given value: "+r)},e.createInvalidClaimsRequestError=function(){return new e(Y.invalidClaimsRequest.code,Y.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(Y.logoutRequestEmptyError.code,Y.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(Y.tokenRequestEmptyError.code,Y.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(Y.invalidCodeChallengeMethod.code,Y.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(Y.invalidCodeChallengeParams.code,Y.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(Y.invalidCloudDiscoveryMetadata.code,Y.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(Y.invalidAuthorityMetadata.code,Y.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(Y.untrustedAuthority.code,Y.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(Y.invalidAzureCloudInstance.code,Y.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(Y.missingSshJwk.code,Y.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(Y.missingSshKid.code,Y.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(Y.missingNonceAuthenticationHeader.code,Y.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(r,n){return new e(Y.invalidAuthenticationHeader.code,Y.invalidAuthenticationHeader.desc+". Invalid header: "+r+". Details: "+n)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var Ct=function(){function t(e){var r=this,n=e?x.trimArrayEntries(yl(e)):[],o=n?x.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return r.scopes.add(i)})}return t.fromString=function(e){var r=e||_.EMPTY_STRING,n=r.split(" ");return new t(n)},t.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw we.createEmptyScopesArrayError()},t.prototype.containsScope=function(e){var r=this.printScopesLowerCase().split(" "),n=new t(r);return x.isEmpty(e)?!1:n.scopes.has(e.toLowerCase())},t.prototype.containsScopeSet=function(e){var r=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return r.containsScope(n)})},t.prototype.containsOnlyOIDCScopes=function(){var e=this,r=0;return Sp.forEach(function(n){e.containsScope(n)&&(r+=1)}),this.scopes.size===r},t.prototype.appendScope=function(e){x.isEmpty(e)||this.scopes.add(e.trim())},t.prototype.appendScopes=function(e){var r=this;try{e.forEach(function(n){return r.appendScope(n)})}catch(n){throw D.createAppendScopeSetError(n)}},t.prototype.removeScope=function(e){if(x.isEmpty(e))throw D.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},t.prototype.removeOIDCScopes=function(){var e=this;Sp.forEach(function(r){e.scopes.delete(r)})},t.prototype.unionScopeSets=function(e){if(!e)throw D.createEmptyInputScopeSetError();var r=new Set;return e.scopes.forEach(function(n){return r.add(n.toLowerCase())}),this.scopes.forEach(function(n){return r.add(n.toLowerCase())}),r},t.prototype.intersectingScopeSets=function(e){if(!e)throw D.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var r=this.unionScopeSets(e),n=e.getScopeCount(),o=this.getScopeCount(),i=r.size;return i<o+n},t.prototype.getScopeCount=function(){return this.scopes.size},t.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(r){return e.push(r)}),e},t.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return _.EMPTY_STRING},t.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */function $c(t,e){if(x.isEmpty(t))throw D.createClientInfoEmptyError();try{var r=e.base64Decode(t);return JSON.parse(r)}catch(n){throw D.createClientInfoDecodingError(n.message)}}function Yo(t){if(x.isEmpty(t))throw D.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(Ft.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?_.EMPTY_STRING:e[1]}}/*! @azure/msal-common v7.6.0 2022-10-10 */var Wt;(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs",t[t.Dsts=2]="Dsts"})(Wt||(Wt={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var tt=function(){function t(){}return t.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.prototype.generateAccountKey=function(){return t.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},t.prototype.generateType=function(){switch(this.authorityType){case Fr.ADFS_ACCOUNT_TYPE:return Br.ADFS;case Fr.MSAV1_ACCOUNT_TYPE:return Br.MSA;case Fr.MSSTS_ACCOUNT_TYPE:return Br.MSSTS;case Fr.GENERIC_ACCOUNT_TYPE:return Br.GENERIC;default:throw D.createUnexpectedAccountTypeError()}},t.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},t.generateAccountCacheKey=function(e){var r=[e.homeAccountId,e.environment||_.EMPTY_STRING,e.tenantId||_.EMPTY_STRING];return r.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,r,n,o,i,a,s,c){var l,u,d,h,f,m,v=new t;v.authorityType=Fr.MSSTS_ACCOUNT_TYPE,v.clientInfo=e,v.homeAccountId=r,v.nativeAccountId=c;var E=s||o&&o.getPreferredCache();if(!E)throw D.createInvalidCacheEnvironmentError();if(v.environment=E,v.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||_.EMPTY_STRING,n){v.idTokenClaims=n.claims,v.localAccountId=((u=n==null?void 0:n.claims)===null||u===void 0?void 0:u.oid)||((d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.sub)||_.EMPTY_STRING;var g=(h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.preferred_username,p=!((f=n==null?void 0:n.claims)===null||f===void 0)&&f.emails?n.claims.emails[0]:null;v.username=g||p||_.EMPTY_STRING,v.name=(m=n==null?void 0:n.claims)===null||m===void 0?void 0:m.name}return v.cloudGraphHostName=i,v.msGraphHost=a,v},t.createGenericAccount=function(e,r,n,o,i,a){var s,c,l,u,d=new t;d.authorityType=n&&n.authorityType===Wt.Adfs?Fr.ADFS_ACCOUNT_TYPE:Fr.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=_.EMPTY_STRING;var h=a||n&&n.getPreferredCache();if(!h)throw D.createInvalidCacheEnvironmentError();return r&&(d.localAccountId=((s=r==null?void 0:r.claims)===null||s===void 0?void 0:s.oid)||((c=r==null?void 0:r.claims)===null||c===void 0?void 0:c.sub)||_.EMPTY_STRING,d.username=((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.upn)||_.EMPTY_STRING,d.name=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.name)||_.EMPTY_STRING,d.idTokenClaims=r==null?void 0:r.claims),d.environment=h,d.cloudGraphHostName=o,d.msGraphHost=i,d},t.generateHomeAccountId=function(e,r,n,o,i){var a,s=!((a=i==null?void 0:i.claims)===null||a===void 0)&&a.sub?i.claims.sub:_.EMPTY_STRING;if(r===Wt.Adfs||r===Wt.Dsts)return s;if(e)try{var c=$c(e,o);if(!x.isEmpty(c.uid)&&!x.isEmpty(c.utid))return""+c.uid+Ft.CLIENT_INFO_SEPARATOR+c.utid}catch{}return n.verbose("No client info in response"),s},t.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},t.accountInfoIsEqual=function(e,r,n){if(!e||!r)return!1;var o=!0;if(n){var i=e.idTokenClaims||{},a=r.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var kr=function(){function t(e,r){if(x.isEmpty(e))throw D.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=t.extractTokenClaims(e,r)}return t.extractTokenClaims=function(e,r){var n=x.decodeAuthToken(e);try{var o=n.JWSPayload,i=r.base64Decode(o);return JSON.parse(i)}catch(a){throw D.createTokenParsingError(a)}},t.checkMaxAge=function(e,r){var n=3e5;if(r===0||Date.now()-n>e+r)throw D.createMaxAgeTranspiredError()},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var or=function(){function t(e,r){this.clientId=e,this.cryptoImpl=r}return t.prototype.getAllAccounts=function(){var e=this,r=this.getAccountsFilteredBy(),n=Object.keys(r).map(function(a){return r[a]}),o=n.length;if(o<1)return[];var i=n.map(function(a){var s=t.toObject(new tt,a),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new kr(l.secret,e.cryptoImpl).claims),c});return i},t.prototype.saveCacheRecord=function(e){return K(this,void 0,void 0,function(){return G(this,function(r){switch(r.label){case 0:if(!e)throw D.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:r.sent(),r.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},t.prototype.saveAccessToken=function(e){return K(this,void 0,void 0,function(){var r,n,o,i,a=this;return G(this,function(s){switch(s.label){case 0:return r=this.getCredentialsFilteredBy({clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash}),n=Ct.fromString(e.target),o=Object.keys(r.accessTokens).map(function(c){return r.accessTokens[c]}),o?(i=[],o.forEach(function(c){var l=Ct.fromString(c.target);l.intersectingScopeSets(n)&&i.push(a.removeCredential(c))}),[4,Promise.all(i)]):[3,2];case 1:s.sent(),s.label=2;case 2:return this.setAccessTokenCredential(e),[2]}})})},t.prototype.getAccountsFilteredBy=function(e){return this.getAccountsFilteredByInternal(e?e.homeAccountId:_.EMPTY_STRING,e?e.environment:_.EMPTY_STRING,e?e.realm:_.EMPTY_STRING,e?e.nativeAccountId:_.EMPTY_STRING)},t.prototype.getAccountsFilteredByInternal=function(e,r,n,o){var i=this,a=this.getKeys(),s={};return a.forEach(function(c){var l=i.getAccount(c);!l||!!e&&!i.matchHomeAccountId(l,e)||!!r&&!i.matchEnvironment(l,r)||!!n&&!i.matchRealm(l,n)||!!o&&!i.matchNativeAccountId(l,o)||(s[c]=l)}),s},t.prototype.getCredentialsFilteredBy=function(e){return this.getCredentialsFilteredByInternal(e.homeAccountId,e.environment,e.credentialType,e.clientId,e.familyId,e.realm,e.target,e.userAssertionHash,e.tokenType,e.keyId,e.requestedClaimsHash)},t.prototype.getCredentialsFilteredByInternal=function(e,r,n,o,i,a,s,c,l,u,d){var h=this,f=this.getKeys(),m={idTokens:{},accessTokens:{},refreshTokens:{}};return f.forEach(function(v){var E=za.getCredentialType(v);if(E!==_.NOT_DEFINED){var g=h.getSpecificCredential(v,E);if(!!g&&!(!!c&&!h.matchUserAssertionHash(g,c))&&!(typeof e=="string"&&!h.matchHomeAccountId(g,e))&&!(!!r&&!h.matchEnvironment(g,r))&&!(!!a&&!h.matchRealm(g,a))&&!(!!n&&!h.matchCredentialType(g,n))&&!(!!o&&!h.matchClientId(g,o))&&!(!!i&&!h.matchFamilyId(g,i))&&!(!!s&&!h.matchTarget(g,s))&&!((d||g.requestedClaimsHash)&&g.requestedClaimsHash!==d)&&!(n===ee.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(!!l&&!h.matchTokenType(g,l)||l===le.SSH&&u&&!h.matchKeyId(g,u)))){var p=h.updateCredentialCacheKey(v,g);switch(E){case ee.ID_TOKEN:m.idTokens[p]=g;break;case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:m.accessTokens[p]=g;break;case ee.REFRESH_TOKEN:m.refreshTokens[p]=g;break}}}}),m},t.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},t.prototype.getAppMetadataFilteredByInternal=function(e,r){var n=this,o=this.getKeys(),i={};return o.forEach(function(a){if(!!n.isAppMetadata(a)){var s=n.getAppMetadata(a);!s||!!e&&!n.matchEnvironment(s,e)||!!r&&!n.matchClientId(s,r)||(i[a]=s)}}),i},t.prototype.getAuthorityMetadataByAlias=function(e){var r=this,n=this.getAuthorityMetadataKeys(),o=null;return n.forEach(function(i){if(!(!r.isAuthorityMetadata(i)||i.indexOf(r.clientId)===-1)){var a=r.getAuthorityMetadata(i);!a||a.aliases.indexOf(e)!==-1&&(o=a)}}),o},t.prototype.removeAllAccounts=function(){return K(this,void 0,void 0,function(){var e,r,n=this;return G(this,function(o){switch(o.label){case 0:return e=this.getKeys(),r=[],e.forEach(function(i){var a=n.getAccount(i);!a||r.push(n.removeAccount(i))}),[4,Promise.all(r)];case 1:return o.sent(),[2,!0]}})})},t.prototype.removeAccount=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:if(r=this.getAccount(e),!r)throw D.createNoAccountFoundError();return[4,this.removeAccountContext(r)];case 1:return[2,n.sent()&&this.removeItem(e,to.ACCOUNT)]}})})},t.prototype.removeAccountContext=function(e){return K(this,void 0,void 0,function(){var r,n,o,i=this;return G(this,function(a){switch(a.label){case 0:return r=this.getKeys(),n=e.generateAccountId(),o=[],r.forEach(function(s){var c=za.getCredentialType(s);if(c!==_.NOT_DEFINED){var l=i.getSpecificCredential(s,c);!!l&&n===l.generateAccountId()&&o.push(i.removeCredential(l))}}),[4,Promise.all(o)];case 1:return a.sent(),[2,!0]}})})},t.prototype.removeCredential=function(e){return K(this,void 0,void 0,function(){var r,n,o;return G(this,function(i){switch(i.label){case 0:if(r=e.generateCredentialKey(),e.credentialType.toLowerCase()!==ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==le.POP)return[3,4];if(n=e,o=n.keyId,!o)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),D.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(r,to.CREDENTIAL)]}})})},t.prototype.removeAppMetadata=function(){var e=this,r=this.getKeys();return r.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n,to.APP_METADATA)}),!0},t.prototype.readCacheRecord=function(e,r,n,o){var i=this.readAccountFromCache(e),a=this.readIdTokenFromCache(r,e),s=this.readAccessTokenFromCache(r,e,n),c=this.readRefreshTokenFromCache(r,e,!1),l=this.readAppMetadataFromCache(o,r);return i&&a&&(i.idTokenClaims=new kr(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},t.prototype.readAccountFromCache=function(e){var r=tt.generateAccountCacheKey(e);return this.getAccount(r)},t.prototype.readAccountFromCacheWithNativeAccountId=function(e){var r={nativeAccountId:e},n=this.getAccountsFilteredBy(r),o=Object.keys(n).map(function(i){return n[i]});if(o.length<1)return null;if(o.length>1)throw D.createMultipleMatchingAccountsInCacheError();return n[0]},t.prototype.readIdTokenFromCache=function(e,r){var n={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:ee.ID_TOKEN,clientId:e,realm:r.tenantId},o=this.getCredentialsFilteredBy(n),i=Object.keys(o.idTokens).map(function(s){return o.idTokens[s]}),a=i.length;if(a<1)return null;if(a>1)throw D.createMultipleMatchingTokensInCacheError();return i[0]},t.prototype.readAccessTokenFromCache=function(e,r,n){var o=new Ct(n.scopes||[]),i=n.authenticationScheme||le.BEARER,a=i&&i.toLowerCase()!==le.BEARER.toLowerCase()?ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:ee.ACCESS_TOKEN,s={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:a,clientId:e,realm:r.tenantId,target:o.printScopesLowerCase(),tokenType:i,keyId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},c=this.getCredentialsFilteredBy(s),l=Object.keys(c.accessTokens).map(function(d){return c.accessTokens[d]}),u=l.length;if(u<1)return null;if(u>1)throw D.createMultipleMatchingTokensInCacheError();return l[0]},t.prototype.readRefreshTokenFromCache=function(e,r,n){var o=n?Dc:void 0,i={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:ee.REFRESH_TOKEN,clientId:e,familyId:o},a=this.getCredentialsFilteredBy(i),s=Object.keys(a.refreshTokens).map(function(l){return a.refreshTokens[l]}),c=s.length;return c<1?null:s[0]},t.prototype.readAppMetadataFromCache=function(e,r){var n={environment:e,clientId:r},o=this.getAppMetadataFilteredBy(n),i=Object.keys(o).map(function(s){return o[s]}),a=i.length;if(a<1)return null;if(a>1)throw D.createMultipleMatchingAppMetadataInCacheError();return i[0]},t.prototype.isAppMetadataFOCI=function(e,r){var n=this.readAppMetadataFromCache(e,r);return!!(n&&n.familyId===Dc)},t.prototype.matchHomeAccountId=function(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId},t.prototype.matchUserAssertionHash=function(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)},t.prototype.matchEnvironment=function(e,r){var n=this.getAuthorityMetadataByAlias(r);return!!(n&&n.aliases.indexOf(e.environment)>-1)},t.prototype.matchCredentialType=function(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()},t.prototype.matchClientId=function(e,r){return!!(e.clientId&&r===e.clientId)},t.prototype.matchFamilyId=function(e,r){return!!(e.familyId&&r===e.familyId)},t.prototype.matchRealm=function(e,r){return!!(e.realm&&r===e.realm)},t.prototype.matchNativeAccountId=function(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)},t.prototype.matchTarget=function(e,r){var n=e.credentialType!==ee.ACCESS_TOKEN&&e.credentialType!==ee.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=Ct.fromString(e.target),i=Ct.fromString(r);return i.containsOnlyOIDCScopes()?i.removeScope(_.OFFLINE_ACCESS_SCOPE):i.removeOIDCScopes(),o.containsScopeSet(i)},t.prototype.matchTokenType=function(e,r){return!!(e.tokenType&&e.tokenType===r)},t.prototype.matchKeyId=function(e,r){return!!(e.keyId&&e.keyId===r)},t.prototype.isAppMetadata=function(e){return e.indexOf(Cd)!==-1},t.prototype.isAuthorityMetadata=function(e){return e.indexOf(_a.CACHE_KEY)!==-1},t.prototype.generateAuthorityMetadataCacheKey=function(e){return _a.CACHE_KEY+"-"+this.clientId+"-"+e},t.prototype.getSpecificCredential=function(e,r){switch(r){case ee.ID_TOKEN:return this.getIdTokenCredential(e);case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case ee.REFRESH_TOKEN:return this.getRefreshTokenCredential(e);default:return null}},t.toObject=function(e,r){for(var n in r)e[n]=r[n];return e},t}(),PC=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setAccount=function(){var r="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAccount=function(){var r="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setIdTokenCredential=function(){var r="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getIdTokenCredential=function(){var r="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAccessTokenCredential=function(){var r="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAccessTokenCredential=function(){var r="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setRefreshTokenCredential=function(){var r="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getRefreshTokenCredential=function(){var r="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAppMetadata=function(){var r="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAppMetadata=function(){var r="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setServerTelemetry=function(){var r="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getServerTelemetry=function(){var r="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAuthorityMetadata=function(){var r="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAuthorityMetadata=function(){var r="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAuthorityMetadataKeys=function(){var r="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setThrottlingCache=function(){var r="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getThrottlingCache=function(){var r="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.removeItem=function(){var r="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.containsKey=function(){var r="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getKeys=function(){var r="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.clear=function(){return K(this,void 0,void 0,function(){var r;return G(this,function(n){throw r="Storage interface - clear() has not been implemented for the cacheStorage interface.",z.createUnexpectedError(r)})})},e.prototype.updateCredentialCacheKey=function(){var r="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e}(or);/*! @azure/msal-common v7.6.0 2022-10-10 */var NC=300,Sy={tokenRenewalOffsetSeconds:NC,preventCorsPreflight:!1,proxyUrl:_.EMPTY_STRING},OC={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:xe.Info,correlationId:_.EMPTY_STRING},xC={sendGetRequestAsync:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Network interface - sendGetRequestAsync() has not been implemented",z.createUnexpectedError(t)})})},sendPostRequestAsync:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Network interface - sendPostRequestAsync() has not been implemented",z.createUnexpectedError(t)})})}},MC={sku:_.SKU,version:Cy,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},UC={clientSecret:_.EMPTY_STRING,clientAssertion:void 0},LC={azureCloudInstance:$a.None,tenant:""+_.DEFAULT_COMMON_TENANT},DC={application:{appName:"",appVersion:""}};function HC(t){var e=t.authOptions,r=t.systemOptions,n=t.loggerOptions,o=t.storageInterface,i=t.networkInterface,a=t.cryptoInterface,s=t.clientCredentials,c=t.libraryInfo,l=t.telemetry,u=t.serverTelemetryManager,d=t.persistencePlugin,h=t.serializableCache,f=Ne(Ne({},OC),n);return{authOptions:FC(e),systemOptions:Ne(Ne({},Sy),r),loggerOptions:f,storageInterface:o||new PC(e.clientId,Fc),networkInterface:i||xC,cryptoInterface:a||Fc,clientCredentials:s||UC,libraryInfo:Ne(Ne({},MC),c),telemetry:Ne(Ne({},DC),l),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}function FC(t){return Ne({clientCapabilities:[],azureCloudOptions:LC,skipAuthorityMetadataCache:!1},t)}/*! @azure/msal-common v7.6.0 2022-10-10 */var vo=function(t){Mt(e,t);function e(r,n,o){var i=t.call(this,r,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var zc=function(){function t(){}return t.generateThrottlingStorageKey=function(e){return wa.THROTTLING_PREFIX+"."+JSON.stringify(e)},t.preProcess=function(e,r){var n,o=t.generateThrottlingStorageKey(r),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o,to.THROTTLING);return}throw new vo(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||_.EMPTY_STRING,i.errorMessage,i.subError)}},t.postProcess=function(e,r,n){if(t.checkResponseStatus(n)||t.checkResponseForRetryAfter(n)){var o={throttleTime:t.calculateThrottleTime(parseInt(n.headers[hr.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(t.generateThrottlingStorageKey(r),o)}},t.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},t.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(hr.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},t.calculateThrottleTime=function(e){var r=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(r||wa.DEFAULT_THROTTLE_TIME_SECONDS),n+wa.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},t.removeThrottle=function(e,r,n,o){var i={clientId:r,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:o,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(i);return e.removeItem(a,to.THROTTLING)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var $C=function(){function t(e,r){this.networkClient=e,this.cacheManager=r}return t.prototype.sendPostRequest=function(e,r,n){return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:zc.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(r,n)];case 2:return o=a.sent(),[3,4];case 3:throw i=a.sent(),i instanceof z?i:D.createNetworkError(r,i);case 4:return zc.postProcess(this.cacheManager,e,o),[2,o]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Dt;(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"})(Dt||(Dt={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Bh=function(){function t(e,r){this.config=HC(e),this.logger=new jh(this.config.loggerOptions,RC,Cy),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new $C(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}return t.prototype.createTokenRequestHeaders=function(e){var r={};if(r[hr.CONTENT_TYPE]=_.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Dt.HOME_ACCOUNT_ID:try{var n=Yo(e.credential);r[hr.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case Dt.UPN:r[hr.CCS_HEADER]="UPN: "+e.credential;break}return r},t.prototype.executePostToTokenEndpoint=function(e,r,n,o){return K(this,void 0,void 0,function(){var i;return G(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:r,headers:n,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},t.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw D.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var qn=function(){function t(){}return t.validateRedirectUri=function(e){if(x.isEmpty(e))throw we.createRedirectUriEmptyError()},t.validatePrompt=function(e){var r=[];for(var n in mt)r.push(mt[n]);if(r.indexOf(e)<0)throw we.createInvalidPromptError(e)},t.validateClaims=function(e){try{JSON.parse(e)}catch{throw we.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(e,r){if(x.isEmpty(e)||x.isEmpty(r))throw we.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},t.validateCodeChallengeMethod=function(e){if([Tp.PLAIN,Tp.S256].indexOf(e)<0)throw we.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(e,r){return e?(r.forEach(function(n,o){e[o]&&delete e[o]}),e):{}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Qo=function(){function t(){this.parameters=new Map}return t.prototype.addResponseTypeCode=function(){this.parameters.set(Q.RESPONSE_TYPE,encodeURIComponent(_.CODE_RESPONSE_TYPE))},t.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Q.RESPONSE_TYPE,encodeURIComponent(_.TOKEN_RESPONSE_TYPE+" "+_.ID_TOKEN_RESPONSE_TYPE))},t.prototype.addResponseMode=function(e){this.parameters.set(Q.RESPONSE_MODE,encodeURIComponent(e||Uc.QUERY))},t.prototype.addNativeBroker=function(){this.parameters.set(Q.NATIVE_BROKER,encodeURIComponent("1"))},t.prototype.addScopes=function(e,r){r===void 0&&(r=!0);var n=r?yl(e||[],ts):e||[],o=new Ct(n);this.parameters.set(Q.SCOPE,encodeURIComponent(o.printScopes()))},t.prototype.addClientId=function(e){this.parameters.set(Q.CLIENT_ID,encodeURIComponent(e))},t.prototype.addRedirectUri=function(e){qn.validateRedirectUri(e),this.parameters.set(Q.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){qn.validateRedirectUri(e),this.parameters.set(Q.POST_LOGOUT_URI,encodeURIComponent(e))},t.prototype.addIdTokenHint=function(e){this.parameters.set(Q.ID_TOKEN_HINT,encodeURIComponent(e))},t.prototype.addDomainHint=function(e){this.parameters.set(ya.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(ya.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(hr.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(hr.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(ya.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,r){var n=this.addClientCapabilitiesToClaims(e,r);qn.validateClaims(n),this.parameters.set(Q.CLAIMS,encodeURIComponent(n))},t.prototype.addCorrelationId=function(e){this.parameters.set(Q.CLIENT_REQUEST_ID,encodeURIComponent(e))},t.prototype.addLibraryInfo=function(e){this.parameters.set(Q.X_CLIENT_SKU,e.sku),this.parameters.set(Q.X_CLIENT_VER,e.version),e.os&&this.parameters.set(Q.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(Q.X_CLIENT_CPU,e.cpu)},t.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(Q.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(Q.X_APP_VER,e.appVersion)},t.prototype.addPrompt=function(e){qn.validatePrompt(e),this.parameters.set(""+Q.PROMPT,encodeURIComponent(e))},t.prototype.addState=function(e){x.isEmpty(e)||this.parameters.set(Q.STATE,encodeURIComponent(e))},t.prototype.addNonce=function(e){this.parameters.set(Q.NONCE,encodeURIComponent(e))},t.prototype.addCodeChallengeParams=function(e,r){if(qn.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(Q.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Q.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw we.createInvalidCodeChallengeParamsError()},t.prototype.addAuthorizationCode=function(e){this.parameters.set(Q.CODE,encodeURIComponent(e))},t.prototype.addDeviceCode=function(e){this.parameters.set(Q.DEVICE_CODE,encodeURIComponent(e))},t.prototype.addRefreshToken=function(e){this.parameters.set(Q.REFRESH_TOKEN,encodeURIComponent(e))},t.prototype.addCodeVerifier=function(e){this.parameters.set(Q.CODE_VERIFIER,encodeURIComponent(e))},t.prototype.addClientSecret=function(e){this.parameters.set(Q.CLIENT_SECRET,encodeURIComponent(e))},t.prototype.addClientAssertion=function(e){x.isEmpty(e)||this.parameters.set(Q.CLIENT_ASSERTION,encodeURIComponent(e))},t.prototype.addClientAssertionType=function(e){x.isEmpty(e)||this.parameters.set(Q.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},t.prototype.addOboAssertion=function(e){this.parameters.set(Q.OBO_ASSERTION,encodeURIComponent(e))},t.prototype.addRequestTokenUse=function(e){this.parameters.set(Q.REQUESTED_TOKEN_USE,encodeURIComponent(e))},t.prototype.addGrantType=function(e){this.parameters.set(Q.GRANT_TYPE,encodeURIComponent(e))},t.prototype.addClientInfo=function(){this.parameters.set(AC,"1")},t.prototype.addExtraQueryParameters=function(e){var r=this;qn.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach(function(n){r.parameters.set(n,e[n])})},t.prototype.addClientCapabilitiesToClaims=function(e,r){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw we.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(Vo.ACCESS_TOKEN)||(n[Vo.ACCESS_TOKEN]={}),n[Vo.ACCESS_TOKEN][Vo.XMS_CC]={values:r}),JSON.stringify(n)},t.prototype.addUsername=function(e){this.parameters.set(Hc.username,encodeURIComponent(e))},t.prototype.addPassword=function(e){this.parameters.set(Hc.password,encodeURIComponent(e))},t.prototype.addPopToken=function(e){x.isEmpty(e)||(this.parameters.set(Q.TOKEN_TYPE,le.POP),this.parameters.set(Q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addSshJwk=function(e){x.isEmpty(e)||(this.parameters.set(Q.TOKEN_TYPE,le.SSH),this.parameters.set(Q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addServerTelemetry=function(e){this.parameters.set(Q.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(Q.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},t.prototype.addThrottling=function(){this.parameters.set(Q.X_MS_LIB_CAPABILITY,wa.X_MS_LIB_CAPABILITY_VALUE)},t.prototype.addLogoutHint=function(e){this.parameters.set(Q.LOGOUT_HINT,encodeURIComponent(e))},t.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(r,n){e.push(n+"="+r)}),e.join("&")},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var ja=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createIdTokenEntity=function(r,n,o,i,a){var s=new e;return s.credentialType=ee.ID_TOKEN,s.homeAccountId=r,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},e.isIdTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===ee.ID_TOKEN:!1},e}(za);/*! @azure/msal-common v7.6.0 2022-10-10 */var Jt=function(){function t(){}return t.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},t.isTokenExpired=function(e,r){var n=Number(e)||0,o=t.nowSeconds()+r;return o>n},t.wasClockTurnedBack=function(e){var r=Number(e);return r>t.nowSeconds()},t.delay=function(e,r){return new Promise(function(n){return setTimeout(function(){return n(r)},e)})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Ba=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createAccessTokenEntity=function(r,n,o,i,a,s,c,l,u,d,h,f,m,v,E){var g,p,y=new e;y.homeAccountId=r,y.credentialType=ee.ACCESS_TOKEN,y.secret=o;var w=Jt.nowSeconds();if(y.cachedAt=w.toString(),y.expiresOn=c.toString(),y.extendedExpiresOn=l.toString(),d&&(y.refreshOn=d.toString()),y.environment=n,y.clientId=i,y.realm=a,y.target=s,y.userAssertionHash=f,y.tokenType=x.isEmpty(h)?le.BEARER:h,v&&(y.requestedClaims=v,y.requestedClaimsHash=E),((g=y.tokenType)===null||g===void 0?void 0:g.toLowerCase())!==le.BEARER.toLowerCase())switch(y.credentialType=ee.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case le.POP:var k=kr.extractTokenClaims(o,u);if(!(!((p=k==null?void 0:k.cnf)===null||p===void 0)&&p.kid))throw D.createTokenClaimsRequiredError();y.keyId=k.cnf.kid;break;case le.SSH:y.keyId=m}return y},e.isAccessTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.hasOwnProperty("target")&&(r.credentialType===ee.ACCESS_TOKEN||r.credentialType===ee.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(za);/*! @azure/msal-common v7.6.0 2022-10-10 */var jc=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(r,n,o,i,a,s){var c=new e;return c.clientId=i,c.credentialType=ee.REFRESH_TOKEN,c.environment=n,c.homeAccountId=r,c.secret=o,c.userAssertionHash=s,a&&(c.familyId=a),c},e.isRefreshTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===ee.REFRESH_TOKEN:!1},e}(za);/*! @azure/msal-common v7.6.0 2022-10-10 */var Ip=["interaction_required","consent_required","login_required"],zC=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ta={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},lr=function(t){Mt(e,t);function e(r,n,o){var i=t.call(this,r,n,o)||this;return i.name="InteractionRequiredAuthError",Object.setPrototypeOf(i,e.prototype),i}return e.isInteractionRequiredError=function(r,n,o){var i=!!r&&Ip.indexOf(r)>-1,a=!!o&&zC.indexOf(o)>-1,s=!!n&&Ip.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(ta.noTokensFoundError.code,ta.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ta.native_account_unavailable.code,ta.native_account_unavailable.desc)},e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var Qs=function(){function t(e,r,n,o,i){this.account=e||null,this.idToken=r||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Wr=function(){function t(){}return t.setRequestState=function(e,r,n){var o=t.generateLibraryState(e,n);return x.isEmpty(r)?o:""+o+_.RESOURCE_DELIM+r},t.generateLibraryState=function(e,r){if(!e)throw D.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};r&&(n.meta=r);var o=JSON.stringify(n);return e.base64Encode(o)},t.parseRequestState=function(e,r){if(!e)throw D.createNoCryptoObjectError("parseRequestState");if(x.isEmpty(r))throw D.createInvalidStateError(r,"Null, undefined or empty state");try{var n=r.split(_.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(_.RESOURCE_DELIM):_.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:x.isEmpty(i)?_.EMPTY_STRING:i,libraryState:s}}catch(c){throw D.createInvalidStateError(r,c)}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var oe=function(){function t(e){if(this._urlString=e,x.isEmpty(this._urlString))throw we.createUrlEmptyError();x.isEmpty(this.getHash())&&(this._urlString=t.canonicalizeUri(e))}return Object.defineProperty(t.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),t.canonicalizeUri=function(e){if(e){var r=e.toLowerCase();return x.endsWith(r,"?")?r=r.slice(0,-1):x.endsWith(r,"?/")&&(r=r.slice(0,-2)),x.endsWith(r,"/")||(r+="/"),r}return e},t.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(r){throw we.createUrlParseError(r)}if(!e.HostNameAndPort||!e.PathSegments)throw we.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw we.createInsecureAuthorityUriError(this.urlString)},t.appendQueryString=function(e,r){return x.isEmpty(r)?e:e.indexOf("?")<0?e+"?"+r:e+"&"+r},t.removeHashFromUrl=function(e){return t.canonicalizeUri(e.split("#")[0])},t.prototype.replaceTenantPath=function(e){var r=this.getUrlComponents(),n=r.PathSegments;return e&&n.length!==0&&(n[0]===Mc.COMMON||n[0]===Mc.ORGANIZATIONS)&&(n[0]=e),t.constructAuthorityUriFromObject(r)},t.prototype.getHash=function(){return t.parseHash(this.urlString)},t.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw we.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),n.PathSegments=o,!x.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},t.getDomainFromUrl=function(e){var r=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(r);if(!n)throw we.createUrlParseError("Given url string: "+e);return n[2]},t.getAbsoluteUrl=function(e,r){if(e[0]===_.FORWARD_SLASH){var n=new t(r),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},t.parseHash=function(e){var r=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):r>-1?e.substring(r+1):_.EMPTY_STRING},t.parseQueryString=function(e){var r=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):r>-1?e.substring(r+1):_.EMPTY_STRING},t.constructAuthorityUriFromObject=function(e){return new t(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},t.getDeserializedHash=function(e){if(x.isEmpty(e))return{};var r=t.parseHash(e),n=x.queryStringToObject(x.isEmpty(r)?e:r);if(!n)throw D.createHashNotDeserializedError(JSON.stringify(n));return n},t.getDeserializedQueryString=function(e){if(x.isEmpty(e))return{};var r=t.parseQueryString(e),n=x.queryStringToObject(x.isEmpty(r)?e:r);if(!n)throw D.createHashNotDeserializedError(JSON.stringify(n));return n},t.hashContainsKnownProperties=function(e){if(x.isEmpty(e)||e.indexOf("=")<0)return!1;var r=t.getDeserializedHash(e);return!!(r.code||r.error_description||r.error||r.state)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Td;(function(t){t.SW="sw",t.UHW="uhw"})(Td||(Td={}));var vi=function(){function t(e){this.cryptoUtils=e}return t.prototype.generateCnf=function(e){return K(this,void 0,void 0,function(){var r,n,o;return G(this,function(i){switch(i.label){case 0:return[4,this.generateKid(e)];case 1:return r=i.sent(),n=this.cryptoUtils.base64Encode(JSON.stringify(r)),o={kid:r.kid,reqCnfString:n},[4,this.cryptoUtils.hashString(n)];case 2:return[2,(o.reqCnfHash=i.sent(),o)]}})})},t.prototype.generateKid=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return r=n.sent(),[2,{kid:r,xms_ksl:Td.SW}]}})})},t.prototype.signPopToken=function(e,r,n){return K(this,void 0,void 0,function(){return G(this,function(o){return[2,this.signPayload(e,r,n)]})})},t.prototype.signPayload=function(e,r,n,o){return K(this,void 0,void 0,function(){var i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new oe(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(Ne({at:e,ts:Jt.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0},o),r,n.correlationId)];case 1:return[2,d.sent()]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var bd=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(e,r){var n=[Cd,e,r];return n.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAppMetadataEntity=function(e,r,n){var o=new t;return o.clientId=e,o.environment=r,n&&(o.familyId=n),o},t.isAppMetadataEntity=function(e,r){return r?e.indexOf(Cd)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var jC=function(){function t(e,r){this.cache=e,this.hasChanged=r}return Object.defineProperty(t.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Bc=function(){function t(e,r,n,o,i,a){this.clientId=e,this.cacheStorage=r,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a}return t.prototype.validateServerAuthorizationCodeResponse=function(e,r,n){if(!e.state||!r)throw e.state?D.createStateNotFoundError("Cached State"):D.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(r))throw D.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw lr.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new lr(e.error||_.EMPTY_STRING,e.error_description,e.suberror):new vo(e.error||_.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&$c(e.client_info,n)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(lr.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new lr(e.error,e.error_description,e.suberror);var r=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new vo(e.error,r,e.suberror)}},t.prototype.handleServerTokenResponse=function(e,r,n,o,i,a,s,c,l){return K(this,void 0,void 0,function(){var u,d,h,f,m,v,E;return G(this,function(g){switch(g.label){case 0:if(e.id_token){if(u=new kr(e.id_token||_.EMPTY_STRING,this.cryptoObj),i&&!x.isEmpty(i.nonce)&&u.claims.nonce!==i.nonce)throw D.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(d=u.claims.auth_time,!d)throw D.createAuthTimeNotFoundError();kr.checkMaxAge(d,o.maxAge)}}this.homeAccountIdentifier=tt.generateHomeAccountId(e.client_info||_.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u),!!i&&!!i.state&&(h=Wr.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,f=this.generateCacheRecord(e,r,n,o,u,a,i),g.label=1;case 1:return g.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new jC(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:g.sent(),g.label=3;case 3:return s&&!c&&f.account&&(v=f.account.generateAccountKey(),E=this.cacheStorage.getAccount(v),!E)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,t.generateAuthenticationResult(this.cryptoObj,r,f,!1,o,u,h,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(f)];case 4:return g.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:g.sent(),g.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,r,f,!1,o,u,h,e.spa_code,l)]}})})},t.prototype.generateCacheRecord=function(e,r,n,o,i,a,s){var c=r.getPreferredCache();if(x.isEmpty(c))throw D.createInvalidCacheEnvironmentError();var l,u;!x.isEmpty(e.id_token)&&!!i&&(l=ja.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||_.EMPTY_STRING,this.clientId,i.claims.tid||_.EMPTY_STRING),u=this.generateAccountEntity(e,i,r,s));var d=null;if(!x.isEmpty(e.access_token)){var h=e.scope?Ct.fromString(e.scope):new Ct(o.scopes||[]),f=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,m=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,v=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,E=n+f,g=E+m,p=v&&v>0?n+v:void 0;d=Ba.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||_.EMPTY_STRING,this.clientId,i?i.claims.tid||_.EMPTY_STRING:r.tenant,h.printScopes(),E,g,this.cryptoObj,p,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var y=null;x.isEmpty(e.refresh_token)||(y=jc.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||_.EMPTY_STRING,this.clientId,e.foci,a));var w=null;return x.isEmpty(e.foci)||(w=bd.createAppMetadataEntity(this.clientId,c,e.foci)),new Qs(u,l,d,y,w)},t.prototype.generateAccountEntity=function(e,r,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:_.EMPTY_STRING,s=o?o.msgraph_host:_.EMPTY_STRING;if(i===Wt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),tt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(x.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw D.createClientInfoEmptyError();return e.client_info?tt.createAccount(e.client_info,this.homeAccountIdentifier,r,n,a,s):tt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},t.generateAuthenticationResult=function(e,r,n,o,i,a,s,c,l){var u,d,h;return K(this,void 0,void 0,function(){var f,m,v,E,g,p,y,w,k,P,M;return G(this,function(O){switch(O.label){case 0:if(f=_.EMPTY_STRING,m=[],v=null,g=_.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==le.POP)return[3,2];if(p=new vi(e),y=n.accessToken,w=y.secret,k=y.keyId,!k)throw D.createKeyIdMissingError();return[4,p.signPopToken(w,k,i)];case 1:return f=O.sent(),[3,3];case 2:f=n.accessToken.secret,O.label=3;case 3:m=Ct.fromString(n.accessToken.target).asArray(),v=new Date(Number(n.accessToken.expiresOn)*1e3),E=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),O.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===Dc?Dc:_.EMPTY_STRING),P=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||_.EMPTY_STRING,M=(a==null?void 0:a.claims.tid)||_.EMPTY_STRING,[2,{authority:r.canonicalAuthority,uniqueId:P,tenantId:M,scopes:m,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:_.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:f,fromCache:o,expiresOn:v,correlationId:i.correlationId,requestId:l||_.EMPTY_STRING,extExpiresOn:E,familyId:g,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||_.EMPTY_STRING,state:s?s.userRequestState:_.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((h=n.account)===null||h===void 0?void 0:h.msGraphHost)||_.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Ty=function(t){Mt(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!0,n}return e.prototype.getAuthCodeUrl=function(r){return K(this,void 0,void 0,function(){var n;return G(this,function(o){switch(o.label){case 0:return[4,this.createAuthCodeUrlQueryString(r)];case 1:return n=o.sent(),[2,oe.appendQueryString(this.authority.authorizationEndpoint,n)]}})})},e.prototype.acquireToken=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s,c;return G(this,function(l){switch(l.label){case 0:if(this.logger.info("in acquireToken call"),!r||x.isEmpty(r.code))throw D.createTokenRequestCannotBeMadeError();return i=Jt.nowSeconds(),[4,this.executeTokenRequest(this.authority,r)];case 1:return a=l.sent(),s=(o=a.headers)===null||o===void 0?void 0:o[hr.X_MS_REQUEST_ID],c=new Bc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),c.validateTokenResponse(a.body),[4,c.handleServerTokenResponse(a.body,this.authority,i,r,n,void 0,void 0,void 0,s)];case 2:return[2,l.sent()]}})})},e.prototype.handleFragmentResponse=function(r,n){var o=new Bc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new oe(r),a=oe.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw D.createNoAuthCodeInServerResponseError();return Ne(Ne({},a),{code:a.code})},e.prototype.getLogoutUri=function(r){if(!r)throw we.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(r);return oe.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(r,n){return K(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return o={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[4,this.createTokenRequestBody(n)];case 1:if(i=d.sent(),a=this.createTokenQueryParameters(n),s=void 0,n.clientInfo)try{c=$c(n.clientInfo,this.cryptoUtils),s={credential:""+c.uid+Ft.CLIENT_INFO_SEPARATOR+c.utid,type:Dt.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return l=this.createTokenRequestHeaders(s||n.ccsCredential),u=x.isEmpty(a)?r.tokenEndpoint:r.tokenEndpoint+"?"+a,[2,this.executePostToTokenEndpoint(u,i,l,o)]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new Qo;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){return K(this,void 0,void 0,function(){var n,o,i,a,s,c,l,l,u;return G(this,function(d){switch(d.label){case 0:return n=new Qo,n.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?n.addRedirectUri(r.redirectUri):qn.validateRedirectUri(r.redirectUri),n.addScopes(r.scopes),n.addAuthorizationCode(r.code),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&n.addServerTelemetry(this.serverTelemetryManager),r.codeVerifier&&n.addCodeVerifier(r.codeVerifier),this.config.clientCredentials.clientSecret&&n.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(o=this.config.clientCredentials.clientAssertion,n.addClientAssertion(o.assertion),n.addClientAssertionType(o.assertionType)),n.addGrantType(Lc.AUTHORIZATION_CODE_GRANT),n.addClientInfo(),r.authenticationScheme!==le.POP?[3,2]:(i=new vi(this.cryptoUtils),[4,i.generateCnf(r)]);case 1:return a=d.sent(),n.addPopToken(a.reqCnfString),[3,3];case 2:if(r.authenticationScheme===le.SSH)if(r.sshJwk)n.addSshJwk(r.sshJwk);else throw we.createMissingSshJwkError();d.label=3;case 3:if(s=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(s),(!x.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(r.claims,this.config.authOptions.clientCapabilities),c=void 0,r.clientInfo)try{l=$c(r.clientInfo,this.cryptoUtils),c={credential:""+l.uid+Ft.CLIENT_INFO_SEPARATOR+l.utid,type:Dt.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else c=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case Dt.HOME_ACCOUNT_ID:try{l=Yo(c.credential),n.addCcsOid(l)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case Dt.UPN:n.addCcsUpn(c.credential);break}return r.tokenBodyParameters&&n.addExtraQueryParameters(r.tokenBodyParameters),r.enableSpaAuthorizationCode&&(!r.tokenBodyParameters||!r.tokenBodyParameters[Q.RETURN_SPA_CODE])&&n.addExtraQueryParameters((u={},u[Q.RETURN_SPA_CODE]="1",u)),[2,n.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(r){return K(this,void 0,void 0,function(){var n,o,i,a,s,c,c,c,l,u;return G(this,function(d){switch(d.label){case 0:if(n=new Qo,n.addClientId(this.config.authOptions.clientId),o=yl(r.scopes||[],r.extraScopesToConsent||[]),n.addScopes(o),n.addRedirectUri(r.redirectUri),i=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(i),n.addResponseMode(r.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),r.codeChallenge&&r.codeChallengeMethod&&n.addCodeChallengeParams(r.codeChallenge,r.codeChallengeMethod),r.prompt&&n.addPrompt(r.prompt),r.domainHint&&n.addDomainHint(r.domainHint),r.prompt!==mt.SELECT_ACCOUNT)if(r.sid&&r.prompt===mt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(r.sid);else if(r.account){if(a=this.extractAccountSid(r.account),s=this.extractLoginHint(r.account),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(s);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&r.prompt===mt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(r.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(r.loginHint),n.addCcsUpn(r.loginHint);else if(r.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(r.account.username);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else r.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(r.loginHint),n.addCcsUpn(r.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return r.nonce&&n.addNonce(r.nonce),r.state&&n.addState(r.state),(!x.isEmpty(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(r.claims,this.config.authOptions.clientCapabilities),r.extraQueryParameters&&n.addExtraQueryParameters(r.extraQueryParameters),r.nativeBroker?(n.addNativeBroker(),r.authenticationScheme!==le.POP?[3,2]:(l=new vi(this.cryptoUtils),[4,l.generateCnf(r)])):[3,2];case 1:u=d.sent(),n.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,n.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(r){var n=new Qo;return r.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(r.postLogoutRedirectUri),r.correlationId&&n.addCorrelationId(r.correlationId),r.idTokenHint&&n.addIdTokenHint(r.idTokenHint),r.state&&n.addState(r.state),r.logoutHint&&n.addLogoutHint(r.logoutHint),r.extraQueryParameters&&n.addExtraQueryParameters(r.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},e.prototype.extractLoginHint=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},e}(Bh);/*! @azure/msal-common v7.6.0 2022-10-10 */var je;(function(t){t.AcquireTokenByCode="acquireTokenByCode",t.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",t.AcquireTokenSilent="acquireTokenSilent",t.AcquireTokenSilentAsync="acquireTokenSilentAsync",t.AcquireTokenPopup="acquireTokenPopup",t.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",t.CryptoOptsSignJwt="cryptoOptsSignJwt",t.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",t.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",t.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",t.SsoSilent="ssoSilent",t.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",t.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",t.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",t.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",t.BrokerHandhshake="brokerHandshake",t.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",t.AcquireTokenByBroker="acquireTokenByBroker",t.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",t.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",t.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken"})(je||(je={}));var Jo;(function(t){t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Completed=2]="Completed"})(Jo||(Jo={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var by=function(t){Mt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){var n,o;return K(this,void 0,void 0,function(){var i,a,s,c,l,u=this;return G(this,function(d){switch(d.label){case 0:return i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(je.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),a=Jt.nowSeconds(),[4,this.executeTokenRequest(r,this.authority)];case 1:return s=d.sent(),c=(o=s.headers)===null||o===void 0?void 0:o[hr.X_MS_REQUEST_ID],l=new Bc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),l.validateTokenResponse(s.body),[2,l.handleServerTokenResponse(s.body,this.authority,a,r,void 0,void 0,!0,r.forceCache,c).then(function(h){var f;return i==null||i.endMeasurement({success:!0,refreshTokenSize:((f=s.body.refresh_token)===null||f===void 0?void 0:f.length)||0}),h}).catch(function(h){throw u.logger.verbose("Error in fetching refresh token",r.correlationId),i==null||i.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1,refreshTokenSize:void 0}),h})]}})})},e.prototype.acquireTokenByRefreshToken=function(r){return K(this,void 0,void 0,function(){var n,o,i;return G(this,function(a){if(!r)throw we.createEmptyTokenRequestError();if(!r.account)throw D.createNoAccountInSilentRequestError();if(n=this.cacheManager.isAppMetadataFOCI(r.account.environment,this.config.authOptions.clientId),n)try{return[2,this.acquireTokenWithCachedRefreshToken(r,!0)]}catch(s){if(o=s instanceof lr&&s.errorCode===ta.noTokensFoundError.code,i=s instanceof vo&&s.errorCode===bp.INVALID_GRANT_ERROR&&s.subError===bp.CLIENT_MISMATCH_ERROR,o||i)return[2,this.acquireTokenWithCachedRefreshToken(r,!1)];throw s}return[2,this.acquireTokenWithCachedRefreshToken(r,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s;return G(this,function(c){if(i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",r.correlationId),a=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,r.account,n),!a)throw i==null||i.discardMeasurement(),lr.createNoTokensFoundError();return i==null||i.endMeasurement({success:!0}),s=Ne(Ne({},r),{refreshToken:a.secret,authenticationScheme:r.authenticationScheme||le.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:Dt.HOME_ACCOUNT_ID}}),[2,this.acquireToken(s)]})})},e.prototype.executeTokenRequest=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.createTokenRequestBody(r)];case 1:return a=d.sent(),s=this.createTokenQueryParameters(r),c=this.createTokenRequestHeaders(r.ccsCredential),l={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},u=oe.appendQueryString(n.tokenEndpoint,s),[2,this.executePostToTokenEndpoint(u,a,c,l).then(function(h){return i==null||i.endMeasurement({success:!0}),h}).catch(function(h){throw i==null||i.endMeasurement({success:!1}),h})]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new Qo;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){var n;return K(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return G(this,function(d){switch(d.label){case 0:return o=r.correlationId,i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(je.BaseClientCreateTokenRequestHeaders,o),a=new Qo,a.addClientId(this.config.authOptions.clientId),a.addScopes(r.scopes),a.addGrantType(Lc.REFRESH_TOKEN_GRANT),a.addClientInfo(),a.addLibraryInfo(this.config.libraryInfo),a.addApplicationTelemetry(this.config.telemetry.application),a.addThrottling(),this.serverTelemetryManager&&a.addServerTelemetry(this.serverTelemetryManager),a.addCorrelationId(o),a.addRefreshToken(r.refreshToken),this.config.clientCredentials.clientSecret&&a.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,a.addClientAssertion(s.assertion),a.addClientAssertionType(s.assertionType)),r.authenticationScheme!==le.POP?[3,2]:(c=new vi(this.cryptoUtils),[4,c.generateCnf(r)]);case 1:return l=d.sent(),a.addPopToken(l.reqCnfString),[3,3];case 2:if(r.authenticationScheme===le.SSH)if(r.sshJwk)a.addSshJwk(r.sshJwk);else throw i==null||i.endMeasurement({success:!1}),we.createMissingSshJwkError();d.label=3;case 3:if((!x.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&a.addClaims(r.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&r.ccsCredential)switch(r.ccsCredential.type){case Dt.HOME_ACCOUNT_ID:try{u=Yo(r.ccsCredential.credential),a.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case Dt.UPN:a.addCcsUpn(r.ccsCredential.credential);break}return i==null||i.endMeasurement({success:!0}),[2,a.createQueryString()]}})})},e}(Bh);/*! @azure/msal-common v7.6.0 2022-10-10 */var BC=function(t){Mt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){return K(this,void 0,void 0,function(){var n,o;return G(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(r)];case 1:return[2,i.sent()];case 2:if(n=i.sent(),n instanceof D&&n.errorCode===A.tokenRefreshRequired.code)return o=new by(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(r)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(r){var n,o,i,a;return K(this,void 0,void 0,function(){var s,c;return G(this,function(l){switch(l.label){case 0:if(!r)throw we.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(Jn.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),D.createRefreshRequiredError();if(!r.account)throw D.createNoAccountInSilentRequestError();if(s=r.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(r.account,this.config.authOptions.clientId,r,s),c.accessToken){if(Jt.wasClockTurnedBack(c.accessToken.cachedAt)||Jt.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Jn.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),D.createRefreshRequiredError();if(c.accessToken.refreshOn&&Jt.isTokenExpired(c.accessToken.refreshOn,0))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Jn.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),D.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Jn.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),D.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,r)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(r,n){return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:if(r.idToken&&(o=new kr(r.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw D.createAuthTimeNotFoundError();kr.checkMaxAge(i,n.maxAge)}return[4,Bc.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(Bh);/*! @azure/msal-common v7.6.0 2022-10-10 */function qC(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v7.6.0 2022-10-10 */var Iy={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},kp=Iy.endpointMetadata,Ap=Iy.instanceDiscoveryMetadata;/*! @azure/msal-common v7.6.0 2022-10-10 */var qc;(function(t){t.AAD="AAD",t.OIDC="OIDC"})(qc||(qc={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Id=function(){function t(){this.expiresAt=Jt.nowSeconds()+_a.REFRESH_TIME_SECONDS}return t.prototype.updateCloudDiscoveryMetadata=function(e,r){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=r},t.prototype.updateEndpointMetadata=function(e,r){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=r,this.jwks_uri=e.jwks_uri},t.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},t.prototype.resetExpiresAt=function(){this.expiresAt=Jt.nowSeconds()+_a.REFRESH_TIME_SECONDS},t.prototype.isExpired=function(){return this.expiresAt<=Jt.nowSeconds()},t.isAuthorityMetadataEntity=function(e,r){return r?e.indexOf(_a.CACHE_KEY)===0&&r.hasOwnProperty("aliases")&&r.hasOwnProperty("preferred_cache")&&r.hasOwnProperty("preferred_network")&&r.hasOwnProperty("canonical_authority")&&r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("aliasesFromNetwork")&&r.hasOwnProperty("endpointsFromNetwork")&&r.hasOwnProperty("expiresAt")&&r.hasOwnProperty("jwks_uri"):!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */function KC(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v7.6.0 2022-10-10 */var GC=function(){function t(e){this.networkInterface=e}return t.prototype.detectRegion=function(e,r,n){return K(this,void 0,void 0,function(){var o,i,a,s,c;return G(this,function(l){switch(l.label){case 0:if(o=e,o)return[3,8];i=t.IMDS_OPTIONS,n&&(i.proxyUrl=n),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(_.IMDS_VERSION,i)];case 2:return a=l.sent(),a.status===Wo.httpSuccess&&(o=a.body,r.region_source=gn.IMDS),a.status!==Wo.httpBadRequest?[3,5]:[4,this.getCurrentVersion(i)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,i)]:(r.region_source=gn.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===Wo.httpSuccess&&(o=c.body,r.region_source=gn.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),r.region_source=gn.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=gn.ENVIRONMENT_VARIABLE,l.label=9;case 9:return o||(r.region_source=gn.FAILED_AUTO_DETECTION),[2,o||null]}})})},t.prototype.getRegionFromIMDS=function(e,r){return K(this,void 0,void 0,function(){return G(this,function(n){return[2,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?api-version="+e+"&format=text",r,_.IMDS_TIMEOUT)]})})},t.prototype.getCurrentVersion=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?format=json",e)];case 1:return r=n.sent(),r.status===Wo.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 2:return n.sent(),[2,null];case 3:return[2]}})})},t.IMDS_OPTIONS={headers:{Metadata:"true"}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Kc=function(){function t(e,r,n,o,i){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=n,this.authorityOptions=o,this.regionDiscovery=new GC(r),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=i||_.EMPTY_STRING}return Object.defineProperty(t.prototype,"authorityType",{get:function(){var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case _.ADFS:return Wt.Adfs;case _.DSTS:return Wt.Dsts}return Wt.Default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new oe(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw D.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),t.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},t.prototype.replacePath=function(e){var r=e,n=new oe(this.metadata.canonical_authority),o=n.getUrlComponents().PathSegments,i=this.canonicalAuthorityUrlComponents.PathSegments;return i.forEach(function(a,s){var c=o[s];a!==c&&(r=r.replace("/"+c+"/","/"+a+"/"))}),r},Object.defineProperty(t.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Wt.Adfs||this.authorityType===Wt.Dsts||this.protocolMode===qc.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),t.prototype.discoveryComplete=function(){return!!this.metadata},t.prototype.resolveEndpointsAsync=function(){return K(this,void 0,void 0,function(){var e,r,n,o;return G(this,function(i){switch(i.label){case 0:return e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),e||(e=new Id,e.updateCanonicalAuthority(this.canonicalAuthority)),[4,this.updateCloudDiscoveryMetadata(e)];case 1:return r=i.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network),[4,this.updateEndpointMetadata(e)];case 2:return n=i.sent(),r!==qt.CACHE&&n!==qt.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority)),o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache),this.cacheManager.setAuthorityMetadata(o,e),this.metadata=e,[2]}})})},t.prototype.updateEndpointMetadata=function(e){var r,n;return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:return o=this.getEndpointMetadataFromConfig(),o?(e.updateEndpointMetadata(o,!1),[2,qt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,qt.CACHE]:(i=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return o=a.sent(),o?!((r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0)&&r.azureRegion?[4,this.updateMetadataWithRegionalInformation(o)]:[3,3]:[3,4];case 2:o=a.sent(),a.label=3;case 3:return e.updateEndpointMetadata(o,!0),[2,qt.NETWORK];case 4:return i&&!this.authorityOptions.skipAuthorityMetadataCache?!((n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0)&&n.azureRegion?[4,this.updateMetadataWithRegionalInformation(i)]:[3,6]:[3,7];case 5:i=a.sent(),a.label=6;case 6:return e.updateEndpointMetadata(i,!1),[2,qt.HARDCODED_VALUES];case 7:throw D.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},t.prototype.isAuthoritySameType=function(e){var r=new oe(e.canonical_authority),n=r.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},t.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw we.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){return K(this,void 0,void 0,function(){var e,r;return G(this,function(n){switch(n.label){case 0:e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,e)];case 2:return r=n.sent(),[2,qC(r.body)?r.body:null];case 3:return n.sent(),[2,null];case 4:return[2]}})})},t.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in kp?kp[this.canonicalAuthority]:null},t.prototype.updateMetadataWithRegionalInformation=function(e){var r,n,o,i,a;return K(this,void 0,void 0,function(){var s,c;return G(this,function(l){switch(l.label){case 0:return[4,this.regionDiscovery.detectRegion((r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return s=l.sent(),c=((n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion)===_.AZURE_REGION_AUTO_DISCOVER_FLAG?s:(o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.azureRegion,((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.azureRegion)===_.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=s?Gn.AUTO_DETECTION_REQUESTED_SUCCESSFUL:Gn.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===s?Gn.CONFIGURED_MATCHES_DETECTED:Gn.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=Gn.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,t.replaceWithRegionalInformation(e,c)]):[2,e]}})})},t.prototype.updateCloudDiscoveryMetadata=function(e){return K(this,void 0,void 0,function(){var r,n;return G(this,function(o){switch(o.label){case 0:return r=this.getCloudDiscoveryMetadataFromConfig(),r?(e.updateCloudDiscoveryMetadata(r,!1),[2,qt.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,qt.CACHE]:(n=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(r=o.sent(),r)return e.updateCloudDiscoveryMetadata(r,!0),[2,qt.NETWORK];if(n&&!this.options.skipAuthorityMetadataCache)return e.updateCloudDiscoveryMetadata(n,!1),[2,qt.HARDCODED_VALUES];throw we.createUntrustedAuthorityError()}})})},t.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=t.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(r)return r}catch{throw we.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return K(this,void 0,void 0,function(){var e,r,n,o,i;return G(this,function(a){switch(a.label){case 0:e=""+_.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},this.proxyUrl&&(r.proxyUrl=this.proxyUrl),n=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e,r)];case 2:return o=a.sent(),i=KC(o.body)?o.body.metadata:[],i.length===0?[2,null]:(n=t.getCloudDiscoveryMetadataFromNetworkResponse(i,this.hostnameAndPort),[3,4]);case 3:return a.sent(),[2,null];case 4:return n||(n=t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,n]}})})},t.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Ap?Ap[this.canonicalAuthority]:null},t.prototype.isInKnownAuthorities=function(){var e=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return oe.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return r.length>0},t.generateAuthority=function(e,r){var n;if(r&&r.azureCloudInstance!==$a.None){var o=r.tenant?r.tenant:_.DEFAULT_COMMON_TENANT;n=r.azureCloudInstance+"/"+o+"/"}return n||e},t.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},t.getCloudDiscoveryMetadataFromNetworkResponse=function(e,r){for(var n=0;n<e.length;n++){var o=e[n];if(o.aliases.indexOf(r)>-1)return o}return null},t.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},t.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},t.isPublicCloudAuthority=function(e){return _.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},t.buildRegionalAuthorityString=function(e,r,n){var o=new oe(e);o.validateAsUri();var i=o.getUrlComponents(),a=r+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=r+"."+_.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=oe.constructAuthorityUriFromObject(Ne(Ne({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},t.replaceWithRegionalInformation=function(e,r){return e.authorization_endpoint=t.buildRegionalAuthorityString(e.authorization_endpoint,r),e.token_endpoint=t.buildRegionalAuthorityString(e.token_endpoint,r,_.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=t.buildRegionalAuthorityString(e.end_session_endpoint,r)),e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Gc=function(){function t(){}return t.createDiscoveredInstance=function(e,r,n,o,i){return K(this,void 0,void 0,function(){var a,s;return G(this,function(c){switch(c.label){case 0:a=t.createInstance(e,r,n,o,i),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,a.resolveEndpointsAsync()];case 2:return c.sent(),[2,a];case 3:throw s=c.sent(),D.createEndpointDiscoveryIncompleteError(s);case 4:return[2]}})})},t.createInstance=function(e,r,n,o,i){if(x.isEmpty(e))throw we.createUrlEmptyError();return new Kc(e,r,n,o,i)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Vc=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(Ye.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Rp=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(wa.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var VC={sendGetRequestAsync:function(){var t="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(z.createUnexpectedError(t))},sendPostRequestAsync:function(){var t="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(z.createUnexpectedError(t))}};/*! @azure/msal-common v7.6.0 2022-10-10 */var Rs={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},Pp=function(t){Mt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(Rs.missingKidError.code,Rs.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Rs.missingAlgError.code,Rs.missingAlgError.desc)},e}(z);/*! @azure/msal-common v7.6.0 2022-10-10 */var WC=function(){function t(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return t.getShrHeaderString=function(e){if(!e.kid)throw Pp.createMissingKidError();if(!e.alg)throw Pp.createMissingAlgError();var r=new t({typ:e.typ||Sd.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var YC=function(){function t(e,r){this.cacheOutcome=Jn.NO_CACHE_HIT,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||_.EMPTY_STRING,this.wrapperVer=e.wrapperVer||_.EMPTY_STRING,this.telemetryCacheKey=Ye.CACHE_KEY+Ft.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Ye.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(Ye.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(Ye.VALUE_SEPARATOR);return[Ye.SCHEMA_VERSION,o,r].join(Ye.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(Ye.VALUE_SEPARATOR),o=e.errors.slice(0,r).join(Ye.VALUE_SEPARATOR),i=e.errors.length,a=r<i?Ye.OVERFLOW_TRUE:Ye.OVERFLOW_FALSE,s=[i,a].join(Ye.VALUE_SEPARATOR);return[Ye.SCHEMA_VERSION,e.cacheHits,n,o,s].join(Ye.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=Ye.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),x.isEmpty(e.subError)?x.isEmpty(e.errorCode)?!!e&&e.toString()?r.errors.push(e.toString()):r.errors.push(Ye.UNKNOWN_ERROR):r.errors.push(e.errorCode):r.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)},t.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},t.prototype.getLastRequests=function(){var e=new Vc,r=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return r||e},t.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.errors.length;if(r===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new Vc;o.failedRequests=e.failedRequests.slice(r*2),o.errors=e.errors.slice(r),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},t.maxErrorsToSend=function(e){var r,n=0,o=0,i=e.errors.length;for(r=0;r<i;r++){var a=e.failedRequests[2*r]||_.EMPTY_STRING,s=e.failedRequests[2*r+1]||_.EMPTY_STRING,c=e.errors[r]||_.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+c.length+3,o<Ye.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},t.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||_.EMPTY_STRING),e.push(this.regionSource||_.EMPTY_STRING),e.push(this.regionOutcome||_.EMPTY_STRING),e.join(",")},t.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},t.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var ky=function(){function t(e,r,n,o,i,a){this.authority=r,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.measurementsById=new Map}return t.prototype.startMeasurement=function(e,r){var n=this,o,i,a=r||this.generateId();r||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s=this.startPerformanceMeasuremeant(e,a);s.startMeasurement();var c={eventId:this.generateId(),status:Jo.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a};return this.cacheEventByCorrelationId(c),this.cacheMeasurement(c,s),{endMeasurement:function(l){var u=n.endMeasurement(Ne(Ne({},c),l));return u&&n.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return n.flushMeasurements(c.name,c.correlationId)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},measurement:s,event:c}},t.prototype.endMeasurement=function(e){var r=this.measurementsById.get(e.eventId);if(r){this.measurementsById.delete(e.eventId),r.endMeasurement();var n=r.flushMeasurement();if(n!==null){this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+n+" ms",e.correlationId);var o=Ne(Ne({durationMs:Math.round(n)},e),{status:Jo.Completed});return o}else this.logger.trace("PerformanceClient: Performance measurement not taken",e.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId);return null},t.prototype.cacheEventByCorrelationId=function(e){var r=this.eventsByCorrelationId.get(e.correlationId);r?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),r.set(e.eventId,e)):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,new Map().set(e.eventId,e)))},t.prototype.cacheMeasurement=function(e,r){this.measurementsById.set(e.eventId,r)},t.prototype.flushMeasurements=function(e,r){var n=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+e,r);var o=this.eventsByCorrelationId.get(r);if(o){this.discardMeasurements(r);var i=[];o.forEach(function(u){if(u.name!==e&&u.status!==Jo.Completed){n.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+e,r);var d=n.endMeasurement(u);d&&i.push(d)}i.push(u)});var a=i.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),s=a.filter(function(u){return u.name===e&&u.status===Jo.Completed});if(s.length>0){s.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",r);var c=s[0];this.logger.verbose("PerformanceClient: Measurement found for "+e,r);var l=a.reduce(function(u,d){if(d.name!==e){n.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,r);var h=d.name+"DurationMs";u[h]?n.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+d.name+", ignoring",r):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize),d.refreshTokenSize&&(u.refreshTokenSize=d.refreshTokenSize)}return u},c);this.emitEvents([l],l.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+e,r)}else this.logger.verbose("PerformanceClient: No measurements found",r)},t.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},t.prototype.addPerformanceCallback=function(e){var r=this.generateId();return this.callbacks.set(r,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+r),r},t.prototype.removePerformanceCallback=function(e){var r=this.callbacks.delete(e);return r?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),r},t.prototype.emitEvents=function(e,r){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",r),this.callbacks.forEach(function(o,i){n.logger.trace("PerformanceClient: Emitting event to callback "+i,r),o.apply(null,[e])})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var QC=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),JC=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new QC},e}(ky);/*! @azure/msal-browser v2.30.0 2022-10-10 */var I={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},N=function(t){ot(e,t);function e(r,n){var o=t.call(this,r,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(r){return new e(I.pkceNotGenerated.code,I.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(I.cryptoDoesNotExist.code,I.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(I.httpMethodNotImplementedError.code,I.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(I.emptyNavigateUriError.code,I.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(I.hashEmptyError.code,I.hashEmptyError.desc+" Given Url: "+r)},e.createHashDoesNotContainStateError=function(){return new e(I.hashDoesNotContainStateError.code,I.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(I.hashDoesNotContainKnownPropertiesError.code,I.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(I.unableToParseStateError.code,I.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(I.stateInteractionTypeMismatchError.code,I.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(I.interactionInProgress.code,I.interactionInProgress.desc)},e.createPopupWindowError=function(r){var n=I.popupWindowError.desc;return n=x.isEmpty(r)?n:n+" Details: "+r,new e(I.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(I.emptyWindowError.code,I.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(I.userCancelledError.code,I.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(I.monitorPopupTimeoutError.code,I.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(I.monitorIframeTimeoutError.code,I.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(r){return new e(I.redirectInIframeError.code,I.redirectInIframeError.desc+" (window.parent !== window) => "+r)},e.createBlockReloadInHiddenIframeError=function(){return new e(I.blockTokenRequestsInHiddenIframeError.code,I.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(I.blockAcquireTokenInPopupsError.code,I.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(I.iframeClosedPrematurelyError.code,I.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(I.silentLogoutUnsupportedError.code,I.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(I.noAccountError.code,I.noAccountError.desc)},e.createSilentPromptValueError=function(r){return new e(I.silentPromptValueError.code,I.silentPromptValueError.desc+" Given value: "+r)},e.createUnableToParseTokenRequestCacheError=function(){return new e(I.unableToParseTokenRequestCacheError.code,I.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(I.noTokenRequestCacheError.code,I.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(I.authRequestNotSet.code,I.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(I.noCachedAuthorityError.code,I.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(I.invalidCacheType.code,""+I.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(I.notInBrowserEnvironment.code,I.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(I.databaseNotOpen.code,I.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(I.noNetworkConnectivity.code,I.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(r,n){return new e(I.postRequestFailed.code,I.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(I.getRequestFailed.code,I.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(I.failedToParseNetworkResponse.code,I.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(I.unableToLoadTokenError.code,I.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(I.signingKeyNotFoundInStorage.code,I.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},e.createAuthCodeRequiredError=function(){return new e(I.authCodeRequired.code,I.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(I.authCodeOrNativeAccountRequired.code,I.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(I.databaseUnavailable.code,I.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(I.unableToAcquireTokenFromNativePlatform.code,I.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(I.nativeHandshakeTimeout.code,I.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(I.nativeExtensionNotInstalled.code,I.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(I.nativeConnectionNotEstablished.code,I.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(I.nativeBrokerCalledBeforeInitialize.code,I.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(I.nativePromptNotSupported.code,I.nativePromptNotSupported.desc)},e}(z);/*! @azure/msal-browser v2.30.0 2022-10-10 */var cr={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},ra={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},qr;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(qr||(qr={}));var pt;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(pt||(pt={}));var _r;(function(t){t.GET="GET",t.POST="POST"})(_r||(_r={}));var ae;(function(t){t.AUTHORITY="authority",t.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",t.SESSION_STATE="session.state",t.REQUEST_STATE="request.state",t.NONCE_IDTOKEN="nonce.id_token",t.ORIGIN_URI="request.origin",t.RENEW_STATUS="token.renew.status",t.URL_HASH="urlHash",t.REQUEST_PARAMS="request.params",t.SCOPES="scopes",t.INTERACTION_STATUS_KEY="interaction.status",t.CCS_CREDENTIAL="ccs.credential",t.CORRELATION_ID="request.correlationId",t.NATIVE_REQUEST="request.native"})(ae||(ae={}));var Xo;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(Xo||(Xo={}));var ve;(function(t){t[t.acquireTokenRedirect=861]="acquireTokenRedirect",t[t.acquireTokenPopup=862]="acquireTokenPopup",t[t.ssoSilent=863]="ssoSilent",t[t.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",t[t.handleRedirectPromise=865]="handleRedirectPromise",t[t.acquireTokenByCode=866]="acquireTokenByCode",t[t.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",t[t.logout=961]="logout",t[t.logoutPopup=962]="logoutPopup"})(ve||(ve={}));var F;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(F||(F={}));var Np;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(Np||(Np={}));var Op={scopes:ts},yi="jwk",xp;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(xp||(xp={}));var kd="msal.db",XC=1,ZC=kd+".keys",At;(function(t){t[t.Default=0]="Default",t[t.AccessToken=1]="AccessToken",t[t.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",t[t.RefreshToken=3]="RefreshToken",t[t.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",t[t.Skip=5]="Skip"})(At||(At={}));/*! @azure/msal-browser v2.30.0 2022-10-10 */var kt={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},Wc=function(t){ot(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(kt.redirectUriNotSet.code,kt.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(kt.postLogoutUriNotSet.code,kt.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(r){return new e(kt.storageNotSupportedError.code,kt.storageNotSupportedError.desc+" Given Location: "+r)},e.createRedirectCallbacksNotSetError=function(){return new e(kt.noRedirectCallbacksSet.code,kt.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(kt.stubPcaInstanceCalled.code,kt.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(kt.inMemRedirectUnavailable.code,kt.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(kt.entropyNotProvided.code,kt.entropyNotProvided.desc)},e}(z);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Mp=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==pt.LocalStorage&&e!==pt.SessionStorage)throw Wc.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw Wc.createStorageNotSupportedError(e)},t.prototype.getItem=function(e){return this.windowStorage.getItem(e)},t.prototype.setItem=function(e,r){this.windowStorage.setItem(e,r)},t.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},t.prototype.getKeys=function(){return Object.keys(this.windowStorage)},t.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ad=function(){function t(){this.cache=new Map}return t.prototype.getItem=function(e){return this.cache.get(e)||null},t.prototype.setItem=function(e,r){this.cache.set(e,r)},t.prototype.removeItem=function(e){this.cache.delete(e)},t.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(r,n){e.push(n)}),e},t.prototype.containsKey=function(e){return this.cache.has(e)},t.prototype.clear=function(){this.cache.clear()},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ay=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(x.isEmpty(r))return null;try{var n=Wr.parseRequestState(e,r);return n.libraryState.meta}catch(o){throw D.createInvalidStateError(r,o)}},t.parseServerResponseFromHash=function(e){if(!e)return{};var r=new oe(e);return oe.getDeserializedHash(r.getHash())},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Rd=function(t){ot(e,t);function e(r,n,o,i){var a=t.call(this,r,o)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new Ad,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.cacheLocation),a.migrateCacheEntries(),a}return e.prototype.setupBrowserStorage=function(r){switch(r){case pt.LocalStorage:case pt.SessionStorage:try{return new Mp(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=pt.MemoryStorage,new Ad},e.prototype.setupTemporaryCacheStorage=function(r){switch(r){case pt.LocalStorage:case pt.SessionStorage:try{return new Mp(pt.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case pt.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=_.CACHE_PREFIX+"."+He.ID_TOKEN,o=_.CACHE_PREFIX+"."+He.CLIENT_INFO,i=_.CACHE_PREFIX+"."+He.ERROR,a=_.CACHE_PREFIX+"."+He.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),d=[s,c,l,u],h=[He.ID_TOKEN,He.CLIENT_INFO,He.ERROR,He.ERROR_DESC];h.forEach(function(f,m){return r.migrateCacheEntry(f,d[m])})},e.prototype.migrateCacheEntry=function(r,n){n&&this.setTemporaryCache(r,n,!0)},e.prototype.validateAndParseJson=function(r){try{var n=JSON.parse(r);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(r){return this.browserStorage.getItem(r)},e.prototype.setItem=function(r,n){this.browserStorage.setItem(r,n)},e.prototype.getAccount=function(r){var n=this.getItem(r);if(!n)return null;var o=this.validateAndParseJson(n);return!o||!tt.isAccountEntity(o)?null:or.toObject(new tt,o)},e.prototype.setAccount=function(r){this.logger.trace("BrowserCacheManager.setAccount called");var n=r.generateAccountKey();this.setItem(n,JSON.stringify(r))},e.prototype.getIdTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!ja.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),or.toObject(new ja,o))},e.prototype.setIdTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAccessTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Ba.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),or.toObject(new Ba,o))},e.prototype.setAccessTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getRefreshTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!jc.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),or.toObject(new jc,o))},e.prototype.setRefreshTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAppMetadata=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!bd.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),or.toObject(new bd,o))},e.prototype.setAppMetadata=function(r){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=r.generateAppMetadataKey();this.setItem(n,JSON.stringify(r))},e.prototype.getServerTelemetry=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Vc.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),or.toObject(new Vc,o))},e.prototype.setServerTelemetry=function(r,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(r,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(r){var n=this.internalStorage.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return o&&Id.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),or.toObject(new Id,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var r=this,n=this.internalStorage.getKeys();return n.filter(function(o){return r.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(r,n){this.internalStorage.setItem(Xo.WRAPPER_SKU,r),this.internalStorage.setItem(Xo.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(Xo.WRAPPER_SKU)||_.EMPTY_STRING,n=this.internalStorage.getItem(Xo.WRAPPER_VER)||_.EMPTY_STRING;return[r,n]},e.prototype.setAuthorityMetadata=function(r,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(r,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var r=this.generateCacheKey(He.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(r);if(!n){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(He.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},e.prototype.setActiveAccount=function(r){var n=this.generateCacheKey(He.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(He.ACTIVE_ACCOUNT);if(r){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:r.homeAccountId,localAccountId:r.localAccountId};this.browserStorage.setItem(n,JSON.stringify(i)),this.browserStorage.setItem(o,r.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(r){var n=this.getAllAccounts();return n.filter(function(o){return!(r.username&&r.username.toLowerCase()!==o.username.toLowerCase()||r.homeAccountId&&r.homeAccountId!==o.homeAccountId||r.localAccountId&&r.localAccountId!==o.localAccountId||r.tenantId&&r.tenantId!==o.tenantId||r.environment&&r.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(r,n){var o=this.getAllAccounts().filter(function(i){if(n){var a=i.idTokenClaims&&i.idTokenClaims.sid;return n===a}return r?r===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw D.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Rp.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),or.toObject(new Rp,o))},e.prototype.setThrottlingCache=function(r,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(r,JSON.stringify(n))},e.prototype.getTemporaryCache=function(r,n){var o=n?this.generateCacheKey(r):r;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var a=this.temporaryCacheStorage.getItem(o);if(!a){if(this.cacheConfig.cacheLocation===pt.LocalStorage){var s=this.browserStorage.getItem(o);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(r,n,o){var i=o?this.generateCacheKey(r):r;this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,n))},e.prototype.removeItem=function(r){return this.browserStorage.removeItem(r),this.temporaryCacheStorage.removeItem(r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(r)),!0},e.prototype.containsKey=function(r){return this.browserStorage.containsKey(r)||this.temporaryCacheStorage.containsKey(r)},e.prototype.getKeys=function(){return zh(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(r.browserStorage.containsKey(o)||r.temporaryCacheStorage.containsKey(o))&&(o.indexOf(_.CACHE_PREFIX)!==-1||o.indexOf(r.clientId)!==-1)&&r.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.setItemCookie=function(r,n,o){var i=encodeURIComponent(r)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(o){var a=this.getCookieExpirationTime(o);i+="expires="+a+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(r){for(var n=encodeURIComponent(r)+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var a=o[i];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return _.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var r=this,n=_.CACHE_PREFIX+"."+this.clientId,o=document.cookie.split(";");o.forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(n)===0){var a=i.split("=")[0];r.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(r){this.setItemCookie(r,_.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(r){var n=new Date,o=new Date(n.getTime()+r*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(r){var n=this.validateAndParseJson(r);return n?JSON.stringify(r):x.startsWith(r,_.CACHE_PREFIX)||x.startsWith(r,He.ADAL_ID_TOKEN)?r:_.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(r){var n=this.generateStateKey(r),o=this.getTemporaryCache(n);if(!o)return null;var i=this.generateAuthorityKey(o);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(r,n,o,i,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(r);this.setTemporaryCache(s,r,!1);var c=this.generateNonceKey(r);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(r);if(this.setTemporaryCache(l,o,!1),a){var u={credential:a.homeAccountId,type:Dt.HOME_ACCOUNT_ID};this.setTemporaryCache(ae.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!x.isEmpty(i)){var u={credential:i,type:Dt.UPN};this.setTemporaryCache(ae.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),x.isEmpty(r)||this.getKeys().forEach(function(o){o.indexOf(r)!==-1&&n.removeItem(o)}),r&&(this.removeItem(this.generateStateKey(r)),this.removeItem(this.generateNonceKey(r)),this.removeItem(this.generateAuthorityKey(r))),this.removeItem(this.generateCacheKey(ae.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ae.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ae.URL_HASH)),this.removeItem(this.generateCacheKey(ae.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ae.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ae.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(r){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),r){var n=this.generateStateKey(r),o=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||_.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(r){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(ae.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(!!i){var a=Ay.extractBrowserRequestState(n.cryptoImpl,i);a&&a.interactionType===r&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),n.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(r,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=n.base64Encode(JSON.stringify(r));this.setTemporaryCache(ae.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(ae.REQUEST_PARAMS,!0);if(!o)throw N.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw N.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ae.REQUEST_PARAMS)),x.isEmpty(i.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw N.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(ae.NATIVE_REQUEST,!0);if(!r)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(r);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(r){var n=this.getInteractionInProgress();return r?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var r=_.CACHE_PREFIX+"."+ae.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},e.prototype.setInteractionInProgress=function(r){var n=_.CACHE_PREFIX+"."+ae.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw N.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(He.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(He.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(He.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(He.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new kr(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(r,n){var o=n.generateCredentialKey();if(r!==o){var i=this.getItem(r);if(i)return this.removeItem(r),this.setItem(o,i),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),o;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return r},e}(or),eS=function(t,e){var r={cacheLocation:pt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new Rd(t,r,Fc,e)};/*! @azure/msal-browser v2.30.0 2022-10-10 */var ou="@azure/msal-browser",Ea="2.30.0";/*! @azure/msal-browser v2.30.0 2022-10-10 */var tS=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return S(this,void 0,void 0,function(){var n,o,i;return T(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:_r.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?N.createGetRequestFailedError(o,e):N.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=a.sent(),i.status=n.status,i)];case 5:throw a.sent(),N.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(e,r){return S(this,void 0,void 0,function(){var n,o,i,a;return T(this,function(s){switch(s.label){case 0:n=r&&r.body||_.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:_r.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?N.createPostRequestFailedError(i,e):N.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(a.body=s.sent(),a.status=o.status,a)];case 6:throw s.sent(),N.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},t.prototype.getFetchHeaders=function(e){var r=new Headers;if(!(e&&e.headers))return r;var n=e.headers;return Object.keys(n).forEach(function(o){r.append(o,n[o])}),r},t.prototype.getHeaderDict=function(e){var r={};return e.forEach(function(n,o){r[o]=n}),r},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var rS=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.sendRequestAsync(e,_r.GET,r)]})})},t.prototype.sendPostRequestAsync=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.sendRequestAsync(e,_r.POST,r)]})})},t.prototype.sendRequestAsync=function(e,r,n){var o=this;return new Promise(function(i,a){var s=new XMLHttpRequest;if(s.open(r,e,!0),o.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(r===_r.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:o.getHeaderDict(s),body:c,status:s.status};i(l)}catch{a(N.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?r===_r.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)):a(N.createNoNetworkConnectivityError())},r===_r.POST&&n&&n.body)s.send(n.body);else if(r===_r.GET)s.send();else throw N.createHttpMethodNotImplementedError(r)})},t.prototype.setXhrHeaders=function(e,r){if(r&&r.headers){var n=r.headers;Object.keys(n).forEach(function(o){e.setRequestHeader(o,n[o])})}},t.prototype.getHeaderDict=function(e){var r=e.getAllResponseHeaders(),n=r.trim().split(/[\r\n]+/),o={};return n.forEach(function(i){var a=i.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(o[s]=c)}),o},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Oe=function(){function t(){}return t.clearHash=function(e){e.location.hash=_.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,_.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},t.replaceHash=function(e){var r=e.split("#");r.shift(),window.location.hash=r.length>0?r.join("#"):_.EMPTY_STRING},t.isInIframe=function(){return window.parent!==window},t.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(cr.POPUP_NAME_PREFIX+".")===0},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new oe(window.location.href),r=e.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new tS:new rS},t.blockReloadInHiddenIframes=function(){var e=oe.hashContainsKnownProperties(window.location.hash);if(e&&t.isInIframe())throw N.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,r){var n=t.isInIframe();if(e===F.Redirect&&n&&!r)throw N.createRedirectInIframeError(n)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw N.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw N.createNonBrowserEnvironmentError()},t.blockNativeBrokerCalledBeforeInitialized=function(e,r){if(e&&!r)throw N.createNativeBrokerCalledBeforeInitialize()},t.detectIEOrEdge=function(){var e=window.navigator.userAgent,r=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=r>0||n>0,a=o>0;return i||a},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ry=function(){function t(e,r,n,o,i,a,s,c,l){this.config=e,this.browserStorage=r,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=o.clone(cr.MSAL_SKU,Ea,this.correlationId),this.performanceClient=s}return t.prototype.clearCacheOnLogout=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){switch(r.label){case 0:if(!e)return[3,5];tt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(tt.generateAccountCacheKey(e))];case 2:return r.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return r.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return r.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return r.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return r.sent(),[3,9];case 8:return r.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},t.prototype.initializeBaseRequest=function(e){return S(this,void 0,void 0,function(){var r,n,o,i;return T(this,function(a){switch(a.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,n=zh(e&&e.scopes||[]),o=$($({},e),{correlationId:this.correlationId,authority:r,scopes:n}),!o.authenticationScheme)o.authenticationScheme=le.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===le.SSH){if(!e.sshJwk)throw we.createMissingSshJwkError();if(!e.sshKid)throw we.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return e.claims&&!x.isEmpty(e.claims)?(i=o,[4,this.browserCrypto.hashString(e.claims)]):[3,2];case 1:i.requestedClaimsHash=a.sent(),a.label=2;case 2:return[2,o]}})})},t.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var r=e||this.config.auth.redirectUri||Oe.getCurrentUri();return oe.getAbsoluteUrl(r,Oe.getCurrentUri())},t.prototype.initializeServerTelemetryManager=function(e,r){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new YC(n,this.browserStorage)},t.prototype.getDiscoveredAuthority=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),r={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,Gc.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,r)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Gc.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ri=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(r){return S(this,void 0,void 0,function(){var n,o;return T(this,function(i){switch(i.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",r.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=$($({},r),{redirectUri:r.redirectUri,code:_.EMPTY_STRING,codeVerifier:n.verifier}),r.codeChallenge=n.challenge,r.codeChallengeMethod=_.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(r){this.logger.verbose("initializeLogoutRequest called",r==null?void 0:r.correlationId);var n=$({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},r);if(r)if(r.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(r.account){var o=this.getLogoutHintFromIdTokenClaims(r.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!r||r.postLogoutRedirectUri!==null?r&&r.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(r.postLogoutRedirectUri,Oe.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Oe.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(Oe.getCurrentUri(),Oe.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(r){var n=r.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new Ty(i)]}})})},e.prototype.getClientConfiguration=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return this.logger.verbose("getClientConfiguration called",this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=a.sent(),[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:this.config.system.loggerOptions.loggerCallback,piiLoggingEnabled:this.config.system.loggerOptions.piiLoggingEnabled,logLevel:this.config.system.loggerOptions.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:r,libraryInfo:{sku:cr.MSAL_SKU,version:Ea,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(r,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!r.state)throw N.createHashDoesNotContainStateError();var i=Ay.extractBrowserRequestState(this.browserCrypto,r.state);if(!i)throw N.createUnableToParseStateError();if(i.interactionType!==n)throw N.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),r.state},e.prototype.getDiscoveredAuthority=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s;return T(this,function(c){switch(c.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=this.performanceClient.startMeasurement(je.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),i={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},a=r||this.config.auth.authority,s=Kc.generateAuthority(a,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,Gc.createDiscoveredInstance(s,this.config.system.networkClient,this.browserStorage,i).then(function(l){return o.endMeasurement({success:!0}),l}).catch(function(l){throw o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l})];case 1:return[2,c.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return T(this,function(d){switch(d.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=Wr.setRequestState(this.browserCrypto,r&&r.state||_.EMPTY_STRING,i),c=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=$.apply(void 0,[$.apply(void 0,c.concat([d.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:Uc.FRAGMENT}]),l=r.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),x.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(Ry);/*! @azure/msal-browser v2.30.0 2022-10-10 */var qh=function(){function t(e,r,n,o){this.authModule=e,this.browserStorage=r,this.authCodeRequest=n,this.logger=o}return t.prototype.handleCodeResponseFromHash=function(e,r,n,o){return S(this,void 0,void 0,function(){var i,a,s;return T(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),x.isEmpty(e))throw N.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(i),!a)throw D.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof vo&&l.subError===I.userCancelledError.code?N.createUserCancelledError():l}return[2,this.handleCodeResponseFromServer(s,r,n,o)]})})},t.prototype.handleCodeResponseFromServer=function(e,r,n,o,i){return i===void 0&&(i=!0),S(this,void 0,void 0,function(){var a,s,c,l,u,d;return T(this,function(h){switch(h.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw D.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,o)]:[3,2];case 1:h.sent(),h.label=2;case 2:return i&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=h.sent(),this.browserStorage.cleanRequestByState(r),[2,d]}})})},t.prototype.updateTokenEndpointAuthority=function(e,r,n){return S(this,void 0,void 0,function(){var o,i;return T(this,function(a){switch(a.label){case 0:return o="https://"+e+"/"+r.tenant+"/",[4,Gc.createDiscoveredInstance(o,n,this.browserStorage,r.options)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},t.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(ae.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Up=function(t){ot(e,t);function e(r,n,o,i,a){var s=t.call(this,r,n,o,i)||this;return s.browserCrypto=a,s}return e.prototype.initiateAuthRequest=function(r,n){return S(this,void 0,void 0,function(){var o,i;return T(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),x.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ae.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ae.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),o={apiId:ve.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=n.onRedirectNavigate(r),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(r,o)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(r,o)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),N.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(r,n,o,i){return S(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return T(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),x.isEmpty(r))throw N.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw D.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(r,s)}catch(m){throw m instanceof vo&&m.subError===I.userCancelledError.code?N.createUserCancelledError():m}return l=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,o,i)]:[3,2];case 1:f.sent(),f.label=2;case 2:return c.nonce=u||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=f.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(qh);/*! @azure/msal-browser v2.30.0 2022-10-10 */var q;(function(t){t.INITIALIZE_START="msal:initializeStart",t.INITIALIZE_END="msal:initializeEnd",t.ACCOUNT_ADDED="msal:accountAdded",t.ACCOUNT_REMOVED="msal:accountRemoved",t.LOGIN_START="msal:loginStart",t.LOGIN_SUCCESS="msal:loginSuccess",t.LOGIN_FAILURE="msal:loginFailure",t.ACQUIRE_TOKEN_START="msal:acquireTokenStart",t.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",t.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",t.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",t.SSO_SILENT_START="msal:ssoSilentStart",t.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",t.SSO_SILENT_FAILURE="msal:ssoSilentFailure",t.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",t.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",t.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",t.HANDLE_REDIRECT_START="msal:handleRedirectStart",t.HANDLE_REDIRECT_END="msal:handleRedirectEnd",t.POPUP_OPENED="msal:popupOpened",t.LOGOUT_START="msal:logoutStart",t.LOGOUT_SUCCESS="msal:logoutSuccess",t.LOGOUT_FAILURE="msal:logoutFailure",t.LOGOUT_END="msal:logoutEnd"})(q||(q={}));/*! @azure/msal-browser v2.30.0 2022-10-10 */var mn;(function(t){t.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",t.USER_CANCEL="USER_CANCEL",t.NO_NETWORK="NO_NETWORK",t.TRANSIENT_ERROR="TRANSIENT_ERROR",t.PERSISTENT_ERROR="PERSISTENT_ERROR",t.DISABLED="DISABLED",t.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(mn||(mn={}));var Bi={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},Er=function(t){ot(e,t);function e(r,n,o){var i=t.call(this,r,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=o,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===mn.PERSISTENT_ERROR||this.ext.status===mn.DISABLED))return!0;switch(this.errorCode){case Bi.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,o){if(o&&o.status)switch(o.status){case mn.ACCOUNT_UNAVAILABLE:return lr.createNativeAccountUnavailableError();case mn.USER_INTERACTION_REQUIRED:return new lr(r,n);case mn.USER_CANCEL:return N.createUserCancelledError();case mn.NO_NETWORK:return N.createNoNetworkConnectivityError()}return new e(r,n,o)},e.createUserSwitchError=function(){return new e(Bi.userSwitch.code,Bi.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Bi.tokensNotFoundInCache.code,Bi.tokensNotFoundInCache.desc)},e}(z);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Py=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(je.SilentCacheClientAcquireToken,r.correlationId),o=this.initializeServerTelemetryManager(ve.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,r.authority,r.azureCloudOptions)];case 1:i=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i.acquireCachedToken(r)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof N&&s.errorCode===I.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof z&&s.errorCode||void 0,subErrorCode:s instanceof z&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new BC(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(r,n){return S(this,void 0,void 0,function(){var o;return T(this,function(i){switch(i.label){case 0:return o=[$({},r)],[4,this.initializeBaseRequest(r)];case 1:return[2,$.apply(void 0,[$.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var si=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d,h,f){var m=t.call(this,r,n,o,i,a,s,l,u,f)||this;return m.apiId=c,m.accountId=d,m.nativeMessageHandler=u,m.nativeStorageManager=h,m.silentCacheClient=new Py(r,m.nativeStorageManager,o,i,a,s,l,u,f),m}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(je.NativeInteractionClientAcquireToken,r.correlationId),o=Jt.nowSeconds(),[4,this.initializeNativeRequest(r)];case 1:i=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return a=u.sent(),n.endMeasurement({success:!0,isNativeBroker:!0,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:qr.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=u.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,i,o).then(function(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(r,n){return{authority:r.authority,correlationId:this.correlationId,scopes:Ct.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c;return T(this,function(l){switch(l.label){case 0:if(o=this.browserStorage.readAccountFromCacheWithNativeAccountId(r),!o)throw D.createNoAccountFoundError();i=o.getAccountInfo(),l.label=1;case 1:return l.trys.push([1,3,,4]),a=this.createSilentCacheRequest(n,i),[4,this.silentCacheClient.acquireToken(a)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c;return T(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(r)];case 1:n=l.sent(),o={method:qr.GetToken,request:n},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=l.sent(),this.validateNativeResponse(i),[3,5];case 4:if(a=l.sent(),a instanceof Er&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ae.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:ve.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(r.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return S(this,void 0,void 0,function(){var r,n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(r=this.browserStorage.getCachedNativeRequest(),!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ae.NATIVE_REQUEST)),n={method:qr.GetToken,request:r},o=Jt.nowSeconds(),c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(n)];case 2:return i=c.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,r,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=c.sent(),this.browserStorage.setInteractionInProgress(!1),s;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(r,n,o){return S(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,f,m,v,E,g,p,y,w,k,P,M,O,se=this;return T(this,function(B){switch(B.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),r.account.id!==n.accountId)throw Er.createUserSwitchError();return i=new kr(r.id_token||_.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(n.authority)];case 1:switch(a=B.sent(),s=a.getPreferredCache(),c=tt.generateHomeAccountId(r.client_info||_.EMPTY_STRING,Wt.Default,this.logger,this.browserCrypto,i),l=tt.createAccount(r.client_info,c,i,void 0,void 0,void 0,s,r.account.id),this.browserStorage.setAccount(l),u=r.scope?Ct.fromString(r.scope):Ct.fromString(n.scope),d=r.account.properties||{},h=d.UID||i.claims.oid||i.claims.sub||_.EMPTY_STRING,f=d.TenantId||i.claims.tid||_.EMPTY_STRING,v=le.BEARER,E=n.tokenType,E){case le.POP:return[3,2]}return[3,4];case 2:if(v=le.POP,r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),m=r.shr,[3,5];if(g=new vi(this.browserCrypto),p={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw D.createKeyIdMissingError();return[4,g.signPopToken(r.access_token,n.keyId,p)];case 3:return m=B.sent(),[3,5];case 4:m=r.access_token,B.label=5;case 5:return y=this.getMATSFromResponse(r),w={authority:a.canonicalAuthority,uniqueId:h,tenantId:f,scopes:u.asArray(),account:l.getAccountInfo(),idToken:r.id_token,idTokenClaims:i.claims,accessToken:m,fromCache:y?this.isResponseFromCache(y):!1,expiresOn:new Date(Number(o+r.expires_in)*1e3),tokenType:v,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},k=ja.createIdTokenEntity(c,n.authority,r.id_token||_.EMPTY_STRING,n.clientId,i.claims.tid||_.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(k),P=v===le.POP?_.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,M=o+P,O=Ba.createAccessTokenEntity(c,n.authority,m,n.clientId,f,u.printScopes(),M,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(O),this.browserStorage.removeAccountContext(l).catch(function(_t){se.logger.error("Error occurred while removing account context from browser storage. "+_t)}),[2,w]}})})},e.prototype.validateNativeResponse=function(r){if(r.hasOwnProperty("access_token")&&r.hasOwnProperty("id_token")&&r.hasOwnProperty("client_info")&&r.hasOwnProperty("account")&&r.hasOwnProperty("scope")&&r.hasOwnProperty("expires_in"))return r;throw Er.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(r){if(r.properties.MATS)try{return JSON.parse(r.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(r){return typeof r.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!r.is_cached},e.prototype.initializeNativeRequest=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f=this;return T(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,o=new oe(n),o.validateAsUri(),i=r.scopes,a=IC(r,["scopes"]),s=new Ct(i||[]),s.appendScopes(ts),c=function(){switch(f.apiId){case ve.ssoSilent:case ve.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),mt.NONE}if(!r.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case mt.NONE:case mt.CONSENT:case mt.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+r.prompt+" is not compatible with native flow"),N.createNativePromptParameterNotSupportedError()}},l=$($({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(r.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:r.authenticationScheme,windowTitleSubstring:document.title,extraParameters:$($($({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:ra.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==le.POP?[3,2]:(u={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},d=new vi(this.browserCrypto),[4,d.generateCnf(u)]);case 1:h=m.sent(),l.reqCnf=h.reqCnfHash,l.keyId=h.kid,m.label=2;case 2:return[2,l]}})})},e}(Ry);/*! @azure/msal-browser v2.30.0 2022-10-10 */var ro=function(){function t(e,r,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this)}return t.prototype.sendMessage=function(e){return S(this,void 0,void 0,function(){var r,n=this;return T(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:ra.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(r)),this.messageChannel.port1.postMessage(r),[2,new Promise(function(i,a){n.resolvers.set(r.responseId,{resolve:i,reject:a})})]})})},t.createProvider=function(e,r){return S(this,void 0,void 0,function(){var n,o;return T(this,function(i){switch(i.label){case 0:e.trace("NativeMessageHandler - createProvider called."),i.label=1;case 1:return i.trys.push([1,3,,5]),n=new t(e,r,ra.PREFERRED_EXTENSION_ID),[4,n.sendHandshakeRequest()];case 2:return i.sent(),[2,n];case 3:return i.sent(),o=new t(e,r),[4,o.sendHandshakeRequest()];case 4:return i.sent(),[2,o];case 5:return[2]}})})},t.prototype.sendHandshakeRequest=function(){return S(this,void 0,void 0,function(){var e,r=this;return T(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:ra.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:qr.HandshakeRequest}},this.messageChannel.port1.onmessage=function(o){r.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){r.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),r.timeoutId=window.setTimeout(function(){window.removeEventListener("message",r.windowListener,!1),r.messageChannel.port1.close(),r.messageChannel.port2.close(),i(N.createNativeHandshakeTimeoutError()),r.handshakeResolvers.delete(e.responseId)},r.handshakeTimeoutMs)})]})})},t.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var r=e.data;if(!(!r.channel||r.channel!==ra.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===qr.HandshakeRequest){this.logger.verbose(r.extensionId?"Extension with id: "+r.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(r.responseId);n&&n.reject(N.createNativeExtensionNotInstalledError())}}},t.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var r=e.data,n=this.resolvers.get(r.responseId),o=this.handshakeResolvers.get(r.responseId);try{var i=r.body.method;if(i===qr.Response){if(!n)return;var a=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(Er.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Er.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw z.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===qr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),o.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):o&&o.reject(s)}},t.isNativeAvailable=function(e,r,n,o){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case le.BEARER:case le.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var nS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h=this;return T(this,function(f){switch(f.label){case 0:return[4,this.initializeAuthorizationRequest(r,F.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(ve.acquireTokenRedirect),i=function(m){m.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state))},f.label=2;case 2:return f.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new Up(s,this.browserStorage,a,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl($($({},n),{nativeBroker:ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return l=f.sent(),u=this.getRedirectStartPage(r.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:r.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw d=f.sent(),d instanceof z&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,f,m;return T(this,function(v){switch(v.label){case 0:n=this.initializeServerTelemetryManager(ve.handleRedirectPromise),v.label=1;case 1:if(v.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(r||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(F.Redirect),[2,null];i=void 0;try{a=oe.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,F.Redirect),this.logger.verbose("State extracted from hash")}catch(E){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+E),this.browserStorage.cleanRequestByInteractionType(F.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(ae.ORIGIN_URI,!0)||_.EMPTY_STRING,c=oe.removeHashFromUrl(s),l=oe.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,i,n)]):[3,3];case 2:return u=v.sent(),s.indexOf("#")>-1&&Oe.replaceHash(s),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,i,n)]);case 4:return!Oe.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ae.URL_HASH,o,!0),d={apiId:ve.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(f=Oe.getHomepage(),this.browserStorage.setTemporaryCache(ae.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,d)]):[3,6]):[3,9];case 5:return h=v.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:h=v.sent(),v.label=8;case 8:if(!h)return[2,this.handleHash(o,i,n)];v.label=9;case 9:return[2,null];case 10:throw m=v.sent(),m instanceof z&&m.setCorrelationId(this.correlationId),n.cacheFailedRequest(m),this.browserStorage.cleanRequestByInteractionType(F.Redirect),m;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=oe.hashContainsKnownProperties(r);if(n)return Oe.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var o=this.browserStorage.getTemporaryCache(ae.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ae.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(r,n,o){return S(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h=this;return T(this,function(f){switch(f.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=oe.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return s=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,i.correlationId),c=Wr.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken($($({},i),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw N.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(o,l)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),zc.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new Up(u,this.browserStorage,i,this.logger,this.browserCrypto),[4,d.handleCodeResponseFromHash(r,n,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),o=this.initializeServerTelemetryManager(ve.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(q.LOGOUT_START,F.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:ve.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(o,r&&r.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,F.Redirect,n),r&&typeof r.onRedirectNavigate=="function"?(c=r.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw l=u.sent(),l instanceof z&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,F.Redirect,null,l),this.eventHandler.emitEvent(q.LOGOUT_END,F.Redirect),l;case 11:return this.eventHandler.emitEvent(q.LOGOUT_END,F.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return oe.getAbsoluteUrl(n,Oe.getCurrentUri())},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var oS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||ts,r.authority||this.config.auth.authority),o=r.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(r,n,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",n,o);return this.acquireTokenPopupAsync(r,n,o,i)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(r){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(r),o=this.generateLogoutPopupName(n),i=r&&r.authority,a=r&&r.mainWindowRedirectUri,s=(r==null?void 0:r.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,o,s,i,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,c,a)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(r,n,o,i){return S(this,void 0,void 0,function(){var a,s,c,l,u,d,h,f,m,v,E,g,p,y,w,k,P,M=this;return T(this,function(O){switch(O.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(ve.acquireTokenPopup),[4,this.initializeAuthorizationRequest(r,F.Popup)];case 1:s=O.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||_.EMPTY_STRING,s.account||null),O.label=2;case 2:return O.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=O.sent(),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=O.sent(),this.logger.verbose("Auth code client created"),u=ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(je.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl($($({},s),{nativeBroker:u}))];case 5:return h=O.sent(),f=new qh(l,this.browserStorage,c,this.logger),m={popup:i,popupName:n,popupWindowAttributes:o},v=this.initiateAuthRequest(h,m),this.eventHandler.emitEvent(q.POPUP_OPENED,F.Popup,{popupWindow:v},null),[4,this.monitorPopupForHash(v)];case 6:if(E=O.sent(),g=oe.getDeserializedHash(E),p=this.validateAndExtractStateFromHash(g,F.Popup,s.correlationId),zc.removeThrottle(this.browserStorage,this.config.auth.clientId,c),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return y=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,s.correlationId),w=Wr.parseRequestState(this.browserCrypto,p).userRequestState,[2,y.acquireToken($($({},s),{state:w,prompt:void 0})).finally(function(){M.browserStorage.cleanRequestByState(p)})]}return[4,f.handleCodeResponseFromHash(E,p,l.authority,this.networkClient)];case 7:return k=O.sent(),[2,k];case 8:throw P=O.sent(),i&&i.close(),P instanceof z&&P.setCorrelationId(this.correlationId),a.cacheFailedRequest(P),this.browserStorage.cleanRequestByState(s.state),P;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(r,n,o,i,a,s){return S(this,void 0,void 0,function(){var c,l,u,d,h,f,m;return T(this,function(v){switch(v.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(q.LOGOUT_START,F.Popup,r),c=this.initializeServerTelemetryManager(ve.logoutPopup),v.label=1;case 1:return v.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return v.sent(),[4,this.createAuthCodeClient(c,i)];case 3:return l=v.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(r),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,F.Popup,r),d=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(q.POPUP_OPENED,F.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return v.sent(),s?(h={apiId:ve.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=oe.getAbsoluteUrl(s,Oe.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw m=v.sent(),a&&a.close(),m instanceof z&&m.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,F.Popup,null,m),this.eventHandler.emitEvent(q.LOGOUT_END,F.Popup),c.cacheFailedRequest(m),m;case 6:return this.eventHandler.emitEvent(q.LOGOUT_END,F.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(r,n){if(x.isEmpty(r))throw this.logger.error("Navigate url is empty"),N.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+r),this.openPopup(r,n)},e.prototype.monitorPopupForHash=function(r){var n=this;return new Promise(function(o,i){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(r.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),i(N.createUserCancelledError());return}var l=_.EMPTY_STRING,u=_.EMPTY_STRING;try{l=r.location.href,u=r.location.hash}catch{}x.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,u?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(r),oe.hashContainsKnownProperties(u)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(u)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),i(N.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(N.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(r){var n=this;return new Promise(function(o){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){r.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(i),o());var a=_.EMPTY_STRING;try{a=r.location.href}catch{}x.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),n.cleanPopup(r),o())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(r,n){try{var o=void 0;if(n.popup?(o=n.popup,this.logger.verbosePii("Navigating popup window to: "+r),o.location.assign(r)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+r),o=this.openSizedPopup(r,n.popupName,n.popupWindowAttributes)),!o)throw N.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),N.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(r,n,o){var i,a,s,c,l=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=(i=o.popupSize)===null||i===void 0?void 0:i.width,m=(a=o.popupSize)===null||a===void 0?void 0:a.height,v=(s=o.popupPosition)===null||s===void 0?void 0:s.top,E=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!f||f<0||f>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=cr.POPUP_WIDTH),(!m||m<0||m>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),m=cr.POPUP_HEIGHT),(!v||v<0||v>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),v=Math.max(0,h/2-cr.POPUP_HEIGHT/2+u)),(!E||E<0||E>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),E=Math.max(0,d/2-cr.POPUP_WIDTH/2+l)),window.open(r,n,"width="+f+", height="+m+", top="+v+", left="+E+", scrollbars=yes")},e.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(F.Popup),this.currentWindow&&this.currentWindow.close(),r.preventDefault()},e.prototype.cleanPopup=function(r){r&&r.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(r,n){return cr.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(r){var n=r.account&&r.account.homeAccountId;return cr.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var iS=function(){function t(){}return t.prototype.navigateInternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.prototype.navigateExternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.defaultNavigateWindow=function(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},r.timeout)})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var aS=6e4,Pd=6e3,sS=3e4,cS=2e3;function lS(t,e){var r=t.auth,n=t.cache,o=t.system,i=t.telemetry,a={clientId:_.EMPTY_STRING,authority:""+_.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:_.EMPTY_STRING,authorityMetadata:_.EMPTY_STRING,redirectUri:_.EMPTY_STRING,postLogoutRedirectUri:_.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:qc.AAD,azureCloudOptions:{azureCloudInstance:$a.None,tenant:_.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:pt.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:xe.Info,piiLoggingEnabled:!1},l=$($({},Sy),{loggerOptions:c,networkClient:e?Oe.getBrowserNetworkClient():VC,navigationClient:new iS,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||aS,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Pd,navigateFrameWait:e&&Oe.detectIEOrEdge()?500:0,redirectNavigationTimeout:sS,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||cS,pollIntervalMilliseconds:cr.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u={application:{appName:_.EMPTY_STRING,appVersion:_.EMPTY_STRING}},d={auth:$($({},a),r),cache:$($({},s),n),system:$($({},l),o),telemetry:$($({},u),i)};return d}/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ny=function(t){ot(e,t);function e(r,n,o,i,a){var s=t.call(this,r,n,o,i)||this;return s.navigateFrameWait=a.navigateFrameWait,s.pollIntervalMilliseconds=a.pollIntervalMilliseconds,s}return e.prototype.initiateAuthRequest=function(r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(o.label){case 0:if(x.isEmpty(r))throw this.logger.info("Navigate url is empty"),N.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(r)]:[3,2];case 1:return n=o.sent(),[3,3];case 2:n=this.loadFrameSync(r),o.label=3;case 3:return[2,n]}})})},e.prototype.monitorIframeForHash=function(r,n){var o=this;return new Promise(function(i,a){n<Pd&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Pd+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){o.removeHiddenIframe(r),clearInterval(l),a(N.createMonitorIframeTimeoutError());return}var u=_.EMPTY_STRING,d=r.contentWindow;try{u=d?d.location.href:_.EMPTY_STRING}catch{}if(!x.isEmpty(u)){var h=d?d.location.hash:_.EMPTY_STRING;if(oe.hashContainsKnownProperties(h)){o.removeHiddenIframe(r),clearInterval(l),i(h);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(r){var n=this;return new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=r,o(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(r){var n=this.createHiddenIframe();return n.src=r,n},e.prototype.createHiddenIframe=function(){var r=document.createElement("iframe");return r.style.visibility="hidden",r.style.position="absolute",r.style.width=r.style.height="0",r.style.border="0",r.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(r),r},e.prototype.removeHiddenIframe=function(r){document.body===r.parentNode&&document.body.removeChild(r)},e}(qh);/*! @azure/msal-browser v2.30.0 2022-10-10 */var uS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d,h){var f=t.call(this,r,n,o,i,a,s,l,d,h)||this;return f.apiId=c,f.nativeStorage=u,f}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(je.SilentIframeClientAcquireToken,r.correlationId),x.isEmpty(r.loginHint)&&x.isEmpty(r.sid)&&(!r.account||x.isEmpty(r.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),r.prompt&&r.prompt!==mt.NONE&&r.prompt!==mt.NO_SESSION)throw n.endMeasurement({success:!1}),N.createSilentPromptValueError(r.prompt);return[4,this.initializeAuthorizationRequest($($({},r),{prompt:r.prompt||mt.NONE}),F.Silent)];case 1:o=c.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||_.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(a,o).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof z&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof z&&s.errorCode||void 0,subErrorCode:s instanceof z&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u,d,h,f=this;return T(this,function(m){switch(m.label){case 0:return[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=m.sent(),[4,r.getAuthCodeUrl($($({},n),{nativeBroker:ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=m.sent(),a=new Ny(r,this.browserStorage,o,this.logger,this.config.system),[4,a.initiateAuthRequest(i)];case 3:return s=m.sent(),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=m.sent(),l=oe.getDeserializedHash(c),u=this.validateAndExtractStateFromHash(l,F.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return d=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),h=Wr.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken($($({},n),{state:h,prompt:n.prompt||mt.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return[2,a.handleCodeResponseFromHash(c,u,r.authority,this.networkClient)]}})})},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var dS=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return T(this,function(l){switch(l.label){case 0:return o=[$({},r)],[4,this.initializeBaseRequest(r)];case 1:return n=$.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(je.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(ve.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),[2,s.acquireTokenByRefreshToken(n).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof z&&u.setCorrelationId(c.correlationId),a.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new by(i,this.performanceClient)]}})})},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var hS=function(){function t(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return t.prototype.addEventCallback=function(e){if(typeof window<"u"){var r=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(r,e),this.logger.verbose("Event callback registered with id: "+r),r}return null},t.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},t.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},t.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},t.prototype.emitEvent=function(e,r,n,o){var i=this;if(typeof window<"u"){var a={eventType:e,interactionType:r||null,payload:n||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){i.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},t.prototype.handleAccountCacheChange=function(e){try{var r=e.newValue||e.oldValue;if(!r)return;var n=JSON.parse(r);if(typeof n!="object"||!tt.isAccountEntity(n))return;var o=or.toObject(new tt,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(q.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(q.ACCOUNT_REMOVED,void 0,i))}catch{return}},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var ut=function(){function t(){}return t.decimalToHex=function(e){for(var r=e.toString(16);r.length<2;)r="0"+r;return r},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Oy=function(){function t(e){this.cryptoObj=e}return t.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,ut.decimalToHex(e[0])+ut.decimalToHex(e[1])+ut.decimalToHex(e[2])+ut.decimalToHex(e[3])+"-"+ut.decimalToHex(e[4])+ut.decimalToHex(e[5])+"-"+ut.decimalToHex(e[6])+ut.decimalToHex(e[7])+"-"+ut.decimalToHex(e[8])+ut.decimalToHex(e[9])+"-"+ut.decimalToHex(e[10])+ut.decimalToHex(e[11])+ut.decimalToHex(e[12])+ut.decimalToHex(e[13])+ut.decimalToHex(e[14])+ut.decimalToHex(e[15])}catch{for(var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=_.EMPTY_STRING,a=0;a<36;a++)r[a]!=="-"&&r[a]!=="4"&&(o=Math.random()*16|0),r[a]==="x"?i+=n[o]:r[a]==="y"?(o&=3,o|=8,i+=n[o]):i+=r[a];return i}},t.prototype.isGuid=function(e){var r=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return r.test(e)},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Yr=function(){function t(){}return t.stringToUtf8Arr=function(e){for(var r,n=0,o=e.length,i=0;i<o;i++)r=e.charCodeAt(i),n+=r<128?1:r<2048?2:r<65536?3:r<2097152?4:r<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)r=e.charCodeAt(c),r<128?a[s++]=r:r<2048?(a[s++]=192+(r>>>6),a[s++]=128+(r&63)):r<65536?(a[s++]=224+(r>>>12),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<2097152?(a[s++]=240+(r>>>18),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<67108864?(a[s++]=248+(r>>>24),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):(a[s++]=252+(r>>>30),a[s++]=128+(r>>>24&63),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63));return a},t.stringToArrayBuffer=function(e){for(var r=new ArrayBuffer(e.length),n=new Uint8Array(r),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return r},t.utf8ArrToString=function(e){for(var r=_.EMPTY_STRING,n=void 0,o=e.length,i=0;i<o;i++)n=e[i],r+=String.fromCharCode(n>251&&n<254&&i+5<o?(n-252)*1073741824+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>247&&n<252&&i+4<o?(n-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>239&&n<248&&i+3<o?(n-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>223&&n<240&&i+2<o?(n-224<<12)+(e[++i]-128<<6)+e[++i]-128:n>191&&n<224&&i+1<o?(n-192<<6)+e[++i]-128:n);return r},t.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var xy=function(){function t(){}return t.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,_.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},t.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,_.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},t.prototype.encode=function(e){var r=Yr.stringToUtf8Arr(e);return this.base64EncArr(r)},t.prototype.base64EncArr=function(e){for(var r=(3-e.length%3)%3,n=_.EMPTY_STRING,o=void 0,i=e.length,a=0,s=0;s<i;s++)o=s%3,a|=e[s]<<(16>>>o&24),(o===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return r===0?n:n.substring(0,n.length-r)+(r===1?"=":"==")},t.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var fS=function(){function t(){}return t.prototype.decode=function(e){var r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(r);return Yr.utf8ArrToString(n)},t.prototype.base64DecToArr=function(e,r){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,_.EMPTY_STRING),o=n.length,i=r?Math.ceil((o*3+1>>>2)/r)*r:o*3+1>>>2,a=new Uint8Array(i),s=void 0,c=void 0,l=0,u=0,d=0;d<o;d++)if(c=d&3,l|=this.b64ToUint6(n.charCodeAt(d))<<18-6*c,c===3||o-d===1){for(s=0;s<3&&u<i;s++,u++)a[u]=l>>>(16>>>s&24)&255;l=0}return a},t.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var pS=32,gS=function(){function t(e){this.base64Encode=new xy,this.cryptoObj=e}return t.prototype.generateCodes=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return r=n.sent(),[2,{verifier:e,challenge:r}]}})})},t.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(pS);this.cryptoObj.getRandomValues(e);var r=this.base64Encode.urlEncodeArr(e);return r}catch(n){throw N.createPkceNotGeneratedError(n)}},t.prototype.generateCodeChallengeFromVerifier=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return r=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(r))];case 2:throw n=o.sent(),N.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var mS=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.crypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,window.crypto.subtle.exportKey(yi,e)]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){return T(this,function(i){return[2,window.crypto.subtle.importKey(yi,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.crypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,window.crypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var vS=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(zh(e))},t.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,window.msrCrypto.subtle.exportKey(yi,e)]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){return T(this,function(i){return[2,window.msrCrypto.subtle.importKey(yi,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.msrCrypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,window.msrCrypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var yS=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,r,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(yi,e);i.addEventListener("complete",function(a){var s=a.target.result,c=Yr.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,_.EMPTY_STRING).replace(/\n/g,_.EMPTY_STRING).replace(/\t/g,_.EMPTY_STRING).split(" ").join(_.EMPTY_STRING).replace("\0",_.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){o(l)}}),i.addEventListener("error",function(a){o(a)})})]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){var i,a;return T(this,function(s){return i=Yr.getSortedObjectString(e),a=Yr.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(yi,a,r,n,o);u.addEventListener("complete",function(d){c(d.target.result)}),u.addEventListener("error",function(d){l(d)})})]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,r,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(e,r.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var _S="RSASSA-PKCS1-v1_5",Lp="SHA-256",wS=2048,ES=new Uint8Array([1,0,1]),My=function(){function t(e,r){var n,o;if(this.logger=e,this.cryptoOptions=r,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new mS;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new yS;else if(this.hasMsrCrypto()&&((n=this.cryptoOptions)===null||n===void 0?void 0:n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new vS;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),N.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Wc.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:_S,hash:Lp,modulusLength:wS,publicExponent:ES}}return t.prototype.hasIECrypto=function(){return"msCrypto"in window},t.prototype.hasBrowserCrypto=function(){return"crypto"in window},t.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},t.prototype.sha256Digest=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=Yr.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Lp},r)]})})},t.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},t.prototype.generateKeyPair=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,r)]})})},t.prototype.exportJwk=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,this.subtleCrypto.exportKey(e)]})})},t.prototype.importJwk=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,r,n)]})})},t.prototype.sign=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var CS=function(){function t(){this.dbName=kd,this.version=XC,this.tableName=ZC,this.dbOpen=!1}return t.prototype.open=function(){return S(this,void 0,void 0,function(){var e=this;return T(this,function(r){return[2,new Promise(function(n,o){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),i.addEventListener("error",function(){return o(N.createDatabaseUnavailableError())})})]})})},t.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},t.prototype.validateDbIsOpen=function(){return S(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},t.prototype.getItem=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.get(e);c.addEventListener("success",function(l){var u=l;r.closeConnection(),o(u.target.result)}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.setItem=function(e,r){return S(this,void 0,void 0,function(){var n=this;return T(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(i,a){if(!n.db)return a(N.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(r,e);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},t.prototype.removeItem=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readwrite"),s=a.objectStore(r.tableName),c=s.delete(e);c.addEventListener("success",function(){r.closeConnection(),o()}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.getKeys=function(){return S(this,void 0,void 0,function(){var e=this;return T(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(n,o){if(!e.db)return o(N.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),a=i.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},t.prototype.containsKey=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.count(e);c.addEventListener("success",function(l){var u=l;r.closeConnection(),o(u.target.result===1)}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.deleteDatabase=function(){return S(this,void 0,void 0,function(){return T(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var o=window.indexedDB.deleteDatabase(kd);o.addEventListener("success",function(){return r(!0)}),o.addEventListener("blocked",function(){return r(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Dp=function(){function t(e,r){this.inMemoryCache=new Ad,this.indexedDBCache=new CS,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof N&&e.errorCode===I.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},t.prototype.getItem=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.getItem(e),r)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},t.prototype.setItem=function(e,r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,r)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},t.prototype.removeItem=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},t.prototype.getKeys=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,e]}})})},t.prototype.containsKey=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.containsKey(e),r)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},t.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},t.prototype.clearPersistent=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return r=n.sent(),this.handleDatabaseAccessError(r),[2,!1];case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Yc;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(Yc||(Yc={}));var SS=function(){function t(e){this.logger=e,this.asymmetricKeys=new Dp(this.logger,Yc.asymmetricKeys),this.symmetricKeys=new Dp(this.logger,Yc.symmetricKeys)}return t.prototype.clear=function(){return S(this,void 0,void 0,function(){var e;return T(this,function(r){switch(r.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return r.sent(),[2,!0];case 3:return e=r.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var TS=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new My(this.logger,n),this.b64Encode=new xy,this.b64Decode=new fS,this.guidGenerator=new Oy(this.browserCrypto),this.pkceGenerator=new gS(this.browserCrypto),this.cache=new SS(this.logger),this.performanceClient=r}return t.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},t.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},t.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},t.prototype.generatePkceCodes=function(){return S(this,void 0,void 0,function(){return T(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){var r;return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return T(this,function(d){switch(d.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(je.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=Yr.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},t.prototype.removeTokenBindingKey=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return r=n.sent(),[2,!r]}})})},t.prototype.clearKeystore=function(){return S(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},t.prototype.signJwt=function(e,r,n){var o;return S(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,f,m,v,E,g;return T(this,function(p){switch(p.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=p.sent(),!a)throw N.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=p.sent(),c=Yr.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),u=WC.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),f=d+"."+h,m=Yr.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,m)];case 3:return v=p.sent(),E=this.b64Encode.urlEncodeArr(new Uint8Array(v)),g=f+"."+E,i&&i.endMeasurement({success:!0}),[2,g]}})})},t.prototype.hashString=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return r=o.sent(),n=new Uint8Array(r),[2,this.b64Encode.urlEncodeArr(n)]}})})},t.POP_KEY_USAGES=["sign","verify"],t.EXTRACTABLE=!0,t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var bS=function(){function t(e,r,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=n,this.cryptoObj=o}return t.prototype.loadExternalTokens=function(e,r,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw N.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new kr(r.id_token,this.cryptoObj),i,a;if(e.account){var s=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);i=new Qs(s,this.loadIdToken(o,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment))}else if(e.authority){var c=Kc.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new Kc(c,this.config.system.networkClient,this.storage,l),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new Qs(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else if(r.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(o,a.hostnameAndPort,r.client_info,a.authorityType);i=new Qs(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else throw N.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw N.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,a)},t.prototype.loadAccount=function(e,r,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=tt.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw N.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?tt.createAccount(n,a,e,void 0,void 0,void 0,r):tt.createGenericAccount(a,e,void 0,void 0,void 0,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadIdToken=function(e,r,n,o){var i=ja.createIdTokenEntity(r,n,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadAccessToken=function(e,r,n,o,i,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in)throw N.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw N.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new Ct(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=Ba.createAccessTokenEntity(n,o,r.access_token,this.config.auth.clientId,i,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadRefreshToken=function(e,r,n,o){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=jc.createRefreshTokenEntity(n,o,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.generateAuthenticationResult=function(e,r,n,o){var i,a,s,c=_.EMPTY_STRING,l=[],u=null,d;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=Ct.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||_.EMPTY_STRING,f=(r==null?void 0:r.claims.tid)||_.EMPTY_STRING;return{authority:o?o.canonicalAuthority:_.EMPTY_STRING,uniqueId:h,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:r?r.rawToken:_.EMPTY_STRING,idTokenClaims:r?r.claims:{},accessToken:c,fromCache:!0,expiresOn:u,correlationId:e.correlationId||_.EMPTY_STRING,requestId:_.EMPTY_STRING,extExpiresOn:d,familyId:_.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||_.EMPTY_STRING,state:_.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||_.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var IS=function(t){ot(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}(Ty);/*! @azure/msal-browser v2.30.0 2022-10-10 */var kS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,l,u,d)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw N.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(r,F.Silent)];case 1:n=u.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=$($({},n),{code:r.code}),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new IS(a),this.logger.verbose("Auth code client created"),c=new Ny(s,this.browserStorage,i,this.logger,this.config.system),[2,c.handleCodeResponseFromServer({code:r.code,msgraph_host:r.msGraphHost,cloud_graph_host_name:r.cloudGraphHostName,cloud_instance_host_name:r.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=u.sent(),l instanceof z&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e}(Ri);/*! @azure/msal-browser v2.30.0 2022-10-10 */var AS=function(){function t(e,r){this.correlationId=r,this.measureName="msal.measure."+e+"."+this.correlationId,this.startMark="msal.start."+e+"."+this.correlationId,this.endMark="msal.end."+e+"."+this.correlationId}return t.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},t.prototype.startMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},t.prototype.endMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},t.prototype.flushMeasurement=function(){if(t.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var r=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),r}}catch{}return null},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var RS=function(t){ot(e,t);function e(r,n,o,i,a,s,c){var l=t.call(this,r,n,o,i,a,s)||this;return l.browserCrypto=new My(l.logger,c),l.guidGenerator=new Oy(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(r,n){return new AS(r,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var r;return((r=document.visibilityState)===null||r===void 0?void 0:r.toString())||null},e.prototype.startMeasurement=function(r,n){var o=this,i=this.getPageVisibility(),a=t.prototype.startMeasurement.call(this,r,n);return $($({},a),{endMeasurement:function(s){return a.endMeasurement($({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s))}})},e}(ky);/*! @azure/msal-browser v2.30.0 2022-10-10 */var PS=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=lS(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new jh(this.config.system.loggerOptions,ou,Ea),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new RS(this.config.auth.clientId,this.config.auth.authority,this.logger,ou,Ea,this.config.telemetry.application,this.config.system.cryptoOptions):new JC(this.config.auth.clientId,this.config.auth.authority,this.logger,ou,Ea,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new TS(this.logger,this.performanceClient,this.config.system.cryptoOptions):Fc,this.eventHandler=new hS(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Rd(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):eS(this.config.auth.clientId,this.logger);var r={cacheLocation:pt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new Rd(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new bS(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.initialize=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(q.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,ro.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return e.nativeExtensionProvider=n.sent(),[3,4];case 3:return r=n.sent(),this.logger.verbose(r),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(q.INITIALIZE_END),[2]}})})},t.prototype.handleRedirectPromise=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s,c,l,u=this;return T(this,function(d){return this.logger.verbose("handleRedirectPromise called"),Oe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),r=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||_.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(q.HANDLE_REDIRECT_START,F.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(ae.CORRELATION_ID,!0)||_.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(h){if(h){var f=r.length<u.getAllAccounts().length;f?(u.eventHandler.emitEvent(q.LOGIN_SUCCESS,F.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,F.Redirect),h}).catch(function(h){throw r.length>0?u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,h):u.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Redirect,null,h),u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,F.Redirect),h}),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},t.prototype.acquireTokenRedirect=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return T(this,function(c){return r=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Redirect,e):this.eventHandler.emitEvent(q.LOGIN_START,F.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(l){if(l instanceof Er&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(l instanceof lr){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(e.correlationId),o=a.acquireToken(e)),[2,o.catch(function(l){throw n?s.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,l):s.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Redirect,null,l),l})]})})},t.prototype.acquireTokenPopup=function(e){var r=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(je.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(F.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Popup,e):this.eventHandler.emitEvent(q.LOGIN_START,F.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,ve.acquireTokenPopup).then(function(c){return r.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){if(c instanceof Er&&c.isFatal()){r.nativeExtensionProvider=void 0;var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof lr){r.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}throw r.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=i.length<r.getAllAccounts().length;return l?r.eventHandler.emitEvent(q.LOGIN_SUCCESS,F.Popup,c):r.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Popup,c),o.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){return i.length>0?r.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Popup,null,c):r.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),o.flushMeasurement(),Promise.reject(c)})},t.prototype.ssoSilent=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return T(this,function(c){return r=this.getRequestCorrelationId(e),n=$($({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(F.Silent),o=this.performanceClient.startMeasurement(je.SsoSilent,r),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(q.SSO_SILENT_START,F.Silent,n),this.canUseNative(n)?i=this.acquireTokenNative(n,ve.ssoSilent).catch(function(l){if(l instanceof Er&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(n.correlationId);return u.acquireToken(n)}throw l}):(a=this.createSilentIframeClient(n.correlationId),i=a.acquireToken(n)),[2,i.then(function(l){return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS,F.Silent,l),o.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,requestId:l.requestId}),o.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE,F.Silent,null,l),o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),o.flushMeasurement(),l})]})})},t.prototype.acquireTokenByCode=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a=this;return T(this,function(s){r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_START,F.Silent,e),n=this.performanceClient.startMeasurement(je.AcquireTokenByCode,e.correlationId);try{if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.endMeasurement({success:!0}),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync($($({},e),{correlationId:r})).then(function(c){return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS,F.Silent,c),a.hybridAuthCodeResponses.delete(o),n.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),n.flushMeasurement(),c}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ve.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof Er&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw N.createUnableToAcquireTokenFromNativePlatformError()}else throw N.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c instanceof z&&c.errorCode||void 0,subErrorCode:c instanceof z&&c.subError||void 0,success:!1}),c}return[2]})})},t.prototype.acquireTokenByCodeAsync=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),r=this.createSilentAuthCodeClient(e.correlationId),[4,r.acquireToken(e)];case 1:return n=o.sent(),[2,n]}})})},t.prototype.acquireTokenFromCache=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){switch(n.cacheLookupPolicy){case At.Default:case At.AccessToken:case At.AccessTokenAndRefreshToken:return[2,e.acquireToken(r)];default:throw D.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenByRefreshToken=function(e,r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(r.cacheLookupPolicy){case At.Default:case At.AccessTokenAndRefreshToken:case At.RefreshToken:case At.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),[2,n.acquireToken(e)];default:throw D.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenBySilentIframe=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=this.createSilentIframeClient(e.correlationId),[2,r.acquireToken(e)]})})},t.prototype.logout=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),[2,this.logoutRedirect($({correlationId:r},e))]})})},t.prototype.logoutRedirect=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){return r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.createRedirectClient(r),[2,n.logout(e)]})})},t.prototype.logoutPopup=function(e){try{var r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(F.Popup);var n=this.createPopupClient(r);return n.logout(e)}catch(o){return Promise.reject(o)}},t.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},t.prototype.getAccountByUsername=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),r.filter(function(n){return n.username.toLowerCase()===e.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},t.prototype.getAccountByHomeId=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),r.filter(function(n){return n.homeAccountId===e})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},t.prototype.getAccountByLocalId=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),r.filter(function(n){return n.localAccountId===e})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},t.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},t.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},t.prototype.preflightBrowserEnvironmentCheck=function(e,r){if(r===void 0&&(r=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Oe.blockNonBrowserEnvironment(this.isBrowserEnvironment),Oe.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Oe.blockReloadInHiddenIframes(),Oe.blockAcquireTokenInPopups(),Oe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===F.Redirect&&this.config.cache.cacheLocation===pt.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Wc.createInMemoryRedirectUnavailableError();(e===F.Redirect||e===F.Popup)&&this.preflightInteractiveRequest(r)},t.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Oe.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},t.prototype.acquireTokenNative=function(e,r,n){return S(this,void 0,void 0,function(){var o;return T(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw N.createNativeConnectionNotEstablishedError();return o=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},t.prototype.canUseNative=function(e,r){if(this.logger.trace("canUseNative called"),!ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case mt.NONE:case mt.CONSENT:case mt.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},t.prototype.getNativeAccountId=function(e){var r=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return r&&r.nativeAccountId||""},t.prototype.createPopupClient=function(e){return new oS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createRedirectClient=function(e){return new nS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentIframeClient=function(e){return new uS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentCacheClient=function(e){return new Py(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new dS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new kS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ve.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},t.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},t.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},t.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},t.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},t.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},t.prototype.getTokenCache=function(){return this.tokenCache},t.prototype.getLogger=function(){return this.logger},t.prototype.setLogger=function(e){this.logger=e},t.prototype.initializeWrapperLibrary=function(e,r){this.browserStorage.setWrapperMetadata(e,r)},t.prototype.setNavigationClient=function(e){this.navigationClient=e},t.prototype.getConfiguration=function(){return this.config},t.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():_.EMPTY_STRING},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var NS=function(t){ot(e,t);function e(r){var n=t.call(this,r)||this;return n.activeSilentTokenRequests=new Map,n}return e.prototype.loginRedirect=function(r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect($({correlationId:n},r||Op))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup($({correlationId:n},r||Op))},e.prototype.acquireTokenSilent=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return T(this,function(d){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(je.AcquireTokenSilent,n),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.verbose("acquireTokenSilent called",n),i=r.account||this.getActiveAccount(),!i)throw N.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:r.authority||_.EMPTY_STRING,scopes:r.scopes,homeAccountIdentifier:i.homeAccountId,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),l=this.acquireTokenSilentAsync($($({},r),{correlationId:n}),i).then(function(h){return u.activeSilentTokenRequests.delete(s),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,requestId:h.requestId}),o.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),o.flushMeasurement(),h}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.endMeasurement({success:!0}),o.discardMeasurement(),[2,c])})})},e.prototype.acquireTokenSilentAsync=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u=this;return T(this,function(d){switch(d.label){case 0:return this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Silent,r),o=this.performanceClient.startMeasurement(je.AcquireTokenSilentAsync,r.correlationId),ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=$($({},r),{account:n}),i=this.acquireTokenNative(a,ve.acquireTokenSilent_silentFlow).catch(function(h){return S(u,void 0,void 0,function(){var f;return T(this,function(m){if(h instanceof Er&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(r.correlationId),[2,f.acquireToken(r)];throw h})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(r.correlationId),[4,s.initializeSilentRequest(r,n)];case 2:c=d.sent(),l=$($({},r),{cacheLookupPolicy:r.cacheLookupPolicy||At.Default}),i=this.acquireTokenFromCache(s,c,l).catch(function(h){if(l.cacheLookupPolicy===At.AccessToken)throw h;return Oe.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START,F.Silent,c),u.acquireTokenByRefreshToken(c,l).catch(function(f){var m=f instanceof vo,v=f instanceof lr,E=f.errorCode===cr.INVALID_GRANT_ERROR;if((!m||!E||v||l.cacheLookupPolicy===At.AccessTokenAndRefreshToken||l.cacheLookupPolicy===At.RefreshToken)&&l.cacheLookupPolicy!==At.Skip)throw f;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),u.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,i.then(function(h){return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Silent,h),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Silent,null,h),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})]}})})},e}(PS);const Hp="redirect";var Fp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class OS extends NS{constructor(e,r){super(r),this.tenantId=e}get account(){return this.getAllAccounts().find(n=>{var o;return((o=n.idTokenClaims)===null||o===void 0?void 0:o.aud)===this.clientId})}get hasValidClaims(){var e;const r=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(r){const n=Math.ceil(Date.now()/1e3);return r.exp>n}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}login(e,r=Hp,n=!0){var o;return Fp(this,void 0,void 0,function*(){const i=(e==null?void 0:e.loginHint)||((o=this.account)===null||o===void 0?void 0:o.username),a=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:i,scopes:a});if(i&&n){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${r}]`),r){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},r=Hp,n=!0){return Fp(this,void 0,void 0,function*(){const o=yield this.account;if(n&&o){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:o},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${r}]`),r){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const xS=(t,e=window.location.origin)=>{t=t.match(/^http[s]?/)?t:e+t;const{origin:r,pathname:n}=new URL(t);return r+n.replace(/([^:]\/)\/+/g,"$1")},MS=(t,e,r,n,o)=>{const i=Object.assign({clientId:e,redirectUri:xS(r||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${t}`},n==null?void 0:n.auth),a=Object.assign({cacheLocation:"localStorage"},n==null?void 0:n.cache),s=n==null?void 0:n.system;return new(o||OS)(t,{auth:i,cache:a,system:s})};class Uy extends jh{constructor(e){super({logLevel:e,loggerCallback:(...r)=>this.loggerCallback(...r)}),this.getLogType=r=>{switch(r){case xe.Error:return"error";case xe.Warning:return"warn";case xe.Info:return"info";case xe.Verbose:default:return"debug"}}}loggerCallback(e,r,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",r)}}var iu=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const US="default";class LS{constructor(e){this._config=e,this._clients={}}get defaultClient(){return this.getClient(US)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}getClient(e){return this._clients[e]||(this._clients[e]=this.createClient(e)),this._clients[e]}createClient(e){const r=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!r)throw Error("Could not find any config");const n=MS(r.tenantId,r.clientId,r.redirectUri,r.config);return n.setLogger(new Uy(0)),n}handleRedirect(){return iu(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const r=this.defaultClient,n=r.getLogger(),{requestOrigin:o}=r;yield r.handleRedirectPromise(),o===e?(n.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(o||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return iu(this,void 0,void 0,function*(){const r=yield this.acquireToken(e);return r?r.accessToken:void 0})}login(){return iu(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var DS=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Ly={name:"auth",configure:t=>{var e;const r=new bC;return!((e=t==null?void 0:t.auth)===null||e===void 0)&&e.defaultConfig&&r.configureDefault(t.auth.defaultConfig),r},initialize:({config:t})=>DS(void 0,void 0,void 0,function*(){const e=new LS(t);return t.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},HS=(t,e)=>({module:Ly,configure:r=>{r.configureDefault(t),(e==null?void 0:e.requiresAuth)!==void 0&&(r.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e!=null?e:{};n&&Object.entries(n).forEach(([o,i])=>r.configureClient(o,i))}});var Dy=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const FS=t=>{var e;return{id:t.id,isChildType:t.isChildType,parentTypeIds:(e=t.parentTypeIds)!==null&&e!==void 0?e:[]}},Hy=t=>{var e,r,n,o;return{id:t.id,externalId:(e=t.externalId)!==null&&e!==void 0?e:void 0,isActive:t.isActive,isDeleted:t.isDeleted,created:new Date(t.created),source:(r=t.source)!==null&&r!==void 0?r:void 0,title:(n=t.title)!==null&&n!==void 0?n:void 0,type:FS(t.type),value:(o=t.value)!==null&&o!==void 0?o:{}}},$S=t=>Dy(void 0,void 0,void 0,function*(){const e=yield t.json();return Hy(e)}),zS=t=>Dy(void 0,void 0,void 0,function*(){return(yield t.json()).map(Hy)});var Ps=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class jS{constructor(){this.defaultExpireTime=1*60*1e3}_createContextClientGet(e){return Ps(this,void 0,void 0,function*(){const r=yield e.createContextClient("json$");return{fn:n=>r.get("v1",n,{selector:$S})}})}_createContextClientQuery(e){return Ps(this,void 0,void 0,function*(){const r=yield e.createContextClient("json$");return{fn:n=>r.query("v1",{query:n},{selector:zS})}})}_getServiceProvider(e){var r;return Ps(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){return Ps(this,void 0,void 0,function*(){const r=yield this._getServiceProvider(e),n={getContext:{query:{client:yield this._createContextClientGet(r),key:({id:o})=>o,expire:this.defaultExpireTime}},queryContext:{client:yield this._createContextClientQuery(r),key:o=>JSON.stringify(o),expire:this.defaultExpireTime}};return this.processConfig(n)})}processConfig(e){return e}}var $p;(function(t){t.IDLE="idle",t.ACTIVE="active",t.FAILED="failed",t.CANCELED="canceled"})($p||($p={}));const BS=t=>e=>e.pipe(Qn(t)),qS=t=>t.pipe(yt(e=>e.value));var Ns,KS=new Uint8Array(16);function GS(){if(!Ns&&(Ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ns(KS)}const VS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Fy(t){return typeof t=="string"&&VS.test(t)}var Qe=[];for(var au=0;au<256;++au)Qe.push((au+256).toString(16).substr(1));function $y(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Qe[t[e+0]]+Qe[t[e+1]]+Qe[t[e+2]]+Qe[t[e+3]]+"-"+Qe[t[e+4]]+Qe[t[e+5]]+"-"+Qe[t[e+6]]+Qe[t[e+7]]+"-"+Qe[t[e+8]]+Qe[t[e+9]]+"-"+Qe[t[e+10]]+Qe[t[e+11]]+Qe[t[e+12]]+Qe[t[e+13]]+Qe[t[e+14]]+Qe[t[e+15]]).toLowerCase();if(!Fy(r))throw TypeError("Stringified UUID is invalid");return r}function WS(t){if(!Fy(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function YS(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var QS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",JS="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function XS(t,e,r){function n(o,i,a,s){if(typeof o=="string"&&(o=YS(o)),typeof i=="string"&&(i=WS(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+o.length);if(c.set(i),c.set(o,i.length),c=r(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return $y(c)}try{n.name=t}catch{}return n.DNS=QS,n.URL=JS,n}function zy(t,e,r){t=t||{};var n=t.random||(t.rng||GS)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return $y(n)}function ZS(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function su(t,e){return t<<e|t>>>32-e}function eT(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=t[c*64+u*4]<<24|t[c*64+u*4+1]<<16|t[c*64+u*4+2]<<8|t[c*64+u*4+3];s[c]=l}s[a-1][14]=(t.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(t.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),f=0;f<16;++f)h[f]=s[d][f];for(var m=16;m<80;++m)h[m]=su(h[m-3]^h[m-8]^h[m-14]^h[m-16],1);for(var v=r[0],E=r[1],g=r[2],p=r[3],y=r[4],w=0;w<80;++w){var k=Math.floor(w/20),P=su(v,5)+ZS(k,E,g,p)+y+e[k]+h[w]>>>0;y=p,p=g,g=su(E,30)>>>0,E=v,v=P}r[0]=r[0]+v>>>0,r[1]=r[1]+E>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+p>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var tT=XS("v5",80,eT);const rT=tT;class Nd extends Error{constructor(e,r,n){super(r),this.type=e,this.cause=n}}const _i=(...t)=>Ai(e=>t.includes(e.type));var dt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},nT=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},vr,rr;class jy extends be{constructor(e,r){super(n=>dt(this,rr,"f").subscribe(n)),this.__initial=r,vr.set(this,new Gr),rr.set(this,void 0),nT(this,rr,new gl(r),"f"),dt(this,vr,"f").pipe(Fh(e,r),gy()).subscribe(dt(this,rr,"f"))}get action$(){return dt(this,vr,"f").asObservable()}get value(){return dt(this,rr,"f").value}get closed(){return dt(this,rr,"f").closed||dt(this,vr,"f").closed}next(e){dt(this,vr,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(_i(e)):this.action$,o=r||e;return n.pipe(mo(i=>br(new Promise((a,s)=>{try{a(o(i,this.value))}catch(c){s(c)}})).pipe(rn(a=>(console.warn("unhandled effect",a),po)))),Ai(i=>!!i),Oc(Nc)).subscribe(dt(this,vr,"f"))}addEpic(e){const r=e(this.action$,this);if(!r)throw new TypeError(`addEpic: one of the provided effects "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return r.pipe(rn(n=>(console.trace("unhandled exception, epic closed!",n),po)),Oc(Nc)).subscribe(dt(this,vr,"f"))}reset(){dt(this,rr,"f").next(this.__initial)}unsubscribe(){dt(this,vr,"f").unsubscribe(),dt(this,rr,"f").unsubscribe()}complete(){dt(this,vr,"f").complete(),dt(this,rr,"f").complete()}asObservable(){return dt(this,rr,"f").asObservable()}}vr=new WeakMap,rr=new WeakMap;class Od extends Error{constructor(e,r,n){super(n!=null?n:r.message),this.action=e,this.cause=r}}const By=t=>(e,r)=>new be(n=>{const{meta:{controller:o,transaction:i}}=e;if(o.signal.aborted)return n.next({type:"cancel",payload:{transaction:i,reason:`request [${i}] was aborted!`}}),n.complete();if(n.add(t.pipe(_i("cancel")).subscribe(a=>{a.payload.transaction===i&&(o.signal.aborted||o.abort(),n.complete())})),n.add(vd(o.signal,"abort").subscribe(()=>{n.next({type:"cancel",payload:{transaction:i,reason:`request [${i}] was aborted!`}}),n.complete()})),r)return r(n)}),oT=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>{const n=By(e);return e.pipe(_i("failure"),oC(r),Qn(([o,i])=>{var a,s;const{request:c}=o.meta,{transaction:l}=c.meta,u=i[l];if(!u)return po;const d=(s=(a=u.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,h={type:"retry",payload:o.meta.request},f=Object.assign({},t,c.meta.retry);return n(c,m=>{if(d>=f.count){const E=f.count?"maximum retries executed!":o.payload.message;return m.next({type:"error",payload:new Od(o,o.payload.cause,E),meta:{request:c}}),m.complete()}return(typeof f.delay=="function"?br(f.delay(o.payload.cause)):WE(f.delay)).pipe(yt(()=>h),rn(E=>ml({type:"error",payload:new Od(h,E,"failed to resolve delay"),meta:{request:c}}))).subscribe(m)})}))}),iT=t=>e=>{const r=By(e);return e.pipe(_i("request","retry"),mo(n=>{const o=n.type==="request"?n:n.payload;return r(o,i=>{br(t(o.payload,o.meta.controller.signal)).pipe(yt(a=>({type:"success",payload:a,meta:{request:o}})),rn(a=>ml({type:"failure",payload:new Od(n,a,`failed to execute request for transaction ${o.meta.transaction}`),meta:{request:o}}))).subscribe(i)})}))},qy=()=>Ai(t=>t.status==="complete"),aT=()=>(t,e)=>{switch(e.type){case"request":{const{transaction:r,task:n,ref:o}=e.meta;return Object.assign({},t,{[r]:{transaction:r,task:n,ref:o,created:Date.now()}})}case"retry":{const{transaction:r}=e.payload.meta,n=Object.assign({},t[r]);if(n)return n.retry=n.retry?[...n.retry,Date.now()]:[],Object.assign({},t,{[r]:n});break}case"failure":{const{transaction:r}=e.meta.request.meta,n=Object.assign({},t[r]);if(n)return n.errors=n.errors?[...n.errors,e.payload]:[],Object.assign({},t,{[r]:n});break}case"cancel":{const{transaction:r,reason:n}=e.payload,o=t[r];if(o){o.task.error(new Nd("abort","request was canceled",new Error(n)));const i=Object.assign({},t);return delete i[r],i}break}case"error":{const{transaction:r}=e.meta.request.meta,n=t[r];if(n){n.task.error(new Nd("error","failed to execute request",e.payload));const o=Object.assign({},t);return delete o[r],o}break}case"success":{const{request:r}=e.meta,{transaction:n,ref:o}=r.meta,i=t[n];if(i){const a={status:"complete",transaction:n,ref:o,value:e.payload,args:r.payload,created:i.created,completed:Date.now()};i.task.next(a),i.task.complete();const s=Object.assign({},t);return delete s[n],s}break}}return t};var sT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},We=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},zp=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},Je,Ao;class jp extends be{constructor(e,r){super(o=>We(this,Je,"f").subscribe(o)),Je.set(this,void 0),Ao.set(this,void 0),zp(this,Je,new jy(aT(),{}),"f"),zp(this,Ao,new an(()=>We(this,Je,"f").complete()),"f"),We(this,Ao,"f").add(We(this,Je,"f").addEpic(iT(e)));const n=Object.assign({count:0,delay:0},r==null?void 0:r.retry);We(this,Ao,"f").add(We(this,Je,"f").addEpic(oT(n)))}get action$(){return We(this,Je,"f").action$}get closed(){return We(this,Je,"f").closed}get success$(){return this.action$.pipe(_i("success"),yt(({payload:e})=>e))}get error$(){return this.action$.pipe(_i("error"),yt(({payload:e})=>new Nd("error","failed to execute request",e)))}next(e,r){return this._next(e,r).meta}nextAsync(e,r){return sT(this,void 0,void 0,function*(){return go(this.next(e,r).task.pipe(qy()))})}getTaskByTransaction(e){const r=We(this,Je,"f").value[e];return r&&r.task}getTaskByRef(e){const r=Object.values(We(this,Je,"f").value).find(n=>n.ref===e);return r&&r.task}cancel(e,r){if(e&&We(this,Je,"f").value[e])r!=null||(r=`[${e}]: transaction canceled`),We(this,Je,"f").next({type:"cancel",payload:{transaction:e,reason:r}});else for(const n of Object.keys(We(this,Je,"f").value))this.cancel(n,`[${e}]: all transactions canceled`)}on(e,r){return We(this,Je,"f").addEffect(e,n=>{r(n,this)})}complete(){We(this,Ao,"f").unsubscribe()}asObservable(){return We(this,Je,"f").asObservable()}_next(e,r){const n=Object.assign({transaction:zy(),controller:new AbortController,task:new Zv},r!=null?r:{}),o={type:"request",payload:e,meta:n};return We(this,Je,"f").next(o),o}}Je=new WeakMap,Ao=new WeakMap;const cT=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)},lT=()=>(t,e)=>{var r,n,o,i,a;const{type:s,payload:c}=e;switch(s){case"set":{const{key:l,value:u}=c,d=t.data[l],h=Object.assign(Object.assign(Object.assign({},d),u),{created:(r=d==null?void 0:d.created)!==null&&r!==void 0?r:Date.now(),updated:Date.now(),updates:((n=d==null?void 0:d.updates)!==null&&n!==void 0?n:-1)+1}),f=Object.assign(Object.assign({},t.data),{[l]:h});return Object.assign(Object.assign({},t),{data:f,lastTransaction:h.transaction})}case"clear":{const l=Object.assign({},t.data);return delete l[c.key],Object.assign(Object.assign({},t),{data:l})}case"invalidate":{const{key:l}=c,u=t.data[l];if(u){const d=Object.assign(Object.assign({},t.data),{[l]:Object.assign(Object.assign({},u),{updated:void 0})});return Object.assign(Object.assign({},t),{data:d})}break}case"reset":return{data:(o=c.data)!==null&&o!==void 0?o:{}};case"trim":{const l=(i=c.sort)!==null&&i!==void 0?i:cT,d=Object.entries(t.data).sort((f,m)=>l(f[1],m[1])).filter(([f,m])=>!c.validate||c.validate(m)).slice(0,(a=c.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).reduce((f,[m,v])=>Object.assign(f,{[m]:v}),{});return Object.keys(d).length===Object.keys(t.data).length?t:{lastTransaction:t.lastTransaction&&Object.keys(d).includes(t.lastTransaction)?t.lastTransaction:Object.values(d)[0].transaction,data:d}}}return t},uT=t=>{const e=t.lastTransaction,r=Object.values(t.data);return e?r.find(n=>n.transaction===e):r.sort((n,o)=>{var i,a;return((i=n.updated)!==null&&i!==void 0?i:0)-((a=o.updated)!==null&&a!==void 0?a:0)}).pop()};class Bp extends jy{get data$(){return this.pipe(yt(e=>e.data))}get latest(){return uT(this.value)}constructor(e){const{trimming:r,initial:n}=e;super(lT(),{data:n!=null?n:{}}),r&&this.addEffect("set",()=>this.trim(r))}setItem(e,r){this.next({type:"set",payload:{key:e,value:r}})}getItem(e){return this.value.data[e]}invalidate(e){this.next({type:"invalidate",payload:{key:e}})}trim(e){this.next({type:"trim",payload:e})}}var me=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Io=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},dT=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r},Kn,nr,Ur,Ro,Po,Js,xd;const hT=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()};class Kt extends be{constructor(e){var r,n;super(i=>me(this,Ur,"f").pipe(yt(({data:a})=>a)).subscribe(i)),Kn.set(this,new an),nr.set(this,void 0),Ur.set(this,void 0),Ro.set(this,new Gr),Po.set(this,void 0),Js.set(this,void 0),xd.set(this,zy()),Io(this,Po,i=>rT(e.key(i),me(this,xd,"f")),"f"),Io(this,Js,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:hT(e==null?void 0:e.expire),"f"),e.client instanceof jp?Io(this,nr,e.client,"f"):(Io(this,nr,new jp(e.client.fn,e.client.options),"f"),me(this,Kn,"f").add(()=>me(this,nr,"f").complete())),e.cache instanceof Bp?Io(this,Ur,e.cache,"f"):(Io(this,Ur,new Bp(e.cache||{}),"f"),me(this,Kn,"f").add(()=>me(this,Ur,"f").complete()));const o=(n=e.queueOperator)!==null&&n!==void 0?n:BS;me(this,Kn,"f").add(()=>me(this,Ro,"f").complete()),me(this,Kn,"f").add(me(this,Ro,"f").pipe(o(({args:i,options:a})=>new be(s=>{const{task:c,transaction:l}=me(this,nr,"f").next(i,a);s.add(c.pipe(rn(()=>po)).subscribe(s)),s.add(()=>{me(this,nr,"f").cancel(l)})})),qy(),yy(()=>!me(this,nr,"f").closed)).subscribe(i=>{const{args:a,value:s,transaction:c,ref:l}=i,u=l!=null?l:me(this,Po,"f").call(this,a);me(this,Ur,"f").setItem(u,{value:s,args:a,transaction:c})}))}get client(){return me(this,nr,"f")}get state$(){return me(this,Ur,"f")}next(e,r){me(this,Ro,"f").next({args:e,options:r})}query(e,r){var n;const o=me(this,Po,"f").call(this,e);return(n=me(this,nr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}queryAsync(e,r){const n=r||{},{awaitResolve:o}=n,i=dT(n,["awaitResolve"]);return(o?xc:go)(this._query(e,i))}complete(){me(this,Kn,"f").unsubscribe()}_query(e,r){var n;const o=me(this,Po,"f").call(this,e);return(n=me(this,nr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}_createTask(e,r,n){var o;const i=new Zv,a=me(this,Ur,"f").getItem(e);if(a){const{value:l,args:u,created:d,updated:h,updates:f,transaction:m}=a,v={status:"cache",value:l,args:u,created:d,updated:h,updates:f,transaction:m};i.next(v)}const s=((o=n==null?void 0:n.cache)===null||o===void 0?void 0:o.validate)||me(this,Js,"f");return a&&s(a,r)?i.complete():me(this,Ro,"f").next({args:r,options:{ref:e,task:i}}),i.asObservable()}}Kn=new WeakMap,nr=new WeakMap,Ur=new WeakMap,Ro=new WeakMap,Po=new WeakMap,Js=new WeakMap,xd=new WeakMap;Kt.extractQueryValue=qS;var dn=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},qp=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},na,Lr;class fT extends be{constructor(e){super(r=>dn(this,Lr,"f").subscribe(r)),na.set(this,void 0),Lr.set(this,void 0),qp(this,na,new Kt(e.query),"f"),qp(this,Lr,new gl(e.initial),"f")}get currentContext(){return dn(this,Lr,"f").value}get currentContext$(){return dn(this,Lr,"f").asObservable()}get client(){return dn(this,na,"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(rn(()=>po)).subscribe(r=>dn(this,Lr,"f").next(r)):e!==dn(this,Lr,"f").value&&dn(this,Lr,"f").next(e)}resolveContext(e){return dn(this,na,"f").query({id:e}).pipe(yt(r=>r.value))}}na=new WeakMap,Lr=new WeakMap;var qi=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},ht=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Dr,Xs,oa,No,Zs,ia;class pT{constructor(e){Dr.set(this,void 0),Xs.set(this,void 0),oa.set(this,void 0),No.set(this,new an),Zs.set(this,void 0),ia.set(this,void 0);const{config:r,event:n,parentContext:o}=e;qi(this,Zs,r.contextType,"f"),qi(this,ia,r.contextFilter,"f"),qi(this,Dr,new fT(r.getContext),"f"),qi(this,Xs,new Kt(r.queryContext),"f"),n&&(qi(this,oa,n,"f"),ht(this,No,"f").add(ht(this,Dr,"f").currentContext$.pipe(vy()).subscribe(([i,a])=>{n.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:i,next:a}})})),ht(this,No,"f").add(n.addEventListener("onCurrentContextChanged",i=>{i.source!==this&&(this.currentContext=i.detail.next)}))),o&&ht(this,No,"f").add(o.contextClient.currentContext$.subscribe(i=>this.currentContext=i))}get contextClient(){return ht(this,Dr,"f")}get queryClient(){return ht(this,Xs,"f")}queryContext(e){const r=this.queryClient.query({search:e,filter:{type:ht(this,Zs,"f")}}).pipe(yt(n=>n.value));return ht(this,ia,"f")?r.pipe(yt(ht(this,ia,"f"))):r}queryContextAsync(e){return xc(this.queryContext(e))}get currentContext$(){return ht(this,Dr,"f").currentContext$}get currentContext(){return ht(this,Dr,"f").currentContext}set currentContext(e){ht(this,oa,"f")?ht(this,oa,"f").dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}}).then(r=>{r.canceled||ht(this,Dr,"f").setCurrentContext(e)}):ht(this,Dr,"f").setCurrentContext(e)}dispose(){ht(this,No,"f").unsubscribe()}}Dr=new WeakMap,Xs=new WeakMap,oa=new WeakMap,No=new WeakMap,Zs=new WeakMap,ia=new WeakMap;var gT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const mT="context",vT={name:mT,configure:()=>new jS,initialize:t=>gT(void 0,void 0,void 0,function*(){var e;const r=yield t.config.createConfig(t),n=t.hasModule("event")?yield t.requireInstance("event"):void 0,o=(e=t.ref)===null||e===void 0?void 0:e.context;return new pT({config:r,event:n,parentContext:o})}),dispose:t=>{t.instance.dispose()}},yT="modulepreload",_T=function(t){return"/"+t},Kp={},wT=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=_T(i),i in Kp)return;Kp[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const d=o[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":yT,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((u,d)=>{l.addEventListener("load",u),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},ET=(t,e)=>JSON.stringify(t)===JSON.stringify(e);var Os=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},ft=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Oo,aa,sa,xo,hn;class CT extends be{constructor(e){super(o=>this.current$.subscribe(o)),Oo.set(this,void 0),aa.set(this,void 0),sa.set(this,void 0),xo.set(this,void 0),hn.set(this,new an);const{event:r,config:n}=e;Os(this,xo,new gl(void 0),"f"),Os(this,Oo,new Kt(n.getApp),"f"),Os(this,aa,new Kt(n.getApps),"f"),Os(this,sa,new Kt(n.getConfig),"f"),ft(this,hn,"f").add(ft(this,Oo,"f").complete),ft(this,hn,"f").add(ft(this,aa,"f").complete),ft(this,hn,"f").add(ft(this,sa,"f").complete),ft(this,hn,"f").add(this.current$.pipe(vy(),yy(()=>!!r)).subscribe(([o,i])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:i}})}))}get current(){return ft(this,xo,"f").value}get current$(){return ft(this,xo,"f").pipe(gy(ET))}getApp(e){return Kt.extractQueryValue(ft(this,Oo,"f").query({appKey:e}).pipe(rn(r=>{throw Error("failed to load manifest",{cause:r})})))}getAllApps(){return Kt.extractQueryValue(ft(this,aa,"f").query())}getAppConfig(e,r){return Kt.extractQueryValue(ft(this,sa,"f").query({appKey:e,tag:r}).pipe(rn(n=>{throw Error("failed to load config",{cause:n})})))}setCurrentApp(e){return new Promise((r,n)=>{const o=ft(this,Oo,"f").query({appKey:e});ft(this,hn,"f").add(Kt.extractQueryValue(o).subscribe({next:i=>ft(this,xo,"f").next(i),error:n,complete:r}))})}loadApp(e){const r=this.getApp(e).pipe(Qn(o=>go(br(wT(()=>import(o.entry),[])).pipe(yt(i=>({manifest:o,module:i})))))),n=this.getAppConfig(e).pipe(yt(o=>({config:o})));return YE(r,n).pipe(Fh((o,i)=>Object.assign({},o,i),{}),Ai(o=>["manifest","module","config"].every(i=>!!o[i])),my(()=>"failed to load application"))}dispose(){ft(this,hn,"f").unsubscribe()}}Oo=new WeakMap,aa=new WeakMap,sa=new WeakMap,xo=new WeakMap,hn=new WeakMap;var ST=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Md="app",TT={name:Md,configure:()=>new bT,initialize:t=>ST(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new CT({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var Gp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class bT{constructor(){this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return Gp(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(Md))return r.createClient(Md);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){return Gp(this,void 0,void 0,function*(){const r=yield this._createHttpClient(e),n={getApp:{client:{fn:({appKey:o})=>r.json$(`/api/apps/${o}`)},key:({appKey:o})=>o},getApps:{client:{fn:()=>r.json$("/api/apps")},key:()=>"apps"},getConfig:{client:{fn:({appKey:o,tag:i})=>r.json$(`/api/apps/${o}/config${i?`?tag=${i}`:""}`)},key:o=>JSON.stringify(o)}};return this.processConfig(n)})}processConfig(e){return e}}var Vp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class IT{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Vp(this,void 0,void 0,function*(){if(!this.clientKey)throw Error("no http client for service discovery is provided!");return e.createClient(this.clientKey)})}createClient(e){return Vp(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var cu=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class kT{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveService(e){return cu(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return cu(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},r),{baseUri:n.uri,defaultScopes:n.defaultScopes}))})}configureClient(e,r){return cu(this,void 0,void 0,function*(){const{key:n,alias:o}=typeof e=="string"?{key:e,alias:e}:e,{uri:i,defaultScopes:a}=yield this.resolveService(n);r.addConfig(Ey(o,{baseUri:i,defaultScopes:a}))})}}var Wp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},AT=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},RT=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ec;class PT{constructor({http:e,endpoint:r}){ec.set(this,void 0),this.http=e,this.endpoint=r,AT(this,ec,new Kt({client:{fn:()=>e.fetch$(r,{selector:this.selector.bind(this)}).pipe(yd(n=>console.log("\u{1F525}",n)))},key:()=>"services",expire:5*60*1e3}),"f")}get environment(){return go(Kt.extractQueryValue(RT(this,ec,"f").query(void 0,{cache:{suppressInvalid:!0}})))}selector(e){return Wp(this,void 0,void 0,function*(){const r=yield e.json(),n=r.services.reduce((o,i)=>Object.assign(o,{[i.key]:{clientId:r.clientId,uri:i.uri,defaultScopes:[r.clientId+"/.default"]}}),{});return Object.assign(Object.assign({},r),{services:n})})}resolveService(e){return Wp(this,void 0,void 0,function*(){try{const{services:r}=yield this.environment;return r[e]}catch(r){throw console.error(r),r}})}}ec=new WeakMap;const NT="serviceDiscovery";var OT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const xT={name:NT,configure:()=>new IT({clientCtor:PT,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>OT(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),o=yield t.createClient(n);return new kT(o,r)})};class MT{}class Ky extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const UT=(t,e)=>{var r;const n=(r=Qr[t])!==null&&r!==void 0?r:t;switch(n){case Qr.v2:throw new Ky(t);case Qr.v1:default:{const{id:o}=e,i=new URLSearchParams;return i.append("api-version",n),`/contexts/${o}/?${String(i)}`}}},LT=(t,e,r)=>[UT(t,e),r],DT=(t,e,r="json")=>(n,o)=>t[r](...LT(e,n,o));var HT=["eq","ne","gt","ge","lt","le"],xs=["and","or","not"],FT=["any","all"],$T=["startswith","endswith","contains"],zT=["expand","levels","select","skip","top","count","orderby","filter"],Yp=/\((.*)\)/,Qp=/(?!indexof)\((\w+)\)/,Jp;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(Jp||(Jp={}));var Mr="";function jT(t){var e=t===void 0?{}:t,r=e.select,n=e.search,o=e.skiptoken,i=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,u=e.orderBy,d=e.key,h=e.count,f=e.expand,m=e.action,v=e.func,E="",g=[],p={};if(d!=null&&(E+="(".concat(Cr(d,g),")")),(c||typeof h=="object")&&(p.$filter=qa(typeof h=="object"?h:c,g)),l&&(p.$apply=Gy(l)),f&&(p.$expand=tc(f)),u&&(p.$orderby=Kh(u)),h&&(typeof h=="boolean"?p.$count=!0:E+="/$count"),typeof a=="number"&&(p.$top=a),typeof s=="number"&&(p.$skip=s),m&&(E+="/".concat(m)),v){if(typeof v=="string")E+="/".concat(v);else if(typeof v=="object"){var y=Object.keys(v)[0],w=Cr(v[y],g);E+="/".concat(y),w!==""&&(E+="(".concat(w,")"))}}return g.length>0&&Object.assign(p,g.reduce(function(k,P){var M;return Object.assign(k,(M={},M["@".concat(P.name)]=Cr(P.value),M))},{})),VT(E,ho({$select:r,$search:n,$skiptoken:o,$format:i},p))}function lu(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(Cr(e,r))}function qa(t,e,r){return t===void 0&&(t={}),e===void 0&&(e=[]),r===void 0&&(r=""),(Array.isArray(t)?t:[t]).reduce(function(i,a){if(a){var s=n(a,e,r);s&&i.push(s)}return i},[]).join(" and ");function n(i,a,s){i===void 0&&(i={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof i=="string")c=i;else if(i&&typeof i=="object"){var l=Object.keys(i).reduce(function(u,d){var h=i[d];if(h===void 0)return u;var f="";if(s?d===Mr?f=s:Qp.test(d)?f=d.replace(Qp,function(p,y){return y.trim()===Mr?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):Yp.test(d)?f=d.replace(Yp,function(p,y){return y.trim()===Mr?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):f="".concat(s,"/").concat(d):f=d,d===Mr&&Array.isArray(h))return u.concat(h.map(function(p){return lu(f,p)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)u.push(lu(f,h,a));else if(Array.isArray(h)){var m=d,v=h.map(function(p){return qa(p,a,s)}).filter(function(p){return p}).map(function(p){return xs.indexOf(m)!==-1?"(".concat(p,")"):p});v.length&&(xs.indexOf(m)!==-1?v.length&&(m==="not"?u.push(Xp(v)):u.push("(".concat(v.join(" ".concat(m," ")),")"))):u.push(v.join(" ".concat(m," "))))}else if(xs.indexOf(f)!==-1){var E=f,v=Object.keys(h).map(function(y){var w;return n((w={},w[y]=h[y],w))});v.length&&(E==="not"?u.push(Xp(v)):u.push("(".concat(v.join(" ".concat(E," ")),")")))}else if(typeof h=="object")if("type"in h)u.push(lu(f,h,a));else{var g=Object.keys(h);g.forEach(function(p){if(h[p]!==void 0)if(HT.indexOf(p)!==-1)u.push("".concat(f," ").concat(p," ").concat(Cr(h[p],a)));else if(xs.indexOf(p)!==-1)Array.isArray(h[p])?u.push(h[p].map(function(P){return"("+n(P,a,f)+")"}).join(" ".concat(p," "))):u.push("("+n(h[p],a,f)+")");else if(FT.indexOf(p)!==-1){var y=o(d.toLowerCase(),h[p],p,f);y&&u.push(y)}else if(p==="has")u.push("".concat(f," ").concat(p," ").concat(Cr(h[p],a)));else if(p==="in"){var w=Array.isArray(h[p])?h[p]:h[p].value.map(function(P){return{type:h[p].type,value:P}});u.push(f+" in ("+w.map(function(P){return Cr(P,a)}).join(",")+")")}else if($T.indexOf(p)!==-1)u.push("".concat(p,"(").concat(f,",").concat(Cr(h[p],a),")"));else{var k=n(h,a,f);k&&u.push(k)}})}else throw new Error("Unexpected value type: ".concat(h));return u},[]);c=l.join(" and ")}return c}function o(i,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=BT(i,a,s,c);else if(a){var u=Array.isArray(a)?a.reduce(function(h,f){return f.hasOwnProperty(Mr)?(h.hasOwnProperty(Mr)||(h[Mr]=[]),h[Mr].push(f[Mr]),h):ho(ho({},h),f)},{}):a,d=n(u,e,i);l="".concat(c,"/").concat(s,"(").concat(d?"".concat(i,":").concat(d):"",")")}return l}}function BT(t,e,r,n){var o="",i=r=="all"?"ne":"eq";return o="".concat(n,"/").concat(r,"(").concat(t,": ").concat(t," ").concat(i," '").concat(e,"')"),o}function qT(t){return t=t.replace(/%/g,"%25"),t=t.replace(/\+/g,"%2B"),t=t.replace(/\//g,"%2F"),t=t.replace(/\?/g,"%3F"),t=t.replace(/#/g,"%23"),t=t.replace(/&/g,"%26"),t=t.replace(/'/g,"''"),t}function Cr(t,e){if(typeof t=="string")return"'".concat(qT(t),"'");if(t instanceof Date)return t.toISOString();if(typeof t=="number")return t;if(Array.isArray(t))return"[".concat(t.map(function(r){return Cr(r)}).join(","),"]");if(t===null)return t;if(typeof t=="object")switch(t.type){case"raw":case"guid":return t.value;case"duration":return"duration'".concat(t.value,"'");case"binary":return"binary'".concat(t.value,"'");case"alias":return Array.isArray(e)&&e.push(t),"@".concat(t.name);case"json":return escape(JSON.stringify(t.value));case"decimal":return"".concat(t.value,"M");default:return Object.entries(t).filter(function(r){var n=r[1];return n!==void 0}).map(function(r){var n=r[0],o=r[1];return"".concat(n,"=").concat(Cr(o,e))}).join(",")}return t}function tc(t){if(typeof t=="number")return t;if(typeof t=="string")return t.indexOf("/")===-1?t:t.split("/").reverse().reduce(function(r,n,o,i){return o===0?"$expand=".concat(n):o===i.length-1?"".concat(n,"(").concat(r,")"):"$expand=".concat(n,"(").concat(r,")")},"");if(Array.isArray(t))return"".concat(t.map(function(r){return tc(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return zT.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=qa(t[r]);break;case"orderBy":n=Kh(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=tc(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=tc(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function Gy(t){var e=Array.isArray(t)?t:[t],r=e.reduce(function(n,o){var i=o.aggregate,a=o.filter,s=o.groupBy,c=Wv(o,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(i&&n.push("aggregate(".concat(KT(i),")")),a){var u=qa(a);u&&n.push("filter(".concat(qa(u),")"))}return s&&n.push("groupby(".concat(GT(s),")")),n},[]);return r.join("/")||void 0}function KT(t){var e=Array.isArray(t)?t:[t];return e.map(function(r){return typeof r=="string"?r:Object.keys(r).map(function(n){var o=r[n];if(!o.with)throw new Error("'with' property required for '".concat(n,"'"));if(!o.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(o.with," as ").concat(o.as)})}).join(",")}function GT(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(Gy(t.transform))),e}function Kh(t,e){return e===void 0&&(e=""),Array.isArray(t)?t.map(function(r){return Array.isArray(r)&&r.length===2&&["asc","desc"].indexOf(r[1])!==-1?r.join(" "):r}).map(function(r){return"".concat(e).concat(String(r))}).join(","):typeof t=="object"?Object.entries(t).map(function(r){var n=r[0],o=r[1];return Kh(o,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function VT(t,e){var r=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return r.length?"".concat(t,"?").concat(r.join("&")):t}function Xp(t){return"not(".concat(t.join(" and "),")")}const WT=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),YT=t=>Object.keys(t).reduce((e,r)=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:WT(t.filter)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),QT=t=>typeof t=="string"?t:jT(YT(t)),JT=(t,e)=>{var r;const n=(r=Qr[t])!==null&&r!==void 0?r:t;switch(n){case Qr.v2:throw new Ky(t);case Qr.v1:default:{const{query:o,includeDeleted:i}=e,a=new URLSearchParams(QT(o));return a.append("api-version",n),i&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},XT=(t,e,r)=>[JT(t,e),r],ZT=(t,e,r="json")=>(n,o)=>t[r](...XT(e,n,o));class e1{constructor(e,r){this._client=e,this._method=r}get Version(){return Qr}get(e,...r){return DT(this._client,e,this._method)(...r)}query(e,...r){return ZT(this._client,e,this._method)(...r)}}var Qr;(function(t){t.v1="1.0",t.v2="2.0"})(Qr||(Qr={}));const t1=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},r1=(t,e,r)=>{const n=t1(t,e),o=Object.assign({},{method:"Delete"},r);return[n,o]},n1=(t,e,r="json")=>(n,o)=>t[r](...r1(e,n,o)),o1=n1,i1=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},a1=(t,e,r)=>[i1(t,e),r],s1=(t,e,r="json")=>(n,o)=>t[r](...a1(e,n,o)),c1=s1,l1=(t,e)=>{switch(t){case"v1":{const r=new URLSearchParams;return r.append("api-version","1.0"),`/bookmarks?${String(r)}`}default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks?${String(r)}`}}},u1=(t,e,r)=>{const n=l1(t),o=new Headers;o.append("content-type","application/json");const i=Object.assign({},{method:"post",body:JSON.stringify(e),headers:o},r);return[n,i]},d1=(t,e,r="json")=>(n,o)=>t[r](...u1(e,n,o)),h1=d1;class f1{constructor(e,r){this._client=e,this._method=r}get(e,...r){return c1(this._client,e,this._method)(...r)}post(e,...r){return h1(this._client,e,this._method)(...r)}delete(e,...r){return o1(this._client,e,this._method)(...r)}}const p1=f1;var Zp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class g1{constructor({createClient:e}){this._createClientFn=e}createBookmarksClient(e){return Zp(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return new p1(r,e)})}createContextClient(e){return Zp(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return new e1(r,e)})}}var Vy=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const m1="services",v1=(t,e)=>r=>Vy(void 0,void 0,void 0,function*(){if(t.hasClient(r))return t.createClient(r);if(e)return e.createClient(r);throw Error(`failed to create http client for service ${r}`)}),y1={name:m1,configure:()=>new MT,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>Vy(void 0,void 0,void 0,function*(){if(!e.createClient){const o=yield r("http"),i=n("serviceDiscovery")?yield r("serviceDiscovery"):t==null?void 0:t.serviceDiscovery;e.createClient=v1(o,i)}if(!e.createClient)throw Error("missing configuration for creating API client");return new g1(e)})},_1=y1;class w1 extends aC{constructor(){super([fC,Ly,$h,xT,_1,TT,vT]),this.logger=new Vv("FrameworkConfigurator")}configureHttp(...e){this.addConfig(TC(...e))}configureHttpClient(...e){this.addConfig(Ey(...e))}configureMsal(...e){this.addConfig(HS(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var E1=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const C1=(t,e)=>E1(void 0,void 0,void 0,function*(){const r=yield t.initialize(e),n={modules:r};return window.Fusion=n,r.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n});var _l={exports:{}},wl={};/**
|
|
62
62
|
* @license React
|
|
63
63
|
* react-jsx-runtime.production.min.js
|
|
64
64
|
*
|
|
@@ -66,27 +66,27 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var E1=j.exports,C1=Symbol.for("react.element"),S1=Symbol.for("react.fragment"),T1=Object.prototype.hasOwnProperty,b1=E1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I1={key:!0,ref:!0,__self:!0,__source:!0};function Gy(t,e,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)T1.call(e,n)&&!I1.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:C1,type:t,key:i,ref:a,props:o,_owner:b1.current}}gl.Fragment=S1;gl.jsx=Gy;gl.jsxs=Gy;(function(t){t.exports=gl})(pl);const Vy=pl.exports.Fragment,W=pl.exports.jsx,no=pl.exports.jsxs,Wy=j.exports.createContext(null),k1=Wy.Provider;var A1=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const R1=t=>j.exports.lazy(()=>A1(void 0,void 0,void 0,function*(){const e=new y1;yield t(e);const r=yield w1(e);return{default:({children:n})=>W(k1,Object.assign({value:r},{children:n}))}})),P1=()=>{let t=j.exports.useContext(Wy);return t||console.warn("could not locate fusion in context!"),t!=null||(t=window.Fusion),t||console.error("Could not load framework, might not be initiated?"),t},N1=t=>{const e=j.exports.useMemo(()=>R1(t.configure),[t.configure]);return W(j.exports.Suspense,Object.assign({fallback:t.fallback},{children:W(e,{children:t.children})}))};function xd(){return xd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xd.apply(this,arguments)}var O1=typeof Symbol=="function"&&Symbol.for;const x1=O1?Symbol.for("mui.nested"):"__THEME_NESTED__";var M1=Wa.createContext(null);const Yy=M1;function U1(){var t=Wa.useContext(Yy);return t}function L1(t,e){if(typeof e=="function"){var r=e(t);return r}return xd({},t,e)}function D1(t){var e=t.children,r=t.theme,n=U1(),o=Wa.useMemo(function(){var i=n===null?r:L1(n,r);return i!=null&&(i[x1]=n!==null),i},[r,n]);return W(Yy.Provider,{value:o,children:e})}const H1={jumbo__base:"88px",default__base:"48px",default__input:"56px"},F1={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"rgba(61, 61, 61, 1)"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"rgba(86, 86, 86, 1)"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"rgba(111, 111, 111, 1)"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"rgba(0, 0, 0, 0.4)"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"rgba(0, 0, 0, 0.8)"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"rgba(140, 17, 89, 1)"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"rgba(226, 73, 115, 1)"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"rgba(255, 146, 168, 1)"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"rgba(0, 95, 87, 1)"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"rgba(0, 151, 123, 1)"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"rgba(64, 211, 143, 1)"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"rgba(0, 64, 136, 1)"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"rgba(0, 132, 196, 1)"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"rgba(82, 192, 255, 1)"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"rgba(115, 177, 181, 1)"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"rgba(168, 206, 209, 1)"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"rgba(201, 224, 226, 1)"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"rgba(255, 125, 152, 1)"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"rgba(255, 174, 191, 1)"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"rgba(255, 205, 215, 1)"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"rgba(255, 224, 231, 1)"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"rgba(125, 0, 35, 1)"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"rgba(195, 243, 210, 1)"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"rgba(0, 79, 85, 1)"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"rgba(23, 36, 47, 1)"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 0, 1)"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"rgba(255, 146, 0, 1)"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"rgba(75, 183, 72, 1)"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"rgba(190, 190, 190, 1)"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"rgba(151, 202, 206, 1)"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"rgba(0, 0, 0, 0.2)"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"}}},$1={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},z1={pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"1px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},j1={toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"48px",minWidth:"48px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},B1={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},q1={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.429em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.667em",textAlign:"left"},h4:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"}},input:{label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},ui:{tooltip:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},_t={clickbounds:H1,colors:F1,elevation:$1,interactions:z1,shape:j1,spacings:B1,typography:q1},K1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class fe{constructor(e,r){this.name=e,this.value=r}static makeCssVar(e,r){return`--fusion-${e}__${r}`}static makeCss(e){return Object.keys(e).map(r=>`${K1(r)}: ${e[r]}`).join(";")}static makeVariable({attribute:e,value:r}){return`var(${[e,r].filter(n=>!!n).join(",")})`}static extractVariables(e){return Object.values(e).reduce((r,n)=>r.concat(n.variables),[])}get style(){const{value:e,attributes:r}=this;return{...e,...Object.keys(r).reduce((n,o)=>Object.assign(n,{[o]:fe.makeVariable(r[o])}),{})}}get css(){const{attributes:e,style:r}=this;return fe.makeCss({...r,...Object.keys(e).reduce((n,o)=>Object.assign(n,{[o]:fe.makeVariable(e[o])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return fe.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class Qy extends fe{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:fe.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const qi=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new Qy(`${e}-${n}`,t[n])}),{}),Jy={infographic:qi(_t.colors.infographic,"infographic"),interactive:qi(_t.colors.interactive,"interactive"),logo:qi(_t.colors.logo,"logo"),text:qi(_t.colors.text,"text"),ui:qi(_t.colors.ui,"ui")},G1=Object.values(Jy).reduce((t,e)=>t.concat(Qy.extractVariables(e)),[]);class ml extends fe{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:ml.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:fe.makeVariable(this.attributes.shadow)}}}const V1=t=>new ml(t,_t.elevation[t]),W1=Object.keys(_t.elevation),Xy=W1.reduce((t,e)=>Object.assign(t,{[e]:V1(e)}),{}),Y1=ml.extractVariables(Xy);class Zy extends fe{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:fe.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const Q1=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new Zy(`${e}-${n}`,t[n])}),{}),e0={comfortable:Q1(_t.spacings.comfortable,"comfortable")},J1=Object.values(e0).reduce((t,e)=>t.concat(Zy.extractVariables(e)),[]);class X1 extends fe{get attributes(){const{name:e,value:r}=this;return{color:{attribute:fe.makeCssVar("typography",`${e}__color`),value:fe.makeVariable({attribute:fe.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:fe.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:fe.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:fe.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:fe.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:fe.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:fe.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:fe.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:fe.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:fe.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:fe.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const ko=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new X1(`${e}-${n}`,t[n])}),{}),t0={heading:ko(_t.typography.heading,"heading"),input:ko(_t.typography.input,"input"),navigation:ko(_t.typography.navigation,"navigation"),paragraph:ko(_t.typography.paragraph,"paragraph"),table:ko(_t.typography.table,"table"),ui:ko(_t.typography.ui,"ui")},Xp={attribute:fe.makeCssVar("typography","base-color"),value:_t.colors.text.static_icons__default.rgba},Z1=[...Object.values(t0).reduce((t,e)=>t.concat(fe.extractVariables(e)),[]),[Xp.attribute,Xp.value].join(":")],Ke={colors:Jy,elevation:Xy,spacing:e0,typography:t0};[...G1,...Y1,...J1,...Z1];const eb=(t,e)=>(window.customElements.define(t,e),e),tb=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(o){window.customElements.define(t,o)}}},vl=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?eb(t,e):tb(t,e)};/**
|
|
69
|
+
*/var S1=j.exports,T1=Symbol.for("react.element"),b1=Symbol.for("react.fragment"),I1=Object.prototype.hasOwnProperty,k1=S1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A1={key:!0,ref:!0,__self:!0,__source:!0};function Wy(t,e,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)I1.call(e,n)&&!A1.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:T1,type:t,key:i,ref:a,props:o,_owner:k1.current}}wl.Fragment=b1;wl.jsx=Wy;wl.jsxs=Wy;(function(t){t.exports=wl})(_l);const Yy=_l.exports.Fragment,W=_l.exports.jsx,no=_l.exports.jsxs,Qy=j.exports.createContext(null),R1=Qy.Provider;var P1=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const N1=t=>j.exports.lazy(()=>P1(void 0,void 0,void 0,function*(){const e=new w1;yield t(e);const r=yield C1(e);return{default:({children:n})=>W(R1,Object.assign({value:r},{children:n}))}})),O1=()=>{let t=j.exports.useContext(Qy);return t||console.warn("could not locate fusion in context!"),t!=null||(t=window.Fusion),t||console.error("Could not load framework, might not be initiated?"),t},x1=t=>{const e=j.exports.useMemo(()=>N1(t.configure),[t.configure]);return W(j.exports.Suspense,Object.assign({fallback:t.fallback},{children:W(e,{children:t.children})}))};function Ud(){return Ud=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ud.apply(this,arguments)}var M1=typeof Symbol=="function"&&Symbol.for;const U1=M1?Symbol.for("mui.nested"):"__THEME_NESTED__";var L1=Qa.createContext(null);const Jy=L1;function D1(){var t=Qa.useContext(Jy);return t}function H1(t,e){if(typeof e=="function"){var r=e(t);return r}return Ud({},t,e)}function F1(t){var e=t.children,r=t.theme,n=D1(),o=Qa.useMemo(function(){var i=n===null?r:H1(n,r);return i!=null&&(i[U1]=n!==null),i},[r,n]);return W(Jy.Provider,{value:o,children:e})}const $1={jumbo__base:"88px",default__base:"48px",default__input:"56px"},z1={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"rgba(61, 61, 61, 1)"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"rgba(86, 86, 86, 1)"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"rgba(111, 111, 111, 1)"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"rgba(0, 0, 0, 0.4)"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"rgba(0, 0, 0, 0.8)"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"rgba(140, 17, 89, 1)"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"rgba(226, 73, 115, 1)"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"rgba(255, 146, 168, 1)"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"rgba(0, 95, 87, 1)"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"rgba(0, 151, 123, 1)"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"rgba(64, 211, 143, 1)"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"rgba(0, 64, 136, 1)"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"rgba(0, 132, 196, 1)"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"rgba(82, 192, 255, 1)"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"rgba(115, 177, 181, 1)"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"rgba(168, 206, 209, 1)"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"rgba(201, 224, 226, 1)"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"rgba(255, 125, 152, 1)"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"rgba(255, 174, 191, 1)"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"rgba(255, 205, 215, 1)"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"rgba(255, 224, 231, 1)"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"rgba(125, 0, 35, 1)"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"rgba(195, 243, 210, 1)"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"rgba(0, 79, 85, 1)"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"rgba(23, 36, 47, 1)"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 0, 1)"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"rgba(255, 146, 0, 1)"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"rgba(75, 183, 72, 1)"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"rgba(190, 190, 190, 1)"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"rgba(151, 202, 206, 1)"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"rgba(0, 0, 0, 0.2)"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"}}},j1={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},B1={pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"1px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},q1={toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"48px",minWidth:"48px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},K1={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},G1={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.429em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.667em",textAlign:"left"},h4:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"}},input:{label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},ui:{tooltip:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},Et={clickbounds:$1,colors:z1,elevation:j1,interactions:B1,shape:q1,spacings:K1,typography:G1},V1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class fe{constructor(e,r){this.name=e,this.value=r}static makeCssVar(e,r){return`--fusion-${e}__${r}`}static makeCss(e){return Object.keys(e).map(r=>`${V1(r)}: ${e[r]}`).join(";")}static makeVariable({attribute:e,value:r}){return`var(${[e,r].filter(n=>!!n).join(",")})`}static extractVariables(e){return Object.values(e).reduce((r,n)=>r.concat(n.variables),[])}get style(){const{value:e,attributes:r}=this;return{...e,...Object.keys(r).reduce((n,o)=>Object.assign(n,{[o]:fe.makeVariable(r[o])}),{})}}get css(){const{attributes:e,style:r}=this;return fe.makeCss({...r,...Object.keys(e).reduce((n,o)=>Object.assign(n,{[o]:fe.makeVariable(e[o])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return fe.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class Xy extends fe{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:fe.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const Ki=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new Xy(`${e}-${n}`,t[n])}),{}),Zy={infographic:Ki(Et.colors.infographic,"infographic"),interactive:Ki(Et.colors.interactive,"interactive"),logo:Ki(Et.colors.logo,"logo"),text:Ki(Et.colors.text,"text"),ui:Ki(Et.colors.ui,"ui")},W1=Object.values(Zy).reduce((t,e)=>t.concat(Xy.extractVariables(e)),[]);class El extends fe{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:El.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:fe.makeVariable(this.attributes.shadow)}}}const Y1=t=>new El(t,Et.elevation[t]),Q1=Object.keys(Et.elevation),e0=Q1.reduce((t,e)=>Object.assign(t,{[e]:Y1(e)}),{}),J1=El.extractVariables(e0);class t0 extends fe{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:fe.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const X1=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new t0(`${e}-${n}`,t[n])}),{}),r0={comfortable:X1(Et.spacings.comfortable,"comfortable")},Z1=Object.values(r0).reduce((t,e)=>t.concat(t0.extractVariables(e)),[]);class eb extends fe{get attributes(){const{name:e,value:r}=this;return{color:{attribute:fe.makeCssVar("typography",`${e}__color`),value:fe.makeVariable({attribute:fe.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:fe.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:fe.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:fe.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:fe.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:fe.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:fe.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:fe.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:fe.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:fe.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:fe.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const ko=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new eb(`${e}-${n}`,t[n])}),{}),n0={heading:ko(Et.typography.heading,"heading"),input:ko(Et.typography.input,"input"),navigation:ko(Et.typography.navigation,"navigation"),paragraph:ko(Et.typography.paragraph,"paragraph"),table:ko(Et.typography.table,"table"),ui:ko(Et.typography.ui,"ui")},eg={attribute:fe.makeCssVar("typography","base-color"),value:Et.colors.text.static_icons__default.rgba},tb=[...Object.values(n0).reduce((t,e)=>t.concat(fe.extractVariables(e)),[]),[eg.attribute,eg.value].join(":")],Ke={colors:Zy,elevation:e0,spacing:r0,typography:n0};[...W1,...J1,...Z1,...tb];const rb=(t,e)=>(window.customElements.define(t,e),e),nb=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(o){window.customElements.define(t,o)}}},Cl=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?rb(t,e):nb(t,e)};/**
|
|
70
70
|
* @license
|
|
71
71
|
* Copyright 2019 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
|
-
*/const
|
|
73
|
+
*/const rc=window,Gh=rc.ShadowRoot&&(rc.ShadyCSS===void 0||rc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vh=Symbol(),tg=new WeakMap;class o0{constructor(e,r,n){if(this._$cssResult$=!0,n!==Vh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Gh&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=tg.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&tg.set(r,e))}return e}toString(){return this.cssText}}const et=t=>new o0(typeof t=="string"?t:t+"",void 0,Vh),sn=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new o0(r,t,Vh)},ob=(t,e)=>{Gh?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),o=rc.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},rg=Gh?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return et(r)})(t):t;/**
|
|
74
74
|
* @license
|
|
75
75
|
* Copyright 2017 Google LLC
|
|
76
76
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
77
|
-
*/var
|
|
77
|
+
*/var uu;const Qc=window,ng=Qc.trustedTypes,ib=ng?ng.emptyScript:"",og=Qc.reactiveElementPolyfillSupport,Ld={toAttribute(t,e){switch(e){case Boolean:t=t?ib:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},i0=(t,e)=>e!==t&&(e==e||t==t),du={attribute:!0,type:String,converter:Ld,reflect:!1,hasChanged:i0};class Mo extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;(r=this.h)!==null&&r!==void 0||(this.h=[]),this.h.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),e.push(o))}),e}static createProperty(e,r=du){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,n,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(o){const i=this[e];this[r]=o,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||du}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const o of n)r.unshift(rg(o))}else e!==void 0&&r.push(rg(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return ob(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=du){var o;const i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){const a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Ld).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(e,r){var n;const o=this.constructor,i=o._$Ev.get(e);if(i!==void 0&&this._$El!==i){const a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:Ld;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let o=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||i0)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}Mo.finalized=!0,Mo.elementProperties=new Map,Mo.elementStyles=[],Mo.shadowRootOptions={mode:"open"},og==null||og({ReactiveElement:Mo}),((uu=Qc.reactiveElementVersions)!==null&&uu!==void 0?uu:Qc.reactiveElementVersions=[]).push("1.4.1");/**
|
|
78
78
|
* @license
|
|
79
79
|
* Copyright 2017 Google LLC
|
|
80
80
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
|
-
*/var
|
|
81
|
+
*/var hu;const Jc=window,wi=Jc.trustedTypes,ig=wi?wi.createPolicy("lit-html",{createHTML:t=>t}):void 0,_n=`lit$${(Math.random()+"").slice(9)}$`,a0="?"+_n,ab=`<${a0}>`,Ei=document,Ka=(t="")=>Ei.createComment(t),Ga=t=>t===null||typeof t!="object"&&typeof t!="function",s0=Array.isArray,sb=t=>s0(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Gi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ag=/-->/g,sg=/>/g,zn=RegExp(`>|[
|
|
82
82
|
\f\r](?:([^\\s"'>=/]+)([
|
|
83
83
|
\f\r]*=[
|
|
84
84
|
\f\r]*(?:[^
|
|
85
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
85
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),cg=/'/g,lg=/"/g,c0=/^(?:script|style|textarea|title)$/i,l0=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),u0=l0(1),Wh=l0(2),Ci=Symbol.for("lit-noChange"),Ge=Symbol.for("lit-nothing"),ug=new WeakMap,ci=Ei.createTreeWalker(Ei,129,null,!1),cb=(t,e)=>{const r=t.length-1,n=[];let o,i=e===2?"<svg>":"",a=Gi;for(let c=0;c<r;c++){const l=t[c];let u,d,h=-1,f=0;for(;f<l.length&&(a.lastIndex=f,d=a.exec(l),d!==null);)f=a.lastIndex,a===Gi?d[1]==="!--"?a=ag:d[1]!==void 0?a=sg:d[2]!==void 0?(c0.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=zn):d[3]!==void 0&&(a=zn):a===zn?d[0]===">"?(a=o!=null?o:Gi,h=-1):d[1]===void 0?h=-2:(h=a.lastIndex-d[2].length,u=d[1],a=d[3]===void 0?zn:d[3]==='"'?lg:cg):a===lg||a===cg?a=zn:a===ag||a===sg?a=Gi:(a=zn,o=void 0);const m=a===zn&&t[c+1].startsWith("/>")?" ":"";i+=a===Gi?l+ab:h>=0?(n.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+_n+m):l+_n+(h===-2?(n.push(void 0),c):m)}const s=i+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ig!==void 0?ig.createHTML(s):s,n]};class Va{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,a=0;const s=e.length-1,c=this.parts,[l,u]=cb(e,r);if(this.el=Va.createElement(l,n),ci.currentNode=this.el.content,r===2){const d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;(o=ci.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const h of o.getAttributeNames())if(h.endsWith("$lit$")||h.startsWith(_n)){const f=u[a++];if(d.push(h),f!==void 0){const m=o.getAttribute(f.toLowerCase()+"$lit$").split(_n),v=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:v[2],strings:m,ctor:v[1]==="."?ub:v[1]==="?"?hb:v[1]==="@"?fb:Sl})}else c.push({type:6,index:i})}for(const h of d)o.removeAttribute(h)}if(c0.test(o.tagName)){const d=o.textContent.split(_n),h=d.length-1;if(h>0){o.textContent=wi?wi.emptyScript:"";for(let f=0;f<h;f++)o.append(d[f],Ka()),ci.nextNode(),c.push({type:2,index:++i});o.append(d[h],Ka())}}}else if(o.nodeType===8)if(o.data===a0)c.push({type:2,index:i});else{let d=-1;for(;(d=o.data.indexOf(_n,d+1))!==-1;)c.push({type:7,index:i}),d+=_n.length-1}i++}}static createElement(e,r){const n=Ei.createElement("template");return n.innerHTML=e,n}}function Si(t,e,r=t,n){var o,i,a,s;if(e===Ci)return e;let c=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const l=Ga(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((i=c==null?void 0:c._$AO)===null||i===void 0||i.call(c,!1),l===void 0?c=void 0:(c=new l(t),c._$AT(t,r,n)),n!==void 0?((a=(s=r)._$Co)!==null&&a!==void 0?a:s._$Co=[])[n]=c:r._$Cl=c),c!==void 0&&(e=Si(t,c._$AS(t,e.values),c,n)),e}class lb{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;const{el:{content:n},parts:o}=this._$AD,i=((r=e==null?void 0:e.creationScope)!==null&&r!==void 0?r:Ei).importNode(n,!0);ci.currentNode=i;let a=ci.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new rs(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new pb(a,this,e)),this.u.push(u),l=o[++c]}s!==(l==null?void 0:l.index)&&(a=ci.nextNode(),s++)}return i}p(e){let r=0;for(const n of this.u)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}}class rs{constructor(e,r,n,o){var i;this.type=2,this._$AH=Ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cm=(i=o==null?void 0:o.isConnected)===null||i===void 0||i}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Si(this,e,r),Ga(e)?e===Ge||e==null||e===""?(this._$AH!==Ge&&this._$AR(),this._$AH=Ge):e!==this._$AH&&e!==Ci&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sb(e)?this.k(e):this.g(e)}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==Ge&&Ga(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ei.createTextNode(e)),this._$AH=e}$(e){var r;const{values:n,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Va.createElement(o.h,this.options)),o);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===i)this._$AH.p(n);else{const a=new lb(i,this),s=a.v(this.options);a.p(n),this.T(s),this._$AH=a}}_$AC(e){let r=ug.get(e.strings);return r===void 0&&ug.set(e.strings,r=new Va(e)),r}k(e){s0(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of e)o===r.length?r.push(n=new rs(this.O(Ka()),this.O(Ka()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,r);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}}class Sl{constructor(e,r,n,o,i){this.type=1,this._$AH=Ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ge}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,o){const i=this.strings;let a=!1;if(i===void 0)e=Si(this,e,r,0),a=!Ga(e)||e!==this._$AH&&e!==Ci,a&&(this._$AH=e);else{const s=e;let c,l;for(e=i[0],c=0;c<i.length-1;c++)l=Si(this,s[n+c],r,c),l===Ci&&(l=this._$AH[c]),a||(a=!Ga(l)||l!==this._$AH[c]),l===Ge?e=Ge:e!==Ge&&(e+=(l!=null?l:"")+i[c+1]),this._$AH[c]=l}a&&!o&&this.j(e)}j(e){e===Ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class ub extends Sl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ge?void 0:e}}const db=wi?wi.emptyScript:"";class hb extends Sl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Ge?this.element.setAttribute(this.name,db):this.element.removeAttribute(this.name)}}class fb extends Sl{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){var n;if((e=(n=Si(this,e,r,0))!==null&&n!==void 0?n:Ge)===Ci)return;const o=this._$AH,i=e===Ge&&o!==Ge||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==Ge&&(o===Ge||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}}class pb{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Si(this,e)}}const dg=Jc.litHtmlPolyfillSupport;dg==null||dg(Va,rs),((hu=Jc.litHtmlVersions)!==null&&hu!==void 0?hu:Jc.litHtmlVersions=[]).push("2.4.0");const gb=(t,e,r)=>{var n,o;const i=(n=r==null?void 0:r.renderBefore)!==null&&n!==void 0?n:e;let a=i._$litPart$;if(a===void 0){const s=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=a=new rs(e.insertBefore(Ka(),s),s,void 0,r!=null?r:{})}return a._$AI(t),a};/**
|
|
86
86
|
* @license
|
|
87
87
|
* Copyright 2017 Google LLC
|
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/var
|
|
89
|
+
*/var fu,pu;class Pn extends Mo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=gb(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ci}}Pn.finalized=!0,Pn._$litElement$=!0,(fu=globalThis.litElementHydrateSupport)===null||fu===void 0||fu.call(globalThis,{LitElement:Pn});const hg=globalThis.litElementPolyfillSupport;hg==null||hg({LitElement:Pn});((pu=globalThis.litElementVersions)!==null&&pu!==void 0?pu:globalThis.litElementVersions=[]).push("3.2.2");const mb=sn`
|
|
90
90
|
::slotted(*) {
|
|
91
91
|
--fwc-ripple-color: #000;
|
|
92
92
|
--fwc-ripple-hover-opacity: 0.1;
|
|
@@ -112,15 +112,15 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
112
112
|
--mdc-theme-surface: var(--fwc-theme-surface);
|
|
113
113
|
--mdc-typography-font-family: var(--fwc-typography-font-family);
|
|
114
114
|
}
|
|
115
|
-
`,
|
|
115
|
+
`,fg="FUSION_EQUINOR_FONT";class d0 extends Pn{get FontLink(){return document.head.querySelector(`link#${fg}`)}connectedCallback(){super.connectedCallback(),!this.FontLink&&this.injectFont()}injectFont(){const e=document.createElement("link");e.id=fg,e.href="https://eds-static.equinor.com/font/equinor-font.css",e.rel="stylesheet",document.head.append(e)}render(){return u0`<slot></slot>`}}d0.styles=[mb];const vb="fwc-theme";let pg=class extends d0{};pg=Rr([Cl(vb)],pg);const yb=t=>{var n;const{children:e,...r}=t;return W(F1,{...r,theme:(n=r.theme)!=null?n:Ke,children:W("fwc-theme",{children:e})})},_b=new Set(["children","localName","ref","style","className"]),wb=t=>{const e=new Set;for(const r in t.prototype)r in HTMLElement.prototype||(_b.has(r)?console.warn(`${t.name} contains property ${r} which is a React reserved property. It will be used by React and not set on the element.`):e.add(r));return e},Eb=(t,e,r)=>{j.exports.useEffect(()=>{const n=t.current;if(n&&r&&e){const o=Object.entries(e).filter(([i])=>r.has(i));for(const[i,a]of o)n[i]=a}},[t,r,e])},Cb=t=>{let e=!1;return{nativeEvent:t,currentTarget:t.currentTarget,target:t.target,bubbles:t.bubbles,cancelable:t.cancelable,defaultPrevented:t.defaultPrevented,eventPhase:t.eventPhase,isTrusted:t.isTrusted,preventDefault:()=>t.preventDefault(),isDefaultPrevented:()=>t.defaultPrevented,stopPropagation:()=>{e=!0,t.stopPropagation()},isPropagationStopped:()=>e,persist:()=>{},timeStamp:t.timeStamp,type:t.type}},Sb=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r]),Tb={},bb=(t,e,r={})=>{const n=j.exports.useRef({}),o=j.exports.useRef({}),i=j.exports.useMemo(()=>{if(!e)return Tb;const a=Object.keys(r).filter(c=>c in e).reduce((c,l)=>Object.assign(c,{[l]:e[l]}),{});return!Sb(o.current,a)?a:o.current},[o,r,e]);j.exports.useEffect(()=>{var l,u;if(!i)return;const a=n.current,s=Object.keys(r).filter(d=>d in i);for(const d of s)if(!(d in a)){const h=f=>{const m=o.current[d];m&&m(Cb(f))};console.debug(`adding event listener [${d}]`,t.current),(l=t.current)==null||l.addEventListener(r[d],h),Object.assign(a,{[d]:h})}const c=Object.keys(a).filter(d=>!(d in i));for(const d of c){console.debug(`removing event listener [${d}]`,t.current);const h=r[d],f=a[d];h&&(f&&((u=t.current)==null||u.removeEventListener(h,f)),delete a[d])}n.current=a,o.current=i},[r,t,o,n,i])},Ib=(t,e=null)=>{const r=j.exports.useRef(e);return j.exports.useEffect(()=>{typeof t=="function"?t(r.current):t&&(t.current=r.current)},[t,r]),r},kb=t=>{switch(t){case"className":return"class"}return t},Ab=["string","number","boolean","bigint"],Yh=(t,e,r={})=>{const{events:n={},functions:o=new Set,displayName:i=t.name}=r,a=wb(t);for(const l of o.values())a.add(l);const s=new Set([...a,...Object.keys(n)]),c=j.exports.forwardRef((l,u)=>{const d=Ib(u);Eb(d,l,a),bb(d,l,n);const h=j.exports.useMemo(()=>{const f=Object.entries(l||{}),m=f.filter(([E])=>!s.has(E)),v=d.current?[]:f.filter(([E])=>s.has(E)).filter(([E,g])=>Ab.includes(typeof g)).filter(([E,g])=>!!g);return[...m,...v].map(([E,g])=>[kb(E),g]).reduce((E,[g,p])=>Object.assign(E,{[g]:p}),{ref:d})},[d,l]);return j.exports.createElement(e,h)});return c.displayName=i,c};/**
|
|
116
116
|
* @license
|
|
117
117
|
* Copyright 2017 Google LLC
|
|
118
118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
|
-
*/const
|
|
119
|
+
*/const Rb=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function Pi(t){return(e,r)=>r!==void 0?((n,o,i)=>{o.constructor.createProperty(i,n)})(t,e,r):Rb(t,e)}/**
|
|
120
120
|
* @license
|
|
121
121
|
* Copyright 2021 Google LLC
|
|
122
122
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
123
|
-
*/var
|
|
123
|
+
*/var gu;((gu=window.HTMLSlotElement)===null||gu===void 0?void 0:gu.prototype.assignedElements)!=null;const Pb=sn`
|
|
124
124
|
:host {
|
|
125
125
|
display: flex;
|
|
126
126
|
justify-content: center;
|
|
@@ -139,7 +139,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
139
139
|
${et(Ke.typography.heading.h2.css)};
|
|
140
140
|
font-size: var(--fwc-star-progress-header-size, ${et(Ke.typography.heading.h2.getVariable("fontSize"))});
|
|
141
141
|
}
|
|
142
|
-
`,
|
|
142
|
+
`,Nb=sn`
|
|
143
143
|
svg {
|
|
144
144
|
height: calc(var(--fwc-star-progress-size) * 1px);
|
|
145
145
|
width: calc(var(--fwc-star-progress-size) / 1.2px);
|
|
@@ -183,7 +183,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
183
183
|
opacity: 0.05;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
`,
|
|
186
|
+
`,Ob=Wh`
|
|
187
187
|
<svg
|
|
188
188
|
role="progressbar"
|
|
189
189
|
viewBox="0 0 40 48"
|
|
@@ -212,16 +212,16 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
212
212
|
/>
|
|
213
213
|
</g>
|
|
214
214
|
</svg>
|
|
215
|
-
`;class
|
|
215
|
+
`;class ns extends Pn{constructor(){super(...arguments),this.size=200}render(){const{size:e=200,text:r}=this;return u0`
|
|
216
216
|
<div class="container" style="--fwc-star-progress-size: ${e};">
|
|
217
|
-
${
|
|
217
|
+
${Ob}
|
|
218
218
|
<header class="title">
|
|
219
219
|
<slot>
|
|
220
220
|
<span>${r}</span>
|
|
221
221
|
</slot>
|
|
222
222
|
</header
|
|
223
223
|
</div>
|
|
224
|
-
`}}Rr([Pi({type:Number,reflect:!0})],
|
|
224
|
+
`}}Rr([Pi({type:Number,reflect:!0})],ns.prototype,"size",void 0);Rr([Pi({type:String,reflect:!1})],ns.prototype,"text",void 0);ns.styles=[Pb,Nb];const h0="fwc-star-progress";let gg=class extends ns{};gg=Rr([Cl(h0)],gg);const xb=sn`
|
|
225
225
|
:host {
|
|
226
226
|
display: flex;
|
|
227
227
|
justify-content: center;
|
|
@@ -235,7 +235,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
235
235
|
:host([color='neutral']) {
|
|
236
236
|
--fwc-dots-progress-color: ${et(Ke.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
238
|
+
`,Mb=sn`
|
|
239
239
|
:host([size='small']) {
|
|
240
240
|
--fwc-dots-progress-size: 32px;
|
|
241
241
|
}
|
|
@@ -245,7 +245,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
245
245
|
:host([size='large']) {
|
|
246
246
|
--fwc-dots-progress-size: 64px;
|
|
247
247
|
}
|
|
248
|
-
`,
|
|
248
|
+
`,Ub=sn`
|
|
249
249
|
svg {
|
|
250
250
|
fill: var(--fwc-dots-progress-color, currentColor);
|
|
251
251
|
height: var(calc(--fwc-dots-progress-size / 4), calc(1.2em / 4));
|
|
@@ -270,7 +270,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
270
270
|
opacity: 0.5;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
`,
|
|
273
|
+
`,Lb=[xb,Mb,Ub];var mg;(function(t){t.Small="small",t.Medium="medium",t.Large="large"})(mg||(mg={}));class os extends Pn{render(){return Wh`
|
|
274
274
|
<svg
|
|
275
275
|
role="progressbar"
|
|
276
276
|
viewBox="0 0 16 4"
|
|
@@ -280,7 +280,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
280
280
|
<circle cx="8" cy="2" r="2" />
|
|
281
281
|
<circle cx="14" cy="2" r="2" />
|
|
282
282
|
</svg>
|
|
283
|
-
`}}Rr([Pi({type:String,reflect:!0})],
|
|
283
|
+
`}}Rr([Pi({type:String,reflect:!0})],os.prototype,"size",void 0);Rr([Pi({type:String,reflect:!0})],os.prototype,"color",void 0);os.styles=[Lb];const f0="fwc-dots-progress";let vg=class extends os{};vg=Rr([Cl(f0)],vg);const Db=sn`
|
|
284
284
|
:host {
|
|
285
285
|
display: inline-flex;
|
|
286
286
|
justify-content: center;
|
|
@@ -293,7 +293,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
293
293
|
:host([color='neutral']) {
|
|
294
294
|
--fwc-circular-progress-color: ${et(Ke.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`,Hb=sn`
|
|
297
297
|
:host([size='x-small']) {
|
|
298
298
|
--fwc-circular-progress-size: 16px;
|
|
299
299
|
}
|
|
@@ -309,7 +309,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
309
309
|
:host([size='x-large']) {
|
|
310
310
|
--fwc-circular-progress-size: 48px;
|
|
311
311
|
}
|
|
312
|
-
`,
|
|
312
|
+
`,Fb=sn`
|
|
313
313
|
svg {
|
|
314
314
|
height: var(--fwc-circular-progress-size, 1.2em);
|
|
315
315
|
width: var(--fwc-circular-progress-size, 1.2em);
|
|
@@ -335,7 +335,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
335
335
|
transform: rotate(360deg);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
`,$b=[Db,Hb,Fb];var yg;(function(t){t.XSmall="x-small",t.Small="small",t.Medium="medium",t.Large="large",t.XLarge="x-large"})(yg||(yg={}));class is extends Pn{render(){return Wh`
|
|
339
339
|
<svg
|
|
340
340
|
viewBox="0 0 48 48"
|
|
341
341
|
role="progressbar"
|
|
@@ -360,7 +360,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
360
360
|
class="progress">
|
|
361
361
|
</circle>
|
|
362
362
|
</svg>
|
|
363
|
-
`}}Rr([Pi({type:String,reflect:!0})],
|
|
363
|
+
`}}Rr([Pi({type:String,reflect:!0})],is.prototype,"size",void 0);Rr([Pi({type:String,reflect:!0})],is.prototype,"color",void 0);is.styles=$b;const p0="fwc-circular-progress";let _g=class extends is{};_g=Rr([Cl(p0)],_g);const g0=Yh(ns,h0);Yh(is,p0);Yh(os,f0);const zb=async t=>{t.logger.level=4,t.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["97978493-9777-4d48-b38a-67b0b9cd88d2/.default"]}}),t.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),t.onConfigured(()=>{console.log("framework config done")}),t.onInitialized(async e=>{e.auth.defaultClient.setLogger(new Uy(0)),console.debug("\u{1F4D2} subscribing to all events"),e.event.subscribe(r=>console.debug(`\u{1F514}\u{1F30D} [${r.type}]`,r)),console.debug("\u{1F4D2} subscribing to [onReactAppLoaded]"),e.event.addEventListener("onReactAppLoaded",r=>console.debug("\u{1F514} [onReactAppLoaded]",r))})};/**
|
|
364
364
|
* @remix-run/router v1.0.3
|
|
365
365
|
*
|
|
366
366
|
* Copyright (c) Remix Software Inc.
|
|
@@ -369,7 +369,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
369
369
|
* LICENSE.md file in the root directory of this source tree.
|
|
370
370
|
*
|
|
371
371
|
* @license MIT
|
|
372
|
-
*/function Ie(){return Ie=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ie.apply(this,arguments)}var Fe;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Fe||(Fe={}));const yg="popstate";function $b(t){t===void 0&&(t={});function e(n,o){let{pathname:i,search:a,hash:s}=n.location;return oo("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:nn(o)}return jb(e,r,null,t)}function zb(){return Math.random().toString(36).substr(2,8)}function _g(t){return{usr:t.state,key:t.key}}function oo(t,e,r,n){return r===void 0&&(r=null),Ie({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?cn(e):e,{state:r,key:e&&e.key||n||zb()})}function nn(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function cn(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function Ga(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:"unknown://unknown",r=typeof t=="string"?t:nn(t);return new URL(r,e)}function jb(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Fe.Pop,c=null;function l(){s=Fe.Pop,c&&c({action:s,location:h.location})}function u(f,m){s=Fe.Push;let v=oo(h.location,f,m);r&&r(v,f);let E=_g(v),g=h.createHref(v);try{a.pushState(E,"",g)}catch{o.location.assign(g)}i&&c&&c({action:s,location:h.location})}function d(f,m){s=Fe.Replace;let v=oo(h.location,f,m);r&&r(v,f);let E=_g(v),g=h.createHref(v);a.replaceState(E,"",g),i&&c&&c({action:s,location:h.location})}let h={get action(){return s},get location(){return t(o,a)},listen(f){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(yg,l),c=f,()=>{o.removeEventListener(yg,l),c=null}},createHref(f){return e(o,f)},encodeLocation(f){let m=Ga(nn(f));return Ie({},f,{pathname:m.pathname,search:m.search,hash:m.hash})},push:u,replace:d,go(f){return a.go(f)}};return h}var Ze;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ze||(Ze={}));function Bb(t){return t.index===!0}function p0(t,e,r){return e===void 0&&(e=[]),r===void 0&&(r=new Set),t.map((n,o)=>{let i=[...e,o],a=typeof n.id=="string"?n.id:i.join("-");return re(n.index!==!0||!n.children,"Cannot specify children on an index route"),re(!r.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),r.add(a),Bb(n)?Ie({},n,{id:a}):Ie({},n,{id:a,children:n.children?p0(n.children,i,r):void 0})})}function aa(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?cn(e):e,o=m0(n.pathname||"/",r);if(o==null)return null;let i=g0(t);qb(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=Zb(i[s],rI(o));return a}function g0(t,e,r,n){return e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n=""),t.forEach((o,i)=>{let a={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(re(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(n.length));let s=io([n,a.relativePath]),c=r.concat(a);o.children&&o.children.length>0&&(re(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),g0(o.children,e,c,s)),!(o.path==null&&!o.index)&&e.push({path:s,score:Jb(s,o.index),routesMeta:c})}),e}function qb(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Xb(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Kb=/^:\w+$/,Gb=3,Vb=2,Wb=1,Yb=10,Qb=-2,wg=t=>t==="*";function Jb(t,e){let r=t.split("/"),n=r.length;return r.some(wg)&&(n+=Qb),e&&(n+=Vb),r.filter(o=>!wg(o)).reduce((o,i)=>o+(Kb.test(i)?Gb:i===""?Wb:Yb),n)}function Xb(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function Zb(t,e){let{routesMeta:r}=t,n={},o="/",i=[];for(let a=0;a<r.length;++a){let s=r[a],c=a===r.length-1,l=o==="/"?e:e.slice(o.length)||"/",u=eI({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!u)return null;Object.assign(n,u.params);let d=s.route;i.push({params:n,pathname:io([o,u.pathname]),pathnameBase:sI(io([o,u.pathnameBase])),route:d}),u.pathnameBase!=="/"&&(o=io([o,u.pathnameBase]))}return i}function eI(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=tI(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((l,u,d)=>{if(u==="*"){let h=s[d]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}return l[u]=nI(s[d]||"",u),l},{}),pathname:i,pathnameBase:a,pattern:t}}function tI(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Wh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(a,s)=>(n.push(s),"([^\\/]+)"));return t.endsWith("*")?(n.push("*"),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function rI(t){try{return decodeURI(t)}catch(e){return Wh(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function nI(t,e){try{return decodeURIComponent(t)}catch(r){return Wh(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function m0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function re(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Wh(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function oI(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?cn(t):t;return{pathname:r?r.startsWith("/")?r:iI(r,e):e,search:cI(n),hash:lI(o)}}function iI(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function fu(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function v0(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function aI(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=cn(t):(o=Ie({},t),re(!o.pathname||!o.pathname.includes("?"),fu("?","pathname","search",o)),re(!o.pathname||!o.pathname.includes("#"),fu("#","pathname","hash",o)),re(!o.search||!o.search.includes("#"),fu("#","search","hash",o)));let i=t===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let d=e.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}s=d>=0?e[d]:"/"}let c=oI(o,s),l=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const io=t=>t.join("/").replace(/\/\/+/g,"/"),sI=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cI=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,lI=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Eg extends Error{}class uI{constructor(e){this.pendingKeys=new Set,this.subscriber=void 0,re(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,i)=>r=i),this.controller=new AbortController;let n=()=>r(new Eg("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((o,i)=>{let[a,s]=i;return Object.assign(o,{[a]:this.trackPromise(a,s)})},{})}trackPromise(e,r){if(!(r instanceof Promise))return r;this.pendingKeys.add(e);let n=Promise.race([r,this.abortPromise]).then(o=>this.onSettle(n,e,null,o),o=>this.onSettle(n,e,o));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,r,n,o){if(this.controller.signal.aborted&&n instanceof Eg)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);this.pendingKeys.delete(r),this.done&&this.unlistenAbortSignal();const i=this.subscriber;return n?(Object.defineProperty(e,"_error",{get:()=>n}),i&&i(!1),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>o}),i&&i(!1),o)}subscribe(e){this.subscriber=e}cancel(){this.controller.abort(),this.pendingKeys.forEach((r,n)=>this.pendingKeys.delete(n));let e=this.subscriber;e&&e(!0)}async resolveData(e){let r=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),r=await new Promise(o=>{this.subscribe(i=>{e.removeEventListener("abort",n),(i||this.done)&&o(i)})})}return r}get done(){return this.pendingKeys.size===0}get unwrappedData(){return re(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,r)=>{let[n,o]=r;return Object.assign(e,{[n]:hI(o)})},{})}}function dI(t){return t instanceof Promise&&t._tracked===!0}function hI(t){if(!dI(t))return t;if(t._error)throw t._error;return t._data}class Ni{constructor(e,r,n){this.status=e,this.statusText=r||"",this.data=n}}function y0(t){return t instanceof Ni}const pu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fI={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},pI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gI=!pI;function mI(t){re(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=p0(t.routes),r=null,n=new Set,o=null,i=null,a=null,s=!1,c=aa(e,t.history.location,t.basename),l=null;if(c==null){let{matches:C,route:R,error:U}=Ig(e);c=C,l={[R.id]:U}}let u=!c.some(C=>C.route.loader)||t.hydrationData!=null,d,h={historyAction:t.history.action,location:t.history.location,matches:c,initialized:u,navigation:pu,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||l,fetchers:new Map},f=Fe.Pop,m=!1,v,E=!1,g=!1,p=[],y=[],w=new Map,k=0,P=-1,M=new Map,O=new Set,se=new Map,B=new Map;function vt(){return r=t.history.listen(C=>{let{action:R,location:U}=C;return L(R,U)}),h.initialized||L(Fe.Pop,h.location),d}function Ln(){r&&r(),n.clear(),v&&v.abort(),h.fetchers.forEach((C,R)=>El(R))}function Dn(C){return n.add(C),()=>n.delete(C)}function it(C){h=Ie({},h,C),n.forEach(R=>R(h))}function Hn(C,R){var U;let V=h.actionData!=null&&h.navigation.formMethod!=null&&h.navigation.state==="loading"&&((U=h.navigation.formAction)==null?void 0:U.split("?")[0])===C.pathname,Z=R.loaderData?{loaderData:mu(h.loaderData,R.loaderData,R.matches||[])}:{};it(Ie({},V?{}:{actionData:null},R,Z,{historyAction:f,location:C,initialized:!0,navigation:pu,revalidation:"idle",restoreScrollPosition:h.navigation.formData?!1:Zh(C,R.matches||h.matches),preventScrollReset:m})),E||f===Fe.Pop||(f===Fe.Push?t.history.push(C,C.state):f===Fe.Replace&&t.history.replace(C,C.state)),f=Fe.Pop,m=!1,E=!1,g=!1,p=[],y=[]}async function Oi(C,R){if(typeof C=="number"){t.history.go(C);return}let{path:U,submission:V,error:Z}=Cg(C,R),ie=oo(h.location,U,R&&R.state);ie=t.history.encodeLocation(ie);let ce=(R&&R.replace)===!0||V!=null?Fe.Replace:Fe.Push,he=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0;return await L(ce,ie,{submission:V,pendingError:Z,preventScrollReset:he,replace:R&&R.replace})}function xi(){if(ln(),it({revalidation:"loading"}),h.navigation.state!=="submitting"){if(h.navigation.state==="idle"){L(h.historyAction,h.location,{startUninterruptedRevalidation:!0});return}L(f||h.historyAction,h.navigation.location,{overrideNavigation:h.navigation})}}async function L(C,R,U){v&&v.abort(),v=null,f=C,E=(U&&U.startUninterruptedRevalidation)===!0,P0(h.location,h.matches),m=(U&&U.preventScrollReset)===!0;let V=U&&U.overrideNavigation,Z=aa(e,R,t.basename);if(!Z){let{matches:at,route:Eo,error:Or}=Ig(e);Cl(),Hn(R,{matches:at,loaderData:{},errors:{[Eo.id]:Or}});return}if(CI(h.location,R)){Hn(R,{matches:Z});return}v=new AbortController;let ie=Vi(R,v.signal,U&&U.submission),ce,he;if(U&&U.pendingError)he={[Zo(Z).route.id]:U.pendingError};else if(U&&U.submission){let at=await J(ie,R,U.submission,Z,{replace:U.replace});if(at.shortCircuited)return;ce=at.pendingActionData,he=at.pendingActionError,V=Ie({state:"loading",location:R},U.submission)}let{shortCircuited:pe,loaderData:ge,errors:Se}=await X(ie,R,Z,V,U&&U.submission,U&&U.replace,ce,he);pe||(v=null,Hn(R,{matches:Z,loaderData:ge,errors:Se}))}async function J(C,R,U,V,Z){ln();let ie=Ie({state:"submitting",location:R},U);it({navigation:ie});let ce,he=Ng(V,R);if(!he.route.action)ce=kg(R);else if(ce=await Gi("action",C,he,V,d.basename),C.signal.aborted)return{shortCircuited:!0};if(li(ce)){let pe=Ie({state:"loading",location:oo(h.location,ce.location)},U);return await Nr(ce,pe,Z&&Z.replace),{shortCircuited:!0}}if(wa(ce)){let pe=Zo(V,he.route.id);return(Z&&Z.replace)!==!0&&(f=Fe.Push),{pendingActionError:{[pe.route.id]:ce.error}}}if(Xn(ce))throw new Error("defer() is not supported in actions");return{pendingActionData:{[he.route.id]:ce.data}}}async function X(C,R,U,V,Z,ie,ce,he){let pe=V;pe||(pe={state:"loading",location:R,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0});let[ge,Se]=Sg(h,U,Z,R,g,p,y,ce,he,se);if(Cl(st=>!(U&&U.some(Tt=>Tt.route.id===st))||ge&&ge.some(Tt=>Tt.route.id===st)),ge.length===0&&Se.length===0)return Hn(R,{matches:U,loaderData:mu(h.loaderData,{},U),errors:he||null,actionData:ce||null}),{shortCircuited:!0};E||(Se.forEach(st=>{let[Tt]=st,So=h.fetchers.get(Tt),Mi={state:"loading",data:So&&So.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(Tt,Mi)}),it(Ie({navigation:pe,actionData:ce||h.actionData||null},Se.length>0?{fetchers:new Map(h.fetchers)}:{}))),P=++k,Se.forEach(st=>{let[Tt]=st;return w.set(Tt,v)});let{results:at,loaderResults:Eo,fetcherResults:Or}=await pr(h.matches,U,ge,Se,C);if(C.signal.aborted)return{shortCircuited:!0};Se.forEach(st=>{let[Tt]=st;return w.delete(Tt)});let Fn=Ag(at);if(Fn){let st=gu(h,Fn);return await Nr(Fn,st,ie),{shortCircuited:!0}}let{loaderData:Sl,errors:as}=bg(h,U,ge,Eo,he,Se,Or,B);B.forEach((st,Tt)=>{st.subscribe(So=>{(So||st.done)&&B.delete(Tt)})}),A0();let Co=Xh(P);return Ie({loaderData:Sl,errors:as},Co||Se.length>0?{fetchers:new Map(h.fetchers)}:{})}function Ce(C){return h.fetchers.get(C)||fI}function Le(C,R,U,V){if(gI)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");w.has(C)&&is(C);let Z=aa(e,U,t.basename);if(!Z){wl(C,R,new Ni(404,"Not Found",null));return}let{path:ie,submission:ce}=Cg(U,V,!0),he=Ng(Z,ie);if(ce){wo(C,R,ie,he,Z,ce);return}se.set(C,[ie,he,Z]),Pr(C,R,ie,he,Z)}async function wo(C,R,U,V,Z,ie){if(ln(),se.delete(C),!V.route.action){let{error:er}=kg(U);wl(C,R,er);return}let ce=h.fetchers.get(C),he=Ie({state:"submitting"},ie,{data:ce&&ce.data});h.fetchers.set(C,he),it({fetchers:new Map(h.fetchers)});let pe=new AbortController,ge=Vi(U,pe.signal,ie);w.set(C,pe);let Se=await Gi("action",ge,V,Z,d.basename);if(ge.signal.aborted){w.get(C)===pe&&w.delete(C);return}if(li(Se)){w.delete(C),O.add(C);let er=Ie({state:"loading"},ie,{data:void 0});h.fetchers.set(C,er),it({fetchers:new Map(h.fetchers)});let xr=Ie({state:"loading",location:oo(h.location,Se.location)},ie);await Nr(Se,xr);return}if(wa(Se)){wl(C,R,Se.error);return}Xn(Se)&&re(!1,"defer() is not supported in actions");let at=h.navigation.location||h.location,Eo=Vi(at,pe.signal),Or=h.navigation.state!=="idle"?aa(e,h.navigation.location,t.basename):h.matches;re(Or,"Didn't find any matches after fetcher action");let Fn=++k;M.set(C,Fn);let Sl=Ie({state:"loading",data:Se.data},ie);h.fetchers.set(C,Sl);let[as,Co]=Sg(h,Or,ie,at,g,p,y,{[V.route.id]:Se.data},void 0,se);Co.filter(er=>{let[xr]=er;return xr!==C}).forEach(er=>{let[xr]=er,rf=h.fetchers.get(xr),x0={state:"loading",data:rf&&rf.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(xr,x0),w.set(xr,pe)}),it({fetchers:new Map(h.fetchers)});let{results:st,loaderResults:Tt,fetcherResults:So}=await pr(h.matches,Or,as,Co,Eo);if(pe.signal.aborted)return;M.delete(C),w.delete(C),Co.forEach(er=>{let[xr]=er;return w.delete(xr)});let Mi=Ag(st);if(Mi){let er=gu(h,Mi);await Nr(Mi,er);return}let{loaderData:ef,errors:tf}=bg(h,h.matches,as,Tt,void 0,Co,So,B),N0={state:"idle",data:Se.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(C,N0);let O0=Xh(Fn);h.navigation.state==="loading"&&Fn>P?(re(f,"Expected pending action"),v&&v.abort(),Hn(h.navigation.location,{matches:Or,loaderData:ef,errors:tf,fetchers:new Map(h.fetchers)})):(it(Ie({errors:tf,loaderData:mu(h.loaderData,ef,Or)},O0?{fetchers:new Map(h.fetchers)}:{})),g=!1)}async function Pr(C,R,U,V,Z){let ie=h.fetchers.get(C),ce={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:ie&&ie.data};h.fetchers.set(C,ce),it({fetchers:new Map(h.fetchers)});let he=new AbortController,pe=Vi(U,he.signal);w.set(C,he);let ge=await Gi("loader",pe,V,Z,d.basename);if(Xn(ge)&&(ge=await C0(ge,pe.signal,!0)||ge),w.get(C)===he&&w.delete(C),pe.signal.aborted)return;if(li(ge)){let at=gu(h,ge);await Nr(ge,at);return}if(wa(ge)){let at=Zo(h.matches,R);h.fetchers.delete(C),it({fetchers:new Map(h.fetchers),errors:{[at.route.id]:ge.error}});return}re(!Xn(ge),"Unhandled fetcher deferred data");let Se={state:"idle",data:ge.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(C,Se),it({fetchers:new Map(h.fetchers)})}async function Nr(C,R,U){C.revalidate&&(g=!0),re(R.location,"Expected a location on the redirect navigation"),v=null;let V=U===!0?Fe.Replace:Fe.Push;await L(V,R.location,{overrideNavigation:R})}async function pr(C,R,U,V,Z){let ie=await Promise.all([...U.map(pe=>Gi("loader",Z,pe,R,d.basename)),...V.map(pe=>{let[,ge,Se,at]=pe;return Gi("loader",Vi(ge,Z.signal),Se,at,d.basename)})]),ce=ie.slice(0,U.length),he=ie.slice(U.length);return await Promise.all([Rg(C,U,ce,Z.signal,!1,h.loaderData),Rg(C,V.map(pe=>{let[,,ge]=pe;return ge}),he,Z.signal,!0)]),{results:ie,loaderResults:ce,fetcherResults:he}}function ln(){g=!0,p.push(...Cl()),se.forEach((C,R)=>{w.has(R)&&(y.push(R),is(R))})}function wl(C,R,U){let V=Zo(h.matches,R);El(C),it({errors:{[V.route.id]:U},fetchers:new Map(h.fetchers)})}function El(C){w.has(C)&&is(C),se.delete(C),M.delete(C),O.delete(C),h.fetchers.delete(C)}function is(C){let R=w.get(C);re(R,"Expected fetch controller: "+C),R.abort(),w.delete(C)}function Jh(C){for(let R of C){let V={state:"idle",data:Ce(R).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(R,V)}}function A0(){let C=[];for(let R of O){let U=h.fetchers.get(R);re(U,"Expected fetcher: "+R),U.state==="loading"&&(O.delete(R),C.push(R))}Jh(C)}function Xh(C){let R=[];for(let[U,V]of M)if(V<C){let Z=h.fetchers.get(U);re(Z,"Expected fetcher: "+U),Z.state==="loading"&&(is(U),M.delete(U),R.push(U))}return Jh(R),R.length>0}function Cl(C){let R=[];return B.forEach((U,V)=>{(!C||C(V))&&(U.cancel(),R.push(V),B.delete(V))}),R}function R0(C,R,U){if(o=C,a=R,i=U||(V=>V.key),!s&&h.navigation===pu){s=!0;let V=Zh(h.location,h.matches);V!=null&&it({restoreScrollPosition:V})}return()=>{o=null,a=null,i=null}}function P0(C,R){if(o&&i&&a){let U=R.map(Z=>Pg(Z,h.loaderData)),V=i(C,U)||C.key;o[V]=a()}}function Zh(C,R){if(o&&i&&a){let U=R.map(ie=>Pg(ie,h.loaderData)),V=i(C,U)||C.key,Z=o[V];if(typeof Z=="number")return Z}return null}return d={get basename(){return t.basename},get state(){return h},get routes(){return e},initialize:vt,subscribe:Dn,enableScrollRestoration:R0,navigate:Oi,fetch:Le,revalidate:xi,createHref:C=>t.history.createHref(C),getFetcher:Ce,deleteFetcher:El,dispose:Ln,_internalFetchControllers:w,_internalActiveDeferreds:B},d}const vI=new Set(["POST","PUT","PATCH","DELETE"]);[...vI];function Cg(t,e,r){r===void 0&&(r=!1);let n=typeof t=="string"?t:nn(t);if(!e||!("formMethod"in e)&&!("formData"in e))return{path:n};if(e.formMethod!=null&&e.formMethod!=="get")return{path:n,submission:{formMethod:e.formMethod,formAction:E0(n),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData}};if(!e.formData)return{path:n};let o=cn(n);try{let i=w0(e.formData);r&&o.search&&S0(o.search)&&i.append("index",""),o.search="?"+i}catch{return{path:n,error:new Ni(400,"Bad Request","Cannot submit binary form data using GET")}}return{path:nn(o)}}function gu(t,e){let{formMethod:r,formAction:n,formEncType:o,formData:i}=t.navigation;return{state:"loading",location:oo(t.location,e.location),formMethod:r||void 0,formAction:n||void 0,formEncType:o||void 0,formData:i||void 0}}function yI(t,e){let r=t;if(e){let n=t.findIndex(o=>o.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function Sg(t,e,r,n,o,i,a,s,c,l){let u=c?Object.values(c)[0]:s?Object.values(s)[0]:null,d=c?Object.keys(c)[0]:void 0,f=yI(e,d).filter((v,E)=>v.route.loader!=null&&(_I(t.loaderData,t.matches[E],v)||i.some(g=>g===v.route.id)||Tg(t.location,t.matches[E],r,n,v,o,u))),m=[];return l&&l.forEach((v,E)=>{let[g,p,y]=v;a.includes(E)?m.push([E,g,p,y]):o&&Tg(g,p,r,g,p,o,u)&&m.push([E,g,p,y])}),[f,m]}function _I(t,e,r){let n=!e||r.route.id!==e.route.id,o=t[r.route.id]===void 0;return n||o}function _0(t,e){let r=t.route.path;return t.pathname!==e.pathname||r&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function Tg(t,e,r,n,o,i,a){let s=Ga(t),c=e.params,l=Ga(n),u=o.params,d=_0(e,o)||s.toString()===l.toString()||s.search!==l.search||i;if(o.route.shouldRevalidate){let h=o.route.shouldRevalidate(Ie({currentUrl:s,currentParams:c,nextUrl:l,nextParams:u},r,{actionResult:a,defaultShouldRevalidate:d}));if(typeof h=="boolean")return h}return d}async function Gi(t,e,r,n,o,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);let s,c,l,u=new Promise((h,f)=>l=f),d=()=>l();e.signal.addEventListener("abort",d);try{let h=r.route[t];re(h,"Could not find the "+t+' to run on the "'+r.route.id+'" route'),c=await Promise.race([h({request:e,params:r.params}),u])}catch(h){s=Ze.error,c=h}finally{e.signal.removeEventListener("abort",d)}if(c instanceof Response){let h=c.status;if(h>=300&&h<=399){let v=c.headers.get("Location");re(v,"Redirects returned/thrown from loaders/actions must have a Location header");let E=n.slice(0,n.indexOf(r)+1),g=v0(E).map(w=>w.pathnameBase),p=Ga(e.url).pathname,y=aI(v,g,p);if(re(nn(y),"Unable to resolve redirect location: "+c.headers.get("Location")),o){let w=y.pathname;y.pathname=w==="/"?o:io([o,w])}if(v=nn(y),i)throw c.headers.set("Location",v),c;return{type:Ze.redirect,status:h,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:s||Ze.data,response:c};let f,m=c.headers.get("Content-Type");return m&&m.startsWith("application/json")?f=await c.json():f=await c.text(),s===Ze.error?{type:s,error:new Ni(h,c.statusText,f),headers:c.headers}:{type:Ze.data,data:f,statusCode:c.status,headers:c.headers}}return s===Ze.error?{type:s,error:c}:c instanceof uI?{type:Ze.deferred,deferredData:c}:{type:Ze.data,data:c}}function Vi(t,e,r){let n=Ga(E0(t)).toString(),o={signal:e};if(r){let{formMethod:i,formEncType:a,formData:s}=r;o.method=i.toUpperCase(),o.body=a==="application/x-www-form-urlencoded"?w0(s):s}return new Request(n,o)}function w0(t){let e=new URLSearchParams;for(let[r,n]of t.entries())re(typeof n=="string",'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),e.append(r,n);return e}function wI(t,e,r,n,o){let i={},a=null,s,c=!1,l={};return r.forEach((u,d)=>{let h=e[d].route.id;if(re(!li(u),"Cannot handle redirect results in processLoaderData"),wa(u)){let f=Zo(t,h),m=u.error;n&&(m=Object.values(n)[0],n=void 0),a=Object.assign(a||{},{[f.route.id]:m}),c||(c=!0,s=y0(u.error)?u.error.status:500),u.headers&&(l[h]=u.headers)}else Xn(u)?(o&&o.set(h,u.deferredData),i[h]=u.deferredData.data):(i[h]=u.data,u.statusCode!=null&&u.statusCode!==200&&!c&&(s=u.statusCode),u.headers&&(l[h]=u.headers))}),n&&(a=n),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:l}}function bg(t,e,r,n,o,i,a,s){let{loaderData:c,errors:l}=wI(e,r,n,o,s);for(let u=0;u<i.length;u++){let[d,,h]=i[u];re(a!==void 0&&a[u]!==void 0,"Did not find corresponding fetcher result");let f=a[u];if(wa(f)){let m=Zo(t.matches,h.route.id);l&&l[m.route.id]||(l=Ie({},l,{[m.route.id]:f.error})),t.fetchers.delete(d)}else{if(li(f))throw new Error("Unhandled fetcher revalidation redirect");if(Xn(f))throw new Error("Unhandled fetcher deferred data");{let m={state:"idle",data:f.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};t.fetchers.set(d,m)}}}return{loaderData:c,errors:l}}function mu(t,e,r){let n=Ie({},e);return r.forEach(o=>{let i=o.route.id;e[i]===void 0&&t[i]!==void 0&&(n[i]=t[i])}),n}function Zo(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function EI(t,e,r){let n=t.find(o=>o.index||!o.path||o.path==="/")||{id:"__shim-"+e+"-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n,error:new Ni(e,r,null)}}function Ig(t){return EI(t,404,"Not Found")}function kg(t){let e=typeof t=="string"?t:nn(t);return console.warn("You're trying to submit to a route that does not have an action. To fix this, please add an `action` function to the route for "+("["+e+"]")),{type:Ze.error,error:new Ni(405,"Method Not Allowed","")}}function Ag(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(li(r))return r}}function E0(t){let e=typeof t=="string"?cn(t):t;return nn(Ie({},e,{hash:""}))}function CI(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}function Xn(t){return t.type===Ze.deferred}function wa(t){return t.type===Ze.error}function li(t){return(t&&t.type)===Ze.redirect}async function Rg(t,e,r,n,o,i){for(let a=0;a<r.length;a++){let s=r[a],c=e[a],l=t.find(d=>d.route.id===c.route.id),u=l!=null&&!_0(l,c)&&(i&&i[c.route.id])!==void 0;Xn(s)&&(o||u)&&await C0(s,n,o).then(d=>{d&&(r[a]=d||r[a])})}}async function C0(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Ze.data,data:t.deferredData.unwrappedData}}catch(o){return{type:Ze.error,error:o}}return{type:Ze.data,data:t.deferredData.data}}}function S0(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Pg(t,e){let{route:r,pathname:n,params:o}=t;return{id:r.id,pathname:n,params:o,data:e[r.id],handle:r.handle}}function Ng(t,e){let r=typeof e=="string"?cn(e).search:e.search;if(t[t.length-1].route.index&&S0(r||""))return t[t.length-1];let n=v0(t);return n[n.length-1]}/**
|
|
372
|
+
*/function Ie(){return Ie=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ie.apply(this,arguments)}var Fe;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Fe||(Fe={}));const wg="popstate";function jb(t){t===void 0&&(t={});function e(n,o){let{pathname:i,search:a,hash:s}=n.location;return oo("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:nn(o)}return qb(e,r,null,t)}function Bb(){return Math.random().toString(36).substr(2,8)}function Eg(t){return{usr:t.state,key:t.key}}function oo(t,e,r,n){return r===void 0&&(r=null),Ie({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?cn(e):e,{state:r,key:e&&e.key||n||Bb()})}function nn(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function cn(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function Wa(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:"unknown://unknown",r=typeof t=="string"?t:nn(t);return new URL(r,e)}function qb(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Fe.Pop,c=null;function l(){s=Fe.Pop,c&&c({action:s,location:h.location})}function u(f,m){s=Fe.Push;let v=oo(h.location,f,m);r&&r(v,f);let E=Eg(v),g=h.createHref(v);try{a.pushState(E,"",g)}catch{o.location.assign(g)}i&&c&&c({action:s,location:h.location})}function d(f,m){s=Fe.Replace;let v=oo(h.location,f,m);r&&r(v,f);let E=Eg(v),g=h.createHref(v);a.replaceState(E,"",g),i&&c&&c({action:s,location:h.location})}let h={get action(){return s},get location(){return t(o,a)},listen(f){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(wg,l),c=f,()=>{o.removeEventListener(wg,l),c=null}},createHref(f){return e(o,f)},encodeLocation(f){let m=Wa(nn(f));return Ie({},f,{pathname:m.pathname,search:m.search,hash:m.hash})},push:u,replace:d,go(f){return a.go(f)}};return h}var Ze;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ze||(Ze={}));function Kb(t){return t.index===!0}function m0(t,e,r){return e===void 0&&(e=[]),r===void 0&&(r=new Set),t.map((n,o)=>{let i=[...e,o],a=typeof n.id=="string"?n.id:i.join("-");return re(n.index!==!0||!n.children,"Cannot specify children on an index route"),re(!r.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),r.add(a),Kb(n)?Ie({},n,{id:a}):Ie({},n,{id:a,children:n.children?m0(n.children,i,r):void 0})})}function ca(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?cn(e):e,o=y0(n.pathname||"/",r);if(o==null)return null;let i=v0(t);Gb(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=tI(i[s],oI(o));return a}function v0(t,e,r,n){return e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n=""),t.forEach((o,i)=>{let a={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(re(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(n.length));let s=io([n,a.relativePath]),c=r.concat(a);o.children&&o.children.length>0&&(re(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),v0(o.children,e,c,s)),!(o.path==null&&!o.index)&&e.push({path:s,score:Zb(s,o.index),routesMeta:c})}),e}function Gb(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:eI(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Vb=/^:\w+$/,Wb=3,Yb=2,Qb=1,Jb=10,Xb=-2,Cg=t=>t==="*";function Zb(t,e){let r=t.split("/"),n=r.length;return r.some(Cg)&&(n+=Xb),e&&(n+=Yb),r.filter(o=>!Cg(o)).reduce((o,i)=>o+(Vb.test(i)?Wb:i===""?Qb:Jb),n)}function eI(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function tI(t,e){let{routesMeta:r}=t,n={},o="/",i=[];for(let a=0;a<r.length;++a){let s=r[a],c=a===r.length-1,l=o==="/"?e:e.slice(o.length)||"/",u=rI({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!u)return null;Object.assign(n,u.params);let d=s.route;i.push({params:n,pathname:io([o,u.pathname]),pathnameBase:lI(io([o,u.pathnameBase])),route:d}),u.pathnameBase!=="/"&&(o=io([o,u.pathnameBase]))}return i}function rI(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=nI(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((l,u,d)=>{if(u==="*"){let h=s[d]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}return l[u]=iI(s[d]||"",u),l},{}),pathname:i,pathnameBase:a,pattern:t}}function nI(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Qh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(a,s)=>(n.push(s),"([^\\/]+)"));return t.endsWith("*")?(n.push("*"),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function oI(t){try{return decodeURI(t)}catch(e){return Qh(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function iI(t,e){try{return decodeURIComponent(t)}catch(r){return Qh(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function y0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function re(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Qh(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function aI(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?cn(t):t;return{pathname:r?r.startsWith("/")?r:sI(r,e):e,search:uI(n),hash:dI(o)}}function sI(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function mu(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _0(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function cI(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=cn(t):(o=Ie({},t),re(!o.pathname||!o.pathname.includes("?"),mu("?","pathname","search",o)),re(!o.pathname||!o.pathname.includes("#"),mu("#","pathname","hash",o)),re(!o.search||!o.search.includes("#"),mu("#","search","hash",o)));let i=t===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let d=e.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}s=d>=0?e[d]:"/"}let c=aI(o,s),l=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const io=t=>t.join("/").replace(/\/\/+/g,"/"),lI=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),uI=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dI=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Sg extends Error{}class hI{constructor(e){this.pendingKeys=new Set,this.subscriber=void 0,re(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,i)=>r=i),this.controller=new AbortController;let n=()=>r(new Sg("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((o,i)=>{let[a,s]=i;return Object.assign(o,{[a]:this.trackPromise(a,s)})},{})}trackPromise(e,r){if(!(r instanceof Promise))return r;this.pendingKeys.add(e);let n=Promise.race([r,this.abortPromise]).then(o=>this.onSettle(n,e,null,o),o=>this.onSettle(n,e,o));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,r,n,o){if(this.controller.signal.aborted&&n instanceof Sg)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);this.pendingKeys.delete(r),this.done&&this.unlistenAbortSignal();const i=this.subscriber;return n?(Object.defineProperty(e,"_error",{get:()=>n}),i&&i(!1),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>o}),i&&i(!1),o)}subscribe(e){this.subscriber=e}cancel(){this.controller.abort(),this.pendingKeys.forEach((r,n)=>this.pendingKeys.delete(n));let e=this.subscriber;e&&e(!0)}async resolveData(e){let r=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),r=await new Promise(o=>{this.subscribe(i=>{e.removeEventListener("abort",n),(i||this.done)&&o(i)})})}return r}get done(){return this.pendingKeys.size===0}get unwrappedData(){return re(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,r)=>{let[n,o]=r;return Object.assign(e,{[n]:pI(o)})},{})}}function fI(t){return t instanceof Promise&&t._tracked===!0}function pI(t){if(!fI(t))return t;if(t._error)throw t._error;return t._data}class Ni{constructor(e,r,n){this.status=e,this.statusText=r||"",this.data=n}}function w0(t){return t instanceof Ni}const vu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},gI={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},mI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vI=!mI;function yI(t){re(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=m0(t.routes),r=null,n=new Set,o=null,i=null,a=null,s=!1,c=ca(e,t.history.location,t.basename),l=null;if(c==null){let{matches:C,route:R,error:U}=Ag(e);c=C,l={[R.id]:U}}let u=!c.some(C=>C.route.loader)||t.hydrationData!=null,d,h={historyAction:t.history.action,location:t.history.location,matches:c,initialized:u,navigation:vu,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||l,fetchers:new Map},f=Fe.Pop,m=!1,v,E=!1,g=!1,p=[],y=[],w=new Map,k=0,P=-1,M=new Map,O=new Set,se=new Map,B=new Map;function _t(){return r=t.history.listen(C=>{let{action:R,location:U}=C;return L(R,U)}),h.initialized||L(Fe.Pop,h.location),d}function Ln(){r&&r(),n.clear(),v&&v.abort(),h.fetchers.forEach((C,R)=>Il(R))}function Dn(C){return n.add(C),()=>n.delete(C)}function it(C){h=Ie({},h,C),n.forEach(R=>R(h))}function Hn(C,R){var U;let V=h.actionData!=null&&h.navigation.formMethod!=null&&h.navigation.state==="loading"&&((U=h.navigation.formAction)==null?void 0:U.split("?")[0])===C.pathname,Z=R.loaderData?{loaderData:_u(h.loaderData,R.loaderData,R.matches||[])}:{};it(Ie({},V?{}:{actionData:null},R,Z,{historyAction:f,location:C,initialized:!0,navigation:vu,revalidation:"idle",restoreScrollPosition:h.navigation.formData?!1:tf(C,R.matches||h.matches),preventScrollReset:m})),E||f===Fe.Pop||(f===Fe.Push?t.history.push(C,C.state):f===Fe.Replace&&t.history.replace(C,C.state)),f=Fe.Pop,m=!1,E=!1,g=!1,p=[],y=[]}async function Oi(C,R){if(typeof C=="number"){t.history.go(C);return}let{path:U,submission:V,error:Z}=Tg(C,R),ie=oo(h.location,U,R&&R.state);ie=t.history.encodeLocation(ie);let ce=(R&&R.replace)===!0||V!=null?Fe.Replace:Fe.Push,he=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0;return await L(ce,ie,{submission:V,pendingError:Z,preventScrollReset:he,replace:R&&R.replace})}function xi(){if(ln(),it({revalidation:"loading"}),h.navigation.state!=="submitting"){if(h.navigation.state==="idle"){L(h.historyAction,h.location,{startUninterruptedRevalidation:!0});return}L(f||h.historyAction,h.navigation.location,{overrideNavigation:h.navigation})}}async function L(C,R,U){v&&v.abort(),v=null,f=C,E=(U&&U.startUninterruptedRevalidation)===!0,O0(h.location,h.matches),m=(U&&U.preventScrollReset)===!0;let V=U&&U.overrideNavigation,Z=ca(e,R,t.basename);if(!Z){let{matches:at,route:Eo,error:Or}=Ag(e);kl(),Hn(R,{matches:at,loaderData:{},errors:{[Eo.id]:Or}});return}if(TI(h.location,R)){Hn(R,{matches:Z});return}v=new AbortController;let ie=Wi(R,v.signal,U&&U.submission),ce,he;if(U&&U.pendingError)he={[Zo(Z).route.id]:U.pendingError};else if(U&&U.submission){let at=await J(ie,R,U.submission,Z,{replace:U.replace});if(at.shortCircuited)return;ce=at.pendingActionData,he=at.pendingActionError,V=Ie({state:"loading",location:R},U.submission)}let{shortCircuited:pe,loaderData:ge,errors:Se}=await X(ie,R,Z,V,U&&U.submission,U&&U.replace,ce,he);pe||(v=null,Hn(R,{matches:Z,loaderData:ge,errors:Se}))}async function J(C,R,U,V,Z){ln();let ie=Ie({state:"submitting",location:R},U);it({navigation:ie});let ce,he=xg(V,R);if(!he.route.action)ce=Rg(R);else if(ce=await Vi("action",C,he,V,d.basename),C.signal.aborted)return{shortCircuited:!0};if(li(ce)){let pe=Ie({state:"loading",location:oo(h.location,ce.location)},U);return await Nr(ce,pe,Z&&Z.replace),{shortCircuited:!0}}if(Ca(ce)){let pe=Zo(V,he.route.id);return(Z&&Z.replace)!==!0&&(f=Fe.Push),{pendingActionError:{[pe.route.id]:ce.error}}}if(Xn(ce))throw new Error("defer() is not supported in actions");return{pendingActionData:{[he.route.id]:ce.data}}}async function X(C,R,U,V,Z,ie,ce,he){let pe=V;pe||(pe={state:"loading",location:R,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0});let[ge,Se]=bg(h,U,Z,R,g,p,y,ce,he,se);if(kl(st=>!(U&&U.some(It=>It.route.id===st))||ge&&ge.some(It=>It.route.id===st)),ge.length===0&&Se.length===0)return Hn(R,{matches:U,loaderData:_u(h.loaderData,{},U),errors:he||null,actionData:ce||null}),{shortCircuited:!0};E||(Se.forEach(st=>{let[It]=st,So=h.fetchers.get(It),Mi={state:"loading",data:So&&So.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(It,Mi)}),it(Ie({navigation:pe,actionData:ce||h.actionData||null},Se.length>0?{fetchers:new Map(h.fetchers)}:{}))),P=++k,Se.forEach(st=>{let[It]=st;return w.set(It,v)});let{results:at,loaderResults:Eo,fetcherResults:Or}=await pr(h.matches,U,ge,Se,C);if(C.signal.aborted)return{shortCircuited:!0};Se.forEach(st=>{let[It]=st;return w.delete(It)});let Fn=Pg(at);if(Fn){let st=yu(h,Fn);return await Nr(Fn,st,ie),{shortCircuited:!0}}let{loaderData:Al,errors:cs}=kg(h,U,ge,Eo,he,Se,Or,B);B.forEach((st,It)=>{st.subscribe(So=>{(So||st.done)&&B.delete(It)})}),P0();let Co=ef(P);return Ie({loaderData:Al,errors:cs},Co||Se.length>0?{fetchers:new Map(h.fetchers)}:{})}function Ce(C){return h.fetchers.get(C)||gI}function Le(C,R,U,V){if(vI)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");w.has(C)&&ss(C);let Z=ca(e,U,t.basename);if(!Z){bl(C,R,new Ni(404,"Not Found",null));return}let{path:ie,submission:ce}=Tg(U,V,!0),he=xg(Z,ie);if(ce){wo(C,R,ie,he,Z,ce);return}se.set(C,[ie,he,Z]),Pr(C,R,ie,he,Z)}async function wo(C,R,U,V,Z,ie){if(ln(),se.delete(C),!V.route.action){let{error:er}=Rg(U);bl(C,R,er);return}let ce=h.fetchers.get(C),he=Ie({state:"submitting"},ie,{data:ce&&ce.data});h.fetchers.set(C,he),it({fetchers:new Map(h.fetchers)});let pe=new AbortController,ge=Wi(U,pe.signal,ie);w.set(C,pe);let Se=await Vi("action",ge,V,Z,d.basename);if(ge.signal.aborted){w.get(C)===pe&&w.delete(C);return}if(li(Se)){w.delete(C),O.add(C);let er=Ie({state:"loading"},ie,{data:void 0});h.fetchers.set(C,er),it({fetchers:new Map(h.fetchers)});let xr=Ie({state:"loading",location:oo(h.location,Se.location)},ie);await Nr(Se,xr);return}if(Ca(Se)){bl(C,R,Se.error);return}Xn(Se)&&re(!1,"defer() is not supported in actions");let at=h.navigation.location||h.location,Eo=Wi(at,pe.signal),Or=h.navigation.state!=="idle"?ca(e,h.navigation.location,t.basename):h.matches;re(Or,"Didn't find any matches after fetcher action");let Fn=++k;M.set(C,Fn);let Al=Ie({state:"loading",data:Se.data},ie);h.fetchers.set(C,Al);let[cs,Co]=bg(h,Or,ie,at,g,p,y,{[V.route.id]:Se.data},void 0,se);Co.filter(er=>{let[xr]=er;return xr!==C}).forEach(er=>{let[xr]=er,of=h.fetchers.get(xr),U0={state:"loading",data:of&&of.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(xr,U0),w.set(xr,pe)}),it({fetchers:new Map(h.fetchers)});let{results:st,loaderResults:It,fetcherResults:So}=await pr(h.matches,Or,cs,Co,Eo);if(pe.signal.aborted)return;M.delete(C),w.delete(C),Co.forEach(er=>{let[xr]=er;return w.delete(xr)});let Mi=Pg(st);if(Mi){let er=yu(h,Mi);await Nr(Mi,er);return}let{loaderData:rf,errors:nf}=kg(h,h.matches,cs,It,void 0,Co,So,B),x0={state:"idle",data:Se.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(C,x0);let M0=ef(Fn);h.navigation.state==="loading"&&Fn>P?(re(f,"Expected pending action"),v&&v.abort(),Hn(h.navigation.location,{matches:Or,loaderData:rf,errors:nf,fetchers:new Map(h.fetchers)})):(it(Ie({errors:nf,loaderData:_u(h.loaderData,rf,Or)},M0?{fetchers:new Map(h.fetchers)}:{})),g=!1)}async function Pr(C,R,U,V,Z){let ie=h.fetchers.get(C),ce={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:ie&&ie.data};h.fetchers.set(C,ce),it({fetchers:new Map(h.fetchers)});let he=new AbortController,pe=Wi(U,he.signal);w.set(C,he);let ge=await Vi("loader",pe,V,Z,d.basename);if(Xn(ge)&&(ge=await T0(ge,pe.signal,!0)||ge),w.get(C)===he&&w.delete(C),pe.signal.aborted)return;if(li(ge)){let at=yu(h,ge);await Nr(ge,at);return}if(Ca(ge)){let at=Zo(h.matches,R);h.fetchers.delete(C),it({fetchers:new Map(h.fetchers),errors:{[at.route.id]:ge.error}});return}re(!Xn(ge),"Unhandled fetcher deferred data");let Se={state:"idle",data:ge.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(C,Se),it({fetchers:new Map(h.fetchers)})}async function Nr(C,R,U){C.revalidate&&(g=!0),re(R.location,"Expected a location on the redirect navigation"),v=null;let V=U===!0?Fe.Replace:Fe.Push;await L(V,R.location,{overrideNavigation:R})}async function pr(C,R,U,V,Z){let ie=await Promise.all([...U.map(pe=>Vi("loader",Z,pe,R,d.basename)),...V.map(pe=>{let[,ge,Se,at]=pe;return Vi("loader",Wi(ge,Z.signal),Se,at,d.basename)})]),ce=ie.slice(0,U.length),he=ie.slice(U.length);return await Promise.all([Ng(C,U,ce,Z.signal,!1,h.loaderData),Ng(C,V.map(pe=>{let[,,ge]=pe;return ge}),he,Z.signal,!0)]),{results:ie,loaderResults:ce,fetcherResults:he}}function ln(){g=!0,p.push(...kl()),se.forEach((C,R)=>{w.has(R)&&(y.push(R),ss(R))})}function bl(C,R,U){let V=Zo(h.matches,R);Il(C),it({errors:{[V.route.id]:U},fetchers:new Map(h.fetchers)})}function Il(C){w.has(C)&&ss(C),se.delete(C),M.delete(C),O.delete(C),h.fetchers.delete(C)}function ss(C){let R=w.get(C);re(R,"Expected fetch controller: "+C),R.abort(),w.delete(C)}function Zh(C){for(let R of C){let V={state:"idle",data:Ce(R).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(R,V)}}function P0(){let C=[];for(let R of O){let U=h.fetchers.get(R);re(U,"Expected fetcher: "+R),U.state==="loading"&&(O.delete(R),C.push(R))}Zh(C)}function ef(C){let R=[];for(let[U,V]of M)if(V<C){let Z=h.fetchers.get(U);re(Z,"Expected fetcher: "+U),Z.state==="loading"&&(ss(U),M.delete(U),R.push(U))}return Zh(R),R.length>0}function kl(C){let R=[];return B.forEach((U,V)=>{(!C||C(V))&&(U.cancel(),R.push(V),B.delete(V))}),R}function N0(C,R,U){if(o=C,a=R,i=U||(V=>V.key),!s&&h.navigation===vu){s=!0;let V=tf(h.location,h.matches);V!=null&&it({restoreScrollPosition:V})}return()=>{o=null,a=null,i=null}}function O0(C,R){if(o&&i&&a){let U=R.map(Z=>Og(Z,h.loaderData)),V=i(C,U)||C.key;o[V]=a()}}function tf(C,R){if(o&&i&&a){let U=R.map(ie=>Og(ie,h.loaderData)),V=i(C,U)||C.key,Z=o[V];if(typeof Z=="number")return Z}return null}return d={get basename(){return t.basename},get state(){return h},get routes(){return e},initialize:_t,subscribe:Dn,enableScrollRestoration:N0,navigate:Oi,fetch:Le,revalidate:xi,createHref:C=>t.history.createHref(C),getFetcher:Ce,deleteFetcher:Il,dispose:Ln,_internalFetchControllers:w,_internalActiveDeferreds:B},d}const _I=new Set(["POST","PUT","PATCH","DELETE"]);[..._I];function Tg(t,e,r){r===void 0&&(r=!1);let n=typeof t=="string"?t:nn(t);if(!e||!("formMethod"in e)&&!("formData"in e))return{path:n};if(e.formMethod!=null&&e.formMethod!=="get")return{path:n,submission:{formMethod:e.formMethod,formAction:S0(n),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData}};if(!e.formData)return{path:n};let o=cn(n);try{let i=C0(e.formData);r&&o.search&&b0(o.search)&&i.append("index",""),o.search="?"+i}catch{return{path:n,error:new Ni(400,"Bad Request","Cannot submit binary form data using GET")}}return{path:nn(o)}}function yu(t,e){let{formMethod:r,formAction:n,formEncType:o,formData:i}=t.navigation;return{state:"loading",location:oo(t.location,e.location),formMethod:r||void 0,formAction:n||void 0,formEncType:o||void 0,formData:i||void 0}}function wI(t,e){let r=t;if(e){let n=t.findIndex(o=>o.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function bg(t,e,r,n,o,i,a,s,c,l){let u=c?Object.values(c)[0]:s?Object.values(s)[0]:null,d=c?Object.keys(c)[0]:void 0,f=wI(e,d).filter((v,E)=>v.route.loader!=null&&(EI(t.loaderData,t.matches[E],v)||i.some(g=>g===v.route.id)||Ig(t.location,t.matches[E],r,n,v,o,u))),m=[];return l&&l.forEach((v,E)=>{let[g,p,y]=v;a.includes(E)?m.push([E,g,p,y]):o&&Ig(g,p,r,g,p,o,u)&&m.push([E,g,p,y])}),[f,m]}function EI(t,e,r){let n=!e||r.route.id!==e.route.id,o=t[r.route.id]===void 0;return n||o}function E0(t,e){let r=t.route.path;return t.pathname!==e.pathname||r&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function Ig(t,e,r,n,o,i,a){let s=Wa(t),c=e.params,l=Wa(n),u=o.params,d=E0(e,o)||s.toString()===l.toString()||s.search!==l.search||i;if(o.route.shouldRevalidate){let h=o.route.shouldRevalidate(Ie({currentUrl:s,currentParams:c,nextUrl:l,nextParams:u},r,{actionResult:a,defaultShouldRevalidate:d}));if(typeof h=="boolean")return h}return d}async function Vi(t,e,r,n,o,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);let s,c,l,u=new Promise((h,f)=>l=f),d=()=>l();e.signal.addEventListener("abort",d);try{let h=r.route[t];re(h,"Could not find the "+t+' to run on the "'+r.route.id+'" route'),c=await Promise.race([h({request:e,params:r.params}),u])}catch(h){s=Ze.error,c=h}finally{e.signal.removeEventListener("abort",d)}if(c instanceof Response){let h=c.status;if(h>=300&&h<=399){let v=c.headers.get("Location");re(v,"Redirects returned/thrown from loaders/actions must have a Location header");let E=n.slice(0,n.indexOf(r)+1),g=_0(E).map(w=>w.pathnameBase),p=Wa(e.url).pathname,y=cI(v,g,p);if(re(nn(y),"Unable to resolve redirect location: "+c.headers.get("Location")),o){let w=y.pathname;y.pathname=w==="/"?o:io([o,w])}if(v=nn(y),i)throw c.headers.set("Location",v),c;return{type:Ze.redirect,status:h,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:s||Ze.data,response:c};let f,m=c.headers.get("Content-Type");return m&&m.startsWith("application/json")?f=await c.json():f=await c.text(),s===Ze.error?{type:s,error:new Ni(h,c.statusText,f),headers:c.headers}:{type:Ze.data,data:f,statusCode:c.status,headers:c.headers}}return s===Ze.error?{type:s,error:c}:c instanceof hI?{type:Ze.deferred,deferredData:c}:{type:Ze.data,data:c}}function Wi(t,e,r){let n=Wa(S0(t)).toString(),o={signal:e};if(r){let{formMethod:i,formEncType:a,formData:s}=r;o.method=i.toUpperCase(),o.body=a==="application/x-www-form-urlencoded"?C0(s):s}return new Request(n,o)}function C0(t){let e=new URLSearchParams;for(let[r,n]of t.entries())re(typeof n=="string",'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),e.append(r,n);return e}function CI(t,e,r,n,o){let i={},a=null,s,c=!1,l={};return r.forEach((u,d)=>{let h=e[d].route.id;if(re(!li(u),"Cannot handle redirect results in processLoaderData"),Ca(u)){let f=Zo(t,h),m=u.error;n&&(m=Object.values(n)[0],n=void 0),a=Object.assign(a||{},{[f.route.id]:m}),c||(c=!0,s=w0(u.error)?u.error.status:500),u.headers&&(l[h]=u.headers)}else Xn(u)?(o&&o.set(h,u.deferredData),i[h]=u.deferredData.data):(i[h]=u.data,u.statusCode!=null&&u.statusCode!==200&&!c&&(s=u.statusCode),u.headers&&(l[h]=u.headers))}),n&&(a=n),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:l}}function kg(t,e,r,n,o,i,a,s){let{loaderData:c,errors:l}=CI(e,r,n,o,s);for(let u=0;u<i.length;u++){let[d,,h]=i[u];re(a!==void 0&&a[u]!==void 0,"Did not find corresponding fetcher result");let f=a[u];if(Ca(f)){let m=Zo(t.matches,h.route.id);l&&l[m.route.id]||(l=Ie({},l,{[m.route.id]:f.error})),t.fetchers.delete(d)}else{if(li(f))throw new Error("Unhandled fetcher revalidation redirect");if(Xn(f))throw new Error("Unhandled fetcher deferred data");{let m={state:"idle",data:f.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};t.fetchers.set(d,m)}}}return{loaderData:c,errors:l}}function _u(t,e,r){let n=Ie({},e);return r.forEach(o=>{let i=o.route.id;e[i]===void 0&&t[i]!==void 0&&(n[i]=t[i])}),n}function Zo(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function SI(t,e,r){let n=t.find(o=>o.index||!o.path||o.path==="/")||{id:"__shim-"+e+"-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n,error:new Ni(e,r,null)}}function Ag(t){return SI(t,404,"Not Found")}function Rg(t){let e=typeof t=="string"?t:nn(t);return console.warn("You're trying to submit to a route that does not have an action. To fix this, please add an `action` function to the route for "+("["+e+"]")),{type:Ze.error,error:new Ni(405,"Method Not Allowed","")}}function Pg(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(li(r))return r}}function S0(t){let e=typeof t=="string"?cn(t):t;return nn(Ie({},e,{hash:""}))}function TI(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}function Xn(t){return t.type===Ze.deferred}function Ca(t){return t.type===Ze.error}function li(t){return(t&&t.type)===Ze.redirect}async function Ng(t,e,r,n,o,i){for(let a=0;a<r.length;a++){let s=r[a],c=e[a],l=t.find(d=>d.route.id===c.route.id),u=l!=null&&!E0(l,c)&&(i&&i[c.route.id])!==void 0;Xn(s)&&(o||u)&&await T0(s,n,o).then(d=>{d&&(r[a]=d||r[a])})}}async function T0(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Ze.data,data:t.deferredData.unwrappedData}}catch(o){return{type:Ze.error,error:o}}return{type:Ze.data,data:t.deferredData.data}}}function b0(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Og(t,e){let{route:r,pathname:n,params:o}=t;return{id:r.id,pathname:n,params:o,data:e[r.id],handle:r.handle}}function xg(t,e){let r=typeof e=="string"?cn(e).search:e.search;if(t[t.length-1].route.index&&b0(r||""))return t[t.length-1];let n=_0(t);return n[n.length-1]}/**
|
|
373
373
|
* React Router v6.4.3
|
|
374
374
|
*
|
|
375
375
|
* Copyright (c) Remix Software Inc.
|
|
@@ -378,7 +378,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
378
378
|
* LICENSE.md file in the root directory of this source tree.
|
|
379
379
|
*
|
|
380
380
|
* @license MIT
|
|
381
|
-
*/function
|
|
381
|
+
*/function Xc(){return Xc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xc.apply(this,arguments)}function bI(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const II=typeof Object.is=="function"?Object.is:bI,{useState:kI,useEffect:AI,useLayoutEffect:RI,useDebugValue:PI}=Eu;function NI(t,e,r){const n=e(),[{inst:o},i]=kI({inst:{value:n,getSnapshot:e}});return RI(()=>{o.value=n,o.getSnapshot=e,wu(o)&&i({inst:o})},[t,n,e]),AI(()=>(wu(o)&&i({inst:o}),t(()=>{wu(o)&&i({inst:o})})),[t]),PI(n),n}function wu(t){const e=t.getSnapshot,r=t.value;try{const n=e();return!II(r,n)}catch{return!0}}function OI(t,e,r){return e()}const xI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",MI=!xI,UI=MI?OI:NI,LI="useSyncExternalStore"in Eu?(t=>t.useSyncExternalStore)(Eu):UI,DI=j.exports.createContext(null),I0=j.exports.createContext(null),Jh=j.exports.createContext(null),HI=j.exports.createContext(null),Tl=j.exports.createContext(null),as=j.exports.createContext({outlet:null,matches:[]}),k0=j.exports.createContext(null);function Xh(){return j.exports.useContext(Tl)!=null}function FI(){return Xh()||re(!1),j.exports.useContext(Tl).location}const $I=j.exports.createContext(null);function zI(t){let e=j.exports.useContext(as).outlet;return e&&W($I.Provider,{value:t,children:e})}function jI(){let{matches:t}=j.exports.useContext(as),e=t[t.length-1];return e?e.params:{}}function BI(t,e){Xh()||re(!1);let r=j.exports.useContext(Jh),{matches:n}=j.exports.useContext(as),o=n[n.length-1],i=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let s=FI(),c;if(e){var l;let m=typeof e=="string"?cn(e):e;a==="/"||((l=m.pathname)==null?void 0:l.startsWith(a))||re(!1),c=m}else c=s;let u=c.pathname||"/",d=a==="/"?u:u.slice(a.length)||"/",h=ca(t,{pathname:d}),f=VI(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:io([a,m.pathname]),pathnameBase:m.pathnameBase==="/"?a:io([a,m.pathnameBase])})),n,r||void 0);return e&&f?W(Tl.Provider,{value:{location:Xc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Fe.Pop},children:f}):f}function qI(){let t=YI(),e=w0(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n};return no(Yy,{children:[W("h2",{children:"Unhandled Thrown Error!"}),W("h3",{style:{fontStyle:"italic"},children:e}),r?W("pre",{style:o,children:r}):null,W("p",{children:"\u{1F4BF} Hey developer \u{1F44B}"}),no("p",{children:["You can provide a way better UX than this when your app throws errors by providing your own\xA0",W("code",{style:i,children:"errorElement"})," props on\xA0",W("code",{style:i,children:"<Route>"})]})]})}class KI extends j.exports.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location?{error:e.error,location:e.location}:{error:e.error||r.error,location:r.location}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?W(k0.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function GI(t){let{routeContext:e,match:r,children:n}=t,o=j.exports.useContext(DI);return o&&r.route.errorElement&&(o._deepestRenderedBoundaryId=r.route.id),W(as.Provider,{value:e,children:n})}function VI(t,e,r){if(e===void 0&&(e=[]),t==null)if(r!=null&&r.errors)t=r.matches;else return null;let n=t,o=r==null?void 0:r.errors;if(o!=null){let i=n.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||re(!1),n=n.slice(0,Math.min(n.length,i+1))}return n.reduceRight((i,a,s)=>{let c=a.route.id?o==null?void 0:o[a.route.id]:null,l=r?a.route.errorElement||W(qI,{}):null,u=()=>W(GI,{match:a,routeContext:{outlet:i,matches:e.concat(n.slice(0,s+1))},children:c?l:a.route.element!==void 0?a.route.element:i});return r&&(a.route.errorElement||s===0)?W(KI,{location:r.location,component:l,error:c,children:u()}):u()},null)}var Mg;(function(t){t.UseRevalidator="useRevalidator"})(Mg||(Mg={}));var Dd;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(Dd||(Dd={}));function WI(t){let e=j.exports.useContext(Jh);return e||re(!1),e}function YI(){var t;let e=j.exports.useContext(k0),r=WI(Dd.UseRouteError),n=j.exports.useContext(as),o=n.matches[n.matches.length-1];return e||(n||re(!1),o.route.id||re(!1),(t=r.errors)==null?void 0:t[o.route.id])}function QI(t){let{fallbackElement:e,router:r}=t,n=LI(r.subscribe,()=>r.state,()=>r.state),o=j.exports.useMemo(()=>({createHref:r.createHref,go:a=>r.navigate(a),push:(a,s,c)=>r.navigate(a,{state:s,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(a,s,c)=>r.navigate(a,{replace:!0,state:s,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[r]),i=r.basename||"/";return W(I0.Provider,{value:{router:r,navigator:o,static:!1,basename:i},children:W(Jh.Provider,{value:n,children:W(ZI,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:o,children:r.state.initialized?W(ek,{}):e})})})}function JI(t){return zI(t.context)}function XI(t){re(!1)}function ZI(t){let{basename:e="/",children:r=null,location:n,navigationType:o=Fe.Pop,navigator:i,static:a=!1}=t;Xh()&&re(!1);let s=e.replace(/^\/*/,"/"),c=j.exports.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=cn(n));let{pathname:l="/",search:u="",hash:d="",state:h=null,key:f="default"}=n,m=j.exports.useMemo(()=>{let v=y0(l,s);return v==null?null:{pathname:v,search:u,hash:d,state:h,key:f}},[s,l,u,d,h,f]);return m==null?null:W(HI.Provider,{value:c,children:W(Tl.Provider,{children:r,value:{location:m,navigationType:o}})})}function ek(t){let{children:e,location:r}=t,n=j.exports.useContext(I0),o=n&&!e?n.router.routes:Hd(e);return BI(o,r)}var Ug;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(Ug||(Ug={}));new Promise(()=>{});function Hd(t,e){e===void 0&&(e=[]);let r=[];return j.exports.Children.forEach(t,(n,o)=>{if(!j.exports.isValidElement(n))return;if(n.type===j.exports.Fragment){r.push.apply(r,Hd(n.props.children,e));return}n.type!==XI&&re(!1),!n.props.index||!n.props.children||re(!1);let i=[...e,o],a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(a.children=Hd(n.props.children,i)),r.push(a)}),r}function A0(t){return t.map(e=>{let r=Xc({},e);return r.hasErrorBoundary==null&&(r.hasErrorBoundary=r.errorElement!=null),r.children&&(r.children=A0(r.children)),r})}/**
|
|
382
382
|
* React Router DOM v6.4.3
|
|
383
383
|
*
|
|
384
384
|
* Copyright (c) Remix Software Inc.
|
|
@@ -387,4 +387,4 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
387
387
|
* LICENSE.md file in the root directory of this source tree.
|
|
388
388
|
*
|
|
389
389
|
* @license MIT
|
|
390
|
-
*/function
|
|
390
|
+
*/function tk(t,e){var r;return yI({basename:e==null?void 0:e.basename,history:jb({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||((r=window)==null?void 0:r.__staticRouterHydrationData),routes:A0(t)}).initialize()}var Lg;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(Lg||(Lg={}));var Dg;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Dg||(Dg={}));const R0=({error:t})=>no(Yy,{children:[no("div",{style:{marginTop:20,border:"1px solid"},children:[no("h4",{style:{backgroundColor:"rgb(153, 0, 37)",color:"white",padding:10,margin:0},children:[t.name," - ",t.message]}),W("section",{style:{padding:10},children:t.stack&&W("pre",{children:t.stack})})]}),t.cause&&W(R0,{error:t.cause})]}),rk=t=>{const{appKey:e}=t,r=O1(),n=j.exports.useRef(null),[o,i]=j.exports.useState(),[a,s]=j.exports.useState(!1),[c,l]=j.exports.useState();return j.exports.useEffect(()=>{s(!0);const u=r.modules.app.loadApp(e).subscribe({next:d=>i(d),error:l,complete:()=>{s(!1)}});return()=>u.unsubscribe()},[e]),j.exports.useEffect(()=>{var u;if(o&&n.current){const{manifest:d,config:h,module:f}=o;return((u=f.render)!=null?u:f.default)(n.current,{fusion:r,env:{manifest:d,config:h}})}},[r,n,o]),c?no("div",{children:[W("h2",{children:"\u{1F525} Failed to load application \u{1F92C}"}),W(R0,{error:c}),";"]}):no("div",{children:[a&&W(g0,{text:"Loading Application"}),W("span",{ref:n,style:{display:o?"":"none"}})]})},nk=()=>W("div",{style:{fontFamily:"Equinor"},children:W(JI,{})}),ok=()=>{const{appKey:t}=jI();return t?W(rk,{appKey:t}):null},ik=tk([{path:"/",element:W(nk,{}),children:[{path:"apps/:appKey",element:W(ok,{})},{path:"test",element:W("p",{children:"ok"})}]}]),ak=()=>W(QI,{router:ik,fallbackElement:W("p",{children:"wooot"})});Cu.createRoot(document.getElementById("root")).render(W(Qa.StrictMode,{children:W(yb,{theme:Ke,children:W(x1,{configure:zb,fallback:W(g0,{text:"Loading framework"}),children:W(ak,{})})})}));
|