@equinor/fusion-framework-cli 1.0.2 → 1.1.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,390 +0,0 @@
1
- function x_(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 M_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j={exports:{}},te={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var us=Symbol.for("react.element"),U_=Symbol.for("react.portal"),L_=Symbol.for("react.fragment"),D_=Symbol.for("react.strict_mode"),H_=Symbol.for("react.profiler"),F_=Symbol.for("react.provider"),$_=Symbol.for("react.context"),z_=Symbol.for("react.forward_ref"),j_=Symbol.for("react.suspense"),B_=Symbol.for("react.memo"),q_=Symbol.for("react.lazy"),Ff=Symbol.iterator;function K_(t){return t===null||typeof t!="object"?null:(t=Ff&&t[Ff]||t["@@iterator"],typeof t=="function"?t:null)}var km={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rm=Object.assign,Pm={};function Li(t,e,r){this.props=t,this.context=e,this.refs=Pm,this.updater=r||km}Li.prototype.isReactComponent={};Li.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")};Li.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Nm(){}Nm.prototype=Li.prototype;function dh(t,e,r){this.props=t,this.context=e,this.refs=Pm,this.updater=r||km}var hh=dh.prototype=new Nm;hh.constructor=dh;Rm(hh,Li.prototype);hh.isPureReactComponent=!0;var $f=Array.isArray,Om=Object.prototype.hasOwnProperty,fh={current:null},xm={key:!0,ref:!0,__self:!0,__source:!0};function Mm(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)Om.call(e,n)&&!xm.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:us,type:t,key:i,ref:a,props:o,_owner:fh.current}}function G_(t,e){return{$$typeof:us,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function ph(t){return typeof t=="object"&&t!==null&&t.$$typeof===us}function V_(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var zf=/\/+/g;function Wl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?V_(""+t.key):e.toString(36)}function Ys(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 us:case U_:a=!0}}if(a)return a=t,o=o(a),t=n===""?"."+Wl(a,0):n,$f(o)?(r="",t!=null&&(r=t.replace(zf,"$&/")+"/"),Ys(o,e,r,"",function(l){return l})):o!=null&&(ph(o)&&(o=G_(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(zf,"$&/")+"/")+t)),e.push(o)),1;if(a=0,n=n===""?".":n+":",$f(t))for(var s=0;s<t.length;s++){i=t[s];var c=n+Wl(i,s);a+=Ys(i,e,r,c,o)}else if(c=K_(t),typeof c=="function")for(t=c.call(t),s=0;!(i=t.next()).done;)i=i.value,c=n+Wl(i,s++),a+=Ys(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 Ts(t,e,r){if(t==null)return t;var n=[],o=0;return Ys(t,n,"","",function(i){return e.call(r,i,o++)}),n}function W_(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 bt={current:null},Qs={transition:null},Y_={ReactCurrentDispatcher:bt,ReactCurrentBatchConfig:Qs,ReactCurrentOwner:fh};te.Children={map:Ts,forEach:function(t,e,r){Ts(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return Ts(t,function(){e++}),e},toArray:function(t){return Ts(t,function(e){return e})||[]},only:function(t){if(!ph(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};te.Component=Li;te.Fragment=L_;te.Profiler=H_;te.PureComponent=dh;te.StrictMode=D_;te.Suspense=j_;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y_;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=Rm({},t.props),o=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=fh.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in e)Om.call(e,c)&&!xm.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:us,type:t.type,key:o,ref:i,props:n,_owner:a}};te.createContext=function(t){return t={$$typeof:$_,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:F_,_context:t},t.Consumer=t};te.createElement=Mm;te.createFactory=function(t){var e=Mm.bind(null,t);return e.type=t,e};te.createRef=function(){return{current:null}};te.forwardRef=function(t){return{$$typeof:z_,render:t}};te.isValidElement=ph;te.lazy=function(t){return{$$typeof:q_,_payload:{_status:-1,_result:t},_init:W_}};te.memo=function(t,e){return{$$typeof:B_,type:t,compare:e===void 0?null:e}};te.startTransition=function(t){var e=Qs.transition;Qs.transition={};try{t()}finally{Qs.transition=e}};te.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};te.useCallback=function(t,e){return bt.current.useCallback(t,e)};te.useContext=function(t){return bt.current.useContext(t)};te.useDebugValue=function(){};te.useDeferredValue=function(t){return bt.current.useDeferredValue(t)};te.useEffect=function(t,e){return bt.current.useEffect(t,e)};te.useId=function(){return bt.current.useId()};te.useImperativeHandle=function(t,e,r){return bt.current.useImperativeHandle(t,e,r)};te.useInsertionEffect=function(t,e){return bt.current.useInsertionEffect(t,e)};te.useLayoutEffect=function(t,e){return bt.current.useLayoutEffect(t,e)};te.useMemo=function(t,e){return bt.current.useMemo(t,e)};te.useReducer=function(t,e,r){return bt.current.useReducer(t,e,r)};te.useRef=function(t){return bt.current.useRef(t)};te.useState=function(t){return bt.current.useState(t)};te.useSyncExternalStore=function(t,e,r){return bt.current.useSyncExternalStore(t,e,r)};te.useTransition=function(){return bt.current.useTransition()};te.version="18.2.0";(function(t){t.exports=te})(j);const ds=M_(j.exports),qu=x_({__proto__:null,default:ds},[j.exports]);var Ku={},Um={exports:{}},Kt={},Lm={exports:{}},Dm={};/**
10
- * @license React
11
- * scheduler.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
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 Se=X-1>>>1,Le=L[Se];if(0<o(Le,J))L[Se]=J,L[X]=Le,X=Se;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 Se=0,Le=L.length,xo=Le>>>1;Se<xo;){var Fr=2*(Se+1)-1,$r=L[Fr],Er=Fr+1,yn=L[Er];if(0>o($r,X))Er<Le&&0>o(yn,$r)?(L[Se]=yn,L[Er]=X,Se=Er):(L[Se]=$r,L[Fr]=X,Se=Fr);else if(Er<Le&&0>o(yn,X))L[Se]=yn,L[Er]=X,Se=Er;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,h=null,d=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,qi(b);else{var J=r(l);J!==null&&Ki(w,J.startTime-L)}}function b(L,J){m=!1,v&&(v=!1,g(O),O=-1),f=!0;var X=d;try{for(y(J),h=r(c);h!==null&&(!(h.expirationTime>J)||L&&!_t());){var Se=h.callback;if(typeof Se=="function"){h.callback=null,d=h.priorityLevel;var Le=Se(h.expirationTime<=J);J=t.unstable_now(),typeof Le=="function"?h.callback=Le:h===r(c)&&n(c),y(J)}else n(c);h=r(c)}if(h!==null)var xo=!0;else{var Fr=r(l);Fr!==null&&Ki(w,Fr.startTime-J),xo=!1}return xo}finally{h=null,d=X,f=!1}}var P=!1,M=null,O=-1,se=5,B=-1;function _t(){return!(t.unstable_now()-B<se)}function Gn(){if(M!==null){var L=t.unstable_now();B=L;var J=!0;try{J=M(!0,L)}finally{J?Vn():(P=!1,M=null)}}else P=!1}var Vn;if(typeof p=="function")Vn=function(){p(Gn)};else if(typeof MessageChannel<"u"){var at=new MessageChannel,Wn=at.port2;at.port1.onmessage=Gn,Vn=function(){Wn.postMessage(null)}}else Vn=function(){E(Gn,0)};function qi(L){M=L,P||(P=!0,Vn())}function Ki(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,qi(b))},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 d},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(L){switch(d){case 1:case 2:case 3:var J=3;break;default:J=d}var X=d;d=J;try{return L()}finally{d=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=d;d=L;try{return J()}finally{d=X}},t.unstable_scheduleCallback=function(L,J,X){var Se=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Se+X:Se):X=Se,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>Se?(L.sortIndex=X,e(l,L),r(c)===null&&L===r(l)&&(v?(g(O),O=-1):v=!0,Ki(w,X-Se))):(L.sortIndex=Le,e(c,L),m||f||(m=!0,qi(b))),L},t.unstable_shouldYield=_t,t.unstable_wrapCallback=function(L){var J=d;return function(){var X=d;d=J;try{return L.apply(this,arguments)}finally{d=X}}}})(Dm);(function(t){t.exports=Dm})(Lm);/**
18
- * @license React
19
- * react-dom.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Hm=j.exports,jt=Lm.exports;function I(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 Fm=new Set,La={};function No(t,e){Si(t,e),Si(t+"Capture",e)}function Si(t,e){for(La[t]=e,t=0;t<e.length;t++)Fm.add(e[t])}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=Object.prototype.hasOwnProperty,Q_=/^[: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]*$/,jf={},Bf={};function J_(t){return Gu.call(Bf,t)?!0:Gu.call(jf,t)?!1:Q_.test(t)?Bf[t]=!0:(jf[t]=!0,!1)}function X_(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 Z_(t,e,r,n){if(e===null||typeof e>"u"||X_(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 It(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 ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ot[t]=new It(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ot[e]=new It(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ot[t]=new It(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ot[t]=new It(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){ot[t]=new It(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ot[t]=new It(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ot[t]=new It(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ot[t]=new It(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ot[t]=new It(t,5,!1,t.toLowerCase(),null,!1,!1)});var gh=/[\-:]([a-z])/g;function mh(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(gh,mh);ot[e]=new It(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(gh,mh);ot[e]=new It(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(gh,mh);ot[e]=new It(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ot[t]=new It(t,1,!1,t.toLowerCase(),null,!1,!1)});ot.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ot[t]=new It(t,1,!1,t.toLowerCase(),null,!0,!0)});function vh(t,e,r,n){var o=ot.hasOwnProperty(e)?ot[e]:null;(o!==null?o.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Z_(e,r,o,n)&&(r=null),n||o===null?J_(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 pn=Hm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bs=Symbol.for("react.element"),Wo=Symbol.for("react.portal"),Yo=Symbol.for("react.fragment"),yh=Symbol.for("react.strict_mode"),Vu=Symbol.for("react.profiler"),$m=Symbol.for("react.provider"),zm=Symbol.for("react.context"),_h=Symbol.for("react.forward_ref"),Wu=Symbol.for("react.suspense"),Yu=Symbol.for("react.suspense_list"),wh=Symbol.for("react.memo"),Sn=Symbol.for("react.lazy"),jm=Symbol.for("react.offscreen"),qf=Symbol.iterator;function Vi(t){return t===null||typeof t!="object"?null:(t=qf&&t[qf]||t["@@iterator"],typeof t=="function"?t:null)}var Re=Object.assign,Yl;function sa(t){if(Yl===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Yl=e&&e[1]||""}return`
26
- `+Yl+t}var Ql=!1;function Jl(t,e){if(!t||Ql)return"";Ql=!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
- `),i=n.stack.split(`
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{Ql=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?sa(t):""}function ew(t){switch(t.tag){case 5:return sa(t.type);case 16:return sa("Lazy");case 13:return sa("Suspense");case 19:return sa("SuspenseList");case 0:case 2:case 15:return t=Jl(t.type,!1),t;case 11:return t=Jl(t.type.render,!1),t;case 1:return t=Jl(t.type,!0),t;default:return""}}function Qu(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 Yo:return"Fragment";case Wo:return"Portal";case Vu:return"Profiler";case yh:return"StrictMode";case Wu:return"Suspense";case Yu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case zm:return(t.displayName||"Context")+".Consumer";case $m:return(t._context.displayName||"Context")+".Provider";case _h:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case wh:return e=t.displayName||null,e!==null?e:Qu(t.type)||"Memo";case Sn:e=t._payload,t=t._init;try{return Qu(t(e))}catch{}}return null}function tw(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 Qu(e);case 8:return e===yh?"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 zn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Bm(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function rw(t){var e=Bm(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 Is(t){t._valueTracker||(t._valueTracker=rw(t))}function qm(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Bm(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function wc(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 Ju(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 Kf(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=zn(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 Km(t,e){e=e.checked,e!=null&&vh(t,"checked",e,!1)}function Xu(t,e){Km(t,e);var r=zn(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")?Zu(t,e.type,r):e.hasOwnProperty("defaultValue")&&Zu(t,e.type,zn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Gf(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 Zu(t,e,r){(e!=="number"||wc(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var ca=Array.isArray;function fi(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=""+zn(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 ed(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(I(91));return Re({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Vf(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(I(92));if(ca(r)){if(1<r.length)throw Error(I(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:zn(r)}}function Gm(t,e){var r=zn(e.value),n=zn(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 Wf(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Vm(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 td(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Vm(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var As,Wm=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(As=As||document.createElement("div"),As.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=As.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Da(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Ca={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},nw=["Webkit","ms","Moz","O"];Object.keys(Ca).forEach(function(t){nw.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ca[e]=Ca[t]})});function Ym(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Ca.hasOwnProperty(t)&&Ca[t]?(""+e).trim():e+"px"}function Qm(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Ym(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var ow=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 rd(t,e){if(e){if(ow[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(I(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(I(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(I(61))}if(e.style!=null&&typeof e.style!="object")throw Error(I(62))}}function nd(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 od=null;function Eh(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var id=null,pi=null,gi=null;function Yf(t){if(t=ps(t)){if(typeof id!="function")throw Error(I(280));var e=t.stateNode;e&&(e=Sl(e),id(t.stateNode,t.type,e))}}function Jm(t){pi?gi?gi.push(t):gi=[t]:pi=t}function Xm(){if(pi){var t=pi,e=gi;if(gi=pi=null,Yf(t),e)for(t=0;t<e.length;t++)Yf(e[t])}}function Zm(t,e){return t(e)}function ev(){}var Xl=!1;function tv(t,e,r){if(Xl)return t(e,r);Xl=!0;try{return Zm(t,e,r)}finally{Xl=!1,(pi!==null||gi!==null)&&(ev(),Xm())}}function Ha(t,e){var r=t.stateNode;if(r===null)return null;var n=Sl(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(I(231,e,typeof r));return r}var ad=!1;if(an)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){ad=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{ad=!1}function iw(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 Sa=!1,Ec=null,Cc=!1,sd=null,aw={onError:function(t){Sa=!0,Ec=t}};function sw(t,e,r,n,o,i,a,s,c){Sa=!1,Ec=null,iw.apply(aw,arguments)}function cw(t,e,r,n,o,i,a,s,c){if(sw.apply(this,arguments),Sa){if(Sa){var l=Ec;Sa=!1,Ec=null}else throw Error(I(198));Cc||(Cc=!0,sd=l)}}function Oo(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 rv(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 Qf(t){if(Oo(t)!==t)throw Error(I(188))}function lw(t){var e=t.alternate;if(!e){if(e=Oo(t),e===null)throw Error(I(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 Qf(o),t;if(i===n)return Qf(o),e;i=i.sibling}throw Error(I(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(I(189))}}if(r.alternate!==n)throw Error(I(190))}if(r.tag!==3)throw Error(I(188));return r.stateNode.current===r?t:e}function nv(t){return t=lw(t),t!==null?ov(t):null}function ov(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=ov(t);if(e!==null)return e;t=t.sibling}return null}var iv=jt.unstable_scheduleCallback,Jf=jt.unstable_cancelCallback,uw=jt.unstable_shouldYield,dw=jt.unstable_requestPaint,Me=jt.unstable_now,hw=jt.unstable_getCurrentPriorityLevel,Ch=jt.unstable_ImmediatePriority,av=jt.unstable_UserBlockingPriority,Sc=jt.unstable_NormalPriority,fw=jt.unstable_LowPriority,sv=jt.unstable_IdlePriority,_l=null,Or=null;function pw(t){if(Or&&typeof Or.onCommitFiberRoot=="function")try{Or.onCommitFiberRoot(_l,t,void 0,(t.current.flags&128)===128)}catch{}}var mr=Math.clz32?Math.clz32:vw,gw=Math.log,mw=Math.LN2;function vw(t){return t>>>=0,t===0?32:31-(gw(t)/mw|0)|0}var ks=64,Rs=4194304;function la(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 Tc(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=la(s):(i&=a,i!==0&&(n=la(i)))}else a=r&~o,a!==0?n=la(a):i!==0&&(n=la(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-mr(e),o=1<<r,n|=t[r],e&=~o;return n}function yw(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-mr(i),s=1<<a,c=o[a];c===-1?((s&r)===0||(s&n)!==0)&&(o[a]=yw(s,e)):c<=e&&(t.expiredLanes|=s),i&=~s}}function cd(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function cv(){var t=ks;return ks<<=1,(ks&4194240)===0&&(ks=64),t}function Zl(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function hs(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-mr(e),t[e]=r}function ww(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-mr(r),i=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~i}}function Sh(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-mr(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var ue=0;function lv(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var uv,Th,dv,hv,fv,ld=!1,Ps=[],On=null,xn=null,Mn=null,Fa=new Map,$a=new Map,An=[],Ew="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 Xf(t,e){switch(t){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":xn=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Fa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":$a.delete(e.pointerId)}}function Yi(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=ps(e),e!==null&&Th(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Cw(t,e,r,n,o){switch(e){case"focusin":return On=Yi(On,t,e,r,n,o),!0;case"dragenter":return xn=Yi(xn,t,e,r,n,o),!0;case"mouseover":return Mn=Yi(Mn,t,e,r,n,o),!0;case"pointerover":var i=o.pointerId;return Fa.set(i,Yi(Fa.get(i)||null,t,e,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,$a.set(i,Yi($a.get(i)||null,t,e,r,n,o)),!0}return!1}function pv(t){var e=io(t.target);if(e!==null){var r=Oo(e);if(r!==null){if(e=r.tag,e===13){if(e=rv(r),e!==null){t.blockedOn=e,fv(t.priority,function(){dv(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 Js(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=ud(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);od=n,r.target.dispatchEvent(n),od=null}else return e=ps(r),e!==null&&Th(e),t.blockedOn=r,!1;e.shift()}return!0}function Zf(t,e,r){Js(t)&&r.delete(e)}function Sw(){ld=!1,On!==null&&Js(On)&&(On=null),xn!==null&&Js(xn)&&(xn=null),Mn!==null&&Js(Mn)&&(Mn=null),Fa.forEach(Zf),$a.forEach(Zf)}function Qi(t,e){t.blockedOn===e&&(t.blockedOn=null,ld||(ld=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,Sw)))}function za(t){function e(o){return Qi(o,t)}if(0<Ps.length){Qi(Ps[0],t);for(var r=1;r<Ps.length;r++){var n=Ps[r];n.blockedOn===t&&(n.blockedOn=null)}}for(On!==null&&Qi(On,t),xn!==null&&Qi(xn,t),Mn!==null&&Qi(Mn,t),Fa.forEach(e),$a.forEach(e),r=0;r<An.length;r++)n=An[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<An.length&&(r=An[0],r.blockedOn===null);)pv(r),r.blockedOn===null&&An.shift()}var mi=pn.ReactCurrentBatchConfig,bc=!0;function Tw(t,e,r,n){var o=ue,i=mi.transition;mi.transition=null;try{ue=1,bh(t,e,r,n)}finally{ue=o,mi.transition=i}}function bw(t,e,r,n){var o=ue,i=mi.transition;mi.transition=null;try{ue=4,bh(t,e,r,n)}finally{ue=o,mi.transition=i}}function bh(t,e,r,n){if(bc){var o=ud(t,e,r,n);if(o===null)lu(t,e,n,Ic,r),Xf(t,n);else if(Cw(o,t,e,r,n))n.stopPropagation();else if(Xf(t,n),e&4&&-1<Ew.indexOf(t)){for(;o!==null;){var i=ps(o);if(i!==null&&uv(i),i=ud(t,e,r,n),i===null&&lu(t,e,n,Ic,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else lu(t,e,n,null,r)}}var Ic=null;function ud(t,e,r,n){if(Ic=null,t=Eh(n),t=io(t),t!==null)if(e=Oo(t),e===null)t=null;else if(r=e.tag,r===13){if(t=rv(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 gv(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(hw()){case Ch:return 1;case av:return 4;case Sc:case fw:return 16;case sv:return 536870912;default:return 16}default:return 16}}var Pn=null,Ih=null,Xs=null;function mv(){if(Xs)return Xs;var t,e=Ih,r=e.length,n,o="value"in Pn?Pn.value:Pn.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 Xs=o.slice(t,1<n?1-n:void 0)}function Zs(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 Ns(){return!0}function ep(){return!1}function Gt(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)?Ns:ep,this.isPropagationStopped=ep,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=Ns)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ns)},persist:function(){},isPersistent:Ns}),e}var Di={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ah=Gt(Di),fs=Re({},Di,{view:0,detail:0}),Iw=Gt(fs),eu,tu,Ji,wl=Re({},fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kh,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!==Ji&&(Ji&&t.type==="mousemove"?(eu=t.screenX-Ji.screenX,tu=t.screenY-Ji.screenY):tu=eu=0,Ji=t),eu)},movementY:function(t){return"movementY"in t?t.movementY:tu}}),tp=Gt(wl),Aw=Re({},wl,{dataTransfer:0}),kw=Gt(Aw),Rw=Re({},fs,{relatedTarget:0}),ru=Gt(Rw),Pw=Re({},Di,{animationName:0,elapsedTime:0,pseudoElement:0}),Nw=Gt(Pw),Ow=Re({},Di,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xw=Gt(Ow),Mw=Re({},Di,{data:0}),rp=Gt(Mw),Uw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lw={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"},Dw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hw(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Dw[t])?!!e[t]:!1}function kh(){return Hw}var Fw=Re({},fs,{key:function(t){if(t.key){var e=Uw[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Zs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kh,charCode:function(t){return t.type==="keypress"?Zs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Zs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),$w=Gt(Fw),zw=Re({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),np=Gt(zw),jw=Re({},fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kh}),Bw=Gt(jw),qw=Re({},Di,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kw=Gt(qw),Gw=Re({},wl,{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}),Vw=Gt(Gw),Ww=[9,13,27,32],Rh=an&&"CompositionEvent"in window,Ta=null;an&&"documentMode"in document&&(Ta=document.documentMode);var Yw=an&&"TextEvent"in window&&!Ta,vv=an&&(!Rh||Ta&&8<Ta&&11>=Ta),op=String.fromCharCode(32),ip=!1;function yv(t,e){switch(t){case"keyup":return Ww.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _v(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Qo=!1;function Qw(t,e){switch(t){case"compositionend":return _v(e);case"keypress":return e.which!==32?null:(ip=!0,op);case"textInput":return t=e.data,t===op&&ip?null:t;default:return null}}function Jw(t,e){if(Qo)return t==="compositionend"||!Rh&&yv(t,e)?(t=mv(),Xs=Ih=Pn=null,Qo=!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 vv&&e.locale!=="ko"?null:e.data;default:return null}}var Xw={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 ap(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Xw[t.type]:e==="textarea"}function wv(t,e,r,n){Jm(n),e=Ac(e,"onChange"),0<e.length&&(r=new Ah("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var ba=null,ja=null;function Zw(t){Nv(t,0)}function El(t){var e=Zo(t);if(qm(e))return t}function eE(t,e){if(t==="change")return e}var Ev=!1;if(an){var nu;if(an){var ou="oninput"in document;if(!ou){var sp=document.createElement("div");sp.setAttribute("oninput","return;"),ou=typeof sp.oninput=="function"}nu=ou}else nu=!1;Ev=nu&&(!document.documentMode||9<document.documentMode)}function cp(){ba&&(ba.detachEvent("onpropertychange",Cv),ja=ba=null)}function Cv(t){if(t.propertyName==="value"&&El(ja)){var e=[];wv(e,ja,t,Eh(t)),tv(Zw,e)}}function tE(t,e,r){t==="focusin"?(cp(),ba=e,ja=r,ba.attachEvent("onpropertychange",Cv)):t==="focusout"&&cp()}function rE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return El(ja)}function nE(t,e){if(t==="click")return El(e)}function oE(t,e){if(t==="input"||t==="change")return El(e)}function iE(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var wr=typeof Object.is=="function"?Object.is:iE;function Ba(t,e){if(wr(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(!Gu.call(e,o)||!wr(t[o],e[o]))return!1}return!0}function lp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function up(t,e){var r=lp(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=lp(r)}}function Sv(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Sv(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Tv(){for(var t=window,e=wc();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=wc(t.document)}return e}function Ph(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 aE(t){var e=Tv(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Sv(r.ownerDocument.documentElement,r)){if(n!==null&&Ph(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=up(r,i);var a=up(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 sE=an&&"documentMode"in document&&11>=document.documentMode,Jo=null,dd=null,Ia=null,hd=!1;function dp(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;hd||Jo==null||Jo!==wc(n)||(n=Jo,"selectionStart"in n&&Ph(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}),Ia&&Ba(Ia,n)||(Ia=n,n=Ac(dd,"onSelect"),0<n.length&&(e=new Ah("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Jo)))}function Os(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Xo={animationend:Os("Animation","AnimationEnd"),animationiteration:Os("Animation","AnimationIteration"),animationstart:Os("Animation","AnimationStart"),transitionend:Os("Transition","TransitionEnd")},iu={},bv={};an&&(bv=document.createElement("div").style,"AnimationEvent"in window||(delete Xo.animationend.animation,delete Xo.animationiteration.animation,delete Xo.animationstart.animation),"TransitionEvent"in window||delete Xo.transitionend.transition);function Cl(t){if(iu[t])return iu[t];if(!Xo[t])return t;var e=Xo[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in bv)return iu[t]=e[r];return t}var Iv=Cl("animationend"),Av=Cl("animationiteration"),kv=Cl("animationstart"),Rv=Cl("transitionend"),Pv=new Map,hp="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 Bn(t,e){Pv.set(t,e),No(e,[t])}for(var au=0;au<hp.length;au++){var su=hp[au],cE=su.toLowerCase(),lE=su[0].toUpperCase()+su.slice(1);Bn(cE,"on"+lE)}Bn(Iv,"onAnimationEnd");Bn(Av,"onAnimationIteration");Bn(kv,"onAnimationStart");Bn("dblclick","onDoubleClick");Bn("focusin","onFocus");Bn("focusout","onBlur");Bn(Rv,"onTransitionEnd");Si("onMouseEnter",["mouseout","mouseover"]);Si("onMouseLeave",["mouseout","mouseover"]);Si("onPointerEnter",["pointerout","pointerover"]);Si("onPointerLeave",["pointerout","pointerover"]);No("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));No("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));No("onBeforeInput",["compositionend","keypress","textInput","paste"]);No("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));No("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));No("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ua="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(" "),uE=new Set("cancel close invalid load scroll toggle".split(" ").concat(ua));function fp(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,cw(n,e,void 0,t),t.currentTarget=null}function Nv(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;fp(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;fp(o,s,l),i=c}}}if(Cc)throw t=sd,Cc=!1,sd=null,t}function we(t,e){var r=e[vd];r===void 0&&(r=e[vd]=new Set);var n=t+"__bubble";r.has(n)||(Ov(e,t,2,!1),r.add(n))}function cu(t,e,r){var n=0;e&&(n|=4),Ov(r,t,n,e)}var xs="_reactListening"+Math.random().toString(36).slice(2);function qa(t){if(!t[xs]){t[xs]=!0,Fm.forEach(function(r){r!=="selectionchange"&&(uE.has(r)||cu(r,!1,t),cu(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xs]||(e[xs]=!0,cu("selectionchange",!1,e))}}function Ov(t,e,r,n){switch(gv(e)){case 1:var o=Tw;break;case 4:o=bw;break;default:o=bh}r=o.bind(null,e,r,t),o=void 0,!ad||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 lu(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=io(s),a===null)return;if(c=a.tag,c===5||c===6){n=i=a;continue e}s=s.parentNode}}n=n.return}tv(function(){var l=i,u=Eh(r),h=[];e:{var d=Pv.get(t);if(d!==void 0){var f=Ah,m=t;switch(t){case"keypress":if(Zs(r)===0)break e;case"keydown":case"keyup":f=$w;break;case"focusin":m="focus",f=ru;break;case"focusout":m="blur",f=ru;break;case"beforeblur":case"afterblur":f=ru;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=tp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=kw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Bw;break;case Iv:case Av:case kv:f=Nw;break;case Rv:f=Kw;break;case"scroll":f=Iw;break;case"wheel":f=Vw;break;case"copy":case"cut":case"paste":f=xw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=np}var v=(e&4)!==0,E=!v&&t==="scroll",g=v?d!==null?d+"Capture":null:d;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=Ha(p,g),w!=null&&v.push(Ka(p,w,y)))),E)break;p=p.return}0<v.length&&(d=new f(d,m,null,r,u),h.push({event:d,listeners:v}))}}if((e&7)===0){e:{if(d=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",d&&r!==od&&(m=r.relatedTarget||r.fromElement)&&(io(m)||m[sn]))break e;if((f||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,f?(m=r.relatedTarget||r.toElement,f=l,m=m?io(m):null,m!==null&&(E=Oo(m),m!==E||m.tag!==5&&m.tag!==6)&&(m=null)):(f=null,m=l),f!==m)){if(v=tp,w="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(v=np,w="onPointerLeave",g="onPointerEnter",p="pointer"),E=f==null?d:Zo(f),y=m==null?d:Zo(m),d=new v(w,p+"leave",f,r,u),d.target=E,d.relatedTarget=y,w=null,io(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=Do(y))p++;for(y=0,w=g;w;w=Do(w))y++;for(;0<p-y;)v=Do(v),p--;for(;0<y-p;)g=Do(g),y--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=Do(v),g=Do(g)}v=null}else v=null;f!==null&&pp(h,d,f,v,!1),m!==null&&E!==null&&pp(h,E,m,v,!0)}}e:{if(d=l?Zo(l):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var b=eE;else if(ap(d))if(Ev)b=oE;else{b=rE;var P=tE}else(f=d.nodeName)&&f.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=nE);if(b&&(b=b(t,l))){wv(h,b,r,u);break e}P&&P(t,d,l),t==="focusout"&&(P=d._wrapperState)&&P.controlled&&d.type==="number"&&Zu(d,"number",d.value)}switch(P=l?Zo(l):window,t){case"focusin":(ap(P)||P.contentEditable==="true")&&(Jo=P,dd=l,Ia=null);break;case"focusout":Ia=dd=Jo=null;break;case"mousedown":hd=!0;break;case"contextmenu":case"mouseup":case"dragend":hd=!1,dp(h,r,u);break;case"selectionchange":if(sE)break;case"keydown":case"keyup":dp(h,r,u)}var M;if(Rh)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 Qo?yv(t,r)&&(O="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(vv&&r.locale!=="ko"&&(Qo||O!=="onCompositionStart"?O==="onCompositionEnd"&&Qo&&(M=mv()):(Pn=u,Ih="value"in Pn?Pn.value:Pn.textContent,Qo=!0)),P=Ac(l,O),0<P.length&&(O=new rp(O,t,null,r,u),h.push({event:O,listeners:P}),M?O.data=M:(M=_v(r),M!==null&&(O.data=M)))),(M=Yw?Qw(t,r):Jw(t,r))&&(l=Ac(l,"onBeforeInput"),0<l.length&&(u=new rp("onBeforeInput","beforeinput",null,r,u),h.push({event:u,listeners:l}),u.data=M))}Nv(h,e)})}function Ka(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=Ha(t,r),i!=null&&n.unshift(Ka(t,i,o)),i=Ha(t,e),i!=null&&n.push(Ka(t,i,o))),t=t.return}return n}function Do(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function pp(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=Ha(r,i),c!=null&&a.unshift(Ka(r,c,s))):o||(c=Ha(r,i),c!=null&&a.push(Ka(r,c,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var dE=/\r\n?/g,hE=/\u0000|\uFFFD/g;function gp(t){return(typeof t=="string"?t:""+t).replace(dE,`
30
- `).replace(hE,"")}function Ms(t,e,r){if(e=gp(e),gp(t)!==e&&r)throw Error(I(425))}function kc(){}var fd=null,pd=null;function gd(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 md=typeof setTimeout=="function"?setTimeout:void 0,fE=typeof clearTimeout=="function"?clearTimeout:void 0,mp=typeof Promise=="function"?Promise:void 0,pE=typeof queueMicrotask=="function"?queueMicrotask:typeof mp<"u"?function(t){return mp.resolve(null).then(t).catch(gE)}:md;function gE(t){setTimeout(function(){throw t})}function uu(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),za(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);za(e)}function Un(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 vp(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 Hi=Math.random().toString(36).slice(2),Rr="__reactFiber$"+Hi,Ga="__reactProps$"+Hi,sn="__reactContainer$"+Hi,vd="__reactEvents$"+Hi,mE="__reactListeners$"+Hi,vE="__reactHandles$"+Hi;function io(t){var e=t[Rr];if(e)return e;for(var r=t.parentNode;r;){if(e=r[sn]||r[Rr]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=vp(t);t!==null;){if(r=t[Rr])return r;t=vp(t)}return e}t=r,r=t.parentNode}return null}function ps(t){return t=t[Rr]||t[sn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Zo(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(I(33))}function Sl(t){return t[Ga]||null}var yd=[],ei=-1;function qn(t){return{current:t}}function Ce(t){0>ei||(t.current=yd[ei],yd[ei]=null,ei--)}function ye(t,e){ei++,yd[ei]=t.current,t.current=e}var jn={},yt=qn(jn),Ot=qn(!1),_o=jn;function Ti(t,e){var r=t.type.contextTypes;if(!r)return jn;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 xt(t){return t=t.childContextTypes,t!=null}function Rc(){Ce(Ot),Ce(yt)}function yp(t,e,r){if(yt.current!==jn)throw Error(I(168));ye(yt,e),ye(Ot,r)}function xv(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(I(108,tw(t)||"Unknown",o));return Re({},r,n)}function Pc(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||jn,_o=yt.current,ye(yt,t),ye(Ot,Ot.current),!0}function _p(t,e,r){var n=t.stateNode;if(!n)throw Error(I(169));r?(t=xv(t,e,_o),n.__reactInternalMemoizedMergedChildContext=t,Ce(Ot),Ce(yt),ye(yt,t)):Ce(Ot),ye(Ot,r)}var Wr=null,Tl=!1,du=!1;function Mv(t){Wr===null?Wr=[t]:Wr.push(t)}function yE(t){Tl=!0,Mv(t)}function Kn(){if(!du&&Wr!==null){du=!0;var t=0,e=ue;try{var r=Wr;for(ue=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}Wr=null,Tl=!1}catch(o){throw Wr!==null&&(Wr=Wr.slice(t+1)),iv(Ch,Kn),o}finally{ue=e,du=!1}}return null}var ti=[],ri=0,Nc=null,Oc=0,Qt=[],Jt=0,wo=null,Yr=1,Qr="";function Xn(t,e){ti[ri++]=Oc,ti[ri++]=Nc,Nc=t,Oc=e}function Uv(t,e,r){Qt[Jt++]=Yr,Qt[Jt++]=Qr,Qt[Jt++]=wo,wo=t;var n=Yr;t=Qr;var o=32-mr(n)-1;n&=~(1<<o),r+=1;var i=32-mr(e)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Yr=1<<32-mr(e)+o|r<<o|n,Qr=i+t}else Yr=1<<i|r<<o|n,Qr=t}function Nh(t){t.return!==null&&(Xn(t,1),Uv(t,1,0))}function Oh(t){for(;t===Nc;)Nc=ti[--ri],ti[ri]=null,Oc=ti[--ri],ti[ri]=null;for(;t===wo;)wo=Qt[--Jt],Qt[Jt]=null,Qr=Qt[--Jt],Qt[Jt]=null,Yr=Qt[--Jt],Qt[Jt]=null}var $t=null,Ht=null,be=!1,hr=null;function Lv(t,e){var r=Zt(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 wp(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,$t=t,Ht=Un(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,$t=t,Ht=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=wo!==null?{id:Yr,overflow:Qr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Zt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,$t=t,Ht=null,!0):!1;default:return!1}}function _d(t){return(t.mode&1)!==0&&(t.flags&128)===0}function wd(t){if(be){var e=Ht;if(e){var r=e;if(!wp(t,e)){if(_d(t))throw Error(I(418));e=Un(r.nextSibling);var n=$t;e&&wp(t,e)?Lv(n,r):(t.flags=t.flags&-4097|2,be=!1,$t=t)}}else{if(_d(t))throw Error(I(418));t.flags=t.flags&-4097|2,be=!1,$t=t}}}function Ep(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;$t=t}function Us(t){if(t!==$t)return!1;if(!be)return Ep(t),be=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!gd(t.type,t.memoizedProps)),e&&(e=Ht)){if(_d(t))throw Dv(),Error(I(418));for(;e;)Lv(t,e),e=Un(e.nextSibling)}if(Ep(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Ht=Un(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Ht=null}}else Ht=$t?Un(t.stateNode.nextSibling):null;return!0}function Dv(){for(var t=Ht;t;)t=Un(t.nextSibling)}function bi(){Ht=$t=null,be=!1}function xh(t){hr===null?hr=[t]:hr.push(t)}var _E=pn.ReactCurrentBatchConfig;function ur(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 xc=qn(null),Mc=null,ni=null,Mh=null;function Uh(){Mh=ni=Mc=null}function Lh(t){var e=xc.current;Ce(xc),t._currentValue=e}function Ed(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 vi(t,e){Mc=t,Mh=ni=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(Nt=!0),t.firstContext=null)}function rr(t){var e=t._currentValue;if(Mh!==t)if(t={context:t,memoizedValue:e,next:null},ni===null){if(Mc===null)throw Error(I(308));ni=t,Mc.dependencies={lanes:0,firstContext:t}}else ni=ni.next=t;return e}var ao=null;function Dh(t){ao===null?ao=[t]:ao.push(t)}function Hv(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,cn(t,n)}function cn(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 Tn=!1;function Hh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fv(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 Zr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ln(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,cn(t,r)}return o=n.interleaved,o===null?(e.next=e,Dh(n)):(e.next=o.next,o.next=e),n.interleaved=e,cn(t,r)}function ec(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,Sh(t,r)}}function Cp(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 Uc(t,e,r,n){var o=t.updateQueue;Tn=!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 h=o.baseState;a=0,u=l=c=null,s=i;do{var d=s.lane,f=s.eventTime;if((n&d)===d){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(d=e,f=r,v.tag){case 1:if(m=v.payload,typeof m=="function"){h=m.call(f,h,d);break e}h=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(f,h,d):m,d==null)break e;h=Re({},h,d);break e;case 2:Tn=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else f={eventTime:f,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=f,c=h):u=u.next=f,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(u===null&&(c=h),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);Co|=a,t.lanes=a,t.memoizedState=h}}function Sp(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(I(191,o));o.call(n)}}}var $v=new Hm.Component().refs;function Cd(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 bl={isMounted:function(t){return(t=t._reactInternals)?Oo(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=St(),o=Hn(t),i=Zr(n,o);i.payload=e,r!=null&&(i.callback=r),e=Ln(t,i,o),e!==null&&(vr(e,t,o,n),ec(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=St(),o=Hn(t),i=Zr(n,o);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=Ln(t,i,o),e!==null&&(vr(e,t,o,n),ec(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=St(),n=Hn(t),o=Zr(r,n);o.tag=2,e!=null&&(o.callback=e),e=Ln(t,o,n),e!==null&&(vr(e,t,n,r),ec(e,t,n))}};function Tp(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?!Ba(r,n)||!Ba(o,i):!0}function zv(t,e,r){var n=!1,o=jn,i=e.contextType;return typeof i=="object"&&i!==null?i=rr(i):(o=xt(e)?_o:yt.current,n=e.contextTypes,i=(n=n!=null)?Ti(t,o):jn),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=bl,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function bp(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&&bl.enqueueReplaceState(e,e.state,null)}function Sd(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=$v,Hh(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=rr(i):(i=xt(e)?_o:yt.current,o.context=Ti(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Cd(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&&bl.enqueueReplaceState(o,o.state,null),Uc(t,r,o,n),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function Xi(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(I(309));var n=r.stateNode}if(!n)throw Error(I(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===$v&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(I(284));if(!r._owner)throw Error(I(290,t))}return t}function Ls(t,e){throw t=Object.prototype.toString.call(e),Error(I(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ip(t){var e=t._init;return e(t._payload)}function jv(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=Fn(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=yu(y,g.mode,w),p.return=g,p):(p=o(p,y),p.return=g,p)}function c(g,p,y,w){var b=y.type;return b===Yo?u(g,p,y.props.children,w,y.key):p!==null&&(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Sn&&Ip(b)===p.type)?(w=o(p,y.props),w.ref=Xi(g,p,y),w.return=g,w):(w=ac(y.type,y.key,y.props,null,g.mode,w),w.ref=Xi(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=_u(y,g.mode,w),p.return=g,p):(p=o(p,y.children||[]),p.return=g,p)}function u(g,p,y,w,b){return p===null||p.tag!==7?(p=fo(y,g.mode,w,b),p.return=g,p):(p=o(p,y),p.return=g,p)}function h(g,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=yu(""+p,g.mode,y),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case bs:return y=ac(p.type,p.key,p.props,null,g.mode,y),y.ref=Xi(g,null,p),y.return=g,y;case Wo:return p=_u(p,g.mode,y),p.return=g,p;case Sn:var w=p._init;return h(g,w(p._payload),y)}if(ca(p)||Vi(p))return p=fo(p,g.mode,y,null),p.return=g,p;Ls(g,p)}return null}function d(g,p,y,w){var b=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return b!==null?null:s(g,p,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case bs:return y.key===b?c(g,p,y,w):null;case Wo:return y.key===b?l(g,p,y,w):null;case Sn:return b=y._init,d(g,p,b(y._payload),w)}if(ca(y)||Vi(y))return b!==null?null:u(g,p,y,w,null);Ls(g,y)}return null}function f(g,p,y,w,b){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(y)||null,s(p,g,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case bs:return g=g.get(w.key===null?y:w.key)||null,c(p,g,w,b);case Wo:return g=g.get(w.key===null?y:w.key)||null,l(p,g,w,b);case Sn:var P=w._init;return f(g,p,y,P(w._payload),b)}if(ca(w)||Vi(w))return g=g.get(y)||null,u(p,g,w,b,null);Ls(p,w)}return null}function m(g,p,y,w){for(var b=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=d(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?b=B:P.sibling=B,P=B,M=se}if(O===y.length)return r(g,M),be&&Xn(g,O),b;if(M===null){for(;O<y.length;O++)M=h(g,y[O],w),M!==null&&(p=i(M,p,O),P===null?b=M:P.sibling=M,P=M);return be&&Xn(g,O),b}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?b=se:P.sibling=se,P=se);return t&&M.forEach(function(_t){return e(g,_t)}),be&&Xn(g,O),b}function v(g,p,y,w){var b=Vi(y);if(typeof b!="function")throw Error(I(150));if(y=b.call(y),y==null)throw Error(I(151));for(var P=b=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=d(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?b=_t:P.sibling=_t,P=_t,M=se}if(B.done)return r(g,M),be&&Xn(g,O),b;if(M===null){for(;!B.done;O++,B=y.next())B=h(g,B.value,w),B!==null&&(p=i(B,p,O),P===null?b=B:P.sibling=B,P=B);return be&&Xn(g,O),b}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?b=B:P.sibling=B,P=B);return t&&M.forEach(function(Gn){return e(g,Gn)}),be&&Xn(g,O),b}function E(g,p,y,w){if(typeof y=="object"&&y!==null&&y.type===Yo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case bs:e:{for(var b=y.key,P=p;P!==null;){if(P.key===b){if(b=y.type,b===Yo){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===b||typeof b=="object"&&b!==null&&b.$$typeof===Sn&&Ip(b)===P.type){r(g,P.sibling),p=o(P,y.props),p.ref=Xi(g,P,y),p.return=g,g=p;break e}r(g,P);break}else e(g,P);P=P.sibling}y.type===Yo?(p=fo(y.props.children,g.mode,w,y.key),p.return=g,g=p):(w=ac(y.type,y.key,y.props,null,g.mode,w),w.ref=Xi(g,p,y),w.return=g,g=w)}return a(g);case Wo: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=_u(y,g.mode,w),p.return=g,g=p}return a(g);case Sn:return P=y._init,E(g,p,P(y._payload),w)}if(ca(y))return m(g,p,y,w);if(Vi(y))return v(g,p,y,w);Ls(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=yu(y,g.mode,w),p.return=g,g=p),a(g)):r(g,p)}return E}var Ii=jv(!0),Bv=jv(!1),gs={},xr=qn(gs),Va=qn(gs),Wa=qn(gs);function so(t){if(t===gs)throw Error(I(174));return t}function Fh(t,e){switch(ye(Wa,e),ye(Va,t),ye(xr,gs),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:td(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=td(e,t)}Ce(xr),ye(xr,e)}function Ai(){Ce(xr),Ce(Va),Ce(Wa)}function qv(t){so(Wa.current);var e=so(xr.current),r=td(e,t.type);e!==r&&(ye(Va,t),ye(xr,r))}function $h(t){Va.current===t&&(Ce(xr),Ce(Va))}var Ae=qn(0);function Lc(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 hu=[];function zh(){for(var t=0;t<hu.length;t++)hu[t]._workInProgressVersionPrimary=null;hu.length=0}var tc=pn.ReactCurrentDispatcher,fu=pn.ReactCurrentBatchConfig,Eo=0,ke=null,je=null,Ge=null,Dc=!1,Aa=!1,Ya=0,wE=0;function lt(){throw Error(I(321))}function jh(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!wr(t[r],e[r]))return!1;return!0}function Bh(t,e,r,n,o,i){if(Eo=i,ke=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,tc.current=t===null||t.memoizedState===null?TE:bE,t=r(n,o),Aa){i=0;do{if(Aa=!1,Ya=0,25<=i)throw Error(I(301));i+=1,Ge=je=null,e.updateQueue=null,tc.current=IE,t=r(n,o)}while(Aa)}if(tc.current=Hc,e=je!==null&&je.next!==null,Eo=0,Ge=je=ke=null,Dc=!1,e)throw Error(I(300));return t}function qh(){var t=Ya!==0;return Ya=0,t}function Ir(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?ke.memoizedState=Ge=t:Ge=Ge.next=t,Ge}function nr(){if(je===null){var t=ke.alternate;t=t!==null?t.memoizedState:null}else t=je.next;var e=Ge===null?ke.memoizedState:Ge.next;if(e!==null)Ge=e,je=t;else{if(t===null)throw Error(I(310));je=t,t={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ge===null?ke.memoizedState=Ge=t:Ge=Ge.next=t}return Ge}function Qa(t,e){return typeof e=="function"?e(t):e}function pu(t){var e=nr(),r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=t;var n=je,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((Eo&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 h={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=h,a=n):c=c.next=h,ke.lanes|=u,Co|=u}l=l.next}while(l!==null&&l!==i);c===null?a=n:c.next=s,wr(n,e.memoizedState)||(Nt=!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,ke.lanes|=i,Co|=i,o=o.next;while(o!==t)}else o===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function gu(t){var e=nr(),r=e.queue;if(r===null)throw Error(I(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);wr(i,e.memoizedState)||(Nt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function Kv(){}function Gv(t,e){var r=ke,n=nr(),o=e(),i=!wr(n.memoizedState,o);if(i&&(n.memoizedState=o,Nt=!0),n=n.queue,Kh(Yv.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||Ge!==null&&Ge.memoizedState.tag&1){if(r.flags|=2048,Ja(9,Wv.bind(null,r,n,o,e),void 0,null),Qe===null)throw Error(I(349));(Eo&30)!==0||Vv(r,e,o)}return o}function Vv(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=ke.updateQueue,e===null?(e={lastEffect:null,stores:null},ke.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function Wv(t,e,r,n){e.value=r,e.getSnapshot=n,Qv(e)&&Jv(t)}function Yv(t,e,r){return r(function(){Qv(e)&&Jv(t)})}function Qv(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!wr(t,r)}catch{return!0}}function Jv(t){var e=cn(t,1);e!==null&&vr(e,t,1,-1)}function Ap(t){var e=Ir();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:t},e.queue=t,t=t.dispatch=SE.bind(null,ke,t),[e.memoizedState,t]}function Ja(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=ke.updateQueue,e===null?(e={lastEffect:null,stores:null},ke.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 Xv(){return nr().memoizedState}function rc(t,e,r,n){var o=Ir();ke.flags|=t,o.memoizedState=Ja(1|e,r,void 0,n===void 0?null:n)}function Il(t,e,r,n){var o=nr();n=n===void 0?null:n;var i=void 0;if(je!==null){var a=je.memoizedState;if(i=a.destroy,n!==null&&jh(n,a.deps)){o.memoizedState=Ja(e,r,i,n);return}}ke.flags|=t,o.memoizedState=Ja(1|e,r,i,n)}function kp(t,e){return rc(8390656,8,t,e)}function Kh(t,e){return Il(2048,8,t,e)}function Zv(t,e){return Il(4,2,t,e)}function ey(t,e){return Il(4,4,t,e)}function ty(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 ry(t,e,r){return r=r!=null?r.concat([t]):null,Il(4,4,ty.bind(null,e,t),r)}function Gh(){}function ny(t,e){var r=nr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&jh(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function oy(t,e){var r=nr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&jh(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function iy(t,e,r){return(Eo&21)===0?(t.baseState&&(t.baseState=!1,Nt=!0),t.memoizedState=r):(wr(r,e)||(r=cv(),ke.lanes|=r,Co|=r,t.baseState=!0),e)}function EE(t,e){var r=ue;ue=r!==0&&4>r?r:4,t(!0);var n=fu.transition;fu.transition={};try{t(!1),e()}finally{ue=r,fu.transition=n}}function ay(){return nr().memoizedState}function CE(t,e,r){var n=Hn(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},sy(t))cy(e,r);else if(r=Hv(t,e,r,n),r!==null){var o=St();vr(r,t,n,o),ly(r,e,n)}}function SE(t,e,r){var n=Hn(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(sy(t))cy(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,wr(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=Hv(t,e,o,n),r!==null&&(o=St(),vr(r,t,n,o),ly(r,e,n))}}function sy(t){var e=t.alternate;return t===ke||e!==null&&e===ke}function cy(t,e){Aa=Dc=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function ly(t,e,r){if((r&4194240)!==0){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Sh(t,r)}}var Hc={readContext:rr,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},TE={readContext:rr,useCallback:function(t,e){return Ir().memoizedState=[t,e===void 0?null:e],t},useContext:rr,useEffect:kp,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,rc(4194308,4,ty.bind(null,e,t),r)},useLayoutEffect:function(t,e){return rc(4194308,4,t,e)},useInsertionEffect:function(t,e){return rc(4,2,t,e)},useMemo:function(t,e){var r=Ir();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ir();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=CE.bind(null,ke,t),[n.memoizedState,t]},useRef:function(t){var e=Ir();return t={current:t},e.memoizedState=t},useState:Ap,useDebugValue:Gh,useDeferredValue:function(t){return Ir().memoizedState=t},useTransition:function(){var t=Ap(!1),e=t[0];return t=EE.bind(null,t[1]),Ir().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=ke,o=Ir();if(be){if(r===void 0)throw Error(I(407));r=r()}else{if(r=e(),Qe===null)throw Error(I(349));(Eo&30)!==0||Vv(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,kp(Yv.bind(null,n,i,t),[t]),n.flags|=2048,Ja(9,Wv.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Ir(),e=Qe.identifierPrefix;if(be){var r=Qr,n=Yr;r=(n&~(1<<32-mr(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Ya++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=wE++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},bE={readContext:rr,useCallback:ny,useContext:rr,useEffect:Kh,useImperativeHandle:ry,useInsertionEffect:Zv,useLayoutEffect:ey,useMemo:oy,useReducer:pu,useRef:Xv,useState:function(){return pu(Qa)},useDebugValue:Gh,useDeferredValue:function(t){var e=nr();return iy(e,je.memoizedState,t)},useTransition:function(){var t=pu(Qa)[0],e=nr().memoizedState;return[t,e]},useMutableSource:Kv,useSyncExternalStore:Gv,useId:ay,unstable_isNewReconciler:!1},IE={readContext:rr,useCallback:ny,useContext:rr,useEffect:Kh,useImperativeHandle:ry,useInsertionEffect:Zv,useLayoutEffect:ey,useMemo:oy,useReducer:gu,useRef:Xv,useState:function(){return gu(Qa)},useDebugValue:Gh,useDeferredValue:function(t){var e=nr();return je===null?e.memoizedState=t:iy(e,je.memoizedState,t)},useTransition:function(){var t=gu(Qa)[0],e=nr().memoizedState;return[t,e]},useMutableSource:Kv,useSyncExternalStore:Gv,useId:ay,unstable_isNewReconciler:!1};function ki(t,e){try{var r="",n=e;do r+=ew(n),n=n.return;while(n);var o=r}catch(i){o=`
31
- Error generating stack: `+i.message+`
32
- `+i.stack}return{value:t,source:e,stack:o,digest:null}}function mu(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 AE=typeof WeakMap=="function"?WeakMap:Map;function uy(t,e,r){r=Zr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){$c||($c=!0,Md=n),Td(t,e)},r}function dy(t,e,r){r=Zr(-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"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Rp(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new AE;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=zE.bind(null,t,e,r),e.then(t,t))}function Pp(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 Np(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=Zr(-1,1),e.tag=2,Ln(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var kE=pn.ReactCurrentOwner,Nt=!1;function wt(t,e,r,n){e.child=t===null?Bv(e,null,r,n):Ii(e,t.child,r,n)}function Op(t,e,r,n,o){r=r.render;var i=e.ref;return vi(e,o),n=Bh(t,e,r,n,i,o),r=qh(),t!==null&&!Nt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,ln(t,e,o)):(be&&r&&Nh(e),e.flags|=1,wt(t,e,n,o),e.child)}function xp(t,e,r,n,o){if(t===null){var i=r.type;return typeof i=="function"&&!ef(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,hy(t,e,i,n,o)):(t=ac(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:Ba,r(a,n)&&t.ref===e.ref)return ln(t,e,o)}return e.flags|=1,t=Fn(i,n),t.ref=e.ref,t.return=e,e.child=t}function hy(t,e,r,n,o){if(t!==null){var i=t.memoizedProps;if(Ba(i,n)&&t.ref===e.ref)if(Nt=!1,e.pendingProps=n=i,(t.lanes&o)!==0)(t.flags&131072)!==0&&(Nt=!0);else return e.lanes=t.lanes,ln(t,e,o)}return bd(t,e,r,n,o)}function fy(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(ii,Dt),Dt|=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(ii,Dt),Dt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ye(ii,Dt),Dt|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,ye(ii,Dt),Dt|=n;return wt(t,e,o,r),e.child}function py(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function bd(t,e,r,n,o){var i=xt(r)?_o:yt.current;return i=Ti(e,i),vi(e,o),r=Bh(t,e,r,n,i,o),n=qh(),t!==null&&!Nt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,ln(t,e,o)):(be&&n&&Nh(e),e.flags|=1,wt(t,e,r,o),e.child)}function Mp(t,e,r,n,o){if(xt(r)){var i=!0;Pc(e)}else i=!1;if(vi(e,o),e.stateNode===null)nc(t,e),zv(e,r,n),Sd(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=rr(l):(l=xt(r)?_o:yt.current,l=Ti(e,l));var u=r.getDerivedStateFromProps,h=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&bp(e,a,n,l),Tn=!1;var d=e.memoizedState;a.state=d,Uc(e,n,a,o),c=e.memoizedState,s!==n||d!==c||Ot.current||Tn?(typeof u=="function"&&(Cd(e,r,u,n),c=e.memoizedState),(s=Tn||Tp(e,r,s,n,d,c,l))?(h||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,Fv(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:ur(e.type,s),a.props=l,h=e.pendingProps,d=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=rr(c):(c=xt(r)?_o:yt.current,c=Ti(e,c));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||d!==c)&&bp(e,a,n,c),Tn=!1,d=e.memoizedState,a.state=d,Uc(e,n,a,o);var m=e.memoizedState;s!==h||d!==m||Ot.current||Tn?(typeof f=="function"&&(Cd(e,r,f,n),m=e.memoizedState),(l=Tn||Tp(e,r,l,n,d,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&&d===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&d===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&&d===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),n=!1)}return Id(t,e,r,n,i,o)}function Id(t,e,r,n,o,i){py(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return o&&_p(e,r,!1),ln(t,e,i);n=e.stateNode,kE.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=Ii(e,t.child,null,i),e.child=Ii(e,null,s,i)):wt(t,e,s,i),e.memoizedState=n.state,o&&_p(e,r,!0),e.child}function gy(t){var e=t.stateNode;e.pendingContext?yp(t,e.pendingContext,e.pendingContext!==e.context):e.context&&yp(t,e.context,!1),Fh(t,e.containerInfo)}function Up(t,e,r,n,o){return bi(),xh(o),e.flags|=256,wt(t,e,r,n),e.child}var Ad={dehydrated:null,treeContext:null,retryLane:0};function kd(t){return{baseLanes:t,cachePool:null,transitions:null}}function my(t,e,r){var n=e.pendingProps,o=Ae.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(Ae,o&1),t===null)return wd(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=Rl(a,n,0,null),t=fo(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=kd(r),e.memoizedState=Ad,t):Vh(e,a));if(o=t.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return RE(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=Fn(o,c),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Fn(s,i):(i=fo(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?kd(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=Ad,n}return i=t.child,t=i.sibling,n=Fn(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 Vh(t,e){return e=Rl({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Ds(t,e,r,n){return n!==null&&xh(n),Ii(e,t.child,null,r),t=Vh(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function RE(t,e,r,n,o,i,a){if(r)return e.flags&256?(e.flags&=-257,n=mu(Error(I(422))),Ds(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=Rl({mode:"visible",children:n.children},o,0,null),i=fo(i,o,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,(e.mode&1)!==0&&Ii(e,t.child,null,a),e.child.memoizedState=kd(a),e.memoizedState=Ad,i);if((e.mode&1)===0)return Ds(t,e,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(I(419)),n=mu(i,n,void 0),Ds(t,e,a,n)}if(s=(a&t.childLanes)!==0,Nt||s){if(n=Qe,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,cn(t,o),vr(n,t,o,-1))}return Zh(),n=mu(Error(I(421))),Ds(t,e,a,n)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=jE.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,Ht=Un(o.nextSibling),$t=e,be=!0,hr=null,t!==null&&(Qt[Jt++]=Yr,Qt[Jt++]=Qr,Qt[Jt++]=wo,Yr=t.id,Qr=t.overflow,wo=e),e=Vh(e,n.children),e.flags|=4096,e)}function Lp(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ed(t.return,e,r)}function vu(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 vy(t,e,r){var n=e.pendingProps,o=n.revealOrder,i=n.tail;if(wt(t,e,n.children,r),n=Ae.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&&Lp(t,r,e);else if(t.tag===19)Lp(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(Ae,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&&Lc(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),vu(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&&Lc(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}vu(e,!0,r,null,i);break;case"together":vu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function nc(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function ln(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Co|=e.lanes,(r&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(I(153));if(e.child!==null){for(t=e.child,r=Fn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Fn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function PE(t,e,r){switch(e.tag){case 3:gy(e),bi();break;case 5:qv(e);break;case 1:xt(e.type)&&Pc(e);break;case 4:Fh(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;ye(xc,n._currentValue),n._currentValue=o;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(ye(Ae,Ae.current&1),e.flags|=128,null):(r&e.child.childLanes)!==0?my(t,e,r):(ye(Ae,Ae.current&1),t=ln(t,e,r),t!==null?t.sibling:null);ye(Ae,Ae.current&1);break;case 19:if(n=(r&e.childLanes)!==0,(t.flags&128)!==0){if(n)return vy(t,e,r);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(Ae,Ae.current),n)break;return null;case 22:case 23:return e.lanes=0,fy(t,e,r)}return ln(t,e,r)}var yy,Rd,_y,wy;yy=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}};Rd=function(){};_y=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,so(xr.current);var i=null;switch(r){case"input":o=Ju(t,o),n=Ju(t,n),i=[];break;case"select":o=Re({},o,{value:void 0}),n=Re({},n,{value:void 0}),i=[];break;case"textarea":o=ed(t,o),n=ed(t,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=kc)}rd(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"&&(La.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"&&(La.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&we("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)}};wy=function(t,e,r,n){r!==n&&(e.flags|=4)};function Zi(t,e){if(!be)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 ut(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 NE(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 ut(e),null;case 1:return xt(e.type)&&Rc(),ut(e),null;case 3:return n=e.stateNode,Ai(),Ce(Ot),Ce(yt),zh(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Us(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,hr!==null&&(Dd(hr),hr=null))),Rd(t,e),ut(e),null;case 5:$h(e);var o=so(Wa.current);if(r=e.type,t!==null&&e.stateNode!=null)_y(t,e,r,n,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(I(166));return ut(e),null}if(t=so(xr.current),Us(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[Rr]=e,n[Ga]=i,t=(e.mode&1)!==0,r){case"dialog":we("cancel",n),we("close",n);break;case"iframe":case"object":case"embed":we("load",n);break;case"video":case"audio":for(o=0;o<ua.length;o++)we(ua[o],n);break;case"source":we("error",n);break;case"img":case"image":case"link":we("error",n),we("load",n);break;case"details":we("toggle",n);break;case"input":Kf(n,i),we("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},we("invalid",n);break;case"textarea":Vf(n,i),we("invalid",n)}rd(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&&Ms(n.textContent,s,t),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ms(n.textContent,s,t),o=["children",""+s]):La.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&we("scroll",n)}switch(r){case"input":Is(n),Gf(n,i,!0);break;case"textarea":Is(n),Wf(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=kc)}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=Vm(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[Rr]=e,t[Ga]=n,yy(t,e,!1,!1),e.stateNode=t;e:{switch(a=nd(r,n),r){case"dialog":we("cancel",t),we("close",t),o=n;break;case"iframe":case"object":case"embed":we("load",t),o=n;break;case"video":case"audio":for(o=0;o<ua.length;o++)we(ua[o],t);o=n;break;case"source":we("error",t),o=n;break;case"img":case"image":case"link":we("error",t),we("load",t),o=n;break;case"details":we("toggle",t),o=n;break;case"input":Kf(t,n),o=Ju(t,n),we("invalid",t);break;case"option":o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=Re({},n,{value:void 0}),we("invalid",t);break;case"textarea":Vf(t,n),o=ed(t,n),we("invalid",t);break;default:o=n}rd(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?Qm(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Wm(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Da(t,c):typeof c=="number"&&Da(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(La.hasOwnProperty(i)?c!=null&&i==="onScroll"&&we("scroll",t):c!=null&&vh(t,i,c,a))}switch(r){case"input":Is(t),Gf(t,n,!1);break;case"textarea":Is(t),Wf(t);break;case"option":n.value!=null&&t.setAttribute("value",""+zn(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?fi(t,!!n.multiple,i,!1):n.defaultValue!=null&&fi(t,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=kc)}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 ut(e),null;case 6:if(t&&e.stateNode!=null)wy(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(I(166));if(r=so(Wa.current),so(xr.current),Us(e)){if(n=e.stateNode,r=e.memoizedProps,n[Rr]=e,(i=n.nodeValue!==r)&&(t=$t,t!==null))switch(t.tag){case 3:Ms(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ms(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Rr]=e,e.stateNode=n}return ut(e),null;case 13:if(Ce(Ae),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(be&&Ht!==null&&(e.mode&1)!==0&&(e.flags&128)===0)Dv(),bi(),e.flags|=98560,i=!1;else if(i=Us(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(I(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[Rr]=e}else bi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ut(e),i=!1}else hr!==null&&(Dd(hr),hr=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||(Ae.current&1)!==0?Be===0&&(Be=3):Zh())),e.updateQueue!==null&&(e.flags|=4),ut(e),null);case 4:return Ai(),Rd(t,e),t===null&&qa(e.stateNode.containerInfo),ut(e),null;case 10:return Lh(e.type._context),ut(e),null;case 17:return xt(e.type)&&Rc(),ut(e),null;case 19:if(Ce(Ae),i=e.memoizedState,i===null)return ut(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)Zi(i,!1);else{if(Be!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=Lc(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(Ae,Ae.current&1|2),e.child}t=t.sibling}i.tail!==null&&Me()>Ri&&(e.flags|=128,n=!0,Zi(i,!1),e.lanes=4194304)}else{if(!n)if(t=Lc(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&&!be)return ut(e),null}else 2*Me()-i.renderingStartTime>Ri&&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=Ae.current,ye(Ae,n?r&1|2:r&1),e):(ut(e),null);case 22:case 23:return Xh(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&(e.mode&1)!==0?(Dt&1073741824)!==0&&(ut(e),e.subtreeFlags&6&&(e.flags|=8192)):ut(e),null;case 24:return null;case 25:return null}throw Error(I(156,e.tag))}function OE(t,e){switch(Oh(e),e.tag){case 1:return xt(e.type)&&Rc(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ai(),Ce(Ot),Ce(yt),zh(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return $h(e),null;case 13:if(Ce(Ae),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(I(340));bi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ce(Ae),null;case 4:return Ai(),null;case 10:return Lh(e.type._context),null;case 22:case 23:return Xh(),null;case 24:return null;default:return null}}var Hs=!1,mt=!1,xE=typeof WeakSet=="function"?WeakSet:Set,H=null;function oi(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ne(t,e,n)}else r.current=null}function Pd(t,e,r){try{r()}catch(n){Ne(t,e,n)}}var Dp=!1;function ME(t,e){if(fd=bc,t=Tv(),Ph(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,h=t,d=null;t:for(;;){for(var f;h!==r||o!==0&&h.nodeType!==3||(s=a+o),h!==i||n!==0&&h.nodeType!==3||(c=a+n),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)d=h,h=f;for(;;){if(h===t)break t;if(d===r&&++l===o&&(s=a),d===i&&++u===n&&(c=a),(f=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=f}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(pd={focusedElem:t,selectionRange:r},bc=!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:ur(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(I(163))}}catch(w){Ne(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return m=Dp,Dp=!1,m}function ka(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&&Pd(e,r,i)}o=o.next}while(o!==n)}}function Al(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 Nd(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 Ey(t){var e=t.alternate;e!==null&&(t.alternate=null,Ey(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Rr],delete e[Ga],delete e[vd],delete e[mE],delete e[vE])),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 Cy(t){return t.tag===5||t.tag===3||t.tag===4}function Hp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Cy(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 Od(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=kc));else if(n!==4&&(t=t.child,t!==null))for(Od(t,e,r),t=t.sibling;t!==null;)Od(t,e,r),t=t.sibling}function xd(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(xd(t,e,r),t=t.sibling;t!==null;)xd(t,e,r),t=t.sibling}var Ze=null,dr=!1;function _n(t,e,r){for(r=r.child;r!==null;)Sy(t,e,r),r=r.sibling}function Sy(t,e,r){if(Or&&typeof Or.onCommitFiberUnmount=="function")try{Or.onCommitFiberUnmount(_l,r)}catch{}switch(r.tag){case 5:mt||oi(r,e);case 6:var n=Ze,o=dr;Ze=null,_n(t,e,r),Ze=n,dr=o,Ze!==null&&(dr?(t=Ze,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Ze.removeChild(r.stateNode));break;case 18:Ze!==null&&(dr?(t=Ze,r=r.stateNode,t.nodeType===8?uu(t.parentNode,r):t.nodeType===1&&uu(t,r),za(t)):uu(Ze,r.stateNode));break;case 4:n=Ze,o=dr,Ze=r.stateNode.containerInfo,dr=!0,_n(t,e,r),Ze=n,dr=o;break;case 0:case 11:case 14:case 15:if(!mt&&(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)&&Pd(r,e,a),o=o.next}while(o!==n)}_n(t,e,r);break;case 1:if(!mt&&(oi(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ne(r,e,s)}_n(t,e,r);break;case 21:_n(t,e,r);break;case 22:r.mode&1?(mt=(n=mt)||r.memoizedState!==null,_n(t,e,r),mt=n):_n(t,e,r);break;default:_n(t,e,r)}}function Fp(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new xE),e.forEach(function(n){var o=BE.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ar(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:Ze=s.stateNode,dr=!1;break e;case 3:Ze=s.stateNode.containerInfo,dr=!0;break e;case 4:Ze=s.stateNode.containerInfo,dr=!0;break e}s=s.return}if(Ze===null)throw Error(I(160));Sy(i,a,o),Ze=null,dr=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(l){Ne(o,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Ty(e,t),e=e.sibling}function Ty(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(ar(e,t),Cr(t),n&4){try{ka(3,t,t.return),Al(3,t)}catch(v){Ne(t,t.return,v)}try{ka(5,t,t.return)}catch(v){Ne(t,t.return,v)}}break;case 1:ar(e,t),Cr(t),n&512&&r!==null&&oi(r,r.return);break;case 5:if(ar(e,t),Cr(t),n&512&&r!==null&&oi(r,r.return),t.flags&32){var o=t.stateNode;try{Da(o,"")}catch(v){Ne(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&&Km(o,i),nd(s,a);var l=nd(s,i);for(a=0;a<c.length;a+=2){var u=c[a],h=c[a+1];u==="style"?Qm(o,h):u==="dangerouslySetInnerHTML"?Wm(o,h):u==="children"?Da(o,h):vh(o,u,h,l)}switch(s){case"input":Xu(o,i);break;case"textarea":Gm(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?fi(o,!!i.multiple,f,!1):d!==!!i.multiple&&(i.defaultValue!=null?fi(o,!!i.multiple,i.defaultValue,!0):fi(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ga]=i}catch(v){Ne(t,t.return,v)}}break;case 6:if(ar(e,t),Cr(t),n&4){if(t.stateNode===null)throw Error(I(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(v){Ne(t,t.return,v)}}break;case 3:if(ar(e,t),Cr(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{za(e.containerInfo)}catch(v){Ne(t,t.return,v)}break;case 4:ar(e,t),Cr(t);break;case 13:ar(e,t),Cr(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Qh=Me())),n&4&&Fp(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(mt=(l=mt)||u,ar(e,t),mt=l):ar(e,t),Cr(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(h=H=u;H!==null;){switch(d=H,f=d.child,d.tag){case 0:case 11:case 14:case 15:ka(4,d,d.return);break;case 1:oi(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){n=d,r=d.return;try{e=n,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(v){Ne(n,r,v)}}break;case 5:oi(d,d.return);break;case 22:if(d.memoizedState!==null){zp(h);continue}}f!==null?(f.return=d,H=f):zp(h)}u=u.sibling}e:for(u=null,h=t;;){if(h.tag===5){if(u===null){u=h;try{o=h.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=Ym("display",a))}catch(v){Ne(t,t.return,v)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(v){Ne(t,t.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ar(e,t),Cr(t),n&4&&Fp(t);break;case 21:break;default:ar(e,t),Cr(t)}}function Cr(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(Cy(r)){var n=r;break e}r=r.return}throw Error(I(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Da(o,""),n.flags&=-33);var i=Hp(t);xd(t,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=Hp(t);Od(t,s,a);break;default:throw Error(I(161))}}catch(c){Ne(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function UE(t,e,r){H=t,by(t)}function by(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||Hs;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||mt;s=Hs;var l=mt;if(Hs=a,(mt=c)&&!l)for(H=o;H!==null;)a=H,c=a.child,a.tag===22&&a.memoizedState!==null?jp(o):c!==null?(c.return=a,H=c):jp(o);for(;i!==null;)H=i,by(i),i=i.sibling;H=o,Hs=s,mt=l}$p(t)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,H=i):$p(t)}}function $p(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:mt||Al(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!mt)if(r===null)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:ur(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&Sp(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}Sp(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 h=u.dehydrated;h!==null&&za(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}mt||e.flags&512&&Nd(e)}catch(d){Ne(e,e.return,d)}}if(e===t){H=null;break}if(r=e.sibling,r!==null){r.return=e.return,H=r;break}H=e.return}}function zp(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 jp(t){for(;H!==null;){var e=H;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Al(4,e)}catch(c){Ne(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var o=e.return;try{n.componentDidMount()}catch(c){Ne(e,o,c)}}var i=e.return;try{Nd(e)}catch(c){Ne(e,i,c)}break;case 5:var a=e.return;try{Nd(e)}catch(c){Ne(e,a,c)}}}catch(c){Ne(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 LE=Math.ceil,Fc=pn.ReactCurrentDispatcher,Wh=pn.ReactCurrentOwner,er=pn.ReactCurrentBatchConfig,ne=0,Qe=null,He=null,nt=0,Dt=0,ii=qn(0),Be=0,Xa=null,Co=0,kl=0,Yh=0,Ra=null,Pt=null,Qh=0,Ri=1/0,Gr=null,$c=!1,Md=null,Dn=null,Fs=!1,Nn=null,zc=0,Pa=0,Ud=null,oc=-1,ic=0;function St(){return(ne&6)!==0?Me():oc!==-1?oc:oc=Me()}function Hn(t){return(t.mode&1)===0?1:(ne&2)!==0&&nt!==0?nt&-nt:_E.transition!==null?(ic===0&&(ic=cv()),ic):(t=ue,t!==0||(t=window.event,t=t===void 0?16:gv(t.type)),t)}function vr(t,e,r,n){if(50<Pa)throw Pa=0,Ud=null,Error(I(185));hs(t,r,n),((ne&2)===0||t!==Qe)&&(t===Qe&&((ne&2)===0&&(kl|=r),Be===4&&kn(t,nt)),Mt(t,n),r===1&&ne===0&&(e.mode&1)===0&&(Ri=Me()+500,Tl&&Kn()))}function Mt(t,e){var r=t.callbackNode;_w(t,e);var n=Tc(t,t===Qe?nt:0);if(n===0)r!==null&&Jf(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Jf(r),e===1)t.tag===0?yE(Bp.bind(null,t)):Mv(Bp.bind(null,t)),pE(function(){(ne&6)===0&&Kn()}),r=null;else{switch(lv(n)){case 1:r=Ch;break;case 4:r=av;break;case 16:r=Sc;break;case 536870912:r=sv;break;default:r=Sc}r=xy(r,Iy.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Iy(t,e){if(oc=-1,ic=0,(ne&6)!==0)throw Error(I(327));var r=t.callbackNode;if(yi()&&t.callbackNode!==r)return null;var n=Tc(t,t===Qe?nt:0);if(n===0)return null;if((n&30)!==0||(n&t.expiredLanes)!==0||e)e=jc(t,n);else{e=n;var o=ne;ne|=2;var i=ky();(Qe!==t||nt!==e)&&(Gr=null,Ri=Me()+500,ho(t,e));do try{FE();break}catch(s){Ay(t,s)}while(1);Uh(),Fc.current=i,ne=o,He!==null?e=0:(Qe=null,nt=0,e=Be)}if(e!==0){if(e===2&&(o=cd(t),o!==0&&(n=o,e=Ld(t,o))),e===1)throw r=Xa,ho(t,0),kn(t,n),Mt(t,Me()),r;if(e===6)kn(t,n);else{if(o=t.current.alternate,(n&30)===0&&!DE(o)&&(e=jc(t,n),e===2&&(i=cd(t),i!==0&&(n=i,e=Ld(t,i))),e===1))throw r=Xa,ho(t,0),kn(t,n),Mt(t,Me()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(I(345));case 2:Zn(t,Pt,Gr);break;case 3:if(kn(t,n),(n&130023424)===n&&(e=Qh+500-Me(),10<e)){if(Tc(t,0)!==0)break;if(o=t.suspendedLanes,(o&n)!==n){St(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=md(Zn.bind(null,t,Pt,Gr),e);break}Zn(t,Pt,Gr);break;case 4:if(kn(t,n),(n&4194240)===n)break;for(e=t.eventTimes,o=-1;0<n;){var a=31-mr(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*LE(n/1960))-n,10<n){t.timeoutHandle=md(Zn.bind(null,t,Pt,Gr),n);break}Zn(t,Pt,Gr);break;case 5:Zn(t,Pt,Gr);break;default:throw Error(I(329))}}}return Mt(t,Me()),t.callbackNode===r?Iy.bind(null,t):null}function Ld(t,e){var r=Ra;return t.current.memoizedState.isDehydrated&&(ho(t,e).flags|=256),t=jc(t,e),t!==2&&(e=Pt,Pt=r,e!==null&&Dd(e)),t}function Dd(t){Pt===null?Pt=t:Pt.push.apply(Pt,t)}function DE(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(!wr(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 kn(t,e){for(e&=~Yh,e&=~kl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-mr(e),n=1<<r;t[r]=-1,e&=~n}}function Bp(t){if((ne&6)!==0)throw Error(I(327));yi();var e=Tc(t,0);if((e&1)===0)return Mt(t,Me()),null;var r=jc(t,e);if(t.tag!==0&&r===2){var n=cd(t);n!==0&&(e=n,r=Ld(t,n))}if(r===1)throw r=Xa,ho(t,0),kn(t,e),Mt(t,Me()),r;if(r===6)throw Error(I(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Zn(t,Pt,Gr),Mt(t,Me()),null}function Jh(t,e){var r=ne;ne|=1;try{return t(e)}finally{ne=r,ne===0&&(Ri=Me()+500,Tl&&Kn())}}function So(t){Nn!==null&&Nn.tag===0&&(ne&6)===0&&yi();var e=ne;ne|=1;var r=er.transition,n=ue;try{if(er.transition=null,ue=1,t)return t()}finally{ue=n,er.transition=r,ne=e,(ne&6)===0&&Kn()}}function Xh(){Dt=ii.current,Ce(ii)}function ho(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,fE(r)),He!==null)for(r=He.return;r!==null;){var n=r;switch(Oh(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Rc();break;case 3:Ai(),Ce(Ot),Ce(yt),zh();break;case 5:$h(n);break;case 4:Ai();break;case 13:Ce(Ae);break;case 19:Ce(Ae);break;case 10:Lh(n.type._context);break;case 22:case 23:Xh()}r=r.return}if(Qe=t,He=t=Fn(t.current,null),nt=Dt=e,Be=0,Xa=null,Yh=kl=Co=0,Pt=Ra=null,ao!==null){for(e=0;e<ao.length;e++)if(r=ao[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}ao=null}return t}function Ay(t,e){do{var r=He;try{if(Uh(),tc.current=Hc,Dc){for(var n=ke.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Dc=!1}if(Eo=0,Ge=je=ke=null,Aa=!1,Ya=0,Wh.current=null,r===null||r.return===null){Be=1,Xa=e,He=null;break}e:{var i=t,a=r.return,s=r,c=e;if(e=nt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,u=s,h=u.tag;if((u.mode&1)===0&&(h===0||h===11||h===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Pp(a);if(f!==null){f.flags&=-257,Np(f,a,s,i,e),f.mode&1&&Rp(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){Rp(i,l,e),Zh();break e}c=Error(I(426))}}else if(be&&s.mode&1){var E=Pp(a);if(E!==null){(E.flags&65536)===0&&(E.flags|=256),Np(E,a,s,i,e),xh(ki(c,s));break e}}i=c=ki(c,s),Be!==4&&(Be=2),Ra===null?Ra=[i]:Ra.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=uy(i,c,e);Cp(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"&&(Dn===null||!Dn.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var w=dy(i,s,e);Cp(i,w);break e}}i=i.return}while(i!==null)}Py(r)}catch(b){e=b,He===r&&r!==null&&(He=r=r.return);continue}break}while(1)}function ky(){var t=Fc.current;return Fc.current=Hc,t===null?Hc:t}function Zh(){(Be===0||Be===3||Be===2)&&(Be=4),Qe===null||(Co&268435455)===0&&(kl&268435455)===0||kn(Qe,nt)}function jc(t,e){var r=ne;ne|=2;var n=ky();(Qe!==t||nt!==e)&&(Gr=null,ho(t,e));do try{HE();break}catch(o){Ay(t,o)}while(1);if(Uh(),ne=r,Fc.current=n,He!==null)throw Error(I(261));return Qe=null,nt=0,Be}function HE(){for(;He!==null;)Ry(He)}function FE(){for(;He!==null&&!uw();)Ry(He)}function Ry(t){var e=Oy(t.alternate,t,Dt);t.memoizedProps=t.pendingProps,e===null?Py(t):He=e,Wh.current=null}function Py(t){var e=t;do{var r=e.alternate;if(t=e.return,(e.flags&32768)===0){if(r=NE(r,e,Dt),r!==null){He=r;return}}else{if(r=OE(r,e),r!==null){r.flags&=32767,He=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Be=6,He=null;return}}if(e=e.sibling,e!==null){He=e;return}He=e=t}while(e!==null);Be===0&&(Be=5)}function Zn(t,e,r){var n=ue,o=er.transition;try{er.transition=null,ue=1,$E(t,e,r,n)}finally{er.transition=o,ue=n}return null}function $E(t,e,r,n){do yi();while(Nn!==null);if((ne&6)!==0)throw Error(I(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(I(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(ww(t,i),t===Qe&&(He=Qe=null,nt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Fs||(Fs=!0,xy(Sc,function(){return yi(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=er.transition,er.transition=null;var a=ue;ue=1;var s=ne;ne|=4,Wh.current=null,ME(t,r),Ty(r,t),aE(pd),bc=!!fd,pd=fd=null,t.current=r,UE(r),dw(),ne=s,ue=a,er.transition=i}else t.current=r;if(Fs&&(Fs=!1,Nn=t,zc=o),i=t.pendingLanes,i===0&&(Dn=null),pw(r.stateNode),Mt(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=Md,Md=null,t;return(zc&1)!==0&&t.tag!==0&&yi(),i=t.pendingLanes,(i&1)!==0?t===Ud?Pa++:(Pa=0,Ud=t):Pa=0,Kn(),null}function yi(){if(Nn!==null){var t=lv(zc),e=er.transition,r=ue;try{if(er.transition=null,ue=16>t?16:t,Nn===null)var n=!1;else{if(t=Nn,Nn=null,zc=0,(ne&6)!==0)throw Error(I(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:ka(8,u,i)}var h=u.child;if(h!==null)h.return=u,H=h;else for(;H!==null;){u=H;var d=u.sibling,f=u.return;if(Ey(u),u===l){H=null;break}if(d!==null){d.return=f,H=d;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:ka(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:Al(9,s)}}catch(b){Ne(s,s.return,b)}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,Kn(),Or&&typeof Or.onPostCommitFiberRoot=="function")try{Or.onPostCommitFiberRoot(_l,t)}catch{}n=!0}return n}finally{ue=r,er.transition=e}}return!1}function qp(t,e,r){e=ki(r,e),e=uy(t,e,1),t=Ln(t,e,1),e=St(),t!==null&&(hs(t,1,e),Mt(t,e))}function Ne(t,e,r){if(t.tag===3)qp(t,t,r);else for(;e!==null;){if(e.tag===3){qp(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Dn===null||!Dn.has(n))){t=ki(r,t),t=dy(e,t,1),e=Ln(e,t,1),t=St(),e!==null&&(hs(e,1,t),Mt(e,t));break}}e=e.return}}function zE(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=St(),t.pingedLanes|=t.suspendedLanes&r,Qe===t&&(nt&r)===r&&(Be===4||Be===3&&(nt&130023424)===nt&&500>Me()-Qh?ho(t,0):Yh|=r),Mt(t,e)}function Ny(t,e){e===0&&((t.mode&1)===0?e=1:(e=Rs,Rs<<=1,(Rs&130023424)===0&&(Rs=4194304)));var r=St();t=cn(t,e),t!==null&&(hs(t,e,r),Mt(t,r))}function jE(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Ny(t,r)}function BE(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(I(314))}n!==null&&n.delete(e),Ny(t,r)}var Oy;Oy=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ot.current)Nt=!0;else{if((t.lanes&r)===0&&(e.flags&128)===0)return Nt=!1,PE(t,e,r);Nt=(t.flags&131072)!==0}else Nt=!1,be&&(e.flags&1048576)!==0&&Uv(e,Oc,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;nc(t,e),t=e.pendingProps;var o=Ti(e,yt.current);vi(e,r),o=Bh(null,e,n,t,o,r);var i=qh();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,xt(n)?(i=!0,Pc(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hh(e),o.updater=bl,e.stateNode=o,o._reactInternals=e,Sd(e,n,t,r),e=Id(null,e,n,!0,i,r)):(e.tag=0,be&&i&&Nh(e),wt(null,e,o,r),e=e.child),e;case 16:n=e.elementType;e:{switch(nc(t,e),t=e.pendingProps,o=n._init,n=o(n._payload),e.type=n,o=e.tag=KE(n),t=ur(n,t),o){case 0:e=bd(null,e,n,t,r);break e;case 1:e=Mp(null,e,n,t,r);break e;case 11:e=Op(null,e,n,t,r);break e;case 14:e=xp(null,e,n,ur(n.type,t),r);break e}throw Error(I(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ur(n,o),bd(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ur(n,o),Mp(t,e,n,o,r);case 3:e:{if(gy(e),t===null)throw Error(I(387));n=e.pendingProps,i=e.memoizedState,o=i.element,Fv(t,e),Uc(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=ki(Error(I(423)),e),e=Up(t,e,n,r,o);break e}else if(n!==o){o=ki(Error(I(424)),e),e=Up(t,e,n,r,o);break e}else for(Ht=Un(e.stateNode.containerInfo.firstChild),$t=e,be=!0,hr=null,r=Bv(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bi(),n===o){e=ln(t,e,r);break e}wt(t,e,n,r)}e=e.child}return e;case 5:return qv(e),t===null&&wd(e),n=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,gd(n,o)?a=null:i!==null&&gd(n,i)&&(e.flags|=32),py(t,e),wt(t,e,a,r),e.child;case 6:return t===null&&wd(e),null;case 13:return my(t,e,r);case 4:return Fh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Ii(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:ur(n,o),Op(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(xc,n._currentValue),n._currentValue=a,i!==null)if(wr(i.value,a)){if(i.children===o.children&&!Ot.current){e=ln(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=Zr(-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),Ed(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(I(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Ed(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,vi(e,r),o=rr(o),n=n(o),e.flags|=1,wt(t,e,n,r),e.child;case 14:return n=e.type,o=ur(n,e.pendingProps),o=ur(n.type,o),xp(t,e,n,o,r);case 15:return hy(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ur(n,o),nc(t,e),e.tag=1,xt(n)?(t=!0,Pc(e)):t=!1,vi(e,r),zv(e,n,o),Sd(e,n,o,r),Id(null,e,n,!0,t,r);case 19:return vy(t,e,r);case 22:return fy(t,e,r)}throw Error(I(156,e.tag))};function xy(t,e){return iv(t,e)}function qE(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 Zt(t,e,r,n){return new qE(t,e,r,n)}function ef(t){return t=t.prototype,!(!t||!t.isReactComponent)}function KE(t){if(typeof t=="function")return ef(t)?1:0;if(t!=null){if(t=t.$$typeof,t===_h)return 11;if(t===wh)return 14}return 2}function Fn(t,e){var r=t.alternate;return r===null?(r=Zt(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 ac(t,e,r,n,o,i){var a=2;if(n=t,typeof t=="function")ef(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Yo:return fo(r.children,o,i,e);case yh:a=8,o|=8;break;case Vu:return t=Zt(12,r,e,o|2),t.elementType=Vu,t.lanes=i,t;case Wu:return t=Zt(13,r,e,o),t.elementType=Wu,t.lanes=i,t;case Yu:return t=Zt(19,r,e,o),t.elementType=Yu,t.lanes=i,t;case jm:return Rl(r,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $m:a=10;break e;case zm:a=9;break e;case _h:a=11;break e;case wh:a=14;break e;case Sn:a=16,n=null;break e}throw Error(I(130,t==null?t:typeof t,""))}return e=Zt(a,r,e,o),e.elementType=t,e.type=n,e.lanes=i,e}function fo(t,e,r,n){return t=Zt(7,t,n,e),t.lanes=r,t}function Rl(t,e,r,n){return t=Zt(22,t,n,e),t.elementType=jm,t.lanes=r,t.stateNode={isHidden:!1},t}function yu(t,e,r){return t=Zt(6,t,null,e),t.lanes=r,t}function _u(t,e,r){return e=Zt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function GE(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=Zl(0),this.expirationTimes=Zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zl(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tf(t,e,r,n,o,i,a,s,c){return t=new GE(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Zt(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 VE(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wo,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function My(t){if(!t)return jn;t=t._reactInternals;e:{if(Oo(t)!==t||t.tag!==1)throw Error(I(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(xt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(I(171))}if(t.tag===1){var r=t.type;if(xt(r))return xv(t,r,e)}return e}function Uy(t,e,r,n,o,i,a,s,c){return t=tf(r,n,!0,t,o,i,a,s,c),t.context=My(null),r=t.current,n=St(),o=Hn(r),i=Zr(n,o),i.callback=e!=null?e:null,Ln(r,i,o),t.current.lanes=o,hs(t,o,n),Mt(t,n),t}function Pl(t,e,r,n){var o=e.current,i=St(),a=Hn(o);return r=My(r),e.context===null?e.context=r:e.pendingContext=r,e=Zr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Ln(o,e,a),t!==null&&(vr(t,o,a,i),ec(t,o,a)),a}function Bc(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 Kp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function rf(t,e){Kp(t,e),(t=t.alternate)&&Kp(t,e)}function WE(){return null}var Ly=typeof reportError=="function"?reportError:function(t){console.error(t)};function nf(t){this._internalRoot=t}Nl.prototype.render=nf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(I(409));Pl(t,e,null,null)};Nl.prototype.unmount=nf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;So(function(){Pl(null,t,null,null)}),e[sn]=null}};function Nl(t){this._internalRoot=t}Nl.prototype.unstable_scheduleHydration=function(t){if(t){var e=hv();t={blockedOn:null,target:t,priority:e};for(var r=0;r<An.length&&e!==0&&e<An[r].priority;r++);An.splice(r,0,t),r===0&&pv(t)}};function of(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ol(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Gp(){}function YE(t,e,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=Bc(a);i.call(l)}}var a=Uy(e,n,t,0,null,!1,!1,"",Gp);return t._reactRootContainer=a,t[sn]=a.current,qa(t.nodeType===8?t.parentNode:t),So(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=Bc(c);s.call(l)}}var c=tf(t,0,!1,null,null,!1,!1,"",Gp);return t._reactRootContainer=c,t[sn]=c.current,qa(t.nodeType===8?t.parentNode:t),So(function(){Pl(e,c,r,n)}),c}function xl(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=Bc(a);s.call(c)}}Pl(e,a,t,o)}else a=YE(r,e,t,o,n);return Bc(a)}uv=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=la(e.pendingLanes);r!==0&&(Sh(e,r|1),Mt(e,Me()),(ne&6)===0&&(Ri=Me()+500,Kn()))}break;case 13:So(function(){var n=cn(t,1);if(n!==null){var o=St();vr(n,t,1,o)}}),rf(t,1)}};Th=function(t){if(t.tag===13){var e=cn(t,134217728);if(e!==null){var r=St();vr(e,t,134217728,r)}rf(t,134217728)}};dv=function(t){if(t.tag===13){var e=Hn(t),r=cn(t,e);if(r!==null){var n=St();vr(r,t,e,n)}rf(t,e)}};hv=function(){return ue};fv=function(t,e){var r=ue;try{return ue=t,e()}finally{ue=r}};id=function(t,e,r){switch(e){case"input":if(Xu(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=Sl(n);if(!o)throw Error(I(90));qm(n),Xu(n,o)}}}break;case"textarea":Gm(t,r);break;case"select":e=r.value,e!=null&&fi(t,!!r.multiple,e,!1)}};Zm=Jh;ev=So;var QE={usingClientEntryPoint:!1,Events:[ps,Zo,Sl,Jm,Xm,Jh]},ea={findFiberByHostInstance:io,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},JE={bundleType:ea.bundleType,version:ea.version,rendererPackageName:ea.rendererPackageName,rendererConfig:ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=nv(t),t===null?null:t.stateNode},findFiberByHostInstance:ea.findFiberByHostInstance||WE,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 $s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$s.isDisabled&&$s.supportsFiber)try{_l=$s.inject(JE),Or=$s}catch{}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QE;Kt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!of(e))throw Error(I(200));return VE(t,e,null,r)};Kt.createRoot=function(t,e){if(!of(t))throw Error(I(299));var r=!1,n="",o=Ly;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=tf(t,1,!1,null,null,r,!1,n,o),t[sn]=e.current,qa(t.nodeType===8?t.parentNode:t),new nf(e)};Kt.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(I(188)):(t=Object.keys(t).join(","),Error(I(268,t)));return t=nv(e),t=t===null?null:t.stateNode,t};Kt.flushSync=function(t){return So(t)};Kt.hydrate=function(t,e,r){if(!Ol(e))throw Error(I(200));return xl(null,t,e,!0,r)};Kt.hydrateRoot=function(t,e,r){if(!of(t))throw Error(I(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=Ly;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=Uy(e,null,t,1,r!=null?r:null,o,!1,i,a),t[sn]=e.current,qa(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 Nl(e)};Kt.render=function(t,e,r){if(!Ol(e))throw Error(I(200));return xl(null,t,e,!1,r)};Kt.unmountComponentAtNode=function(t){if(!Ol(t))throw Error(I(40));return t._reactRootContainer?(So(function(){xl(null,null,t,!1,function(){t._reactRootContainer=null,t[sn]=null})}),!0):!1};Kt.unstable_batchedUpdates=Jh;Kt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Ol(r))throw Error(I(200));if(t==null||t._reactInternals===void 0)throw Error(I(38));return xl(t,e,r,!1,n)};Kt.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=Kt})(Um);var Vp=Um.exports;Ku.createRoot=Vp.createRoot,Ku.hydrateRoot=Vp.hydrateRoot;class XE{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 Dy extends XE{formatModuleName(e){return`\u{1F4E6}\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var Hd=function(t,e){return Hd=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])},Hd(t,e)};function Dr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var To=function(){return To=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},To.apply(this,arguments)};function Hy(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 Hr(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 ZE(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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function Fy(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 bo(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 Ur(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 un(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 _i(t){return this instanceof _i?(this.v=t,this):new _i(t)}function eC(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(d){n[d]&&(o[d]=function(f){return new Promise(function(m,v){i.push([d,f,m,v])>1||s(d,f)})})}function s(d,f){try{c(n[d](f))}catch(m){h(i[0][3],m)}}function c(d){d.value instanceof _i?Promise.resolve(d.value.v).then(l,u):h(i[0][2],d)}function l(d){s("next",d)}function u(d){s("throw",d)}function h(d,f){d(f),i.shift(),i.length&&s(i[0][0],i[0][1])}}function tC(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 bo=="function"?bo(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 Ml(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 wu=Ml(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
34
- `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
35
- `):"",this.name="UnsubscriptionError",this.errors=r}});function qc(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var gn=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=bo(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 wu?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=bo(h),f=d.next();!f.done;f=d.next()){var m=f.value;try{Wp(m)}catch(v){i=i!=null?i:[],v instanceof wu?i=un(un([],Ur(i)),Ur(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new wu(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Wp(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)&&qc(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&qc(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),$y=gn.EMPTY;function zy(t){return t instanceof gn||t&&"closed"in t&&de(t.remove)&&de(t.add)&&de(t.unsubscribe)}function Wp(t){de(t)?t():t.unsubscribe()}var af={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,un([t,e],Ur(r))):setTimeout.apply(void 0,un([t,e],Ur(r)))},clearTimeout:function(t){var e=Fd.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function jy(t){Fd.setTimeout(function(){throw t})}function Kc(){}var zs=null;function sc(t){if(af.useDeprecatedSynchronousErrorHandling){var e=!zs;if(e&&(zs={errorThrown:!1,error:null}),t(),e){var r=zs,n=r.errorThrown,o=r.error;if(zs=null,n)throw o}}else t()}var sf=function(t){Dr(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,zy(r)&&r.add(n)):n.destination=iC,n}return e.create=function(r,n,o){return new Gc(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}(gn),rC=Function.prototype.bind;function Eu(t,e){return rC.call(t,e)}var nC=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){js(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){js(n)}else js(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){js(r)}},t}(),Gc=function(t){Dr(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&&af.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Eu(r.next,s),error:r.error&&Eu(r.error,s),complete:r.complete&&Eu(r.complete,s)}):a=r}return i.destination=new nC(a),i}return e}(sf);function js(t){jy(t)}function oC(t){throw t}var iC={closed:!0,next:Kc,error:oC,complete:Kc},cf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Fi(t){return t}function aC(t){return t.length===0?Fi:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var Pe=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=cC(e)?e:new Gc(e,r,n);return sc(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=Yp(r),new r(function(o,i){var a=new Gc({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[cf]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return aC(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Yp(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 Yp(t){var e;return(e=t!=null?t:af.Promise)!==null&&e!==void 0?e:Promise}function sC(t){return t&&de(t.next)&&de(t.error)&&de(t.complete)}function cC(t){return t&&t instanceof sf||sC(t)&&zy(t)}function lC(t){return de(t==null?void 0:t.lift)}function Ke(t){return function(e){if(lC(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 uC(t,e,r,n,o)}var uC=function(t){Dr(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}(sf),dC=Ml(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),en=function(t){Dr(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 Qp(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new dC},e.prototype.next=function(r){var n=this;sc(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=bo(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;sc(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;sc(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?$y:(this.currentObservers=null,s.push(r),new gn(function(){n.currentObservers=null,qc(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 Pe;return r.source=this,r},e.create=function(r,n){return new Qp(r,n)},e}(Pe),Qp=function(t){Dr(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:$y},e}(en),Ul=function(t){Dr(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}(en),lf={now:function(){return(lf.delegate||Date).now()},delegate:void 0},By=function(t){Dr(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=lf);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}(en),hC=function(t){Dr(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(gn),Vc={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Vc.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,un([t,e],Ur(r))):setInterval.apply(void 0,un([t,e],Ur(r)))},clearInterval:function(t){var e=Vc.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},fC=function(t){Dr(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),Vc.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&&Vc.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,qc(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(hC),Jp=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=lf.now,t}(),pC=function(t){Dr(e,t);function e(r,n){n===void 0&&(n=Jp.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}(Jp),Wc=new pC(fC),gC=Wc,Io=new Pe(function(t){return t.complete()});function qy(t){return t&&de(t.schedule)}function uf(t){return t[t.length-1]}function mC(t){return de(uf(t))?t.pop():void 0}function Ky(t){return qy(uf(t))?t.pop():void 0}function vC(t,e){return typeof uf(t)=="number"?t.pop():e}var df=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Gy(t){return de(t==null?void 0:t.then)}function Vy(t){return de(t[cf])}function Wy(t){return Symbol.asyncIterator&&de(t==null?void 0:t[Symbol.asyncIterator])}function Yy(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 yC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qy=yC();function Jy(t){return de(t==null?void 0:t[Qy])}function Xy(t){return eC(this,arguments,function(){var r,n,o,i;return Fy(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,_i(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,_i(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,_i(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 Zy(t){return de(t==null?void 0:t.getReader)}function Vt(t){if(t instanceof Pe)return t;if(t!=null){if(Vy(t))return _C(t);if(df(t))return wC(t);if(Gy(t))return EC(t);if(Wy(t))return e0(t);if(Jy(t))return CC(t);if(Zy(t))return SC(t)}throw Yy(t)}function _C(t){return new Pe(function(e){var r=t[cf]();if(de(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wC(t){return new Pe(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function EC(t){return new Pe(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,jy)})}function CC(t){return new Pe(function(e){var r,n;try{for(var o=bo(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 e0(t){return new Pe(function(e){TC(t,e).catch(function(r){return e.error(r)})})}function SC(t){return e0(Xy(t))}function TC(t,e){var r,n,o,i;return ZE(this,void 0,void 0,function(){var a,s;return Fy(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=tC(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 tn(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 Yc(t,e){return e===void 0&&(e=0),Ke(function(r,n){r.subscribe(Ue(n,function(o){return tn(n,t,function(){return n.next(o)},e)},function(){return tn(n,t,function(){return n.complete()},e)},function(o){return tn(n,t,function(){return n.error(o)},e)}))})}function t0(t,e){return e===void 0&&(e=0),Ke(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function bC(t,e){return Vt(t).pipe(t0(e),Yc(e))}function IC(t,e){return Vt(t).pipe(t0(e),Yc(e))}function AC(t,e){return new Pe(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function kC(t,e){return new Pe(function(r){var n;return tn(r,e,function(){n=t[Qy](),tn(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 r0(t,e){if(!t)throw new Error("Iterable cannot be null");return new Pe(function(r){tn(r,e,function(){var n=t[Symbol.asyncIterator]();tn(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function RC(t,e){return r0(Xy(t),e)}function PC(t,e){if(t!=null){if(Vy(t))return bC(t,e);if(df(t))return AC(t,e);if(Gy(t))return IC(t,e);if(Wy(t))return r0(t,e);if(Jy(t))return kC(t,e);if(Zy(t))return RC(t,e)}throw Yy(t)}function yr(t,e){return e?PC(t,e):Vt(t)}function n0(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Ky(t);return yr(t,r)}function NC(t,e){var r=de(t)?t:function(){return t},n=function(o){return o.error(r())};return new Pe(e?function(o){return e.schedule(n,0,o)}:n)}var Ll=Ml(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function Qc(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 Ll)}})})}function Ao(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=new Gc({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(e.defaultValue):o(new Ll)}});t.subscribe(i)})}function o0(t){return t instanceof Date&&!isNaN(t)}var OC=Ml(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function xC(t,e){var r=o0(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,o=r.each,i=r.with,a=i===void 0?MC:i,s=r.scheduler,c=s===void 0?e!=null?e:Wc:s,l=r.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return Ke(function(h,d){var f,m,v=null,E=0,g=function(p){m=tn(d,c,function(){try{f.unsubscribe(),Vt(a({meta:u,lastValue:v,seen:E})).subscribe(d)}catch(y){d.error(y)}},p)};f=h.subscribe(Ue(d,function(p){m==null||m.unsubscribe(),E++,d.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 MC(t){throw new OC(t)}function Tt(t,e){return Ke(function(r,n){var o=0;r.subscribe(Ue(n,function(i){n.next(t.call(e,i,o++))}))})}var UC=Array.isArray;function LC(t,e){return UC(e)?t.apply(void 0,un([],Ur(e))):t(e)}function DC(t){return Tt(function(e){return LC(t,e)})}function i0(t,e,r,n,o,i,a,s){var c=[],l=0,u=0,h=!1,d=function(){h&&!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;Vt(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?tn(e,a,function(){return m(p)}):m(p)};c.length&&l<n;)g();d()}catch(p){e.error(p)}}))};return t.subscribe(Ue(e,f,function(){h=!0,d()})),function(){s==null||s()}}function ko(t,e,r){return r===void 0&&(r=1/0),de(e)?ko(function(n,o){return Tt(function(i,a){return e(n,i,o,a)})(Vt(t(n,o)))},r):(typeof e=="number"&&(r=e),Ke(function(n,o){return i0(n,o,t,r)}))}function HC(t){return t===void 0&&(t=1/0),ko(Fi,t)}var FC=["addListener","removeListener"],$C=["addEventListener","removeEventListener"],zC=["on","off"];function $d(t,e,r,n){if(de(r)&&(n=r,r=void 0),n)return $d(t,e,r).pipe(DC(n));var o=Ur(qC(t)?$C.map(function(s){return function(c){return t[s](e,c,r)}}):jC(t)?FC.map(Xp(t,e)):BC(t)?zC.map(Xp(t,e)):[],2),i=o[0],a=o[1];if(!i&&df(t))return ko(function(s){return $d(s,e,r)})(Vt(t));if(!i)throw new TypeError("Invalid event target");return new Pe(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 Xp(t,e){return function(r){return function(n){return t[r](e,n)}}}function jC(t){return de(t.addListener)&&de(t.removeListener)}function BC(t){return de(t.on)&&de(t.off)}function qC(t){return de(t.addEventListener)&&de(t.removeEventListener)}function KC(t,e,r){t===void 0&&(t=0),r===void 0&&(r=gC);var n=-1;return e!=null&&(qy(e)?r=e:n=e),new Pe(function(o){var i=o0(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 GC(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Ky(t),n=vC(t,1/0),o=t;return o.length?o.length===1?Vt(o[0]):HC(n)(yr(o,r)):Io}function or(t,e){return Ke(function(r,n){var o=0;r.subscribe(Ue(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function dn(t){return Ke(function(e,r){var n=null,o=!1,i;n=e.subscribe(Ue(r,void 0,void 0,function(a){i=Vt(t(a,dn(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function VC(t,e,r,n,o){return function(i,a){var s=r,c=e,l=0;i.subscribe(Ue(a,function(u){var h=l++;c=s?t(c,u,h):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function WC(t){return Ke(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 a0(t,e){return e===void 0&&(e=Fi),t=t!=null?t:YC,Ke(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 YC(t,e){return t===e}function s0(t){return t===void 0&&(t=QC),Ke(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 QC(){return new Ll}function JC(t){return t<=0?function(){return Io}:Ke(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=bo(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 XC(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?or(function(o,i){return t(o,i,n)}):Fi,JC(1),r?WC(e):s0(function(){return new Ll}))}}function ZC(t,e,r){return r===void 0&&(r=1/0),Ke(function(n,o){var i=e;return i0(n,o,function(a,s){return t(i,a,s)},r,function(a){i=a},!1,void 0,function(){return i=null})})}function c0(){return Ke(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 hf(t,e){return Ke(VC(t,e,arguments.length>=2,!0))}function co(t,e){return Ke(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++;Vt(t(c,u)).subscribe(o=Ue(n,function(h){return n.next(e?e(c,h,u,l++):h)},function(){o=null,s()}))},function(){a=!0,s()}))})}function eS(t){return Ke(function(e,r){Vt(t).subscribe(Ue(r,function(){return r.complete()},Kc)),!r.closed&&e.subscribe(r)})}function l0(t,e){return e===void 0&&(e=!1),Ke(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 zd(t,e,r){var n=de(t)||e||r?{next:t,error:e,complete:r}:t;return n?Ke(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)}))}):Fi}function tS(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=mC(t);return Ke(function(n,o){for(var i=t.length,a=new Array(i),s=t.map(function(){return!1}),c=!1,l=function(h){Vt(t[h]).subscribe(Ue(o,function(d){a[h]=d,!c&&!s[h]&&(s[h]=!0,(c=s.every(Fi))&&(s=null))},Kc))},u=0;u<i;u++)l(u);n.subscribe(Ue(o,function(h){if(c){var d=un([h],Ur(a));o.next(r?r.apply(void 0,un([],Ur(d))):d)}}))})}var Sr=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class rS extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class nS{constructor(e){this.logger=new Dy("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 Sr(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 Sr(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=yr(r).pipe(ko(s=>Sr(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}})),hf((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return Qc(a)}_postConfigure(e){return Sr(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=>Sr(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 Sr(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,h=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 ${h}s`),Ao(a.pipe(or(d=>!!d[u]),Tt(d=>d[u]),xC({each:h*1e3,with:()=>NC(()=>new rS)}))))};yr(n).pipe(ko(u=>{const h=u.name;return o.debug(`\u{1F680} initializing ${o.formatModuleName(u)}`),yr(Promise.resolve(u.initialize({ref:r,config:e[h],requireInstance:c,hasModule:s}))).pipe(Tt(d=>(o.debug(`\u{1F680} initialized ${o.formatModuleName(u)}`),[h,d])))})).subscribe({next:([u,h])=>{a.next(Object.assign(a.value,{[u]:h}))},complete:()=>a.complete()});const l=yield Qc(a);return Object.seal(l),l})}_postInitialize(e,r){return Sr(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=>Sr(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 Sr(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>Sr(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 Ho=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},Qn=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)},cc,lc,da,uc,ha,jd;class oS{constructor(e,r){this.__type=e,cc.set(this,void 0),lc.set(this,void 0),da.set(this,!1),uc.set(this,void 0),ha.set(this,void 0),jd.set(this,Date.now()),Ho(this,cc,r.detail,"f"),Ho(this,lc,r.source,"f"),Ho(this,uc,!!r.cancelable,"f"),Ho(this,ha,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return Qn(this,ha,"f")&&!Qn(this,da,"f")}get created(){return Qn(this,jd,"f")}get cancelable(){return Qn(this,uc,"f")}get canceled(){return Qn(this,da,"f")}get detail(){return Qn(this,cc,"f")}get source(){return Qn(this,lc,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Ho(this,da,!0,"f")}stopPropagation(){Ho(this,ha,!1,"f")}}cc=new WeakMap,lc=new WeakMap,da=new WeakMap,uc=new WeakMap,ha=new WeakMap,jd=new WeakMap;var iS=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class aS{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,o;return iS(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 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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class sS extends Pe{get closed(){return this.__event$.closed}constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new en,this.__dispatcher=new aS({onDispatch:e.onDispatch,onBubble:e.onBubble})}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 Zp(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new oS(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return Zp(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 cS=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const lS="event",uS={name:lS,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>cS(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new sS(t),postInitialize({instance:t,modules:e}){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})},dispose({instance:t}){t.dispose()}};class u0{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?yr(Object.values(this._operators)).pipe(ZC((n,o)=>Promise.resolve(o(n)).then(i=>i!=null?i:n),e,1),XC()):n0(e)}}const dS=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class d0 extends u0{setHeader(e,r){const n=dS(e,r);return this.set("header-"+e,n)}}class hS extends u0{}class fS{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new d0,this.defaultHttpClientCtor=e}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 pS extends Error{constructor(e){super(e)}}const gS=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 mS{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}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&&gS(e))return{baseUri:e};if(!r)throw new pS(`No registered http client for key [${e}]`);return r}return e}}function vS(t,e){e===void 0&&(e={});var r=e.selector,n=Hy(e,["selector"]);return new Pe(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=To(To({},n),{signal:a}),h=function(d){s=!1,o.error(d)};return fetch(t,u).then(function(d){r?Vt(r(d)).subscribe(Ue(o,void 0,function(){s=!1,o.complete()},h)):(s=!1,o.next(d),o.complete())}).catch(h),function(){s&&i.abort()}})}const yS=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 eg=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 _S{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,r){var n,o;this.uri=e,this._request$=new en,this._response$=new en,this._abort$=new en,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new d0,this.responseHandler=(o=r==null?void 0:r.responseHandler)!==null&&o!==void 0?o:new hS,this._init()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return Ao(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:yS,a=new Headers(r==null?void 0:r.headers);return a.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},r),{body:o,selector:i,headers:a}))}json(e,r){return Ao(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=eg(n,["selector"]);return n0(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(co(s=>this._prepareRequest(s)),zd(s=>this._request$.next(s)),co(s=>{var{uri:c,path:l}=s,u=eg(s,["uri","path"]);return vS(c,u)}),co(s=>this._prepareResponse(s)),zd(s=>this._response$.next(s)),co(s=>o?o(s):Promise.resolve(s)),eS(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 wS extends _S{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 tg=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const ff={name:"http",configure:()=>new fS(wS),initialize:({config:t,hasModule:e,requireInstance:r})=>tg(void 0,void 0,void 0,function*(){const n=new mS(t);if(e("auth")){const o=yield r("auth");n.defaultHttpRequestHandler.set("MSAL",i=>tg(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})},ES=t=>({module:ff,configure:t}),h0=(t,e)=>({module:ff,configure:r=>{r.configureClient(t,e)}}),Cu="default";class CS{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[Cu]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[Cu])throw Error("Default AuthClient already provided");this.configureClient(Cu,e)}}/*! @azure/msal-browser v2.31.0 2022-11-07 *//*! *****************************************************************************
36
- Copyright (c) Microsoft Corporation.
37
-
38
- Permission to use, copy, modify, and/or distribute this software for any
39
- purpose with or without fee is hereby granted.
40
-
41
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
- PERFORMANCE OF THIS SOFTWARE.
48
- ***************************************************************************** */var Bd=function(t,e){return Bd=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])},Bd(t,e)};function it(t,e){Bd(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 rg(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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}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 SS(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 pf(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(SS(arguments[e]));return t}/*! @azure/msal-common v8.0.0 2022-11-07 *//*! *****************************************************************************
49
- Copyright (c) Microsoft Corporation.
50
-
51
- Permission to use, copy, modify, and/or distribute this software for any
52
- purpose with or without fee is hereby granted.
53
-
54
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
55
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
56
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
57
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
58
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
59
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60
- PERFORMANCE OF THIS SOFTWARE.
61
- ***************************************************************************** */var qd=function(t,e){return qd=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])},qd(t,e)};function Ut(t,e){qd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var me=function(){return me=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},me.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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}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 Dl(){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 v8.0.0 2022-11-07 */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},ms=[_.OPENID_SCOPE,_.PROFILE_SCOPE,_.OFFLINE_ACCESS_SCOPE],ng=Dl(ms,[_.EMAIL_SCOPE]),_r;(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"})(_r||(_r={}));var $e;(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"})($e||($e={}));var Jc;(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"})(Jc||(Jc={}));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 ai;(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"})(ai||(ai={}));var vt={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Na;(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"})(Na||(Na={}));var og={PLAIN:"plain",S256:"S256"},Xc;(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"})(Xc||(Xc={}));var Zc;(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"})(Zc||(Zc={}));var Vr;(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"})(Vr||(Vr={}));var zt;(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."})(zt||(zt={}));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 po;(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"})(po||(po={}));var Jr;(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"})(Jr||(Jr={}));var Kd="appmetadata",TS="client_info",el="1",Oa={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},Wt;(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network",t.HARDCODED_VALUES="hardcoded_values"})(Wt||(Wt={}));var Je={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 xa={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},ig={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},tl;(function(t){t.username="username",t.password="password"})(tl||(tl={}));var si;(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"})(si||(si={}));var bn;(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"})(bn||(bn={}));var oo;(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"})(oo||(oo={}));var lo;(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"})(lo||(lo={}));var Gd;(function(t){t.Jwt="JWT",t.Jwk="JWK"})(Gd||(Gd={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var Bs={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){Ut(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(Bs.unexpectedError.code,Bs.unexpectedError.desc+": "+r)},e.createPostRequestFailed=function(r){return new e(Bs.postRequestFailed.code,Bs.postRequestFailed.desc+": "+r)},e}(Error);/*! @azure/msal-common v8.0.0 2022-11-07 */var rl={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 v8.0.0 2022-11-07 */var k={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){Ut(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(k.clientInfoDecodingError.code,k.clientInfoDecodingError.desc+" Failed with error: "+r)},e.createClientInfoEmptyError=function(){return new e(k.clientInfoEmptyError.code,""+k.clientInfoEmptyError.desc)},e.createTokenParsingError=function(r){return new e(k.tokenParsingError.code,k.tokenParsingError.desc+" Failed with error: "+r)},e.createTokenNullOrEmptyError=function(r){return new e(k.nullOrEmptyToken.code,k.nullOrEmptyToken.desc+" Raw Token Value: "+r)},e.createEndpointDiscoveryIncompleteError=function(r){return new e(k.endpointResolutionError.code,k.endpointResolutionError.desc+" Detail: "+r)},e.createNetworkError=function(r,n){return new e(k.networkError.code,k.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToGetOpenidConfigError=function(r){return new e(k.unableToGetOpenidConfigError.code,k.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},e.createHashNotDeserializedError=function(r){return new e(k.hashNotDeserialized.code,k.hashNotDeserialized.desc+" Given Object: "+r)},e.createInvalidStateError=function(r,n){return new e(k.invalidStateError.code,k.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(k.stateMismatchError.code,k.stateMismatchError.desc)},e.createStateNotFoundError=function(r){return new e(k.stateNotFoundError.code,k.stateNotFoundError.desc+": "+r)},e.createNonceMismatchError=function(){return new e(k.nonceMismatchError.code,k.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(k.authTimeNotFoundError.code,k.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(k.maxAgeTranspiredError.code,k.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(r){return new e(k.nonceNotFoundError.code,k.nonceNotFoundError.desc+": "+r)},e.createMultipleMatchingTokensInCacheError=function(){return new e(k.multipleMatchingTokens.code,k.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(k.multipleMatchingAccounts.code,k.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(k.multipleMatchingAppMetadata.code,k.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(k.tokenRequestCannotBeMade.code,k.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(r){return new e(k.appendEmptyScopeError.code,k.appendEmptyScopeError.desc+" Given Scope: "+r)},e.createRemoveEmptyScopeFromSetError=function(r){return new e(k.removeEmptyScopeError.code,k.removeEmptyScopeError.desc+" Given Scope: "+r)},e.createAppendScopeSetError=function(r){return new e(k.appendScopeSetError.code,k.appendScopeSetError.desc+" Detail Error: "+r)},e.createEmptyInputScopeSetError=function(){return new e(k.emptyInputScopeSetError.code,""+k.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(k.DeviceCodePollingCancelled.code,""+k.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(k.DeviceCodeExpired.code,""+k.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(k.DeviceCodeUnknownError.code,""+k.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(k.NoAccountInSilentRequest.code,""+k.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(k.invalidCacheRecord.code,k.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(k.invalidCacheEnvironment.code,k.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(k.noAccountFound.code,k.noAccountFound.desc)},e.createCachePluginError=function(){return new e(k.CachePluginError.code,""+k.CachePluginError.desc)},e.createNoCryptoObjectError=function(r){return new e(k.noCryptoObj.code,""+k.noCryptoObj.desc+r)},e.createInvalidCacheTypeError=function(){return new e(k.invalidCacheType.code,""+k.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(k.unexpectedAccountType.code,""+k.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(k.unexpectedCredentialType.code,""+k.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(k.invalidAssertion.code,""+k.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(k.invalidClientCredential.code,""+k.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(k.tokenRefreshRequired.code,k.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(k.userTimeoutReached.code,k.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(k.tokenClaimsRequired.code,k.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(k.noAuthorizationCodeFromServer.code,k.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(k.bindingKeyNotRemovedError.code,k.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(k.logoutNotSupported.code,k.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(k.keyIdMissing.code,k.keyIdMissing.desc)},e}(z);/*! @azure/msal-common v8.0.0 2022-11-07 */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 v8.0.0 2022-11-07 */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 gf=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 v8.0.0 2022-11-07 */var bS="@azure/msal-common",f0="8.0.0";/*! @azure/msal-common v8.0.0 2022-11-07 */var Za;(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"})(Za||(Za={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var es=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 Jr.ID_TOKEN;case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Jr.ACCESS_TOKEN;case ee.REFRESH_TOKEN:return Jr.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(zt.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,r){var n=[e,r];return n.join(zt.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(zt.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 v8.0.0 2022-11-07 */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"}},Ee=function(t){Ut(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 v8.0.0 2022-11-07 */var Ct=function(){function t(e){var r=this,n=e?x.trimArrayEntries(Dl(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 Ee.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 ng.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;ng.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 v8.0.0 2022-11-07 */function nl(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 ci(t){if(x.isEmpty(t))throw D.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(zt.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?_.EMPTY_STRING:e[1]}}/*! @azure/msal-common v8.0.0 2022-11-07 */var Xt;(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs",t[t.Dsts=2]="Dsts"})(Xt||(Xt={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var rt=function(){function t(){}return t.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(zt.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 Vr.ADFS_ACCOUNT_TYPE:return Jr.ADFS;case Vr.MSAV1_ACCOUNT_TYPE:return Jr.MSA;case Vr.MSSTS_ACCOUNT_TYPE:return Jr.MSSTS;case Vr.GENERIC_ACCOUNT_TYPE:return Jr.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(zt.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,r,n,o,i,a,s,c){var l,u,h,d,f,m,v=new t;v.authorityType=Vr.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)||((h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.sub)||_.EMPTY_STRING;var g=(d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.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,h=new t;h.authorityType=n&&n.authorityType===Xt.Adfs?Vr.ADFS_ACCOUNT_TYPE:Vr.GENERIC_ACCOUNT_TYPE,h.homeAccountId=e,h.realm=_.EMPTY_STRING;var d=a||n&&n.getPreferredCache();if(!d)throw D.createInvalidCacheEnvironmentError();return r&&(h.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,h.username=((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.upn)||_.EMPTY_STRING,h.name=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.name)||_.EMPTY_STRING,h.idTokenClaims=r==null?void 0:r.claims),h.environment=d,h.cloudGraphHostName=o,h.msGraphHost=i,h},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===Xt.Adfs||r===Xt.Dsts)return s;if(e)try{var c=nl(e,o);if(!x.isEmpty(c.uid)&&!x.isEmpty(c.utid))return""+c.uid+zt.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 v8.0.0 2022-11-07 */var Lr=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 v8.0.0 2022-11-07 */var lr=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 rt,a),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new Lr(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,h){var d=this,f=this.getKeys(),m={idTokens:{},accessTokens:{},refreshTokens:{}};return f.forEach(function(v){var E=es.getCredentialType(v);if(E!==_.NOT_DEFINED){var g=d.getSpecificCredential(v,E);if(!!g&&!(!!c&&!d.matchUserAssertionHash(g,c))&&!(typeof e=="string"&&!d.matchHomeAccountId(g,e))&&!(!!r&&!d.matchEnvironment(g,r))&&!(!!a&&!d.matchRealm(g,a))&&!(!!n&&!d.matchCredentialType(g,n))&&!(!!o&&!d.matchClientId(g,o))&&!(!!i&&!d.matchFamilyId(g,i))&&!(!!s&&!d.matchTarget(g,s))&&!((h||g.requestedClaimsHash)&&g.requestedClaimsHash!==h)&&!(n===ee.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(!!l&&!d.matchTokenType(g,l)||l===le.SSH&&u&&!d.matchKeyId(g,u)))){var p=d.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,po.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=es.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,po.CREDENTIAL)]}})})},t.prototype.removeAppMetadata=function(){var e=this,r=this.getKeys();return r.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n,po.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 Lr(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},t.prototype.readAccountFromCache=function(e){var r=rt.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(h){return c.accessTokens[h]}),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?el: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===el)},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(Kd)!==-1},t.prototype.isAuthorityMetadata=function(e){return e.indexOf(Oa.CACHE_KEY)!==-1},t.prototype.generateAuthorityMetadataCacheKey=function(e){return Oa.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}(),IS=function(t){Ut(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}(lr);/*! @azure/msal-common v8.0.0 2022-11-07 */var AS=300,p0={tokenRenewalOffsetSeconds:AS,preventCorsPreflight:!1,proxyUrl:_.EMPTY_STRING},kS={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:xe.Info,correlationId:_.EMPTY_STRING},RS={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)})})}},PS={sku:_.SKU,version:f0,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},NS={clientSecret:_.EMPTY_STRING,clientAssertion:void 0},OS={azureCloudInstance:Za.None,tenant:""+_.DEFAULT_COMMON_TENANT},xS={application:{appName:"",appVersion:""}};function MS(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,h=t.persistencePlugin,d=t.serializableCache,f=me(me({},kS),n);return{authOptions:US(e),systemOptions:me(me({},p0),r),loggerOptions:f,storageInterface:o||new IS(e.clientId,rl),networkInterface:i||RS,cryptoInterface:a||rl,clientCredentials:s||NS,libraryInfo:me(me({},PS),c),telemetry:me(me({},xS),l),serverTelemetryManager:u||null,persistencePlugin:h||null,serializableCache:d||null}}function US(t){return me({clientCapabilities:[],azureCloudOptions:OS,skipAuthorityMetadataCache:!1},t)}/*! @azure/msal-common v8.0.0 2022-11-07 */var Ro=function(t){Ut(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 v8.0.0 2022-11-07 */var ol=function(){function t(){}return t.generateThrottlingStorageKey=function(e){return xa.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,po.THROTTLING);return}throw new Ro(((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[_r.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(_r.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||xa.DEFAULT_THROTTLE_TIME_SECONDS),n+xa.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,po.THROTTLING)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var LS=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:ol.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 ol.postProcess(this.cacheManager,e,o),[2,o]}})})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Ft;(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"})(Ft||(Ft={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var mf=function(){function t(e,r){this.config=MS(e),this.logger=new gf(this.config.loggerOptions,bS,f0),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new LS(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[_r.CONTENT_TYPE]=_.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Ft.HOME_ACCOUNT_ID:try{var n=ci(e.credential);r[_r.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case Ft.UPN:r[_r.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 v8.0.0 2022-11-07 */var eo=function(){function t(){}return t.validateRedirectUri=function(e){if(x.isEmpty(e))throw Ee.createRedirectUriEmptyError()},t.validatePrompt=function(e){var r=[];for(var n in vt)r.push(vt[n]);if(r.indexOf(e)<0)throw Ee.createInvalidPromptError(e)},t.validateClaims=function(e){try{JSON.parse(e)}catch{throw Ee.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(e,r){if(x.isEmpty(e)||x.isEmpty(r))throw Ee.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},t.validateCodeChallengeMethod=function(e){if([og.PLAIN,og.S256].indexOf(e)<0)throw Ee.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(e,r){return e?(r.forEach(function(n,o){e[o]&&delete e[o]}),e):{}},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var li=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||Xc.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?Dl(e||[],ms):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){eo.validateRedirectUri(e),this.parameters.set(Q.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){eo.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(Na.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(Na.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(_r.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(_r.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(Na.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,r){var n=this.addClientCapabilitiesToClaims(e,r);eo.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){eo.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(eo.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(Q.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Q.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw Ee.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(TS,"1")},t.prototype.addExtraQueryParameters=function(e){var r=this;eo.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 Ee.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(ai.ACCESS_TOKEN)||(n[ai.ACCESS_TOKEN]={}),n[ai.ACCESS_TOKEN][ai.XMS_CC]={values:r}),JSON.stringify(n)},t.prototype.addUsername=function(e){this.parameters.set(tl.username,encodeURIComponent(e))},t.prototype.addPassword=function(e){this.parameters.set(tl.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,xa.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 v8.0.0 2022-11-07 */var ts=function(t){Ut(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}(es);/*! @azure/msal-common v8.0.0 2022-11-07 */var tr=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 v8.0.0 2022-11-07 */var rs=function(t){Ut(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,h,d,f,m,v,E){var g,p,y=new e;y.homeAccountId=r,y.credentialType=ee.ACCESS_TOKEN,y.secret=o;var w=tr.nowSeconds();if(y.cachedAt=w.toString(),y.expiresOn=c.toString(),y.extendedExpiresOn=l.toString(),h&&(y.refreshOn=h.toString()),y.environment=n,y.clientId=i,y.realm=a,y.target=s,y.userAssertionHash=f,y.tokenType=x.isEmpty(d)?le.BEARER:d,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 b=Lr.extractTokenClaims(o,u);if(!(!((p=b==null?void 0:b.cnf)===null||p===void 0)&&p.kid))throw D.createTokenClaimsRequiredError();y.keyId=b.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}(es);/*! @azure/msal-common v8.0.0 2022-11-07 */var il=function(t){Ut(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}(es);/*! @azure/msal-common v8.0.0 2022-11-07 */var ag=["interaction_required","consent_required","login_required"],DS=["message_only","additional_action","basic_action","user_password_expired","consent_required"],fa={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."}},gr=function(t){Ut(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&&ag.indexOf(r)>-1,a=!!o&&DS.indexOf(o)>-1,s=!!n&&ag.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(fa.noTokensFoundError.code,fa.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(fa.native_account_unavailable.code,fa.native_account_unavailable.desc)},e}(z);/*! @azure/msal-common v8.0.0 2022-11-07 */var dc=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 v8.0.0 2022-11-07 */var rn=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 v8.0.0 2022-11-07 */var oe=function(){function t(e){if(this._urlString=e,x.isEmpty(this._urlString))throw Ee.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 Ee.createUrlParseError(r)}if(!e.HostNameAndPort||!e.PathSegments)throw Ee.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Ee.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]===Jc.COMMON||n[0]===Jc.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 Ee.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 Ee.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 v8.0.0 2022-11-07 */var Vd;(function(t){t.SW="sw",t.UHW="uhw"})(Vd||(Vd={}));var Pi=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:Vd.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(h){switch(h.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(me({at:e,ts:tr.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,h.sent()]}})})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Wd=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(e,r){var n=[Kd,e,r];return n.join(zt.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(Kd)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var HS=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 v8.0.0 2022-11-07 */var al=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 gr.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new gr(e.error||_.EMPTY_STRING,e.error_description,e.suberror):new Ro(e.error||_.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&nl(e.client_info,n)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(gr.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new gr(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 Ro(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,h,d,f,m,v,E;return G(this,function(g){switch(g.label){case 0:if(e.id_token){if(u=new Lr(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(h=u.claims.auth_time,!h)throw D.createAuthTimeNotFoundError();Lr.checkMaxAge(h,o.maxAge)}}this.homeAccountIdentifier=rt.generateHomeAccountId(e.client_info||_.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u),!!i&&!!i.state&&(d=rn.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 HS(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,d,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,d,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=ts.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||_.EMPTY_STRING,this.clientId,i.claims.tid||_.EMPTY_STRING),u=this.generateAccountEntity(e,i,r,s));var h=null;if(!x.isEmpty(e.access_token)){var d=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;h=rs.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||_.EMPTY_STRING,this.clientId,i?i.claims.tid||_.EMPTY_STRING:r.tenant,d.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=il.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||_.EMPTY_STRING,this.clientId,e.foci,a));var w=null;return x.isEmpty(e.foci)||(w=Wd.createAppMetadataEntity(this.clientId,c,e.foci)),new dc(u,l,h,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===Xt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),rt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(x.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw D.createClientInfoEmptyError();return e.client_info?rt.createAccount(e.client_info,this.homeAccountIdentifier,r,n,a,s):rt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},t.generateAuthenticationResult=function(e,r,n,o,i,a,s,c,l){var u,h,d;return K(this,void 0,void 0,function(){var f,m,v,E,g,p,y,w,b,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 Pi(e),y=n.accessToken,w=y.secret,b=y.keyId,!b)throw D.createKeyIdMissingError();return[4,p.signPopToken(w,b,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===el?el:_.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:((h=n.account)===null||h===void 0?void 0:h.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((d=n.account)===null||d===void 0?void 0:d.msGraphHost)||_.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var g0=function(t){Ut(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=tr.nowSeconds(),[4,this.executeTokenRequest(this.authority,r)];case 1:return a=l.sent(),s=(o=a.headers)===null||o===void 0?void 0:o[_r.X_MS_REQUEST_ID],c=new al(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 al(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 me(me({},a),{code:a.code})},e.prototype.getLogoutUri=function(r){if(!r)throw Ee.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(h){switch(h.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=h.sent(),a=this.createTokenQueryParameters(n),s=void 0,n.clientInfo)try{c=nl(n.clientInfo,this.cryptoUtils),s={credential:""+c.uid+zt.CLIENT_INFO_SEPARATOR+c.utid,type:Ft.HOME_ACCOUNT_ID}}catch(d){this.logger.verbose("Could not parse client info for CCS Header: "+d)}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 li;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(h){switch(h.label){case 0:return n=new li,n.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?n.addRedirectUri(r.redirectUri):eo.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(Zc.AUTHORIZATION_CODE_GRANT),n.addClientInfo(),r.authenticationScheme!==le.POP?[3,2]:(i=new Pi(this.cryptoUtils),[4,i.generateCnf(r)]);case 1:return a=h.sent(),n.addPopToken(a.reqCnfString),[3,3];case 2:if(r.authenticationScheme===le.SSH)if(r.sshJwk)n.addSshJwk(r.sshJwk);else throw Ee.createMissingSshJwkError();h.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=nl(r.clientInfo,this.cryptoUtils),c={credential:""+l.uid+zt.CLIENT_INFO_SEPARATOR+l.utid,type:Ft.HOME_ACCOUNT_ID}}catch(d){this.logger.verbose("Could not parse client info for CCS Header: "+d)}else c=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case Ft.HOME_ACCOUNT_ID:try{l=ci(c.credential),n.addCcsOid(l)}catch(d){this.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case Ft.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(h){switch(h.label){case 0:if(n=new li,n.addClientId(this.config.authOptions.clientId),o=Dl(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!==vt.SELECT_ACCOUNT)if(r.sid&&r.prompt===vt.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=ci(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===vt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=ci(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=ci(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 Pi(this.cryptoUtils),[4,l.generateCnf(r)])):[3,2];case 1:u=h.sent(),n.addPopToken(u.reqCnfHash),h.label=2;case 2:return[2,n.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(r){var n=new li;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}(mf);/*! @azure/msal-common v8.0.0 2022-11-07 */var qe;(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"})(qe||(qe={}));var ui;(function(t){t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Completed=2]="Completed"})(ui||(ui={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var m0=function(t){Ut(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){var n,o,i;return K(this,void 0,void 0,function(){var a,s,c,l,u,h=this;return G(this,function(d){switch(d.label){case 0:return a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(qe.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),s=tr.nowSeconds(),[4,this.executeTokenRequest(r,this.authority)];case 1:return c=d.sent(),a==null||a.addStaticFields({refreshTokenSize:((o=c.body.refresh_token)===null||o===void 0?void 0:o.length)||0}),l=(i=c.headers)===null||i===void 0?void 0:i[_r.X_MS_REQUEST_ID],u=new al(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),u.validateTokenResponse(c.body),[2,u.handleServerTokenResponse(c.body,this.authority,s,r,void 0,void 0,!0,r.forceCache,l).then(function(f){return a==null||a.endMeasurement({success:!0}),f}).catch(function(f){throw h.logger.verbose("Error in fetching refresh token",r.correlationId),a==null||a.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f})]}})})},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 Ee.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 gr&&s.errorCode===fa.noTokensFoundError.code,i=s instanceof Ro&&s.errorCode===ig.INVALID_GRANT_ERROR&&s.subError===ig.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(qe.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(),gr.createNoTokensFoundError();return i==null||i.endMeasurement({success:!0}),s=me(me({},r),{refreshToken:a.secret,authenticationScheme:r.authenticationScheme||le.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:Ft.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(h){switch(h.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(qe.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.createTokenRequestBody(r)];case 1:return a=h.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(d){return i==null||i.endMeasurement({success:!0}),d}).catch(function(d){throw i==null||i.endMeasurement({success:!1}),d})]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new li;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(h){switch(h.label){case 0:return o=r.correlationId,i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(qe.BaseClientCreateTokenRequestHeaders,o),a=new li,a.addClientId(this.config.authOptions.clientId),a.addScopes(r.scopes),a.addGrantType(Zc.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 Pi(this.cryptoUtils),[4,c.generateCnf(r)]);case 1:return l=h.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}),Ee.createMissingSshJwkError();h.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 Ft.HOME_ACCOUNT_ID:try{u=ci(r.ccsCredential.credential),a.addCcsOid(u)}catch(d){this.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case Ft.UPN:a.addCcsUpn(r.ccsCredential.credential);break}return i==null||i.endMeasurement({success:!0}),[2,a.createQueryString()]}})})},e}(mf);/*! @azure/msal-common v8.0.0 2022-11-07 */var FS=function(t){Ut(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===k.tokenRefreshRequired.code)return o=new m0(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 Ee.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(lo.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(tr.wasClockTurnedBack(c.accessToken.cachedAt)||tr.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(lo.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&&tr.isTokenExpired(c.accessToken.refreshOn,0))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(lo.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(lo.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 Lr(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();Lr.checkMaxAge(i,n.maxAge)}return[4,al.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(mf);/*! @azure/msal-common v8.0.0 2022-11-07 */function $S(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v8.0.0 2022-11-07 */var v0={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"]}]}}},sg=v0.endpointMetadata,cg=v0.instanceDiscoveryMetadata;/*! @azure/msal-common v8.0.0 2022-11-07 */var sl;(function(t){t.AAD="AAD",t.OIDC="OIDC"})(sl||(sl={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var Yd=function(){function t(){this.expiresAt=tr.nowSeconds()+Oa.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=tr.nowSeconds()+Oa.REFRESH_TIME_SECONDS},t.prototype.isExpired=function(){return this.expiresAt<=tr.nowSeconds()},t.isAuthorityMetadataEntity=function(e,r){return r?e.indexOf(Oa.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 v8.0.0 2022-11-07 */function zS(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v8.0.0 2022-11-07 */var jS=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===si.httpSuccess&&(o=a.body,r.region_source=bn.IMDS),a.status!==si.httpBadRequest?[3,5]:[4,this.getCurrentVersion(i)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,i)]:(r.region_source=bn.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===si.httpSuccess&&(o=c.body,r.region_source=bn.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),r.region_source=bn.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=bn.ENVIRONMENT_VARIABLE,l.label=9;case 9:return o||(r.region_source=bn.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===si.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 v8.0.0 2022-11-07 */var cl=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 jS(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 Xt.Adfs;case _.DSTS:return Xt.Dsts}return Xt.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===Xt.Adfs||this.authorityType===Xt.Dsts||this.protocolMode===sl.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 Yd,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!==Wt.CACHE&&n!==Wt.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,Wt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,Wt.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,Wt.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,Wt.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 Ee.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,$S(r.body)?r.body:null];case 3:return n.sent(),[2,null];case 4:return[2]}})})},t.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in sg?sg[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?oo.AUTO_DETECTION_REQUESTED_SUCCESSFUL:oo.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===s?oo.CONFIGURED_MATCHES_DETECTED:oo.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=oo.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,Wt.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,Wt.CACHE]:(n=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(r=o.sent(),r)return e.updateCloudDiscoveryMetadata(r,!0),[2,Wt.NETWORK];if(n&&!this.options.skipAuthorityMetadataCache)return e.updateCloudDiscoveryMetadata(n,!1),[2,Wt.HARDCODED_VALUES];throw Ee.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 Ee.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=zS(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 cg?cg[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!==Za.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(me(me({},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 v8.0.0 2022-11-07 */var ll=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 Ee.createUrlEmptyError();return new cl(e,r,n,o,i)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var ul=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(Je.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var lg=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(xa.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var BS={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 v8.0.0 2022-11-07 */var qs={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."}},ug=function(t){Ut(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(qs.missingKidError.code,qs.missingKidError.desc)},e.createMissingAlgError=function(){return new e(qs.missingAlgError.code,qs.missingAlgError.desc)},e}(z);/*! @azure/msal-common v8.0.0 2022-11-07 */var qS=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 ug.createMissingKidError();if(!e.alg)throw ug.createMissingAlgError();var r=new t({typ:e.typ||Gd.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var KS=function(){function t(e,r){this.cacheOutcome=lo.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=Je.CACHE_KEY+zt.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Je.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(Je.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(Je.VALUE_SEPARATOR);return[Je.SCHEMA_VERSION,o,r].join(Je.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(Je.VALUE_SEPARATOR),o=e.errors.slice(0,r).join(Je.VALUE_SEPARATOR),i=e.errors.length,a=r<i?Je.OVERFLOW_TRUE:Je.OVERFLOW_FALSE,s=[i,a].join(Je.VALUE_SEPARATOR);return[Je.SCHEMA_VERSION,e.cacheHits,n,o,s].join(Je.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=Je.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(Je.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 ul,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 ul;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<Je.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 v8.0.0 2022-11-07 */var y0=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.staticFieldsByCorrelationId=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:ui.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a};this.cacheEventByCorrelationId(c);var l={appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion};return this.addStaticFields(l,a),this.cacheMeasurement(c,s),{endMeasurement:function(u){var h=n.endMeasurement(me(me({},c),u));return h&&n.cacheEventByCorrelationId(h),h},flushMeasurement:function(){return n.flushMeasurements(c.name,c.correlationId)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},addStaticFields:function(u){return n.addStaticFields(u,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=me(me({durationMs:Math.round(n)},e),{status:ui.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.addStaticFields=function(e,r){var n=this.staticFieldsByCorrelationId.get(r);n?(this.logger.trace("PerformanceClient: Updating static fields"),this.staticFieldsByCorrelationId.set(r,me(me({},n),e))):(this.logger.trace("PerformanceClient: Adding static fields"),this.staticFieldsByCorrelationId.set(r,e))},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(d){if(d.name!==e&&d.status!==ui.Completed){n.logger.trace("PerformanceClient: Incomplete submeasurement "+d.name+" found for "+e,r);var f=n.endMeasurement(d);f&&i.push(f)}i.push(d)});var a=i.sort(function(d,f){return d.startTimeMs-f.startTimeMs}),s=a.filter(function(d){return d.name===e&&d.status===ui.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(d,f){if(f.name!==e){n.logger.trace("PerformanceClient: Complete submeasurement found for "+f.name,r);var m=f.name+"DurationMs";d[m]?n.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+f.name+", ignoring",r):d[m]=f.durationMs}return d},c),u=this.staticFieldsByCorrelationId.get(r),h=me(me({},l),u);this.emitEvents([h],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 v8.0.0 2022-11-07 */var GS=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),VS=function(t){Ut(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 GS},e}(y0);/*! @azure/msal-browser v2.31.0 2022-11-07 */var A={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){it(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(A.pkceNotGenerated.code,A.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(A.cryptoDoesNotExist.code,A.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(A.httpMethodNotImplementedError.code,A.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(A.emptyNavigateUriError.code,A.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(A.hashEmptyError.code,A.hashEmptyError.desc+" Given Url: "+r)},e.createHashDoesNotContainStateError=function(){return new e(A.hashDoesNotContainStateError.code,A.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(A.hashDoesNotContainKnownPropertiesError.code,A.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(A.unableToParseStateError.code,A.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(A.stateInteractionTypeMismatchError.code,A.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(A.interactionInProgress.code,A.interactionInProgress.desc)},e.createPopupWindowError=function(r){var n=A.popupWindowError.desc;return n=x.isEmpty(r)?n:n+" Details: "+r,new e(A.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(A.emptyWindowError.code,A.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(A.userCancelledError.code,A.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(A.monitorPopupTimeoutError.code,A.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(A.monitorIframeTimeoutError.code,A.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(r){return new e(A.redirectInIframeError.code,A.redirectInIframeError.desc+" (window.parent !== window) => "+r)},e.createBlockReloadInHiddenIframeError=function(){return new e(A.blockTokenRequestsInHiddenIframeError.code,A.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(A.blockAcquireTokenInPopupsError.code,A.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(A.iframeClosedPrematurelyError.code,A.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(A.silentLogoutUnsupportedError.code,A.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(A.noAccountError.code,A.noAccountError.desc)},e.createSilentPromptValueError=function(r){return new e(A.silentPromptValueError.code,A.silentPromptValueError.desc+" Given value: "+r)},e.createUnableToParseTokenRequestCacheError=function(){return new e(A.unableToParseTokenRequestCacheError.code,A.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(A.noTokenRequestCacheError.code,A.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(A.authRequestNotSet.code,A.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(A.noCachedAuthorityError.code,A.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(A.invalidCacheType.code,""+A.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(A.notInBrowserEnvironment.code,A.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(A.databaseNotOpen.code,A.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(A.noNetworkConnectivity.code,A.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(r,n){return new e(A.postRequestFailed.code,A.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(A.getRequestFailed.code,A.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(A.failedToParseNetworkResponse.code,A.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(A.unableToLoadTokenError.code,A.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(A.signingKeyNotFoundInStorage.code,A.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},e.createAuthCodeRequiredError=function(){return new e(A.authCodeRequired.code,A.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(A.authCodeOrNativeAccountRequired.code,A.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(A.databaseUnavailable.code,A.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(A.unableToAcquireTokenFromNativePlatform.code,A.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(A.nativeHandshakeTimeout.code,A.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(A.nativeExtensionNotInstalled.code,A.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(A.nativeConnectionNotEstablished.code,A.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(A.nativeBrokerCalledBeforeInitialize.code,A.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(A.nativePromptNotSupported.code,A.nativePromptNotSupported.desc)},e}(z);/*! @azure/msal-browser v2.31.0 2022-11-07 */var fr={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"},pa={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Xr;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(Xr||(Xr={}));var gt;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(gt||(gt={}));var Ar;(function(t){t.GET="GET",t.POST="POST"})(Ar||(Ar={}));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 di;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(di||(di={}));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 dg;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(dg||(dg={}));var hg={scopes:ms},Ni="jwk",fg;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(fg||(fg={}));var Qd="msal.db",WS=1,YS=Qd+".keys",Rt;(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"})(Rt||(Rt={}));/*! @azure/msal-browser v2.31.0 2022-11-07 */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."}},dl=function(t){it(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.31.0 2022-11-07 */var pg=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==gt.LocalStorage&&e!==gt.SessionStorage)throw dl.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw dl.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.31.0 2022-11-07 */var Jd=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.31.0 2022-11-07 */var _0=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(x.isEmpty(r))return null;try{var n=rn.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.31.0 2022-11-07 */var Xd=function(t){it(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 Jd,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 gt.LocalStorage:case gt.SessionStorage:try{return new pg(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=gt.MemoryStorage,new Jd},e.prototype.setupTemporaryCacheStorage=function(r){switch(r){case gt.LocalStorage:case gt.SessionStorage:try{return new pg(gt.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case gt.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=_.CACHE_PREFIX+"."+$e.ID_TOKEN,o=_.CACHE_PREFIX+"."+$e.CLIENT_INFO,i=_.CACHE_PREFIX+"."+$e.ERROR,a=_.CACHE_PREFIX+"."+$e.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),h=[s,c,l,u],d=[$e.ID_TOKEN,$e.CLIENT_INFO,$e.ERROR,$e.ERROR_DESC];d.forEach(function(f,m){return r.migrateCacheEntry(f,h[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||!rt.isAccountEntity(o)?null:lr.toObject(new rt,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||!ts.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),lr.toObject(new ts,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||!rs.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),lr.toObject(new rs,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||!il.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),lr.toObject(new il,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||!Wd.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),lr.toObject(new Wd,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||!ul.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),lr.toObject(new ul,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&&Yd.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),lr.toObject(new Yd,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(di.WRAPPER_SKU,r),this.internalStorage.setItem(di.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(di.WRAPPER_SKU)||_.EMPTY_STRING,n=this.internalStorage.getItem(di.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($e.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($e.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($e.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey($e.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||!lg.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),lr.toObject(new lg,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===gt.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 pf(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,$e.ADAL_ID_TOKEN)?r:_.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=rn.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=rn.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=rn.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:Ft.HOME_ACCOUNT_ID};this.setTemporaryCache(ae.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!x.isEmpty(i)){var u={credential:i,type:Ft.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=_0.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($e.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem($e.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache($e.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey($e.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new Lr(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}(lr),QS=function(t,e){var r={cacheLocation:gt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new Xd(t,r,rl,e)};/*! @azure/msal-browser v2.31.0 2022-11-07 */var Su="@azure/msal-browser",Ma="2.31.0";/*! @azure/msal-browser v2.31.0 2022-11-07 */var JS=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:Ar.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:Ar.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.31.0 2022-11-07 */var XS=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,Ar.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,Ar.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===Ar.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===Ar.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)):a(N.createNoNetworkConnectivityError())},r===Ar.POST&&n&&n.body)s.send(n.body);else if(r===Ar.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.31.0 2022-11-07 */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(fr.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 JS:new XS},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.31.0 2022-11-07 */var w0=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(fr.MSAL_SKU,Ma,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];rt.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(rt.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=pf(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 Ee.createMissingSshJwkError();if(!e.sshKid)throw Ee.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 KS(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,ll.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,ll.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var $i=function(t){it(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 g0(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:fr.MSAL_SKU,version:Ma,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=_0.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(qe.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=cl.generateAuthority(a,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,ll.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(h){switch(h.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=rn.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([h.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:Xc.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}(w0);/*! @azure/msal-browser v2.31.0 2022-11-07 */var vf=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 Ro&&l.subError===A.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,h;return T(this,function(d){switch(d.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:d.sent(),d.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 h=d.sent(),this.browserStorage.cleanRequestByState(r),[2,h]}})})},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,ll.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.31.0 2022-11-07 */var gg=function(t){it(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,h,d;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 Ro&&m.subError===A.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:(h=this.checkCcsCredentials(),h&&(this.authCodeRequest.ccsCredential=h)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return d=f.sent(),this.browserStorage.cleanRequestByState(n),[2,d]}})})},e}(vf);/*! @azure/msal-browser v2.31.0 2022-11-07 */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.31.0 2022-11-07 */var In;(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"})(In||(In={}));var ta={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"}},Pr=function(t){it(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===In.PERSISTENT_ERROR||this.ext.status===In.DISABLED))return!0;switch(this.errorCode){case ta.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,o){if(o&&o.status)switch(o.status){case In.ACCOUNT_UNAVAILABLE:return gr.createNativeAccountUnavailableError();case In.USER_INTERACTION_REQUIRED:return new gr(r,n);case In.USER_CANCEL:return N.createUserCancelledError();case In.NO_NETWORK:return N.createNoNetworkConnectivityError()}return new e(r,n,o)},e.createUserSwitchError=function(){return new e(ta.userSwitch.code,ta.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(ta.tokensNotFoundInCache.code,ta.tokensNotFoundInCache.desc)},e}(z);/*! @azure/msal-browser v2.31.0 2022-11-07 */var E0=function(t){it(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(qe.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===A.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 FS(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}($i);/*! @azure/msal-browser v2.31.0 2022-11-07 */var wi=function(t){it(e,t);function e(r,n,o,i,a,s,c,l,u,h,d,f){var m=t.call(this,r,n,o,i,a,s,l,u,f)||this;return m.apiId=c,m.accountId=h,m.nativeMessageHandler=u,m.nativeStorageManager=d,m.silentCacheClient=new E0(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(qe.NativeInteractionClientAcquireToken,r.correlationId),o=tr.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:!1,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:Xr.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(h){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:h.requestId}),h}).catch(function(h){throw n.endMeasurement({success:!1,errorCode:h.errorCode,subErrorCode:h.subError,isNativeBroker:!0}),h})]}})})},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:Xr.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 Pr&&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,c,l;return T(this,function(u){switch(u.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];n=r.prompt,o=rg(r,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ae.NATIVE_REQUEST)),i={method:Xr.GetToken,request:o},a=tr.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return s=u.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,o,a),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=u.sent(),this.browserStorage.setInteractionInProgress(!1),l;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,h,d,f,m,v,E,g,p,y,w,b,P,M,O,se=this;return T(this,function(B){switch(B.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),i=this.getMATSFromResponse(r),this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:i?i.broker_version:void 0,matsAccountJoinOnStart:i?i.account_join_on_start:void 0,matsAccountJoinOnEnd:i?i.account_join_on_end:void 0,matsDeviceJoin:i?i.device_join:void 0,matsPromptBehavior:i?i.prompt_behavior:void 0,matsApiErrorCode:i?i.api_error_code:void 0,matsUiVisible:i?i.ui_visible:void 0,matsSilentCode:i?i.silent_code:void 0,matsSilentBiSubCode:i?i.silent_bi_sub_code:void 0,matsSilentMessage:i?i.silent_message:void 0,matsSilentStatus:i?i.silent_status:void 0,matsHttpStatus:i?i.http_status:void 0,matsHttpEventCount:i?i.http_event_count:void 0},this.correlationId),r.account.id!==n.accountId)throw Pr.createUserSwitchError();return a=new Lr(r.id_token||_.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(n.authority)];case 1:switch(s=B.sent(),c=s.getPreferredCache(),l=rt.generateHomeAccountId(r.client_info||_.EMPTY_STRING,Xt.Default,this.logger,this.browserCrypto,a),u=rt.createAccount(r.client_info,l,a,void 0,void 0,void 0,c,r.account.id),this.browserStorage.setAccount(u),h=r.scope?Ct.fromString(r.scope):Ct.fromString(n.scope),d=r.account.properties||{},f=d.UID||a.claims.oid||a.claims.sub||_.EMPTY_STRING,m=d.TenantId||a.claims.tid||_.EMPTY_STRING,E=le.BEARER,g=n.tokenType,g){case le.POP:return[3,2]}return[3,4];case 2:if(E=le.POP,r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),v=r.shr,[3,5];if(p=new Pi(this.browserCrypto),y={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw D.createKeyIdMissingError();return[4,p.signPopToken(r.access_token,n.keyId,y)];case 3:return v=B.sent(),[3,5];case 4:v=r.access_token,B.label=5;case 5:return w={authority:s.canonicalAuthority,uniqueId:f,tenantId:m,scopes:h.asArray(),account:u.getAccountInfo(),idToken:r.id_token,idTokenClaims:a.claims,accessToken:v,fromCache:i?this.isResponseFromCache(i):!1,expiresOn:new Date(Number(o+r.expires_in)*1e3),tokenType:E,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},b=ts.createIdTokenEntity(l,n.authority,r.id_token||_.EMPTY_STRING,n.clientId,a.claims.tid||_.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(b),P=E===le.POP?_.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,M=o+P,O=rs.createAccessTokenEntity(l,n.authority,v,n.clientId,m,h.printScopes(),M,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(O),this.browserStorage.removeAccountContext(u).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 Pr.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,h,d,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=rg(r,["scopes"]),s=new Ct(i||[]),s.appendScopes(ms),c=function(){switch(f.apiId){case ve.ssoSilent:case ve.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),vt.NONE}if(!r.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case vt.NONE:case vt.CONSENT:case vt.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:pa.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==le.POP?[3,2]:(u={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},h=new Pi(this.browserCrypto),[4,h.generateCnf(u)]);case 1:d=m.sent(),l.reqCnf=d.reqCnfHash,l.keyId=d.kid,m.label=2;case 2:return[2,l]}})})},e}(w0);/*! @azure/msal-browser v2.31.0 2022-11-07 */var go=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:pa.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,pa.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:pa.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Xr.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!==pa.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===Xr.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===Xr.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(Pr.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Pr.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===Xr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,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.prototype.getExtensionId=function(){return this.extensionId},t.prototype.getExtensionVersion=function(){return this.extensionVersion},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.31.0 2022-11-07 */var ZS=function(t){it(e,t);function e(r,n,o,i,a,s,c,l,u,h){var d=t.call(this,r,n,o,i,a,s,c,u,h)||this;return d.nativeStorage=l,d}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,h,d=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&&(d.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),d.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 gg(s,this.browserStorage,a,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl($($({},n),{nativeBroker:go.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 h=f.sent(),h instanceof z&&h.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(h),this.browserStorage.cleanRequestByState(n.state),h;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,h,d,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),h={apiId:ve.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},d=!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,h)]):[3,6]):[3,9];case 5:return d=v.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,h)];case 7:d=v.sent(),v.label=8;case 8:if(!d)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,h,d=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 wi(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=rn.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken($($({},i),{state:c,prompt:void 0})).finally(function(){d.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"),ol.removeThrottle(this.browserStorage,this.config.auth.clientId,i),h=new gg(u,this.browserStorage,i,this.logger,this.browserCrypto),[4,h.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}($i);/*! @azure/msal-browser v2.31.0 2022-11-07 */var eT=function(t){it(e,t);function e(r,n,o,i,a,s,c,l,u,h){var d=t.call(this,r,n,o,i,a,s,c,u,h)||this;return d.unloadWindow=d.unloadWindow.bind(d),d.nativeStorage=l,d}return e.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||ms,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,h,d,f,m,v,E,g,p,y,w,b,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=go.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),h=void 0,u&&(h=this.performanceClient.startMeasurement(qe.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl($($({},s),{nativeBroker:u}))];case 5:return d=O.sent(),f=new vf(l,this.browserStorage,c,this.logger),m={popup:i,popupName:n,popupWindowAttributes:o},v=this.initiateAuthRequest(d,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),ol.removeThrottle(this.browserStorage,this.config.auth.clientId,c),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),h&&h.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return y=new wi(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=rn.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 b=O.sent(),[2,b];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,h,d,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),h=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(q.POPUP_OPENED,F.Popup,{popupWindow:h},null),[4,this.waitForLogoutPopup(h)];case 4:return v.sent(),s?(d={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,d)):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,h=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=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>h)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=fr.POPUP_WIDTH),(!m||m<0||m>d)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),m=fr.POPUP_HEIGHT),(!v||v<0||v>d)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),v=Math.max(0,d/2-fr.POPUP_HEIGHT/2+u)),(!E||E<0||E>h)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),E=Math.max(0,h/2-fr.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 fr.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 fr.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}($i);/*! @azure/msal-browser v2.31.0 2022-11-07 */var tT=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.31.0 2022-11-07 */var rT=6e4,Zd=6e3,nT=3e4,oT=2e3;function iT(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:sl.AAD,azureCloudOptions:{azureCloudInstance:Za.None,tenant:_.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:gt.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:xe.Info,piiLoggingEnabled:!1},l=$($({},p0),{loggerOptions:c,networkClient:e?Oe.getBrowserNetworkClient():BS,navigationClient:new tT,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||rT,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Zd,navigateFrameWait:e&&Oe.detectIEOrEdge()?500:0,redirectNavigationTimeout:nT,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||oT,pollIntervalMilliseconds:fr.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u={application:{appName:_.EMPTY_STRING,appVersion:_.EMPTY_STRING}},h={auth:$($({},a),r),cache:$($({},s),n),system:$($({},l),o),telemetry:$($({},u),i)};return h}/*! @azure/msal-browser v2.31.0 2022-11-07 */var C0=function(t){it(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<Zd&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Zd+"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,h=r.contentWindow;try{u=h?h.location.href:_.EMPTY_STRING}catch{}if(!x.isEmpty(u)){var d=h?h.location.hash:_.EMPTY_STRING;if(oe.hashContainsKnownProperties(d)){o.removeHiddenIframe(r),clearInterval(l),i(d);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}(vf);/*! @azure/msal-browser v2.31.0 2022-11-07 */var aT=function(t){it(e,t);function e(r,n,o,i,a,s,c,l,u,h,d){var f=t.call(this,r,n,o,i,a,s,l,h,d)||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(qe.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!==vt.NONE&&r.prompt!==vt.NO_SESSION)throw n.endMeasurement({success:!1}),N.createSilentPromptValueError(r.prompt);return[4,this.initializeAuthorizationRequest($($({},r),{prompt:r.prompt||vt.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,h,d,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:go.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=m.sent(),a=new C0(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 h=new wi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),d=rn.parseRequestState(this.browserCrypto,u).userRequestState,[2,h.acquireToken($($({},n),{state:d,prompt:n.prompt||vt.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return[2,a.handleCodeResponseFromHash(c,u,r.authority,this.networkClient)]}})})},e}($i);/*! @azure/msal-browser v2.31.0 2022-11-07 */var sT=function(t){it(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(qe.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 m0(i,this.performanceClient)]}})})},e}($i);/*! @azure/msal-browser v2.31.0 2022-11-07 */var cT=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"||!rt.isAccountEntity(n))return;var o=lr.toObject(new rt,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.31.0 2022-11-07 */var dt=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.31.0 2022-11-07 */var S0=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,dt.decimalToHex(e[0])+dt.decimalToHex(e[1])+dt.decimalToHex(e[2])+dt.decimalToHex(e[3])+"-"+dt.decimalToHex(e[4])+dt.decimalToHex(e[5])+"-"+dt.decimalToHex(e[6])+dt.decimalToHex(e[7])+"-"+dt.decimalToHex(e[8])+dt.decimalToHex(e[9])+"-"+dt.decimalToHex(e[10])+dt.decimalToHex(e[11])+dt.decimalToHex(e[12])+dt.decimalToHex(e[13])+dt.decimalToHex(e[14])+dt.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.31.0 2022-11-07 */var nn=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.31.0 2022-11-07 */var T0=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=nn.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.31.0 2022-11-07 */var lT=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 nn.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,h=0;h<o;h++)if(c=h&3,l|=this.b64ToUint6(n.charCodeAt(h))<<18-6*c,c===3||o-h===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.31.0 2022-11-07 */var uT=32,dT=function(){function t(e){this.base64Encode=new T0,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(uT);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.31.0 2022-11-07 */var hT=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(Ni,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(Ni,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.31.0 2022-11-07 */var fT=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(pf(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(Ni,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(Ni,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.31.0 2022-11-07 */var pT=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(Ni,e);i.addEventListener("complete",function(a){var s=a.target.result,c=nn.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=nn.getSortedObjectString(e),a=nn.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(Ni,a,r,n,o);u.addEventListener("complete",function(h){c(h.target.result)}),u.addEventListener("error",function(h){l(h)})})]})})},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.31.0 2022-11-07 */var gT="RSASSA-PKCS1-v1_5",mg="SHA-256",mT=2048,vT=new Uint8Array([1,0,1]),b0=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 hT;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new pT;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 fT;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."),dl.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:gT,hash:mg,modulusLength:mT,publicExponent:vT}}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=nn.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:mg},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.31.0 2022-11-07 */var yT=function(){function t(){this.dbName=Qd,this.version=WS,this.tableName=YS,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(Qd);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.31.0 2022-11-07 */var vg=function(){function t(e,r){this.inMemoryCache=new Jd,this.indexedDBCache=new yT,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof N&&e.errorCode===A.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.31.0 2022-11-07 */var hl;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(hl||(hl={}));var _T=function(){function t(e){this.logger=e,this.asymmetricKeys=new vg(this.logger,hl.asymmetricKeys),this.symmetricKeys=new vg(this.logger,hl.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.31.0 2022-11-07 */var wT=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new b0(this.logger,n),this.b64Encode=new T0,this.b64Decode=new lT,this.guidGenerator=new S0(this.browserCrypto),this.pkceGenerator=new dT(this.browserCrypto),this.cache=new _T(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(h){switch(h.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(qe.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.POP_KEY_USAGES)];case 1:return o=h.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=h.sent(),a={e:i.e,kty:i.kty,n:i.n},s=nn.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=h.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=h.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=h.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return h.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,h,d,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(qe.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=nn.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),u=qS.getShrHeaderString({kid:l,alg:s.alg}),h=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},d=this.b64Encode.urlEncode(JSON.stringify(e)),f=h+"."+d,m=nn.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.31.0 2022-11-07 */var ET=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 Lr(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 dc(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=cl.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 cl(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 dc(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 dc(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=rt.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw N.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?rt.createAccount(n,a,e,void 0,void 0,void 0,r):rt.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=ts.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=rs.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=il.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,h;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=Ct.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),h=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var d=(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:d,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:h,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.31.0 2022-11-07 */var CT=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}(g0);/*! @azure/msal-browser v2.31.0 2022-11-07 */var ST=function(t){it(e,t);function e(r,n,o,i,a,s,c,l,u,h){var d=t.call(this,r,n,o,i,a,s,l,u,h)||this;return d.apiId=c,d}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 CT(a),this.logger.verbose("Auth code client created"),c=new C0(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}($i);/*! @azure/msal-browser v2.31.0 2022-11-07 */var TT=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.31.0 2022-11-07 */var bT=function(t){it(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 b0(l.logger,c),l.guidGenerator=new S0(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(r,n){return new TT(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}(y0);/*! @azure/msal-browser v2.31.0 2022-11-07 */var IT=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=iT(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new gf(this.config.system.loggerOptions,Su,Ma),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 bT(this.config.auth.clientId,this.config.auth.authority,this.logger,Su,Ma,this.config.telemetry.application,this.config.system.cryptoOptions):new VS(this.config.auth.clientId,this.config.auth.authority,this.logger,Su,Ma,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new wT(this.logger,this.performanceClient,this.config.system.cryptoOptions):rl,this.eventHandler=new cT(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Xd(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):QS(this.config.auth.clientId,this.logger);var r={cacheLocation:gt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new Xd(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new ET(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,go.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(h){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&&go.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new wi(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(d){if(d){var f=r.length<u.getAllAccounts().length;f?(u.eventHandler.emitEvent(q.LOGIN_SUCCESS,F.Redirect,d),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Redirect,d),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,F.Redirect),d}).catch(function(d){throw r.length>0?u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,d):u.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Redirect,null,d),u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,F.Redirect),d}),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 wi(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 Pr&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(l instanceof gr){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(qe.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,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){if(c instanceof Pr&&c.isFatal()){r.nativeExtensionProvider=void 0;var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof gr){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.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.endMeasurement({success:!0,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(qe.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 Pr&&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.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),o.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,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(qe.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.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,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 Pr&&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 Rt.Default:case Rt.AccessToken:case Rt.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 Rt.Default:case Rt.AccessTokenAndRefreshToken:case Rt.RefreshToken:case Rt.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===gt.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw dl.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 wi(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"),!go.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 vt.NONE:case vt.CONSENT:case vt.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 eT(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 ZS(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 aT(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 E0(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new sT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new ST(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.31.0 2022-11-07 */var AT=function(t){it(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||hg))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup($({correlationId:n},r||hg))},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(h){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(qe.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:r.cacheLookupPolicy}),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(d){return u.activeSilentTokenRequests.delete(s),o.addStaticFields({accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length}),o.endMeasurement({success:!0,fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker,requestId:d.requestId}),o.flushMeasurement(),d}).catch(function(d){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),o.flushMeasurement(),d}),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(h){switch(h.label){case 0:return this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Silent,r),o=this.performanceClient.startMeasurement(qe.AcquireTokenSilentAsync,r.correlationId),go.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(d){return S(u,void 0,void 0,function(){var f;return T(this,function(m){if(d instanceof Pr&&d.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 d})})}),[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=h.sent(),l=$($({},r),{cacheLookupPolicy:r.cacheLookupPolicy||Rt.Default}),i=this.acquireTokenFromCache(s,c,l).catch(function(d){if(l.cacheLookupPolicy===Rt.AccessToken)throw d;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 Ro,v=f instanceof gr,E=f.errorCode===fr.INVALID_GRANT_ERROR;if((!m||!E||v||l.cacheLookupPolicy===Rt.AccessTokenAndRefreshToken||l.cacheLookupPolicy===Rt.RefreshToken)&&l.cacheLookupPolicy!==Rt.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)})}),h.label=3;case 3:return[2,i.then(function(d){return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Silent,d),o.endMeasurement({success:!0,fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker,requestId:d.requestId}),d}).catch(function(d){throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Silent,null,d),o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},e}(IT);const yg="redirect";var _g=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class kT extends AT{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)}constructor(e,r){super(r),this.tenantId=e}login(e,r=yg,n=!0){var o;return _g(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=yg,n=!0){return _g(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 RT=(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")},PT=(t,e,r,n,o)=>{const i=Object.assign({clientId:e,redirectUri:RT(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||kT)(t,{auth:i,cache:a,system:s})};class I0 extends gf{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 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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const NT="default";class OT{get defaultClient(){return this.getClient(NT)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}constructor(e){this._config=e,this._clients={}}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=PT(r.tenantId,r.clientId,r.redirectUri,r.config);return n.setLogger(new I0(0)),n}handleRedirect(){return Tu(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 Tu(this,void 0,void 0,function*(){const r=yield this.acquireToken(e);return r?r.accessToken:void 0})}login(){return Tu(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var xT=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const A0={name:"auth",configure:t=>{var e;const r=new CS;return!((e=t==null?void 0:t.auth)===null||e===void 0)&&e.defaultConfig&&r.configureDefault(t.auth.defaultConfig),r},initialize:({config:t})=>xT(void 0,void 0,void 0,function*(){const e=new OT(t);return t.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},MT=(t,e)=>({module:A0,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 k0=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const UT=t=>{var e;return{id:t.id,isChildType:t.isChildType,parentTypeIds:(e=t.parentTypeIds)!==null&&e!==void 0?e:[]}},R0=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:UT(t.type),value:(o=t.value)!==null&&o!==void 0?o:{}}},LT=t=>k0(void 0,void 0,void 0,function*(){const e=yield t.json();return R0(e)}),DT=t=>k0(void 0,void 0,void 0,function*(){return(yield t.json()).map(R0)});var HT=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)},hc;class $T{constructor(e,r={}){this.config=r,hc.set(this,void 0),HT(this,hc,e,"f")}requireInstance(e){return FT(this,hc,"f").requireInstance(e)}setContextType(e){this.config.contextType=e}setContextFilter(e){this.config.contextFilter=e}setContextClient(e,r=1*60*1e3){this.config.client={get:typeof e.get=="function"?{key:({id:n})=>n,client:{fn:e.get},expire:r}:e.get,query:typeof e.query=="function"?{key:n=>JSON.stringify(n),client:{fn:e.query},expire:r}:e.query}}}hc=new WeakMap;var Ks=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},wg=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)},fc;class zT{constructor(){this.defaultExpireTime=1*60*1e3,fc.set(this,[])}addConfigBuilder(e){wg(this,fc,"f").push(e)}_getServiceProvider(e){var r;return Ks(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){var r;return Ks(this,void 0,void 0,function*(){const n=yield wg(this,fc,"f").reduce((o,i)=>Ks(this,void 0,void 0,function*(){const a=new $T(e,yield o);return yield Promise.resolve(i(a)),Object.assign(o,a.config)}),Promise.resolve({}));return(r=n.client)!==null&&r!==void 0||(n.client=yield(()=>Ks(this,void 0,void 0,function*(){const i=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:a=>i.get("v1",a,{selector:LT})},key:({id:a})=>a,expire:this.defaultExpireTime},query:{client:{fn:a=>i.query("v1",{query:a},{selector:DT})},key:a=>JSON.stringify(a),expire:this.defaultExpireTime}}}))()),n})}}fc=new WeakMap;var Eg;(function(t){t.IDLE="idle",t.ACTIVE="active",t.FAILED="failed",t.CANCELED="canceled"})(Eg||(Eg={}));const jT=t=>e=>e.pipe(co(t)),BT=t=>t.pipe(Tt(e=>e.value));var Gs,qT=new Uint8Array(16);function KT(){if(!Gs&&(Gs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Gs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gs(qT)}const GT=/^(?:[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 P0(t){return typeof t=="string"&&GT.test(t)}var Xe=[];for(var bu=0;bu<256;++bu)Xe.push((bu+256).toString(16).substr(1));function N0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Xe[t[e+0]]+Xe[t[e+1]]+Xe[t[e+2]]+Xe[t[e+3]]+"-"+Xe[t[e+4]]+Xe[t[e+5]]+"-"+Xe[t[e+6]]+Xe[t[e+7]]+"-"+Xe[t[e+8]]+Xe[t[e+9]]+"-"+Xe[t[e+10]]+Xe[t[e+11]]+Xe[t[e+12]]+Xe[t[e+13]]+Xe[t[e+14]]+Xe[t[e+15]]).toLowerCase();if(!P0(r))throw TypeError("Stringified UUID is invalid");return r}function VT(t){if(!P0(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 WT(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var YT="6ba7b810-9dad-11d1-80b4-00c04fd430c8",QT="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function JT(t,e,r){function n(o,i,a,s){if(typeof o=="string"&&(o=WT(o)),typeof i=="string"&&(i=VT(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 N0(c)}try{n.name=t}catch{}return n.DNS=YT,n.URL=QT,n}function O0(t,e,r){t=t||{};var n=t.random||(t.rng||KT)();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 N0(n)}function XT(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 Iu(t,e){return t<<e|t>>>32-e}function ZT(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 h=0;h<a;++h){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=s[h][f];for(var m=16;m<80;++m)d[m]=Iu(d[m-3]^d[m-8]^d[m-14]^d[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 b=Math.floor(w/20),P=Iu(v,5)+XT(b,E,g,p)+y+e[b]+d[w]>>>0;y=p,p=g,g=Iu(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 e1=JT("v5",80,ZT);const t1=e1;class x0 extends Error{constructor(e,r,n){super(r),this.type=e,this.cause=n}}const M0=(...t)=>or(e=>t.includes(e.type));var 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)},r1=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},br,sr;class U0 extends Pe{get action$(){return ht(this,br,"f").asObservable()}get value(){return ht(this,sr,"f").value}get closed(){return ht(this,sr,"f").closed||ht(this,br,"f").closed}constructor(e,r){super(o=>ht(this,sr,"f").subscribe(o)),br.set(this,new en),sr.set(this,void 0);const n="getInitialState"in e?e.getInitialState():r;r1(this,sr,new Ul(n),"f"),ht(this,br,"f").pipe(hf(e,n),a0()).subscribe(ht(this,sr,"f")),this.reset=()=>ht(this,sr,"f").next(n)}next(e){ht(this,br,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(M0(e)):this.action$,o=r||e;return n.pipe(ko(i=>yr(new Promise((a,s)=>{try{a(o(i,this.value))}catch(c){s(c)}})).pipe(dn(a=>(console.warn("unhandled effect",a),Io)))),or(i=>!!i),Yc(Wc)).subscribe(ht(this,br,"f"))}addEpic(e){return this.addFlow(e)}addFlow(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(dn(n=>(console.trace("unhandled exception, epic closed!",n),Io)),Yc(Wc)).subscribe(ht(this,br,"f"))}unsubscribe(){ht(this,br,"f").unsubscribe(),ht(this,sr,"f").unsubscribe()}complete(){ht(this,br,"f").complete(),ht(this,sr,"f").complete()}asObservable(){return ht(this,sr,"f").asObservable()}}br=new WeakMap,sr=new WeakMap;function kr(t,e){function r(...n){if(e){const o=e(...n);if(!o)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>n.type===t,r}function pr(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Po(t){return!!t&&!!t[Bt]}function hn(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===u1}(t)||Array.isArray(t)||!!t[Rg]||!!(!((e=t.constructor)===null||e===void 0)&&e[Rg])||yf(t)||_f(t))}function ns(t,e,r){r===void 0&&(r=!1),zi(t)===0?(r?Object.keys:Tf)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function zi(t){var e=t[Bt];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:yf(t)?2:_f(t)?3:0}function eh(t,e){return zi(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function n1(t,e){return zi(t)===2?t.get(e):t[e]}function L0(t,e,r){var n=zi(t);n===2?t.set(e,r):n===3?(t.delete(e),t.add(r)):t[e]=r}function o1(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function yf(t){return c1&&t instanceof Map}function _f(t){return l1&&t instanceof Set}function to(t){return t.o||t.t}function wf(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=d1(t);delete e[Bt];for(var r=Tf(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ef(t,e){return e===void 0&&(e=!1),Cf(t)||Po(t)||!hn(t)||(zi(t)>1&&(t.set=t.add=t.clear=t.delete=i1),Object.freeze(t),e&&ns(t,function(r,n){return Ef(n,!0)},!0)),t}function i1(){pr(2)}function Cf(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Mr(t){var e=h1[t];return e||pr(18,t),e}function Cg(){return os}function Au(t,e){e&&(Mr("Patches"),t.u=[],t.s=[],t.v=e)}function fl(t){th(t),t.p.forEach(a1),t.p=null}function th(t){t===os&&(os=t.l)}function Sg(t){return os={p:[],l:os,h:t,m:!0,_:0}}function a1(t){var e=t[Bt];e.i===0||e.i===1?e.j():e.O=!0}function ku(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||Mr("ES5").S(e,t,n),n?(r[Bt].P&&(fl(e),pr(4)),hn(t)&&(t=pl(e,t),e.l||gl(e,t)),e.u&&Mr("Patches").M(r[Bt].t,t,e.u,e.s)):t=pl(e,r,[]),fl(e),e.u&&e.v(e.u,e.s),t!==D0?t:void 0}function pl(t,e,r){if(Cf(e))return e;var n=e[Bt];if(!n)return ns(e,function(i,a){return Tg(t,n,e,i,a,r)},!0),e;if(n.A!==t)return e;if(!n.P)return gl(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=wf(n.k):n.o;ns(n.i===3?new Set(o):o,function(i,a){return Tg(t,n,o,i,a,r)}),gl(t,o,!1),r&&t.u&&Mr("Patches").R(n,r,t.u,t.s)}return n.o}function Tg(t,e,r,n,o,i){if(Po(o)){var a=pl(t,o,i&&e&&e.i!==3&&!eh(e.D,n)?i.concat(n):void 0);if(L0(r,n,a),!Po(a))return;t.m=!1}if(hn(o)&&!Cf(o)){if(!t.h.F&&t._<1)return;pl(t,o),e&&e.A.l||gl(t,o)}}function gl(t,e,r){r===void 0&&(r=!1),t.h.F&&t.m&&Ef(e,r)}function Ru(t,e){var r=t[Bt];return(r?to(r):t)[e]}function bg(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function rh(t){t.P||(t.P=!0,t.l&&rh(t.l))}function Pu(t){t.o||(t.o=wf(t.t))}function nh(t,e,r){var n=yf(e)?Mr("MapSet").N(e,r):_f(e)?Mr("MapSet").T(e,r):t.g?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Cg(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,l=oh;a&&(c=[s],l=ga);var u=Proxy.revocable(c,l),h=u.revoke,d=u.proxy;return s.k=d,s.j=h,d}(e,r):Mr("ES5").J(e,r);return(r?r.A:Cg()).p.push(n),n}function s1(t){return Po(t)||pr(22,t),function e(r){if(!hn(r))return r;var n,o=r[Bt],i=zi(r);if(o){if(!o.P&&(o.i<4||!Mr("ES5").K(o)))return o.t;o.I=!0,n=Ig(r,i),o.I=!1}else n=Ig(r,i);return ns(n,function(a,s){o&&n1(o.t,a)===s||L0(n,a,e(s))}),i===3?new Set(n):n}(t)}function Ig(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wf(t)}var Ag,os,Sf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",c1=typeof Map<"u",l1=typeof Set<"u",kg=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",D0=Sf?Symbol.for("immer-nothing"):((Ag={})["immer-nothing"]=!0,Ag),Rg=Sf?Symbol.for("immer-draftable"):"__$immer_draftable",Bt=Sf?Symbol.for("immer-state"):"__$immer_state",u1=""+Object.prototype.constructor,Tf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,d1=Object.getOwnPropertyDescriptors||function(t){var e={};return Tf(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},h1={},oh={get:function(t,e){if(e===Bt)return t;var r=to(t);if(!eh(r,e))return function(o,i,a){var s,c=bg(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!hn(n)?n:n===Ru(t.t,e)?(Pu(t),t.o[e]=nh(t.A.h,n,t)):n},has:function(t,e){return e in to(t)},ownKeys:function(t){return Reflect.ownKeys(to(t))},set:function(t,e,r){var n=bg(to(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Ru(to(t),e),i=o==null?void 0:o[Bt];if(i&&i.t===r)return t.o[e]=r,t.D[e]=!1,!0;if(o1(r,o)&&(r!==void 0||eh(t.t,e)))return!0;Pu(t),rh(t)}return t.o[e]===r&&typeof r!="number"&&(r!==void 0||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Ru(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Pu(t),rh(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=to(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){pr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pr(12)}},ga={};ns(oh,function(t,e){ga[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ga.deleteProperty=function(t,e){return ga.set.call(this,t,e,void 0)},ga.set=function(t,e,r){return oh.set.call(this,t[0],e,r,t[0])};var f1=function(){function t(r){var n=this;this.g=kg,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=n;return function(v){var E=this;v===void 0&&(v=s);for(var g=arguments.length,p=Array(g>1?g-1:0),y=1;y<g;y++)p[y-1]=arguments[y];return c.produce(v,function(w){var b;return(b=i).call.apply(b,[E,w].concat(p))})}}var l;if(typeof i!="function"&&pr(6),a!==void 0&&typeof a!="function"&&pr(7),hn(o)){var u=Sg(n),h=nh(n,o,void 0),d=!0;try{l=i(h),d=!1}finally{d?fl(u):th(u)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(v){return Au(u,a),ku(v,u)},function(v){throw fl(u),v}):(Au(u,a),ku(l,u))}if(!o||typeof o!="object"){if((l=i(o))===void 0&&(l=o),l===D0&&(l=void 0),n.F&&Ef(l,!0),a){var f=[],m=[];Mr("Patches").M(o,l,f,m),a(f,m)}return l}pr(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(l){for(var u=arguments.length,h=Array(u>1?u-1:0),d=1;d<u;d++)h[d-1]=arguments[d];return n.produceWithPatches(l,function(f){return o.apply(void 0,[f].concat(h))})};var a,s,c=n.produce(o,i,function(l,u){a=l,s=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,a,s]}):[c,a,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){hn(r)||pr(8),Po(r)&&(r=s1(r));var n=Sg(this),o=nh(this,r,void 0);return o[Bt].C=!0,th(n),o},e.finishDraft=function(r,n){var o=r&&r[Bt],i=o.A;return Au(i,n),ku(void 0,i)},e.setAutoFreeze=function(r){this.F=r},e.setUseProxies=function(r){r&&!kg&&pr(20),this.g=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Mr("Patches").$;return Po(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},t}(),qt=new f1,H0=qt.produce;qt.produceWithPatches.bind(qt);qt.setAutoFreeze.bind(qt);qt.setUseProxies.bind(qt);qt.applyPatches.bind(qt);qt.createDraft.bind(qt);qt.finishDraft.bind(qt);function Pg(t){return hn(t)?H0(t,()=>{}):t}function p1(t){return typeof t=="function"}function F0(t,e){const[r,n,o]=g1(e);let i;if(p1(t))i=()=>Pg(t());else{const s=Pg(t);i=()=>s}function a(s=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[o]),l.reduce((u,h)=>{if(h)if(Po(u)){const f=h(u,c);return f===void 0?u:f}else{if(hn(u))return H0(u,d=>h(d,c));{const d=h(u,c);if(d===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return u},s)}return a.getInitialState=i,a}function g1(t){const e={},r=[];let n;const o={addCase(i,a){const s=typeof i=="string"?i:i.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=a,o},addMatcher(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){return n=i,o}};return t(o),[e,r,n]}const m1=()=>({request:kr("client/request",(e,r)=>{var n,o,i,a;return r!=null||(r={}),(n=r.transaction)!==null&&n!==void 0||(r.transaction=O0()),(o=r.created)!==null&&o!==void 0||(r.created=Date.now()),(i=r.controller)!==null&&i!==void 0||(r.controller=new AbortController),(a=r.task)!==null&&a!==void 0||(r.task=new By),{payload:e,meta:r}}),retry:kr("client/retry",e=>({payload:e})),success:kr("client/success",(e,r)=>({payload:e,meta:r})),cancel:kr("client/cancel",e=>({payload:e})),failure:kr("client/failure",(e,r)=>({payload:e,meta:r})),error:kr("client/error",(e,r)=>({payload:e,meta:r}))}),Ye=m1(),$0=t=>e=>e.pipe(or(Ye.request.match),ko(r=>{const{meta:{controller:n,transaction:o}}=r;return new Pe(i=>{if(n.signal.aborted)return i.next(Ye.cancel({transaction:o,reason:`request [${o}] was aborted!`})),i.complete();i.add(e.pipe(or(Ye.cancel.match)).subscribe(a=>{a.payload.transaction===o&&(n.signal.aborted||n.abort(),i.complete())})),i.add($d(n.signal,"abort").subscribe(()=>{i.next(Ye.cancel({transaction:o,reason:`request [${o}] was aborted!`})),i.complete()})),i.add(yr(t(r)).subscribe({next:a=>i.next(a),error:a=>i.next(Ye.error(a,{request:r})),complete:()=>i.complete()}))})})),v1=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>e.pipe($0(n=>e.pipe(or(Ye.failure.match),or(o=>o.meta.request===n),tS(r),co(([o,i])=>{var a,s;const{transaction:c}=n.meta,l=i[c];if(!l)return Io;const u=(s=(a=l.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,h=Object.assign({},t,n.meta.retry);if(u>=h.count){const f=h.count?"maximum retries executed!":o.payload.message;throw Error(f,{cause:o.payload})}return(typeof h.delay=="function"?yr(h.delay(o.payload.cause)).pipe(dn(f=>{throw Error("failed to resolve delay",{cause:f})})):KC(h.delay)).pipe(Tt(()=>Ye.retry(n)))}))))),y1=t=>e=>e.pipe($0(r=>yr(t(r.payload,r.meta.controller.signal)).pipe(Tt(n=>Ye.success(n,{request:r})),dn(n=>{throw Error(`failed to execute request for transaction ${r.meta.transaction}`,{cause:n})})))),_1=t=>t.pipe(or(Ye.retry.match),Tt(e=>e.payload)),z0=()=>or(t=>t.status==="complete"),w1=(t={})=>F0(t,e=>e.addCase(Ye.request,(r,n)=>{const{transaction:o,task:i,ref:a,created:s}=n.meta;r[o]={transaction:o,task:i,ref:a,created:s}}).addCase(Ye.success,(r,n)=>{const{request:o}=n.meta,{transaction:i,ref:a}=o.meta,s=r[i];if(s){const c={status:"complete",transaction:i,ref:a,value:n.payload,args:o.payload,created:s.created,completed:Date.now()};s.task.next(c),s.task.complete()}delete r[i]}).addCase(Ye.retry,(r,n)=>{var o;const{transaction:i}=n.payload.meta,a=r[i];a&&((o=a.retry)!==null&&o!==void 0||(a.retry=[]),a.retry.push(Date.now()))}).addCase(Ye.cancel,(r,n)=>{const{transaction:o,reason:i}=n.payload,a=r[o];a&&(a.task.error(new x0("abort","request was canceled",new Error(i))),delete r[o])}).addCase(Ye.failure,(r,n)=>{var o;const{payload:i,meta:a}=n,{transaction:s}=a.request.meta,c=r[s];c&&((o=c.errors)!==null&&o!==void 0||(c.errors=[]),c.errors.push(i))}));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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},De=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)},Ng=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},Fe,ro;class Og extends Pe{get closed(){return De(this,Fe,"f").closed}get state$(){return De(this,Fe,"f")}get action$(){return De(this,Fe,"f").action$}get success$(){return this.action$.pipe(or(Ye.success.match),Tt(({payload:e})=>e))}get error$(){return this.action$.pipe(M0("client/error"),Tt(({payload:e})=>new x0("error","failed to execute request",e)))}constructor(e,r){super(i=>De(this,Fe,"f").subscribe(i)),Fe.set(this,void 0),ro.set(this,void 0);const n={};Ng(this,Fe,new U0(w1(n)),"f"),Ng(this,ro,new gn(()=>De(this,Fe,"f").complete()),"f"),De(this,ro,"f").add(De(this,Fe,"f").addFlow(y1(e))),De(this,ro,"f").add(De(this,Fe,"f").addFlow(_1));const o=Object.assign({count:0,delay:0},r==null?void 0:r.retry);De(this,ro,"f").add(De(this,Fe,"f").addFlow(v1(o)))}next(e,r){const n=Ye.request(e,r);return De(this,Fe,"f").next(n),n.meta}nextAsync(e,r){return E1(this,void 0,void 0,function*(){return Ao(this.next(e,r).task.pipe(z0()))})}getTaskByTransaction(e){const r=De(this,Fe,"f").value[e];return r&&r.task}getTaskByRef(e){const r=Object.values(De(this,Fe,"f").value).find(n=>n.ref===e);return r&&r.task}cancel(e,r){if(e&&De(this,Fe,"f").value[e])r!=null||(r=`[${e}]: transaction canceled`),De(this,Fe,"f").next(Ye.cancel({transaction:e,reason:r}));else for(const n of Object.keys(De(this,Fe,"f").value))this.cancel(n,`[${e}]: all transactions canceled`)}on(e,r){return De(this,Fe,"f").addEffect(Ye[e].type,n=>{r(n,this)})}complete(){De(this,ro,"f").unsubscribe()}asObservable(){return De(this,Fe,"f").asObservable()}}Fe=new WeakMap,ro=new WeakMap;function C1(){return{set:kr("cache/set",(t,e)=>({payload:{key:t,entry:e}})),remove:kr("cache/remove",t=>({payload:t})),invalidate:kr("cache/invalidate",t=>({payload:t})),trim:kr("cache/trim",t=>({payload:t}))}}const Fo=C1(),S1=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)};function T1(t,e={}){return F0(e,r=>r.addCase(t.set,(n,o)=>{var i;const{key:a,entry:s}=o.payload,c=n[a];c?(c.updated=Date.now(),(i=c.updates)!==null&&i!==void 0||(c.updates=0),c.updates++):n[a]=Object.assign(Object.assign({},s),{created:Date.now()})}).addCase(t.remove,(n,o)=>{delete n[o.payload]}).addCase(t.invalidate,(n,o)=>{const i=n[o.payload];i&&delete i.updated}).addCase(t.trim,(n,o)=>{var i,a;const{payload:s}=o,c=(i=s.sort)!==null&&i!==void 0?i:S1,l=Object.keys(n),u=Object.entries(n).filter(([h,d])=>!s.validate||s.validate(d)).sort((h,d)=>c(h[1],d[1])).slice(0,(a=s.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).map(([h])=>h);if(l.length!==u.length)for(const h of l){const d=u.indexOf(h);d!==-1?u.splice(d,1):delete n[h]}}))}var Tr=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)},b1=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;class xg{get state$(){return Tr(this,Lt,"f").asObservable()}constructor(e){Lt.set(this,void 0);const{trimming:r,initial:n}=e;b1(this,Lt,new U0(T1(Fo,n)),"f"),r&&Tr(this,Lt,"f").addEffect("cache/set",()=>Tr(this,Lt,"f").next(Fo.trim(r)))}setItem(...e){Tr(this,Lt,"f").next(Fo.set(...e))}getItem(e){return Tr(this,Lt,"f").value[e]}removeItem(e){Tr(this,Lt,"f").next(Fo.remove(e))}invalidate(e){Tr(this,Lt,"f").next(Fo.invalidate(e))}trim(e){Tr(this,Lt,"f").next(Fo.trim(e))}reset(){Tr(this,Lt,"f").reset()}complete(){Tr(this,Lt,"f").complete()}}Lt=new WeakMap;var _e=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)},$o=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},I1=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},no,cr,En,jo,Bo,pc,ih;const A1=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()};class Yt{get client(){return _e(this,cr,"f")}get cache(){return _e(this,En,"f")}constructor(e){var r,n;no.set(this,new gn),cr.set(this,void 0),En.set(this,void 0),jo.set(this,new en),Bo.set(this,void 0),pc.set(this,void 0),ih.set(this,O0()),$o(this,Bo,i=>t1(e.key(i),_e(this,ih,"f")),"f"),$o(this,pc,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:A1(e==null?void 0:e.expire),"f"),e.client instanceof Og?$o(this,cr,e.client,"f"):($o(this,cr,new Og(e.client.fn,e.client.options),"f"),_e(this,no,"f").add(()=>_e(this,cr,"f").complete())),e.cache instanceof xg?$o(this,En,e.cache,"f"):($o(this,En,new xg(e.cache||{}),"f"),_e(this,no,"f").add(()=>_e(this,En,"f").complete()));const o=(n=e.queueOperator)!==null&&n!==void 0?n:jT;_e(this,no,"f").add(()=>_e(this,jo,"f").complete()),_e(this,no,"f").add(_e(this,jo,"f").pipe(o(({args:i,options:a})=>new Pe(s=>{const{task:c,transaction:l}=_e(this,cr,"f").next(i,a);s.add(c.pipe(dn(()=>Io)).subscribe(s)),s.add(()=>{_e(this,cr,"f").cancel(l)})})),z0(),l0(()=>!_e(this,cr,"f").closed)).subscribe(i=>{const{args:a,value:s,transaction:c,ref:l}=i,u=l!=null?l:_e(this,Bo,"f").call(this,a);_e(this,En,"f").setItem(u,{value:s,args:a,transaction:c})}))}next(e,r){_e(this,jo,"f").next({args:e,options:r})}query(e,r){var n;const o=_e(this,Bo,"f").call(this,e);return(n=_e(this,cr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}queryAsync(e,r){const n=r||{},{awaitResolve:o}=n,i=I1(n,["awaitResolve"]);return(o?Qc:Ao)(this._query(e,i))}complete(){_e(this,no,"f").unsubscribe()}_query(e,r){var n;const o=_e(this,Bo,"f").call(this,e);return(n=_e(this,cr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}_createTask(e,r,n){var o;const i=new By,a=_e(this,En,"f").getItem(e);if(a){const{value:l,args:u,created:h,updated:d,updates:f,transaction:m}=a,v={status:"cache",value:l,args:u,created:h,updated:d,updates:f,transaction:m};i.next(v)}const s=((o=n==null?void 0:n.cache)===null||o===void 0?void 0:o.validate)||_e(this,pc,"f");return a&&s(a,r)?i.complete():_e(this,jo,"f").next({args:r,options:{ref:e,task:i}}),i.asObservable()}}no=new WeakMap,cr=new WeakMap,En=new WeakMap,jo=new WeakMap,Bo=new WeakMap,pc=new WeakMap,ih=new WeakMap;Yt.extractQueryValue=BT;var wn=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)},Mg=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},ma,qr;class k1 extends Pe{get currentContext(){return wn(this,qr,"f").value}get currentContext$(){return wn(this,qr,"f").asObservable()}get client(){return wn(this,ma,"f")}constructor(e){super(r=>wn(this,qr,"f").subscribe(r)),ma.set(this,void 0),qr.set(this,void 0),Mg(this,ma,new Yt(e),"f"),Mg(this,qr,new Ul(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(dn(()=>Io)).subscribe(r=>wn(this,qr,"f").next(r)):e!==wn(this,qr,"f").value&&wn(this,qr,"f").next(e)}resolveContext(e){return wn(this,ma,"f").query({id:e}).pipe(Tt(r=>r.value))}}ma=new WeakMap,qr=new WeakMap;var 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)},ra=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},Kr,gc,va,qo,mc,ya;class R1{get contextClient(){return ft(this,Kr,"f")}get queryClient(){return ft(this,gc,"f")}queryContext(e){const r=this.queryClient.query({search:e,filter:{type:ft(this,mc,"f")}}).pipe(Tt(n=>n.value));return ft(this,ya,"f")?r.pipe(Tt(ft(this,ya,"f"))):r}queryContextAsync(e){return Qc(this.queryContext(e))}get currentContext$(){return ft(this,Kr,"f").currentContext$}get currentContext(){return ft(this,Kr,"f").currentContext}set currentContext(e){ft(this,va,"f")?ft(this,va,"f").dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}}).then(r=>{r.canceled||ft(this,Kr,"f").setCurrentContext(e)}):ft(this,Kr,"f").setCurrentContext(e)}constructor(e){Kr.set(this,void 0),gc.set(this,void 0),va.set(this,void 0),qo.set(this,new gn),mc.set(this,void 0),ya.set(this,void 0);const{config:r,event:n,parentContext:o}=e;ra(this,mc,r.contextType,"f"),ra(this,ya,r.contextFilter,"f"),ra(this,Kr,new k1(r.client.get),"f"),ra(this,gc,new Yt(r.client.query),"f"),n&&(ra(this,va,n,"f"),ft(this,qo,"f").add(ft(this,Kr,"f").currentContext$.pipe(c0()).subscribe(([i,a])=>{n.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:i,next:a}})})),ft(this,qo,"f").add(n.addEventListener("onCurrentContextChanged",i=>{i.source!==this&&(this.currentContext=i.detail.next)}))),o&&ft(this,qo,"f").add(o.contextClient.currentContext$.subscribe(i=>this.currentContext=i))}dispose(){ft(this,qo,"f").unsubscribe()}}Kr=new WeakMap,gc=new WeakMap,va=new WeakMap,qo=new WeakMap,mc=new WeakMap,ya=new WeakMap;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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const N1="context",O1={name:N1,configure:()=>new zT,initialize:t=>P1(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 R1({config:r,event:n,parentContext:o})}),dispose:t=>{t.instance.dispose()}},x1="modulepreload",M1=function(t){return"/"+t},Ug={},U1=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=M1(i),i in Ug)return;Ug[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const h=o[u];if(h.href===i&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":x1,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((u,h)=>{l.addEventListener("load",u),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},L1=(t,e)=>JSON.stringify(t)===JSON.stringify(e);var pt=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=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},Ko,_a,wa,Go,Cn;class D1 extends Pe{get current(){return pt(this,Go,"f").value}get current$(){return pt(this,Go,"f").pipe(a0(L1))}constructor(e){super(o=>this.current$.subscribe(o)),Ko.set(this,void 0),_a.set(this,void 0),wa.set(this,void 0),Go.set(this,void 0),Cn.set(this,new gn);const{event:r,config:n}=e;Vs(this,Go,new Ul(void 0),"f"),Vs(this,Ko,new Yt(n.getApp),"f"),Vs(this,_a,new Yt(n.getApps),"f"),Vs(this,wa,new Yt(n.getConfig),"f"),pt(this,Cn,"f").add(pt(this,Ko,"f").complete),pt(this,Cn,"f").add(pt(this,_a,"f").complete),pt(this,Cn,"f").add(pt(this,wa,"f").complete),pt(this,Cn,"f").add(this.current$.pipe(c0(),l0(()=>!!r)).subscribe(([o,i])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:i}})}))}getApp(e){return Yt.extractQueryValue(pt(this,Ko,"f").query({appKey:e}).pipe(dn(r=>{throw Error("failed to load manifest",{cause:r})})))}getAllApps(){return Yt.extractQueryValue(pt(this,_a,"f").query())}getAppConfig(e,r){return Yt.extractQueryValue(pt(this,wa,"f").query({appKey:e,tag:r}).pipe(dn(n=>{throw Error("failed to load config",{cause:n})})))}setCurrentApp(e){return new Promise((r,n)=>{const o=pt(this,Ko,"f").query({appKey:e});pt(this,Cn,"f").add(Yt.extractQueryValue(o).subscribe({next:i=>pt(this,Go,"f").next(i),error:n,complete:r}))})}loadApp(e){const r=this.getApp(e).pipe(co(o=>Ao(yr(U1(()=>import(o.entry),[])).pipe(Tt(i=>({manifest:o,module:i})))))),n=this.getAppConfig(e).pipe(Tt(o=>({config:o})));return GC(r,n).pipe(hf((o,i)=>Object.assign({},o,i),{}),or(o=>["manifest","module","config"].every(i=>!!o[i])),s0(()=>"failed to load application"))}dispose(){pt(this,Cn,"f").unsubscribe()}}Ko=new WeakMap,_a=new WeakMap,wa=new WeakMap,Go=new WeakMap,Cn=new WeakMap;var H1=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const ah="app",F1={name:ah,configure:()=>new $1,initialize:t=>H1(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new D1({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var Lg=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class $1{constructor(){this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return Lg(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(ah))return r.createClient(ah);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){return Lg(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 Dg=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class z1{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Dg(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 Dg(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var Nu=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class j1{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveService(e){return Nu(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return Nu(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 Nu(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(h0(o,{baseUri:i,defaultScopes:a}))})}}var Hg=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},B1=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)},q1=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},vc;class K1{get environment(){return Ao(Yt.extractQueryValue(B1(this,vc,"f").query(void 0,{cache:{suppressInvalid:!0}})))}constructor({http:e,endpoint:r}){vc.set(this,void 0),this.http=e,this.endpoint=r,q1(this,vc,new Yt({client:{fn:()=>e.fetch$(r,{selector:this.selector.bind(this)}).pipe(zd(n=>console.log("\u{1F525}",n)))},key:()=>"services",expire:5*60*1e3}),"f")}selector(e){return Hg(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 Hg(this,void 0,void 0,function*(){try{const{services:r}=yield this.environment;return r[e]}catch(r){throw console.error(r),r}})}}vc=new WeakMap;const G1="serviceDiscovery";var V1=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const W1={name:G1,configure:()=>new z1({clientCtor:K1,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>V1(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),o=yield t.createClient(n);return new j1(o,r)})};class Y1{}class j0 extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const Q1=(t,e)=>{var r;const n=(r=on[t])!==null&&r!==void 0?r:t;switch(n){case on.v2:throw new j0(t);case on.v1:default:{const{id:o}=e,i=new URLSearchParams;return i.append("api-version",n),`/contexts/${o}/?${String(i)}`}}},J1=(t,e,r)=>[Q1(t,e),r],X1=(t,e,r="json")=>(n,o)=>t[r](...J1(e,n,o));var Z1=["eq","ne","gt","ge","lt","le"],Ws=["and","or","not"],eb=["any","all"],tb=["startswith","endswith","contains"],rb=["expand","levels","select","skip","top","count","orderby","filter"],Fg=/\((.*)\)/,$g=/(?!indexof)\((\w+)\)/,zg;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(zg||(zg={}));var Br="";function nb(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,h=e.key,d=e.count,f=e.expand,m=e.action,v=e.func,E="",g=[],p={};if(h!=null&&(E+="(".concat(Nr(h,g),")")),(c||typeof d=="object")&&(p.$filter=is(typeof d=="object"?d:c,g)),l&&(p.$apply=B0(l)),f&&(p.$expand=yc(f)),u&&(p.$orderby=bf(u)),d&&(typeof d=="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=Nr(v[y],g);E+="/".concat(y),w!==""&&(E+="(".concat(w,")"))}}return g.length>0&&Object.assign(p,g.reduce(function(b,P){var M;return Object.assign(b,(M={},M["@".concat(P.name)]=Nr(P.value),M))},{})),cb(E,To({$select:r,$search:n,$skiptoken:o,$format:i},p))}function Ou(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(Nr(e,r))}function is(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,h){var d=i[h];if(d===void 0)return u;var f="";if(s?h===Br?f=s:$g.test(h)?f=h.replace($g,function(p,y){return y.trim()===Br?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):Fg.test(h)?f=h.replace(Fg,function(p,y){return y.trim()===Br?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):f="".concat(s,"/").concat(h):f=h,h===Br&&Array.isArray(d))return u.concat(d.map(function(p){return Ou(f,p)}));if(["number","string","boolean"].indexOf(typeof d)!==-1||d instanceof Date||d===null)u.push(Ou(f,d,a));else if(Array.isArray(d)){var m=h,v=d.map(function(p){return is(p,a,s)}).filter(function(p){return p}).map(function(p){return Ws.indexOf(m)!==-1?"(".concat(p,")"):p});v.length&&(Ws.indexOf(m)!==-1?v.length&&(m==="not"?u.push(jg(v)):u.push("(".concat(v.join(" ".concat(m," ")),")"))):u.push(v.join(" ".concat(m," "))))}else if(Ws.indexOf(f)!==-1){var E=f,v=Object.keys(d).map(function(y){var w;return n((w={},w[y]=d[y],w))});v.length&&(E==="not"?u.push(jg(v)):u.push("(".concat(v.join(" ".concat(E," ")),")")))}else if(typeof d=="object")if("type"in d)u.push(Ou(f,d,a));else{var g=Object.keys(d);g.forEach(function(p){if(d[p]!==void 0)if(Z1.indexOf(p)!==-1)u.push("".concat(f," ").concat(p," ").concat(Nr(d[p],a)));else if(Ws.indexOf(p)!==-1)Array.isArray(d[p])?u.push(d[p].map(function(P){return"("+n(P,a,f)+")"}).join(" ".concat(p," "))):u.push("("+n(d[p],a,f)+")");else if(eb.indexOf(p)!==-1){var y=o(h.toLowerCase(),d[p],p,f);y&&u.push(y)}else if(p==="has")u.push("".concat(f," ").concat(p," ").concat(Nr(d[p],a)));else if(p==="in"){var w=Array.isArray(d[p])?d[p]:d[p].value.map(function(P){return{type:d[p].type,value:P}});u.push(f+" in ("+w.map(function(P){return Nr(P,a)}).join(",")+")")}else if(tb.indexOf(p)!==-1)u.push("".concat(p,"(").concat(f,",").concat(Nr(d[p],a),")"));else{var b=n(d,a,f);b&&u.push(b)}})}else throw new Error("Unexpected value type: ".concat(d));return u},[]);c=l.join(" and ")}return c}function o(i,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=ob(i,a,s,c);else if(a){var u=Array.isArray(a)?a.reduce(function(d,f){return f.hasOwnProperty(Br)?(d.hasOwnProperty(Br)||(d[Br]=[]),d[Br].push(f[Br]),d):To(To({},d),f)},{}):a,h=n(u,e,i);l="".concat(c,"/").concat(s,"(").concat(h?"".concat(i,":").concat(h):"",")")}return l}}function ob(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 ib(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 Nr(t,e){if(typeof t=="string")return"'".concat(ib(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 Nr(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(Nr(o,e))}).join(",")}return t}function yc(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 yc(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return rb.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=is(t[r]);break;case"orderBy":n=bf(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=yc(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=yc(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function B0(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=Hy(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(ab(i),")")),a){var u=is(a);u&&n.push("filter(".concat(is(u),")"))}return s&&n.push("groupby(".concat(sb(s),")")),n},[]);return r.join("/")||void 0}function ab(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 sb(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(B0(t.transform))),e}function bf(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 bf(o,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function cb(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 jg(t){return"not(".concat(t.join(" and "),")")}const lb=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]})}},{}),ub=t=>Object.keys(t).reduce((e,r)=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:lb(t.filter)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),db=t=>typeof t=="string"?t:nb(ub(t)),hb=(t,e)=>{var r;const n=(r=on[t])!==null&&r!==void 0?r:t;switch(n){case on.v2:throw new j0(t);case on.v1:default:{const{query:o,includeDeleted:i}=e,a=new URLSearchParams(db(o));return a.append("api-version",n),i&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},fb=(t,e,r)=>[hb(t,e),r],pb=(t,e,r="json")=>(n,o)=>t[r](...fb(e,n,o));class gb{get Version(){return on}constructor(e,r){this._client=e,this._method=r}get(e,...r){return X1(this._client,e,this._method)(...r)}query(e,...r){return pb(this._client,e,this._method)(...r)}}var on;(function(t){t.v1="1.0",t.v2="2.0"})(on||(on={}));const mb=(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)}`}}},vb=(t,e,r)=>{const n=mb(t,e),o=Object.assign({},{method:"Delete"},r);return[n,o]},yb=(t,e,r="json")=>(n,o)=>t[r](...vb(e,n,o)),_b=yb,wb=(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)}`}}},Eb=(t,e,r)=>[wb(t,e),r],Cb=(t,e,r="json")=>(n,o)=>t[r](...Eb(e,n,o)),Sb=Cb,Tb=(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)}`}}},bb=(t,e,r)=>{const n=Tb(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]},Ib=(t,e,r="json")=>(n,o)=>t[r](...bb(e,n,o)),Ab=Ib;class kb{constructor(e,r){this._client=e,this._method=r}get(e,...r){return Sb(this._client,e,this._method)(...r)}post(e,...r){return Ab(this._client,e,this._method)(...r)}delete(e,...r){return _b(this._client,e,this._method)(...r)}}const Rb=kb;var Bg=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Pb{constructor({createClient:e}){this._createClientFn=e}createBookmarksClient(e){return Bg(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return new Rb(r,e)})}createContextClient(e){return Bg(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return new gb(r,e)})}}var q0=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Nb="services",Ob=(t,e)=>r=>q0(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}`)}),xb={name:Nb,configure:()=>new Y1,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>q0(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=Ob(o,i)}if(!e.createClient)throw Error("missing configuration for creating API client");return new Pb(e)})},Mb=xb;class Ub extends nS{constructor(){super([uS,A0,ff,W1,Mb,F1,O1]),this.logger=new Dy("FrameworkConfigurator")}configureHttp(...e){this.addConfig(ES(...e))}configureHttpClient(...e){this.addConfig(h0(...e))}configureMsal(...e){this.addConfig(MT(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var Lb=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Db=(t,e)=>Lb(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 Hl={exports:{}},Fl={};/**
62
- * @license React
63
- * react-jsx-runtime.production.min.js
64
- *
65
- * Copyright (c) Facebook, Inc. and its affiliates.
66
- *
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE file in the root directory of this source tree.
69
- */var Hb=j.exports,Fb=Symbol.for("react.element"),$b=Symbol.for("react.fragment"),zb=Object.prototype.hasOwnProperty,jb=Hb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bb={key:!0,ref:!0,__self:!0,__source:!0};function K0(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)zb.call(e,n)&&!Bb.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:Fb,type:t,key:i,ref:a,props:o,_owner:jb.current}}Fl.Fragment=$b;Fl.jsx=K0;Fl.jsxs=K0;(function(t){t.exports=Fl})(Hl);const G0=Hl.exports.Fragment,W=Hl.exports.jsx,mo=Hl.exports.jsxs,V0=j.exports.createContext(null),qb=V0.Provider;var Kb=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(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Gb=t=>j.exports.lazy(()=>Kb(void 0,void 0,void 0,function*(){const e=new Ub;yield t(e);const r=yield Db(e);return{default:({children:n})=>W(qb,Object.assign({value:r},{children:n}))}})),Vb=()=>{let t=j.exports.useContext(V0);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},Wb=t=>{const e=j.exports.useMemo(()=>Gb(t.configure),[t.configure]);return W(j.exports.Suspense,Object.assign({fallback:t.fallback},{children:W(e,{children:t.children})}))};function sh(){return sh=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},sh.apply(this,arguments)}var Yb=typeof Symbol=="function"&&Symbol.for;const Qb=Yb?Symbol.for("mui.nested"):"__THEME_NESTED__";var Jb=ds.createContext(null);const W0=Jb;function Xb(){var t=ds.useContext(W0);return t}function Zb(t,e){if(typeof e=="function"){var r=e(t);return r}return sh({},t,e)}function eI(t){var e=t.children,r=t.theme,n=Xb(),o=ds.useMemo(function(){var i=n===null?r:Zb(n,r);return i!=null&&(i[Qb]=n!==null),i},[r,n]);return W(W0.Provider,{value:o,children:e})}const tI={jumbo__base:"88px",default__base:"48px",default__input:"56px"},rI={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)"}}},nI={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)"},oI={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)"}},iI={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:""}},aI={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"}},sI={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:tI,colors:rI,elevation:nI,interactions:oI,shape:iI,spacings:aI,typography:sI},cI=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=>`${cI(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 Y0 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 na=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new Y0(`${e}-${n}`,t[n])}),{}),Q0={infographic:na(Et.colors.infographic,"infographic"),interactive:na(Et.colors.interactive,"interactive"),logo:na(Et.colors.logo,"logo"),text:na(Et.colors.text,"text"),ui:na(Et.colors.ui,"ui")},lI=Object.values(Q0).reduce((t,e)=>t.concat(Y0.extractVariables(e)),[]);class $l extends fe{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:$l.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:fe.makeVariable(this.attributes.shadow)}}}const uI=t=>new $l(t,Et.elevation[t]),dI=Object.keys(Et.elevation),J0=dI.reduce((t,e)=>Object.assign(t,{[e]:uI(e)}),{}),hI=$l.extractVariables(J0);class X0 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 fI=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new X0(`${e}-${n}`,t[n])}),{}),Z0={comfortable:fI(Et.spacings.comfortable,"comfortable")},pI=Object.values(Z0).reduce((t,e)=>t.concat(X0.extractVariables(e)),[]);class gI 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 zo=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new gI(`${e}-${n}`,t[n])}),{}),e_={heading:zo(Et.typography.heading,"heading"),input:zo(Et.typography.input,"input"),navigation:zo(Et.typography.navigation,"navigation"),paragraph:zo(Et.typography.paragraph,"paragraph"),table:zo(Et.typography.table,"table"),ui:zo(Et.typography.ui,"ui")},qg={attribute:fe.makeCssVar("typography","base-color"),value:Et.colors.text.static_icons__default.rgba},mI=[...Object.values(e_).reduce((t,e)=>t.concat(fe.extractVariables(e)),[]),[qg.attribute,qg.value].join(":")],Ve={colors:Q0,elevation:J0,spacing:Z0,typography:e_};[...lI,...hI,...pI,...mI];const vI=(t,e)=>(window.customElements.define(t,e),e),yI=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(o){window.customElements.define(t,o)}}},zl=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?vI(t,e):yI(t,e)};/**
70
- * @license
71
- * Copyright 2019 Google LLC
72
- * SPDX-License-Identifier: BSD-3-Clause
73
- */const _c=window,If=_c.ShadowRoot&&(_c.ShadyCSS===void 0||_c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Af=Symbol(),Kg=new WeakMap;class t_{constructor(e,r,n){if(this._$cssResult$=!0,n!==Af)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(If&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Kg.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Kg.set(r,e))}return e}toString(){return this.cssText}}const tt=t=>new t_(typeof t=="string"?t:t+"",void 0,Af),mn=(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 t_(r,t,Af)},_I=(t,e)=>{If?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),o=_c.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},Gg=If?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return tt(r)})(t):t;/**
74
- * @license
75
- * Copyright 2017 Google LLC
76
- * SPDX-License-Identifier: BSD-3-Clause
77
- */var xu;const ml=window,Vg=ml.trustedTypes,wI=Vg?Vg.emptyScript:"",Wg=ml.reactiveElementPolyfillSupport,ch={toAttribute(t,e){switch(e){case Boolean:t=t?wI: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}},r_=(t,e)=>e!==t&&(e==e||t==t),Mu={attribute:!0,type:String,converter:ch,reflect:!1,hasChanged:r_};class Vo extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r: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=Mu){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)||Mu}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),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(Gg(o))}else e!==void 0&&r.push(Gg(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 _I(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=Mu){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:ch).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:ch;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||r_)(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){}}Vo.finalized=!0,Vo.elementProperties=new Map,Vo.elementStyles=[],Vo.shadowRootOptions={mode:"open"},Wg==null||Wg({ReactiveElement:Vo}),((xu=ml.reactiveElementVersions)!==null&&xu!==void 0?xu:ml.reactiveElementVersions=[]).push("1.4.2");/**
78
- * @license
79
- * Copyright 2017 Google LLC
80
- * SPDX-License-Identifier: BSD-3-Clause
81
- */var Uu;const vl=window,Oi=vl.trustedTypes,Yg=Oi?Oi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Rn=`lit$${(Math.random()+"").slice(9)}$`,n_="?"+Rn,EI=`<${n_}>`,xi=document,as=(t="")=>xi.createComment(t),ss=t=>t===null||typeof t!="object"&&typeof t!="function",o_=Array.isArray,CI=t=>o_(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",oa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qg=/-->/g,Jg=/>/g,Jn=RegExp(`>|[
82
- \f\r](?:([^\\s"'>=/]+)([
83
- \f\r]*=[
84
- \f\r]*(?:[^
85
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Xg=/'/g,Zg=/"/g,i_=/^(?:script|style|textarea|title)$/i,a_=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),s_=a_(1),kf=a_(2),Mi=Symbol.for("lit-noChange"),We=Symbol.for("lit-nothing"),em=new WeakMap,Ei=xi.createTreeWalker(xi,129,null,!1),SI=(t,e)=>{const r=t.length-1,n=[];let o,i=e===2?"<svg>":"",a=oa;for(let c=0;c<r;c++){const l=t[c];let u,h,d=-1,f=0;for(;f<l.length&&(a.lastIndex=f,h=a.exec(l),h!==null);)f=a.lastIndex,a===oa?h[1]==="!--"?a=Qg:h[1]!==void 0?a=Jg:h[2]!==void 0?(i_.test(h[2])&&(o=RegExp("</"+h[2],"g")),a=Jn):h[3]!==void 0&&(a=Jn):a===Jn?h[0]===">"?(a=o!=null?o:oa,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,u=h[1],a=h[3]===void 0?Jn:h[3]==='"'?Zg:Xg):a===Zg||a===Xg?a=Jn:a===Qg||a===Jg?a=oa:(a=Jn,o=void 0);const m=a===Jn&&t[c+1].startsWith("/>")?" ":"";i+=a===oa?l+EI:d>=0?(n.push(u),l.slice(0,d)+"$lit$"+l.slice(d)+Rn+m):l+Rn+(d===-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[Yg!==void 0?Yg.createHTML(s):s,n]};class cs{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]=SI(e,r);if(this.el=cs.createElement(l,n),Ei.currentNode=this.el.content,r===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(o=Ei.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes()){const h=[];for(const d of o.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(Rn)){const f=u[a++];if(h.push(d),f!==void 0){const m=o.getAttribute(f.toLowerCase()+"$lit$").split(Rn),v=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:v[2],strings:m,ctor:v[1]==="."?bI:v[1]==="?"?AI:v[1]==="@"?kI:jl})}else c.push({type:6,index:i})}for(const d of h)o.removeAttribute(d)}if(i_.test(o.tagName)){const h=o.textContent.split(Rn),d=h.length-1;if(d>0){o.textContent=Oi?Oi.emptyScript:"";for(let f=0;f<d;f++)o.append(h[f],as()),Ei.nextNode(),c.push({type:2,index:++i});o.append(h[d],as())}}}else if(o.nodeType===8)if(o.data===n_)c.push({type:2,index:i});else{let h=-1;for(;(h=o.data.indexOf(Rn,h+1))!==-1;)c.push({type:7,index:i}),h+=Rn.length-1}i++}}static createElement(e,r){const n=xi.createElement("template");return n.innerHTML=e,n}}function Ui(t,e,r=t,n){var o,i,a,s;if(e===Mi)return e;let c=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const l=ss(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=Ui(t,c._$AS(t,e.values),c,n)),e}class TI{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:xi).importNode(n,!0);Ei.currentNode=i;let a=Ei.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new vs(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new RI(a,this,e)),this.u.push(u),l=o[++c]}s!==(l==null?void 0:l.index)&&(a=Ei.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 vs{constructor(e,r,n,o){var i;this.type=2,this._$AH=We,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=Ui(this,e,r),ss(e)?e===We||e==null||e===""?(this._$AH!==We&&this._$AR(),this._$AH=We):e!==this._$AH&&e!==Mi&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):CI(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!==We&&ss(this._$AH)?this._$AA.nextSibling.data=e:this.T(xi.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=cs.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 TI(i,this),s=a.v(this.options);a.p(n),this.T(s),this._$AH=a}}_$AC(e){let r=em.get(e.strings);return r===void 0&&em.set(e.strings,r=new cs(e)),r}k(e){o_(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 vs(this.O(as()),this.O(as()),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 jl{constructor(e,r,n,o,i){this.type=1,this._$AH=We,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=We}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=Ui(this,e,r,0),a=!ss(e)||e!==this._$AH&&e!==Mi,a&&(this._$AH=e);else{const s=e;let c,l;for(e=i[0],c=0;c<i.length-1;c++)l=Ui(this,s[n+c],r,c),l===Mi&&(l=this._$AH[c]),a||(a=!ss(l)||l!==this._$AH[c]),l===We?e=We:e!==We&&(e+=(l!=null?l:"")+i[c+1]),this._$AH[c]=l}a&&!o&&this.j(e)}j(e){e===We?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class bI extends jl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===We?void 0:e}}const II=Oi?Oi.emptyScript:"";class AI extends jl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==We?this.element.setAttribute(this.name,II):this.element.removeAttribute(this.name)}}class kI extends jl{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){var n;if((e=(n=Ui(this,e,r,0))!==null&&n!==void 0?n:We)===Mi)return;const o=this._$AH,i=e===We&&o!==We||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==We&&(o===We||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 RI{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){Ui(this,e)}}const tm=vl.litHtmlPolyfillSupport;tm==null||tm(cs,vs),((Uu=vl.litHtmlVersions)!==null&&Uu!==void 0?Uu:vl.litHtmlVersions=[]).push("2.4.0");const PI=(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 vs(e.insertBefore(as(),s),s,void 0,r!=null?r:{})}return a._$AI(t),a};/**
86
- * @license
87
- * Copyright 2017 Google LLC
88
- * SPDX-License-Identifier: BSD-3-Clause
89
- */var Lu,Du;class $n extends Vo{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=PI(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 Mi}}$n.finalized=!0,$n._$litElement$=!0,(Lu=globalThis.litElementHydrateSupport)===null||Lu===void 0||Lu.call(globalThis,{LitElement:$n});const rm=globalThis.litElementPolyfillSupport;rm==null||rm({LitElement:$n});((Du=globalThis.litElementVersions)!==null&&Du!==void 0?Du:globalThis.litElementVersions=[]).push("3.2.2");const NI=mn`
90
- ::slotted(*) {
91
- --fwc-ripple-color: #000;
92
- --fwc-ripple-hover-opacity: 0.1;
93
- --fwc-theme-background: #fff;
94
- --fwc-theme-primary: ${tt(Ve.colors.interactive.primary__resting.getVariable("color"))};
95
- --fwc-theme-error: ${tt(Ve.colors.interactive.danger__text.getVariable("color"))};
96
- --fwc-theme-on-primary: ${tt(Ve.colors.text.static_icons__primary_white.getVariable("color"))};
97
- --fwc-theme-on-secondary: ${tt(Ve.colors.text.static_icons__primary_white.getVariable("color"))};
98
- --fwc-theme-on-surface: ${tt(Ve.colors.text.static_icons__secondary.getVariable("color"))};
99
- --fwc-theme-secondary: ${tt(Ve.colors.interactive.primary__resting.getVariable("color"))};
100
- --fwc-theme-surface: ${tt(Ve.colors.ui.background__light.getVariable("color"))};
101
- --fwc-typography-font-family: Equinor;
102
-
103
- --mdc-ripple-color: var(--fwc-ripple-color);
104
- --mdc-ripple-hover-opacity: var(--fwc-ripple-hover-opacity);
105
- --mdc-theme-background: var(--fwc-theme-background);
106
- --mdc-theme-primary: var(--fwc-theme-primary);
107
- --mdc-theme-error: var(--fwc-theme-error);
108
- --mdc-theme-on-primary: var(--fwc-theme-on-primary);
109
- --mdc-theme-on-secondary: var(--fwc-theme-on-secondary);
110
- --mdc-theme-on-surface: var(--fwc-theme-on-surface);
111
- --mdc-theme-secondary: var(--fwc-theme-secondary);
112
- --mdc-theme-surface: var(--fwc-theme-surface);
113
- --mdc-typography-font-family: var(--fwc-typography-font-family);
114
- }
115
- `,nm="FUSION_EQUINOR_FONT";class c_ extends $n{get FontLink(){return document.head.querySelector(`link#${nm}`)}connectedCallback(){super.connectedCallback(),!this.FontLink&&this.injectFont()}injectFont(){const e=document.createElement("link");e.id=nm,e.href="https://eds-static.equinor.com/font/equinor-font.css",e.rel="stylesheet",document.head.append(e)}render(){return s_`<slot></slot>`}}c_.styles=[NI];const OI="fwc-theme";let om=class extends c_{};om=Hr([zl(OI)],om);const xI=t=>{var n;const{children:e,...r}=t;return W(eI,{...r,theme:(n=r.theme)!=null?n:Ve,children:W("fwc-theme",{children:e})})},MI=new Set(["children","localName","ref","style","className"]),UI=t=>{const e=new Set;for(const r in t.prototype)r in HTMLElement.prototype||(MI.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},LI=(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])},DI=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}},HI=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r]),FI={},$I=(t,e,r={})=>{const n=j.exports.useRef({}),o=j.exports.useRef({}),i=j.exports.useMemo(()=>{if(!e)return FI;const a=Object.keys(r).filter(c=>c in e).reduce((c,l)=>Object.assign(c,{[l]:e[l]}),{});return!HI(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(h=>h in i);for(const h of s)if(!(h in a)){const d=f=>{const m=o.current[h];m&&m(DI(f))};console.debug(`adding event listener [${h}]`,t.current),(l=t.current)==null||l.addEventListener(r[h],d),Object.assign(a,{[h]:d})}const c=Object.keys(a).filter(h=>!(h in i));for(const h of c){console.debug(`removing event listener [${h}]`,t.current);const d=r[h],f=a[h];d&&(f&&((u=t.current)==null||u.removeEventListener(d,f)),delete a[h])}n.current=a,o.current=i},[r,t,o,n,i])},zI=(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},jI=t=>{switch(t){case"className":return"class"}return t},BI=["string","number","boolean","bigint"],Rf=(t,e,r={})=>{const{events:n={},functions:o=new Set,displayName:i=t.name}=r,a=UI(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 h=zI(u);LI(h,l,a),$I(h,l,n);const d=j.exports.useMemo(()=>{const f=Object.entries(l||{}),m=f.filter(([E])=>!s.has(E)),v=h.current?[]:f.filter(([E])=>s.has(E)).filter(([E,g])=>BI.includes(typeof g)).filter(([E,g])=>!!g);return[...m,...v].map(([E,g])=>[jI(E),g]).reduce((E,[g,p])=>Object.assign(E,{[g]:p}),{ref:h})},[h,l]);return j.exports.createElement(e,d)});return c.displayName=i,c};/**
116
- * @license
117
- * Copyright 2017 Google LLC
118
- * SPDX-License-Identifier: BSD-3-Clause
119
- */const qI=(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 ji(t){return(e,r)=>r!==void 0?((n,o,i)=>{o.constructor.createProperty(i,n)})(t,e,r):qI(t,e)}/**
120
- * @license
121
- * Copyright 2021 Google LLC
122
- * SPDX-License-Identifier: BSD-3-Clause
123
- */var Hu;((Hu=window.HTMLSlotElement)===null||Hu===void 0?void 0:Hu.prototype.assignedElements)!=null;const KI=mn`
124
- :host {
125
- display: flex;
126
- justify-content: center;
127
- color: var(--fwc-star-progress-color, ${tt(Ve.colors.logo.fill_positive.getVariable("color"))});
128
- }
129
- svg {
130
- fill: currentColor;
131
- }
132
- .container {
133
- display: inline-flex;
134
- flex-flow: column;
135
- align-items: center;
136
- gap: var(--fwc-star-progress-spacing, ${tt(Ve.spacing.comfortable.medium.getVariable("padding"))});
137
- }
138
- .title {
139
- ${tt(Ve.typography.heading.h2.css)};
140
- font-size: var(--fwc-star-progress-header-size, ${tt(Ve.typography.heading.h2.getVariable("fontSize"))});
141
- }
142
- `,GI=mn`
143
- svg {
144
- height: calc(var(--fwc-star-progress-size) * 1px);
145
- width: calc(var(--fwc-star-progress-size) / 1.2px);
146
- }
147
- .graphics path {
148
- animation: indicator_animation 1.3s linear infinite;
149
- }
150
- .graphics path:nth-child(2) {
151
- animation-delay: 0.3s;
152
- }
153
- .graphics path:nth-child(3) {
154
- animation-delay: 0.4s;
155
- }
156
- .graphics path:nth-child(4) {
157
- animation-delay: 0.6s;
158
- }
159
- .graphics path:nth-child(5) {
160
- animation-delay: 0.8s;
161
- }
162
- .graphics path:nth-child(6) {
163
- animation-delay: 1s;
164
- }
165
-
166
- @keyframes indicator_animation {
167
- 0% {
168
- opacity: 1;
169
- }
170
- 20% {
171
- opacity: 0.8;
172
- }
173
- 40% {
174
- opacity: 0.6;
175
- }
176
- 60% {
177
- opacity: 0.4;
178
- }
179
- 80% {
180
- opacity: 0.2;
181
- }
182
- 100% {
183
- opacity: 0.05;
184
- }
185
- }
186
- `,VI=kf`
187
- <svg
188
- role="progressbar"
189
- viewBox="0 0 40 48"
190
- fill="none"
191
- xmlns="http://www.w3.org/2000/svg"
192
- preserveAspectRatio="xMidYMid meet"
193
- >
194
- <g class="graphics">
195
- <path
196
- d="M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"
197
- />
198
- <path
199
- d="M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"
200
- />
201
- <path
202
- d="M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"
203
- />
204
- <path
205
- d="M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"
206
- />
207
- <path
208
- d="M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"
209
- />
210
- <path
211
- d="M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"
212
- />
213
- </g>
214
- </svg>
215
- `;class ys extends $n{constructor(){super(...arguments),this.size=200}render(){const{size:e=200,text:r}=this;return s_`
216
- <div class="container" style="--fwc-star-progress-size: ${e};">
217
- ${VI}
218
- <header class="title">
219
- <slot>
220
- <span>${r}</span>
221
- </slot>
222
- </header
223
- </div>
224
- `}}Hr([ji({type:Number,reflect:!0})],ys.prototype,"size",void 0);Hr([ji({type:String,reflect:!1})],ys.prototype,"text",void 0);ys.styles=[KI,GI];const l_="fwc-star-progress";let im=class extends ys{};im=Hr([zl(l_)],im);const WI=mn`
225
- :host {
226
- display: flex;
227
- justify-content: center;
228
- }
229
- :host([color='primary']) {
230
- --fwc-dots-progress-color: ${tt(Ve.colors.infographic.primary__moss_green_100.getVariable("color"))};
231
- }
232
- :host([color='tertiary']) {
233
- --fwc-dots-progress-color: ${tt(Ve.colors.interactive.danger__resting.getVariable("color"))};
234
- }
235
- :host([color='neutral']) {
236
- --fwc-dots-progress-color: ${tt(Ve.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
237
- }
238
- `,YI=mn`
239
- :host([size='small']) {
240
- --fwc-dots-progress-size: 32px;
241
- }
242
- :host([size='medium']) {
243
- --fwc-dots-progress-size: 48px;
244
- }
245
- :host([size='large']) {
246
- --fwc-dots-progress-size: 64px;
247
- }
248
- `,QI=mn`
249
- svg {
250
- fill: var(--fwc-dots-progress-color, currentColor);
251
- height: var(calc(--fwc-dots-progress-size / 4), calc(1.2em / 4));
252
- width: var(--fwc-dots-progress-size, 1.2em);
253
- }
254
-
255
- circle:nth-child(1) {
256
- animation: opacity 1s ease infinite;
257
- }
258
- circle:nth-child(2) {
259
- animation: opacity 1s ease 0.2s infinite;
260
- }
261
- circle:nth-child(3) {
262
- animation: opacity 1s ease 0.4s infinite;
263
- }
264
-
265
- @keyframes opacity {
266
- 0% {
267
- opacity: 1;
268
- }
269
- 100% {
270
- opacity: 0.5;
271
- }
272
- }
273
- `,JI=[WI,YI,QI];var am;(function(t){t.Small="small",t.Medium="medium",t.Large="large"})(am||(am={}));class _s extends $n{render(){return kf`
274
- <svg
275
- role="progressbar"
276
- viewBox="0 0 16 4"
277
- preserveAspectRatio="xMidYMid meet"
278
- >
279
- <circle cx="2" cy="2" r="2" />
280
- <circle cx="8" cy="2" r="2" />
281
- <circle cx="14" cy="2" r="2" />
282
- </svg>
283
- `}}Hr([ji({type:String,reflect:!0})],_s.prototype,"size",void 0);Hr([ji({type:String,reflect:!0})],_s.prototype,"color",void 0);_s.styles=[JI];const u_="fwc-dots-progress";let sm=class extends _s{};sm=Hr([zl(u_)],sm);const XI=mn`
284
- :host {
285
- display: inline-flex;
286
- justify-content: center;
287
- }
288
-
289
- :host([color='primary']) {
290
- --fwc-circular-progress-color: ${tt(Ve.colors.infographic.primary__moss_green_100.getVariable("color"))};
291
- }
292
-
293
- :host([color='neutral']) {
294
- --fwc-circular-progress-color: ${tt(Ve.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
295
- }
296
- `,ZI=mn`
297
- :host([size='x-small']) {
298
- --fwc-circular-progress-size: 16px;
299
- }
300
- :host([size='small']) {
301
- --fwc-circular-progress-size: 24px;
302
- }
303
- :host([size='medium']) {
304
- --fwc-circular-progress-size: 32px;
305
- }
306
- :host([size='large']) {
307
- --fwc-circular-progress-size: 40px;
308
- }
309
- :host([size='x-large']) {
310
- --fwc-circular-progress-size: 48px;
311
- }
312
- `,eA=mn`
313
- svg {
314
- height: var(--fwc-circular-progress-size, 1.2em);
315
- width: var(--fwc-circular-progress-size, 1.2em);
316
- stroke: var(--fwc-circular-progress-color, currentColor);
317
- }
318
-
319
- .track {
320
- filter: opacity(13%);
321
- }
322
-
323
- .progress {
324
- transform-origin: center;
325
- animation: spin 1.3s linear infinite;
326
- }
327
-
328
- @keyframes spin {
329
- 0% {
330
- -webkit-transform: rotate(0deg);
331
- transform: rotate(0deg);
332
- }
333
- 100% {
334
- -webkit-transform: rotate(360deg);
335
- transform: rotate(360deg);
336
- }
337
- }
338
- `,tA=[XI,ZI,eA];var cm;(function(t){t.XSmall="x-small",t.Small="small",t.Medium="medium",t.Large="large",t.XLarge="x-large"})(cm||(cm={}));class ws extends $n{render(){return kf`
339
- <svg
340
- viewBox="0 0 48 48"
341
- role="progressbar"
342
- preserveAspectRatio="xMidYMid meet"
343
- >
344
- <circle
345
- cx="50%"
346
- cy="50%"
347
- r="${(48-4)/2}"
348
- fill="none"
349
- stroke-width="${4}"
350
- class="track">
351
- </circle>
352
- <circle
353
- cx="50%"
354
- cy="50%"
355
- r="${(48-4)/2}"
356
- fill="none"
357
- stroke-width="${4}"
358
- stroke-linecap="round"
359
- stroke-dasharray="48"
360
- class="progress">
361
- </circle>
362
- </svg>
363
- `}}Hr([ji({type:String,reflect:!0})],ws.prototype,"size",void 0);Hr([ji({type:String,reflect:!0})],ws.prototype,"color",void 0);ws.styles=tA;const d_="fwc-circular-progress";let lm=class extends ws{};lm=Hr([zl(d_)],lm);const h_=Rf(ys,l_);Rf(ws,d_);Rf(_s,u_);const rA=async t=>{t.logger.level=4,t.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.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 I0(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
- * @remix-run/router v1.0.3
365
- *
366
- * Copyright (c) Remix Software Inc.
367
- *
368
- * This source code is licensed under the MIT license found in the
369
- * LICENSE.md file in the root directory of this source tree.
370
- *
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 ze;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ze||(ze={}));const um="popstate";function nA(t){t===void 0&&(t={});function e(n,o){let{pathname:i,search:a,hash:s}=n.location;return vo("",{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:fn(o)}return iA(e,r,null,t)}function oA(){return Math.random().toString(36).substr(2,8)}function dm(t){return{usr:t.state,key:t.key}}function vo(t,e,r,n){return r===void 0&&(r=null),Ie({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?vn(e):e,{state:r,key:e&&e.key||n||oA()})}function fn(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 vn(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 ls(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:"unknown://unknown",r=typeof t=="string"?t:fn(t);return new URL(r,e)}function iA(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=ze.Pop,c=null;function l(){s=ze.Pop,c&&c({action:s,location:d.location})}function u(f,m){s=ze.Push;let v=vo(d.location,f,m);r&&r(v,f);let E=dm(v),g=d.createHref(v);try{a.pushState(E,"",g)}catch{o.location.assign(g)}i&&c&&c({action:s,location:d.location})}function h(f,m){s=ze.Replace;let v=vo(d.location,f,m);r&&r(v,f);let E=dm(v),g=d.createHref(v);a.replaceState(E,"",g),i&&c&&c({action:s,location:d.location})}let d={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(um,l),c=f,()=>{o.removeEventListener(um,l),c=null}},createHref(f){return e(o,f)},encodeLocation(f){let m=ls(fn(f));return Ie({},f,{pathname:m.pathname,search:m.search,hash:m.hash})},push:u,replace:h,go(f){return a.go(f)}};return d}var et;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(et||(et={}));function aA(t){return t.index===!0}function f_(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),aA(n)?Ie({},n,{id:a}):Ie({},n,{id:a,children:n.children?f_(n.children,i,r):void 0})})}function Ea(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?vn(e):e,o=g_(n.pathname||"/",r);if(o==null)return null;let i=p_(t);sA(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=mA(i[s],_A(o));return a}function p_(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=yo([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+'".')),p_(o.children,e,c,s)),!(o.path==null&&!o.index)&&e.push({path:s,score:pA(s,o.index),routesMeta:c})}),e}function sA(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:gA(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const cA=/^:\w+$/,lA=3,uA=2,dA=1,hA=10,fA=-2,hm=t=>t==="*";function pA(t,e){let r=t.split("/"),n=r.length;return r.some(hm)&&(n+=fA),e&&(n+=uA),r.filter(o=>!hm(o)).reduce((o,i)=>o+(cA.test(i)?lA:i===""?dA:hA),n)}function gA(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 mA(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=vA({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!u)return null;Object.assign(n,u.params);let h=s.route;i.push({params:n,pathname:yo([o,u.pathname]),pathnameBase:TA(yo([o,u.pathnameBase])),route:h}),u.pathnameBase!=="/"&&(o=yo([o,u.pathnameBase]))}return i}function vA(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=yA(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,h)=>{if(u==="*"){let d=s[h]||"";a=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return l[u]=wA(s[h]||"",u),l},{}),pathname:i,pathnameBase:a,pattern:t}}function yA(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Pf(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 _A(t){try{return decodeURI(t)}catch(e){return Pf(!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 wA(t,e){try{return decodeURIComponent(t)}catch(r){return Pf(!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 g_(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 Pf(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function EA(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?vn(t):t;return{pathname:r?r.startsWith("/")?r:CA(r,e):e,search:bA(n),hash:IA(o)}}function CA(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 m_(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function SA(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=vn(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 h=e.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),h-=1;o.pathname=d.join("/")}s=h>=0?e[h]:"/"}let c=EA(o,s),l=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const yo=t=>t.join("/").replace(/\/\/+/g,"/"),TA=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),bA=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,IA=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class fm extends Error{}class AA{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 fm("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 fm)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]:RA(o)})},{})}}function kA(t){return t instanceof Promise&&t._tracked===!0}function RA(t){if(!kA(t))return t;if(t._error)throw t._error;return t._data}class Bi{constructor(e,r,n){this.status=e,this.statusText=r||"",this.data=n}}function v_(t){return t instanceof Bi}const $u={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},PA={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},NA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OA=!NA;function xA(t){re(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=f_(t.routes),r=null,n=new Set,o=null,i=null,a=null,s=!1,c=Ea(e,t.history.location,t.basename),l=null;if(c==null){let{matches:C,route:R,error:U}=ym(e);c=C,l={[R.id]:U}}let u=!c.some(C=>C.route.loader)||t.hydrationData!=null,h,d={historyAction:t.history.action,location:t.history.location,matches:c,initialized:u,navigation:$u,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=ze.Pop,m=!1,v,E=!1,g=!1,p=[],y=[],w=new Map,b=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)}),d.initialized||L(ze.Pop,d.location),h}function Gn(){r&&r(),n.clear(),v&&v.abort(),d.fetchers.forEach((C,R)=>Kl(R))}function Vn(C){return n.add(C),()=>n.delete(C)}function at(C){d=Ie({},d,C),n.forEach(R=>R(d))}function Wn(C,R){var U;let V=d.actionData!=null&&d.navigation.formMethod!=null&&d.navigation.state==="loading"&&((U=d.navigation.formAction)==null?void 0:U.split("?")[0])===C.pathname,Z=R.loaderData?{loaderData:ju(d.loaderData,R.loaderData,R.matches||[])}:{};at(Ie({},V?{}:{actionData:null},R,Z,{historyAction:f,location:C,initialized:!0,navigation:$u,revalidation:"idle",restoreScrollPosition:d.navigation.formData?!1:Uf(C,R.matches||d.matches),preventScrollReset:m})),E||f===ze.Pop||(f===ze.Push?t.history.push(C,C.state):f===ze.Replace&&t.history.replace(C,C.state)),f=ze.Pop,m=!1,E=!1,g=!1,p=[],y=[]}async function qi(C,R){if(typeof C=="number"){t.history.go(C);return}let{path:U,submission:V,error:Z}=pm(C,R),ie=vo(d.location,U,R&&R.state);ie=t.history.encodeLocation(ie);let ce=(R&&R.replace)===!0||V!=null?ze.Replace:ze.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 Ki(){if(yn(),at({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){L(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}L(f||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function L(C,R,U){v&&v.abort(),v=null,f=C,E=(U&&U.startUninterruptedRevalidation)===!0,R_(d.location,d.matches),m=(U&&U.preventScrollReset)===!0;let V=U&&U.overrideNavigation,Z=Ea(e,R,t.basename);if(!Z){let{matches:st,route:Mo,error:zr}=ym(e);Gl(),Wn(R,{matches:st,loaderData:{},errors:{[Mo.id]:zr}});return}if(FA(d.location,R)){Wn(R,{matches:Z});return}v=new AbortController;let ie=aa(R,v.signal,U&&U.submission),ce,he;if(U&&U.pendingError)he={[hi(Z).route.id]:U.pendingError};else if(U&&U.submission){let st=await J(ie,R,U.submission,Z,{replace:U.replace});if(st.shortCircuited)return;ce=st.pendingActionData,he=st.pendingActionError,V=Ie({state:"loading",location:R},U.submission)}let{shortCircuited:pe,loaderData:ge,errors:Te}=await X(ie,R,Z,V,U&&U.submission,U&&U.replace,ce,he);pe||(v=null,Wn(R,{matches:Z,loaderData:ge,errors:Te}))}async function J(C,R,U,V,Z){yn();let ie=Ie({state:"submitting",location:R},U);at({navigation:ie});let ce,he=Sm(V,R);if(!he.route.action)ce=_m(R);else if(ce=await ia("action",C,he,V,h.basename),C.signal.aborted)return{shortCircuited:!0};if(Ci(ce)){let pe=Ie({state:"loading",location:vo(d.location,ce.location)},U);return await $r(ce,pe,Z&&Z.replace),{shortCircuited:!0}}if(Ua(ce)){let pe=hi(V,he.route.id);return(Z&&Z.replace)!==!0&&(f=ze.Push),{pendingActionError:{[pe.route.id]:ce.error}}}if(uo(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,Te]=gm(d,U,Z,R,g,p,y,ce,he,se);if(Gl(ct=>!(U&&U.some(At=>At.route.id===ct))||ge&&ge.some(At=>At.route.id===ct)),ge.length===0&&Te.length===0)return Wn(R,{matches:U,loaderData:ju(d.loaderData,{},U),errors:he||null,actionData:ce||null}),{shortCircuited:!0};E||(Te.forEach(ct=>{let[At]=ct,Lo=d.fetchers.get(At),Gi={state:"loading",data:Lo&&Lo.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(At,Gi)}),at(Ie({navigation:pe,actionData:ce||d.actionData||null},Te.length>0?{fetchers:new Map(d.fetchers)}:{}))),P=++b,Te.forEach(ct=>{let[At]=ct;return w.set(At,v)});let{results:st,loaderResults:Mo,fetcherResults:zr}=await Er(d.matches,U,ge,Te,C);if(C.signal.aborted)return{shortCircuited:!0};Te.forEach(ct=>{let[At]=ct;return w.delete(At)});let Yn=wm(st);if(Yn){let ct=zu(d,Yn);return await $r(Yn,ct,ie),{shortCircuited:!0}}let{loaderData:Vl,errors:Ss}=vm(d,U,ge,Mo,he,Te,zr,B);B.forEach((ct,At)=>{ct.subscribe(Lo=>{(Lo||ct.done)&&B.delete(At)})}),A_();let Uo=Mf(P);return Ie({loaderData:Vl,errors:Ss},Uo||Te.length>0?{fetchers:new Map(d.fetchers)}:{})}function Se(C){return d.fetchers.get(C)||PA}function Le(C,R,U,V){if(OA)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)&&Cs(C);let Z=Ea(e,U,t.basename);if(!Z){ql(C,R,new Bi(404,"Not Found",null));return}let{path:ie,submission:ce}=pm(U,V,!0),he=Sm(Z,ie);if(ce){xo(C,R,ie,he,Z,ce);return}se.set(C,[ie,he,Z]),Fr(C,R,ie,he,Z)}async function xo(C,R,U,V,Z,ie){if(yn(),se.delete(C),!V.route.action){let{error:ir}=_m(U);ql(C,R,ir);return}let ce=d.fetchers.get(C),he=Ie({state:"submitting"},ie,{data:ce&&ce.data});d.fetchers.set(C,he),at({fetchers:new Map(d.fetchers)});let pe=new AbortController,ge=aa(U,pe.signal,ie);w.set(C,pe);let Te=await ia("action",ge,V,Z,h.basename);if(ge.signal.aborted){w.get(C)===pe&&w.delete(C);return}if(Ci(Te)){w.delete(C),O.add(C);let ir=Ie({state:"loading"},ie,{data:void 0});d.fetchers.set(C,ir),at({fetchers:new Map(d.fetchers)});let jr=Ie({state:"loading",location:vo(d.location,Te.location)},ie);await $r(Te,jr);return}if(Ua(Te)){ql(C,R,Te.error);return}uo(Te)&&re(!1,"defer() is not supported in actions");let st=d.navigation.location||d.location,Mo=aa(st,pe.signal),zr=d.navigation.state!=="idle"?Ea(e,d.navigation.location,t.basename):d.matches;re(zr,"Didn't find any matches after fetcher action");let Yn=++b;M.set(C,Yn);let Vl=Ie({state:"loading",data:Te.data},ie);d.fetchers.set(C,Vl);let[Ss,Uo]=gm(d,zr,ie,st,g,p,y,{[V.route.id]:Te.data},void 0,se);Uo.filter(ir=>{let[jr]=ir;return jr!==C}).forEach(ir=>{let[jr]=ir,Hf=d.fetchers.get(jr),O_={state:"loading",data:Hf&&Hf.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(jr,O_),w.set(jr,pe)}),at({fetchers:new Map(d.fetchers)});let{results:ct,loaderResults:At,fetcherResults:Lo}=await Er(d.matches,zr,Ss,Uo,Mo);if(pe.signal.aborted)return;M.delete(C),w.delete(C),Uo.forEach(ir=>{let[jr]=ir;return w.delete(jr)});let Gi=wm(ct);if(Gi){let ir=zu(d,Gi);await $r(Gi,ir);return}let{loaderData:Lf,errors:Df}=vm(d,d.matches,Ss,At,void 0,Uo,Lo,B),P_={state:"idle",data:Te.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(C,P_);let N_=Mf(Yn);d.navigation.state==="loading"&&Yn>P?(re(f,"Expected pending action"),v&&v.abort(),Wn(d.navigation.location,{matches:zr,loaderData:Lf,errors:Df,fetchers:new Map(d.fetchers)})):(at(Ie({errors:Df,loaderData:ju(d.loaderData,Lf,zr)},N_?{fetchers:new Map(d.fetchers)}:{})),g=!1)}async function Fr(C,R,U,V,Z){let ie=d.fetchers.get(C),ce={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:ie&&ie.data};d.fetchers.set(C,ce),at({fetchers:new Map(d.fetchers)});let he=new AbortController,pe=aa(U,he.signal);w.set(C,he);let ge=await ia("loader",pe,V,Z,h.basename);if(uo(ge)&&(ge=await E_(ge,pe.signal,!0)||ge),w.get(C)===he&&w.delete(C),pe.signal.aborted)return;if(Ci(ge)){let st=zu(d,ge);await $r(ge,st);return}if(Ua(ge)){let st=hi(d.matches,R);d.fetchers.delete(C),at({fetchers:new Map(d.fetchers),errors:{[st.route.id]:ge.error}});return}re(!uo(ge),"Unhandled fetcher deferred data");let Te={state:"idle",data:ge.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(C,Te),at({fetchers:new Map(d.fetchers)})}async function $r(C,R,U){C.revalidate&&(g=!0),re(R.location,"Expected a location on the redirect navigation"),v=null;let V=U===!0?ze.Replace:ze.Push;await L(V,R.location,{overrideNavigation:R})}async function Er(C,R,U,V,Z){let ie=await Promise.all([...U.map(pe=>ia("loader",Z,pe,R,h.basename)),...V.map(pe=>{let[,ge,Te,st]=pe;return ia("loader",aa(ge,Z.signal),Te,st,h.basename)})]),ce=ie.slice(0,U.length),he=ie.slice(U.length);return await Promise.all([Em(C,U,ce,Z.signal,!1,d.loaderData),Em(C,V.map(pe=>{let[,,ge]=pe;return ge}),he,Z.signal,!0)]),{results:ie,loaderResults:ce,fetcherResults:he}}function yn(){g=!0,p.push(...Gl()),se.forEach((C,R)=>{w.has(R)&&(y.push(R),Cs(R))})}function ql(C,R,U){let V=hi(d.matches,R);Kl(C),at({errors:{[V.route.id]:U},fetchers:new Map(d.fetchers)})}function Kl(C){w.has(C)&&Cs(C),se.delete(C),M.delete(C),O.delete(C),d.fetchers.delete(C)}function Cs(C){let R=w.get(C);re(R,"Expected fetch controller: "+C),R.abort(),w.delete(C)}function xf(C){for(let R of C){let V={state:"idle",data:Se(R).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(R,V)}}function A_(){let C=[];for(let R of O){let U=d.fetchers.get(R);re(U,"Expected fetcher: "+R),U.state==="loading"&&(O.delete(R),C.push(R))}xf(C)}function Mf(C){let R=[];for(let[U,V]of M)if(V<C){let Z=d.fetchers.get(U);re(Z,"Expected fetcher: "+U),Z.state==="loading"&&(Cs(U),M.delete(U),R.push(U))}return xf(R),R.length>0}function Gl(C){let R=[];return B.forEach((U,V)=>{(!C||C(V))&&(U.cancel(),R.push(V),B.delete(V))}),R}function k_(C,R,U){if(o=C,a=R,i=U||(V=>V.key),!s&&d.navigation===$u){s=!0;let V=Uf(d.location,d.matches);V!=null&&at({restoreScrollPosition:V})}return()=>{o=null,a=null,i=null}}function R_(C,R){if(o&&i&&a){let U=R.map(Z=>Cm(Z,d.loaderData)),V=i(C,U)||C.key;o[V]=a()}}function Uf(C,R){if(o&&i&&a){let U=R.map(ie=>Cm(ie,d.loaderData)),V=i(C,U)||C.key,Z=o[V];if(typeof Z=="number")return Z}return null}return h={get basename(){return t.basename},get state(){return d},get routes(){return e},initialize:_t,subscribe:Vn,enableScrollRestoration:k_,navigate:qi,fetch:Le,revalidate:Ki,createHref:C=>t.history.createHref(C),getFetcher:Se,deleteFetcher:Kl,dispose:Gn,_internalFetchControllers:w,_internalActiveDeferreds:B},h}const MA=new Set(["POST","PUT","PATCH","DELETE"]);[...MA];function pm(t,e,r){r===void 0&&(r=!1);let n=typeof t=="string"?t:fn(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:w_(n),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData}};if(!e.formData)return{path:n};let o=vn(n);try{let i=__(e.formData);r&&o.search&&C_(o.search)&&i.append("index",""),o.search="?"+i}catch{return{path:n,error:new Bi(400,"Bad Request","Cannot submit binary form data using GET")}}return{path:fn(o)}}function zu(t,e){let{formMethod:r,formAction:n,formEncType:o,formData:i}=t.navigation;return{state:"loading",location:vo(t.location,e.location),formMethod:r||void 0,formAction:n||void 0,formEncType:o||void 0,formData:i||void 0}}function UA(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 gm(t,e,r,n,o,i,a,s,c,l){let u=c?Object.values(c)[0]:s?Object.values(s)[0]:null,h=c?Object.keys(c)[0]:void 0,f=UA(e,h).filter((v,E)=>v.route.loader!=null&&(LA(t.loaderData,t.matches[E],v)||i.some(g=>g===v.route.id)||mm(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&&mm(g,p,r,g,p,o,u)&&m.push([E,g,p,y])}),[f,m]}function LA(t,e,r){let n=!e||r.route.id!==e.route.id,o=t[r.route.id]===void 0;return n||o}function y_(t,e){let r=t.route.path;return t.pathname!==e.pathname||r&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function mm(t,e,r,n,o,i,a){let s=ls(t),c=e.params,l=ls(n),u=o.params,h=y_(e,o)||s.toString()===l.toString()||s.search!==l.search||i;if(o.route.shouldRevalidate){let d=o.route.shouldRevalidate(Ie({currentUrl:s,currentParams:c,nextUrl:l,nextParams:u},r,{actionResult:a,defaultShouldRevalidate:h}));if(typeof d=="boolean")return d}return h}async function ia(t,e,r,n,o,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);let s,c,l,u=new Promise((d,f)=>l=f),h=()=>l();e.signal.addEventListener("abort",h);try{let d=r.route[t];re(d,"Could not find the "+t+' to run on the "'+r.route.id+'" route'),c=await Promise.race([d({request:e,params:r.params}),u])}catch(d){s=et.error,c=d}finally{e.signal.removeEventListener("abort",h)}if(c instanceof Response){let d=c.status;if(d>=300&&d<=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=m_(E).map(w=>w.pathnameBase),p=ls(e.url).pathname,y=SA(v,g,p);if(re(fn(y),"Unable to resolve redirect location: "+c.headers.get("Location")),o){let w=y.pathname;y.pathname=w==="/"?o:yo([o,w])}if(v=fn(y),i)throw c.headers.set("Location",v),c;return{type:et.redirect,status:d,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:s||et.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===et.error?{type:s,error:new Bi(d,c.statusText,f),headers:c.headers}:{type:et.data,data:f,statusCode:c.status,headers:c.headers}}return s===et.error?{type:s,error:c}:c instanceof AA?{type:et.deferred,deferredData:c}:{type:et.data,data:c}}function aa(t,e,r){let n=ls(w_(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"?__(s):s}return new Request(n,o)}function __(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 DA(t,e,r,n,o){let i={},a=null,s,c=!1,l={};return r.forEach((u,h)=>{let d=e[h].route.id;if(re(!Ci(u),"Cannot handle redirect results in processLoaderData"),Ua(u)){let f=hi(t,d),m=u.error;n&&(m=Object.values(n)[0],n=void 0),a=Object.assign(a||{},{[f.route.id]:m}),c||(c=!0,s=v_(u.error)?u.error.status:500),u.headers&&(l[d]=u.headers)}else uo(u)?(o&&o.set(d,u.deferredData),i[d]=u.deferredData.data):(i[d]=u.data,u.statusCode!=null&&u.statusCode!==200&&!c&&(s=u.statusCode),u.headers&&(l[d]=u.headers))}),n&&(a=n),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:l}}function vm(t,e,r,n,o,i,a,s){let{loaderData:c,errors:l}=DA(e,r,n,o,s);for(let u=0;u<i.length;u++){let[h,,d]=i[u];re(a!==void 0&&a[u]!==void 0,"Did not find corresponding fetcher result");let f=a[u];if(Ua(f)){let m=hi(t.matches,d.route.id);l&&l[m.route.id]||(l=Ie({},l,{[m.route.id]:f.error})),t.fetchers.delete(h)}else{if(Ci(f))throw new Error("Unhandled fetcher revalidation redirect");if(uo(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(h,m)}}}return{loaderData:c,errors:l}}function ju(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 hi(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 HA(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 Bi(e,r,null)}}function ym(t){return HA(t,404,"Not Found")}function _m(t){let e=typeof t=="string"?t:fn(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:et.error,error:new Bi(405,"Method Not Allowed","")}}function wm(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(Ci(r))return r}}function w_(t){let e=typeof t=="string"?vn(t):t;return fn(Ie({},e,{hash:""}))}function FA(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}function uo(t){return t.type===et.deferred}function Ua(t){return t.type===et.error}function Ci(t){return(t&&t.type)===et.redirect}async function Em(t,e,r,n,o,i){for(let a=0;a<r.length;a++){let s=r[a],c=e[a],l=t.find(h=>h.route.id===c.route.id),u=l!=null&&!y_(l,c)&&(i&&i[c.route.id])!==void 0;uo(s)&&(o||u)&&await E_(s,n,o).then(h=>{h&&(r[a]=h||r[a])})}}async function E_(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:et.data,data:t.deferredData.unwrappedData}}catch(o){return{type:et.error,error:o}}return{type:et.data,data:t.deferredData.data}}}function C_(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Cm(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 Sm(t,e){let r=typeof e=="string"?vn(e).search:e.search;if(t[t.length-1].route.index&&C_(r||""))return t[t.length-1];let n=m_(t);return n[n.length-1]}/**
373
- * React Router v6.4.3
374
- *
375
- * Copyright (c) Remix Software Inc.
376
- *
377
- * This source code is licensed under the MIT license found in the
378
- * LICENSE.md file in the root directory of this source tree.
379
- *
380
- * @license MIT
381
- */function yl(){return yl=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},yl.apply(this,arguments)}function $A(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const zA=typeof Object.is=="function"?Object.is:$A,{useState:jA,useEffect:BA,useLayoutEffect:qA,useDebugValue:KA}=qu;function GA(t,e,r){const n=e(),[{inst:o},i]=jA({inst:{value:n,getSnapshot:e}});return qA(()=>{o.value=n,o.getSnapshot=e,Bu(o)&&i({inst:o})},[t,n,e]),BA(()=>(Bu(o)&&i({inst:o}),t(()=>{Bu(o)&&i({inst:o})})),[t]),KA(n),n}function Bu(t){const e=t.getSnapshot,r=t.value;try{const n=e();return!zA(r,n)}catch{return!0}}function VA(t,e,r){return e()}const WA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YA=!WA,QA=YA?VA:GA,JA="useSyncExternalStore"in qu?(t=>t.useSyncExternalStore)(qu):QA,XA=j.exports.createContext(null),S_=j.exports.createContext(null),Nf=j.exports.createContext(null),ZA=j.exports.createContext(null),Bl=j.exports.createContext(null),Es=j.exports.createContext({outlet:null,matches:[]}),T_=j.exports.createContext(null);function Of(){return j.exports.useContext(Bl)!=null}function ek(){return Of()||re(!1),j.exports.useContext(Bl).location}const tk=j.exports.createContext(null);function rk(t){let e=j.exports.useContext(Es).outlet;return e&&W(tk.Provider,{value:t,children:e})}function nk(){let{matches:t}=j.exports.useContext(Es),e=t[t.length-1];return e?e.params:{}}function ok(t,e){Of()||re(!1);let r=j.exports.useContext(Nf),{matches:n}=j.exports.useContext(Es),o=n[n.length-1],i=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let s=ek(),c;if(e){var l;let m=typeof e=="string"?vn(e):e;a==="/"||((l=m.pathname)==null?void 0:l.startsWith(a))||re(!1),c=m}else c=s;let u=c.pathname||"/",h=a==="/"?u:u.slice(a.length)||"/",d=Ea(t,{pathname:h}),f=ck(d&&d.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:yo([a,m.pathname]),pathnameBase:m.pathnameBase==="/"?a:yo([a,m.pathnameBase])})),n,r||void 0);return e&&f?W(Bl.Provider,{value:{location:yl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ze.Pop},children:f}):f}function ik(){let t=uk(),e=v_(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 mo(G0,{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}"}),mo("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 ak 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(T_.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function sk(t){let{routeContext:e,match:r,children:n}=t,o=j.exports.useContext(XA);return o&&r.route.errorElement&&(o._deepestRenderedBoundaryId=r.route.id),W(Es.Provider,{value:e,children:n})}function ck(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(ik,{}):null,u=()=>W(sk,{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(ak,{location:r.location,component:l,error:c,children:u()}):u()},null)}var Tm;(function(t){t.UseRevalidator="useRevalidator"})(Tm||(Tm={}));var lh;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(lh||(lh={}));function lk(t){let e=j.exports.useContext(Nf);return e||re(!1),e}function uk(){var t;let e=j.exports.useContext(T_),r=lk(lh.UseRouteError),n=j.exports.useContext(Es),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 dk(t){let{fallbackElement:e,router:r}=t,n=JA(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(S_.Provider,{value:{router:r,navigator:o,static:!1,basename:i},children:W(Nf.Provider,{value:n,children:W(pk,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:o,children:r.state.initialized?W(gk,{}):e})})})}function hk(t){return rk(t.context)}function fk(t){re(!1)}function pk(t){let{basename:e="/",children:r=null,location:n,navigationType:o=ze.Pop,navigator:i,static:a=!1}=t;Of()&&re(!1);let s=e.replace(/^\/*/,"/"),c=j.exports.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=vn(n));let{pathname:l="/",search:u="",hash:h="",state:d=null,key:f="default"}=n,m=j.exports.useMemo(()=>{let v=g_(l,s);return v==null?null:{pathname:v,search:u,hash:h,state:d,key:f}},[s,l,u,h,d,f]);return m==null?null:W(ZA.Provider,{value:c,children:W(Bl.Provider,{children:r,value:{location:m,navigationType:o}})})}function gk(t){let{children:e,location:r}=t,n=j.exports.useContext(S_),o=n&&!e?n.router.routes:uh(e);return ok(o,r)}var bm;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(bm||(bm={}));new Promise(()=>{});function uh(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,uh(n.props.children,e));return}n.type!==fk&&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=uh(n.props.children,i)),r.push(a)}),r}function b_(t){return t.map(e=>{let r=yl({},e);return r.hasErrorBoundary==null&&(r.hasErrorBoundary=r.errorElement!=null),r.children&&(r.children=b_(r.children)),r})}/**
382
- * React Router DOM v6.4.3
383
- *
384
- * Copyright (c) Remix Software Inc.
385
- *
386
- * This source code is licensed under the MIT license found in the
387
- * LICENSE.md file in the root directory of this source tree.
388
- *
389
- * @license MIT
390
- */function mk(t,e){var r;return xA({basename:e==null?void 0:e.basename,history:nA({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||((r=window)==null?void 0:r.__staticRouterHydrationData),routes:b_(t)}).initialize()}var Im;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(Im||(Im={}));var Am;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Am||(Am={}));const I_=({error:t})=>mo(G0,{children:[mo("div",{style:{marginTop:20,border:"1px solid"},children:[mo("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(I_,{error:t.cause})]}),vk=t=>{const{appKey:e}=t,r=Vb(),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:h=>i(h),error:l,complete:()=>{s(!1)}});return()=>u.unsubscribe()},[e]),j.exports.useEffect(()=>{var u,h;if(o&&n.current){const{manifest:d,config:f,module:m}=o,[v]=(u=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g))!=null?u:[];return((h=m.render)!=null?h:m.default)(n.current,{fusion:r,env:{manifest:d,config:f,basename:v}})}},[r,n,o]),c?mo("div",{children:[W("h2",{children:"\u{1F525} Failed to load application \u{1F92C}"}),W(I_,{error:c}),";"]}):mo("div",{children:[a&&W(h_,{text:"Loading Application"}),W("span",{ref:n,style:{display:o?"":"none"}})]})},yk=()=>W("div",{style:{fontFamily:"Equinor"},children:W(hk,{})}),_k=()=>{const{appKey:t}=nk();return t?W(vk,{appKey:t}):null},wk=mk([{path:"/",element:W(yk,{}),children:[{path:"apps/:appKey/*",element:W(_k,{})},{path:"test",element:W("p",{children:"ok"})}]}]),Ek=()=>W(dk,{router:wk,fallbackElement:W("p",{children:"wooot"})});Ku.createRoot(document.getElementById("root")).render(W(ds.StrictMode,{children:W(xI,{theme:Ve,children:W(Wb,{configure:rA,fallback:W(h_,{text:"Loading framework"}),children:W(Ek,{})})})}));